From e62f625163f8cde794ebe02bc228735b4e65c772 Mon Sep 17 00:00:00 2001 From: Zhong Li Date: Fri, 31 May 2019 08:44:48 +0800 Subject: [PATCH] lavf/qsvvpp: add P010 output format support Signed-off-by: Zhong Li --- libavfilter/qsvvpp.c | 1 + libavfilter/vf_vpp_qsv.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index b5ef74efa4..8d5ff2eb65 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -153,6 +153,7 @@ static int map_frame_to_surface(AVFrame *frame, mfxFrameSurface1 *surface) { switch (frame->format) { case AV_PIX_FMT_NV12: + case AV_PIX_FMT_P010: surface->Data.Y = frame->data[0]; surface->Data.UV = frame->data[1]; break; diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c index 41a9f38962..dd05e8baff 100644 --- a/libavfilter/vf_vpp_qsv.c +++ b/libavfilter/vf_vpp_qsv.c @@ -367,6 +367,7 @@ static int query_formats(AVFilterContext *ctx) }; static const enum AVPixelFormat out_pix_fmts[] = { AV_PIX_FMT_NV12, + AV_PIX_FMT_P010, AV_PIX_FMT_QSV, AV_PIX_FMT_NONE };