aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2022-12-06 15:21:10 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2022-12-08 14:25:52 +0800
commit3552dba0e1b89906024e693782ca54289f66aa84 (patch)
treeed79de6ea201ffc6ed3fa60565ca842bedd7d3ac
parente5faa1d50c814bd115cb5e123e86e1e0c7cac0a8 (diff)
downloadffmpeg-3552dba0e1b89906024e693782ca54289f66aa84.tar.gz
lavfi/vf_vpp_qsv: accept P010 input in system memory
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
-rw-r--r--libavfilter/qsvvpp.c2
-rw-r--r--libavfilter/vf_vpp_qsv.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c
index 0adcdc41c6..064b105a17 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 0e642ec9d5..317ae06c12 100644
--- a/libavfilter/vf_vpp_qsv.c
+++ b/libavfilter/vf_vpp_qsv.c
@@ -583,6 +583,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
};