diff options
author | Linjie Fu <linjie.fu@intel.com> | 2020-01-15 15:00:12 +0800 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-24 00:09:51 +0000 |
commit | f4cd4017bff0bcfb252bc1805ed40e738c6a4803 (patch) | |
tree | 5993b54ca4b717e0f42c355ed13ca8906206237f /libavutil | |
parent | d2aa1fbfd4c4599fc0ae8f32b5e95ad65546944b (diff) | |
download | ffmpeg-f4cd4017bff0bcfb252bc1805ed40e738c6a4803.tar.gz |
lavu/hwcontext_vaapi: add vaapi_format_map support for Y210
VA_RT_FORMAT describes the desired sampling format for surface.
When creating surface, VA_RT_FORMAT will be used firstly to choose
the expected fourcc/media_format for the surface. And the fourcc
will be revised by the value of VASurfaceAttribPixelFormat.
Add vaapi_format_map support for new pixel_format Y210.
This is fundamental for both VA-API and QSV.
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/hwcontext_vaapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index cf117640f2..cfcfc46867 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -116,6 +116,9 @@ static const VAAPIFormatDescriptor vaapi_format_map[] = { #endif MAP(UYVY, YUV422, UYVY422, 0), MAP(YUY2, YUV422, YUYV422, 0), +#ifdef VA_FOURCC_Y210 + MAP(Y210, YUV422_10, Y210, 0), +#endif MAP(411P, YUV411, YUV411P, 0), MAP(422V, YUV422, YUV440P, 0), MAP(444P, YUV444, YUV444P, 0), |