diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-02-09 14:41:50 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-02-19 15:07:52 +0100 |
commit | 31d2039cb42668ebcf08248bc48bbad44aa05f49 (patch) | |
tree | 1c52e9e8eb0d14950bb640d62ceac1342034ce91 /libavcodec/avcodec.h | |
parent | 5b1d9ceec715846a58fe029bc3889ed6fa62436a (diff) | |
download | ffmpeg-31d2039cb42668ebcf08248bc48bbad44aa05f49.tar.gz |
h264_parser: export video format and dimensions
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 231b92bd66..5b5c21f2c8 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3883,6 +3883,28 @@ typedef struct AVCodecParserContext { * For example, this corresponds to H.264 PicOrderCnt. */ int output_picture_number; + + /** + * Dimensions of the decoded video intended for presentation. + */ + int width; + int height; + + /** + * Dimensions of the coded video. + */ + int coded_width; + int coded_height; + + /** + * The format of the coded data, corresponds to enum AVPixelFormat for video + * and for enum AVSampleFormat for audio. + * + * Note that a decoder can have considerable freedom in how exactly it + * decodes the data, so the format reported here might be different from the + * one returned by a decoder. + */ + int format; } AVCodecParserContext; typedef struct AVCodecParser { |