ffmpeg | branch: master | Anton Khirnov <an...@khirnov.net> | Tue Jul 21 09:45:05 2015 +0200| [741b352b16dad74b87c4a39bade8902633a2b0e6] | committer: Anton Khirnov
qsvdec: list supported pixel formats This is useful for detecting QSV-enabled decoders. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=741b352b16dad74b87c4a39bade8902633a2b0e6 --- libavcodec/qsvdec_h2645.c | 6 ++++++ libavcodec/qsvdec_mpeg2.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c index ec34a18..52e22ee 100644 --- a/libavcodec/qsvdec_h2645.c +++ b/libavcodec/qsvdec_h2645.c @@ -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 diff --git a/libavcodec/qsvdec_mpeg2.c b/libavcodec/qsvdec_mpeg2.c index 98318bd..3378d02 100644 --- a/libavcodec/qsvdec_mpeg2.c +++ b/libavcodec/qsvdec_mpeg2.c @@ -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 }, }; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog