aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2014-12-19 19:15:07 +0200
committerAnton Khirnov <anton@khirnov.net>2014-12-25 20:47:49 +0100
commit57b6704ecd0f56d6a3092e448687cfd837bb0ac1 (patch)
treec4359d6b659f48d9352ab996d59c612928f98133 /libavcodec/avcodec.h
parent4cfbeef31d4e6096c0596359d212f5d99a7ba4b5 (diff)
downloadffmpeg-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.h7
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;
/**