aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qsvdec.c
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2022-10-06 15:35:36 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2022-10-10 09:31:34 +0800
commit1898dbddd5dcf2d3e955b84eeafa91862988dbfa (patch)
tree06e62fd03805bc1a882d998f0118eeda727f0399 /libavcodec/qsvdec.c
parentaba25b391c7f68cea456d1b862a71bcd105b46f3 (diff)
downloadffmpeg-1898dbddd5dcf2d3e955b84eeafa91862988dbfa.tar.gz
lavc/qsv: add support for decoding & encoding 10bit 4:4:4 content
AV_PIX_FMT_XV30 is used in FFmpeg and MFX_FOURCC_Y410 is used in the SDK. Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'libavcodec/qsvdec.c')
-rw-r--r--libavcodec/qsvdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 0254a394bd..912d58965a 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -142,6 +142,7 @@ static int qsv_get_continuous_buffer(AVCodecContext *avctx, AVFrame *frame,
break;
case AV_PIX_FMT_Y210:
case AV_PIX_FMT_VUYX:
+ case AV_PIX_FMT_XV30:
frame->linesize[0] = 4 * FFALIGN(avctx->width, 128);
break;
default:
@@ -1043,6 +1044,7 @@ const FFCodec ff_##x##_qsv_decoder = { \
AV_PIX_FMT_YUYV422, \
AV_PIX_FMT_Y210, \
AV_PIX_FMT_VUYX, \
+ AV_PIX_FMT_XV30, \
AV_PIX_FMT_QSV, \
AV_PIX_FMT_NONE }, \
.hw_configs = qsv_hw_configs, \