Commit 741b352b authored by Anton Khirnov's avatar Anton Khirnov

qsvdec: list supported pixel formats

This is useful for detecting QSV-enabled decoders.
parent ae25413d
......@@ -243,6 +243,9 @@ AVCodec ff_hevc_qsv_decoder = {
.close = qsv_decode_close,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
.priv_class = &hevc_class,
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
AV_PIX_FMT_QSV,
AV_PIX_FMT_NONE },
};
#endif
......@@ -278,5 +281,8 @@ AVCodec ff_h264_qsv_decoder = {
.close = qsv_decode_close,
.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
.priv_class = &class,
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
AV_PIX_FMT_QSV,
AV_PIX_FMT_NONE },
};
#endif
......@@ -175,4 +175,7 @@ AVCodec ff_mpeg2_qsv_decoder = {
.close = qsv_decode_close,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
.priv_class = &class,
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
AV_PIX_FMT_QSV,
AV_PIX_FMT_NONE },
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment