diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2014-12-19 19:15:07 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-12-25 20:47:49 +0100 |
commit | 57b6704ecd0f56d6a3092e448687cfd837bb0ac1 (patch) | |
tree | c4359d6b659f48d9352ab996d59c612928f98133 /libavcodec/avcodec.h | |
parent | 4cfbeef31d4e6096c0596359d212f5d99a7ba4b5 (diff) | |
download | ffmpeg-57b6704ecd0f56d6a3092e448687cfd837bb0ac1.tar.gz |
avcodec: add AVCodecContext.sw_pix_fmt
This carries the pixel format that would be used if it were not for
hardware acceleration. This is equal to AVCodecContext.pix_fmt if
hardware acceleration is not in use.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7df64ae93d..c998ee41c2 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2800,6 +2800,13 @@ typedef struct AVCodecContext { * - encoding: unused */ AVRational framerate; + + /** + * Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx. + * - encoding: unused. + * - decoding: Set by libavcodec before calling get_format() + */ + enum AVPixelFormat sw_pix_fmt; } AVCodecContext; /** |