diff mbox series

[FFmpeg-devel,v1,5/9] lavu/hwcontext_vaapi: add vaapi_format_map support for P012

Message ID 20200619015248.21873-5-fei.w.wang@intel.com
State New
Headers show
Series [FFmpeg-devel,v1,1/9] lavu/pix_fmt: add P012 pixel format
Related show


Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Fei Wang June 19, 2020, 1:52 a.m. UTC
The format will be used for VAAPI and QSV HEVC/VP9 12bit decode.

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
 libavutil/hwcontext_vaapi.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series


diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index b31cf95850..b93d8f23e8 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -125,6 +125,9 @@  static const VAAPIFormatDescriptor vaapi_format_map[] = {
     MAP(Y800, YUV400,  GRAY8,   0),
 #ifdef VA_FOURCC_P010
     MAP(P010, YUV420_10BPP, P010, 0),
+#ifdef VA_FOURCC_P012
+    MAP(P012, YUV420_12, P012LE, 0),
     MAP(BGRA, RGB32,   BGRA, 0),
     MAP(BGRX, RGB32,   BGR0, 0),