mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
e050959103
commit
f3c9847c27
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue