diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-19 20:39:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-19 20:39:04 +0100 |
commit | 560eb7179a7c46ba277c9c120840816869a47a70 (patch) | |
tree | f2b3b551efdfad47ee5209968fa79f0d882092d3 /libavcodec/avcodec.h | |
parent | e3755119fae71c9e34b630679c2805fcf1c97e2c (diff) | |
parent | 31d2039cb42668ebcf08248bc48bbad44aa05f49 (diff) | |
download | ffmpeg-560eb7179a7c46ba277c9c120840816869a47a70.tar.gz |
Merge commit '31d2039cb42668ebcf08248bc48bbad44aa05f49'
* commit '31d2039cb42668ebcf08248bc48bbad44aa05f49':
h264_parser: export video format and dimensions
Conflicts:
libavcodec/h264_parser.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 5e064327b4..29dc2f2f02 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -4381,6 +4381,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 { |