|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Intel MediaSDK QSV based MPEG-2, VC-1, VP8, MJPEG and VP9 decoders
|
|
|
+ * Intel MediaSDK QSV based MPEG-2, VC-1, VP8, MJPEG, VP9 and AV1 decoders
|
|
|
*
|
|
|
* copyright (c) 2015 Anton Khirnov
|
|
|
*
|
|
@@ -327,3 +327,32 @@ AVCodec ff_vp9_qsv_decoder = {
|
|
|
.wrapper_name = "qsv",
|
|
|
};
|
|
|
#endif
|
|
|
+
|
|
|
+#if CONFIG_AV1_QSV_DECODER
|
|
|
+static const AVClass av1_qsv_class = {
|
|
|
+ .class_name = "av1_qsv",
|
|
|
+ .item_name = av_default_item_name,
|
|
|
+ .option = options,
|
|
|
+ .version = LIBAVUTIL_VERSION_INT,
|
|
|
+};
|
|
|
+
|
|
|
+AVCodec ff_av1_qsv_decoder = {
|
|
|
+ .name = "av1_qsv",
|
|
|
+ .long_name = NULL_IF_CONFIG_SMALL("AV1 video (Intel Quick Sync Video acceleration)"),
|
|
|
+ .priv_data_size = sizeof(QSVOtherContext),
|
|
|
+ .type = AVMEDIA_TYPE_VIDEO,
|
|
|
+ .id = AV_CODEC_ID_AV1,
|
|
|
+ .init = qsv_decode_init,
|
|
|
+ .decode = qsv_decode_frame,
|
|
|
+ .flush = qsv_decode_flush,
|
|
|
+ .close = qsv_decode_close,
|
|
|
+ .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING | AV_CODEC_CAP_HYBRID,
|
|
|
+ .priv_class = &av1_qsv_class,
|
|
|
+ .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
|
|
|
+ AV_PIX_FMT_P010,
|
|
|
+ AV_PIX_FMT_QSV,
|
|
|
+ AV_PIX_FMT_NONE },
|
|
|
+ .hw_configs = ff_qsv_hw_configs,
|
|
|
+ .wrapper_name = "qsv",
|
|
|
+};
|
|
|
+#endif
|