mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-07 16:40:10 +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,
|
.close = qsv_decode_close,
|
||||||
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
|
||||||
.priv_class = &hevc_class,
|
.priv_class = &hevc_class,
|
||||||
|
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
|
||||||
|
AV_PIX_FMT_QSV,
|
||||||
|
AV_PIX_FMT_NONE },
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -278,5 +281,8 @@ AVCodec ff_h264_qsv_decoder = {
|
|||||||
.close = qsv_decode_close,
|
.close = qsv_decode_close,
|
||||||
.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
|
.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
|
||||||
.priv_class = &class,
|
.priv_class = &class,
|
||||||
|
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12,
|
||||||
|
AV_PIX_FMT_QSV,
|
||||||
|
AV_PIX_FMT_NONE },
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -175,4 +175,7 @@ AVCodec ff_mpeg2_qsv_decoder = {
|
|||||||
.close = qsv_decode_close,
|
.close = qsv_decode_close,
|
||||||
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
|
||||||
.priv_class = &class,
|
.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