lavc/vaapi_dec: Add VVC decoder

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
This commit is contained in:
Fei Wang 2024-10-28 16:55:25 +08:00 committed by Haihao Xiang
parent 4dc18c78cd
commit e726fdeb05
8 changed files with 682 additions and 2 deletions

View file

@ -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;