summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_decode.c
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2020-10-29 14:54:25 +0800
committerMark Thompson <sw@jkqxz.net>2020-11-02 22:57:23 +0000
commit3308bbf7761a2723f784fcd6bb921dcbadc18c6e (patch)
tree2df5b35e92adb94eae25d82fa0c1b70798be39e2 /libavcodec/vaapi_decode.c
parentdbd4254a614012ca36d75800eb9a7525742a6144 (diff)
avcodec: add av1 VAAPI decoder
Example cmdline: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -v verbose \ -c:v av1 -i input.ivf -pix_fmt yuv420p -vsync passthrough -f md5 \ -y out.md5 Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Diffstat (limited to 'libavcodec/vaapi_decode.c')
-rw-r--r--libavcodec/vaapi_decode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index 5e4f62baad..57a0eb4e6e 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -410,6 +410,11 @@ static const struct {
#if VA_CHECK_VERSION(0, 39, 0)
MAP(VP9, VP9_2, VP9Profile2 ),
#endif
+#if VA_CHECK_VERSION(1, 8, 0)
+ MAP(AV1, AV1_MAIN, AV1Profile0),
+ MAP(AV1, AV1_HIGH, AV1Profile1),
+#endif
+
#undef MAP
};
@@ -575,6 +580,7 @@ static int vaapi_decode_make_config(AVCodecContext *avctx,
frames->initial_pool_size += 16;
break;
case AV_CODEC_ID_VP9:
+ case AV_CODEC_ID_AV1:
frames->initial_pool_size += 8;
break;
case AV_CODEC_ID_VP8: