1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

qsvdec: list supported pixel formats

This is useful for detecting QSV-enabled decoders.
This commit is contained in:
Anton Khirnov 2015-07-21 09:45:05 +02:00
parent ae25413daf
commit 741b352b16
2 changed files with 9 additions and 0 deletions

View File

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

View File

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