aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_decode.c
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2024-10-28 16:55:25 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2024-11-01 12:13:07 +0800
commite726fdeb0550d121e287fc9c5ee6673ab8f66bf4 (patch)
treefecc5de24e1c615876c94c5b132520ff23f0bc4e /libavcodec/vaapi_decode.c
parent4dc18c78cd1872a6de0b9640a4c5eca35f5dfbfd (diff)
downloadffmpeg-e726fdeb0550d121e287fc9c5ee6673ab8f66bf4.tar.gz
lavc/vaapi_dec: Add VVC decoder
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Diffstat (limited to 'libavcodec/vaapi_decode.c')
-rw-r--r--libavcodec/vaapi_decode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index 7753f72106..4ac2df5b43 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -464,6 +464,9 @@ static const struct {
MAP(AV1, AV1_MAIN, AV1Profile0),
MAP(AV1, AV1_HIGH, AV1Profile1),
#endif
+#if VA_CHECK_VERSION(1, 22, 0)
+ MAP(H266, VVC_MAIN_10, VVCMain10),
+#endif
#undef MAP
};
@@ -629,6 +632,7 @@ static int vaapi_decode_make_config(AVCodecContext *avctx,
// Add per-codec number of surfaces used for storing reference frames.
switch (avctx->codec_id) {
case AV_CODEC_ID_H264:
+ case AV_CODEC_ID_H266:
case AV_CODEC_ID_HEVC:
case AV_CODEC_ID_AV1:
frames->initial_pool_size += 16;