aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-22 08:20:27 +0100
committerAnton Khirnov <anton@khirnov.net>2013-04-10 20:54:22 +0200
commit2d6edb2b7ebc400d1a4fd5b95a30e4b4415b94f9 (patch)
treed65e9e78bfd0b2943b0864187fc5b31b25de7bfc /libavcodec
parent20429ba96e55db17ac57f6c0e330914287f1f614 (diff)
downloadffmpeg-2d6edb2b7ebc400d1a4fd5b95a30e4b4415b94f9.tar.gz
lavc: extend / update the [coded_]{width,height} doxy
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 316d30a656..84a685986b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1148,16 +1148,20 @@ typedef struct AVCodecContext {
/**
* picture width / height.
* - encoding: MUST be set by user.
- * - decoding: Set by libavcodec.
- * Note: For compatibility it is possible to set this instead of
- * coded_width/height before decoding.
+ * - decoding: May be set by the user before opening the decoder if known e.g.
+ * from the container. Some decoders will require the dimensions
+ * to be set by the caller. During decoding, the decoder may
+ * overwrite those values as required.
*/
int width, height;
/**
- * Bitstream width / height, may be different from width/height.
+ * Bitstream width / height, may be different from width/height e.g. when
+ * the decoded frame is cropped before being output.
* - encoding: unused
- * - decoding: Set by user before init if known. Codec should override / dynamically change if needed.
+ * - decoding: May be set by the user before opening the decoder if known
+ * e.g. from the container. During decoding, the decoder may
+ * overwrite those values as required.
*/
int coded_width, coded_height;