[FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: accept P010 input in system memory

Xiang, Haihao haihao.xiang at intel.com
Tue Dec 6 09:21:10 EET 2022


From: Haihao Xiang <haihao.xiang at intel.com>

Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>
---
 libavfilter/qsvvpp.c     | 2 ++
 libavfilter/vf_vpp_qsv.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c
index a588a37610..6f58fe6017 100644
--- a/libavfilter/qsvvpp.c
+++ b/libavfilter/qsvvpp.c
@@ -245,6 +245,8 @@ static int pix_fmt_to_mfx_fourcc(int format)
         return MFX_FOURCC_YUY2;
     case AV_PIX_FMT_BGRA:
         return MFX_FOURCC_RGB4;
+    case AV_PIX_FMT_P010:
+        return MFX_FOURCC_P010;
     }
 
     return MFX_FOURCC_NV12;
diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
index 8013e0da6c..842cb85161 100644
--- a/libavfilter/vf_vpp_qsv.c
+++ b/libavfilter/vf_vpp_qsv.c
@@ -601,6 +601,7 @@ static int query_formats(AVFilterContext *ctx)
         AV_PIX_FMT_NV12,
         AV_PIX_FMT_YUYV422,
         AV_PIX_FMT_RGB32,
+        AV_PIX_FMT_P010,
         AV_PIX_FMT_QSV,
         AV_PIX_FMT_NONE
     };
-- 
2.25.1



More information about the ffmpeg-devel mailing list