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:
parent
ae25413daf
commit
741b352b16
@ -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 },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user