aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorWenbin Chen <wenbin.chen@intel.com>2021-12-07 17:05:50 +0800
committerLynne <dev@lynne.ee>2021-12-10 17:03:48 +0100
commitf3c9847c2754b7a43eb721c95e356a53085c2491 (patch)
tree3ba7193b571dfe705ed9379f5fe09de28204ba87 /libavutil
parente050959103f375e6494937fa28ef2c4d2d15c9ef (diff)
downloadffmpeg-f3c9847c2754b7a43eb721c95e356a53085c2491.tar.gz
libavutil/hwcontext_vaapi: Add a new nv12 format map to support vulkan frame
Vulkan will map nv12 to R8 and GR88, so add this map to vaapi to support vulkan frame. Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hwcontext_vaapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 75acc851d6..994b744e4d 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -992,6 +992,7 @@ static const struct {
} vaapi_drm_format_map[] = {
#ifdef DRM_FORMAT_R8
DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_RG88),
+ DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_GR88),
#endif
DRM_MAP(NV12, 1, DRM_FORMAT_NV12),
#if defined(VA_FOURCC_P010) && defined(DRM_FORMAT_R16)