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>
This commit is contained in:
Wenbin Chen 2021-12-07 17:05:50 +08:00 committed by Lynne
parent e050959103
commit f3c9847c27
1 changed files with 1 additions and 0 deletions

View File

@ -992,6 +992,7 @@ static const struct {
} vaapi_drm_format_map[] = { } vaapi_drm_format_map[] = {
#ifdef DRM_FORMAT_R8 #ifdef DRM_FORMAT_R8
DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_RG88), DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_RG88),
DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_GR88),
#endif #endif
DRM_MAP(NV12, 1, DRM_FORMAT_NV12), DRM_MAP(NV12, 1, DRM_FORMAT_NV12),
#if defined(VA_FOURCC_P010) && defined(DRM_FORMAT_R16) #if defined(VA_FOURCC_P010) && defined(DRM_FORMAT_R16)