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

Fei Wang fei.w.wang at intel.com
Fri Jun 19 04:52:44 EEST 2020


The format will be used for VAAPI and QSV HEVC/VP9 12bit decode.

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

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),
+#endif
+#ifdef VA_FOURCC_P012
+    MAP(P012, YUV420_12, P012LE, 0),
 #endif
     MAP(BGRA, RGB32,   BGRA, 0),
     MAP(BGRX, RGB32,   BGR0, 0),
-- 
2.17.1



More information about the ffmpeg-devel mailing list