diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-18 22:32:32 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-18 22:32:32 +0000 |
commit | 357561e73fea7364b31b7e14f5235dfd18716c91 (patch) | |
tree | da5d13e3af4b7c5a4cf2a964acae778c199d035f /libavutil | |
parent | 2091b27b6851716b175dd85ead0bf48ff1d32503 (diff) | |
download | ffmpeg-357561e73fea7364b31b7e14f5235dfd18716c91.tar.gz |
Clarify relations between log2_chroma_w, log2_chroma_h and comp.
Originally committed as revision 20550 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/pixdesc.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h index 207bf00f27..7acab9372e 100644 --- a/libavutil/pixdesc.h +++ b/libavutil/pixdesc.h @@ -62,6 +62,7 @@ typedef struct AVPixFmtDescriptor{ * For YV12 this is 1 for example. * chroma_width = -((-luma_width) >> log2_chroma_w) * The note above is needed to ensure rounding up. + * This value only refers to the chroma components. */ uint8_t log2_chroma_w; ///< chroma_width = -((-luma_width )>>log2_chroma_w) @@ -70,10 +71,17 @@ typedef struct AVPixFmtDescriptor{ * For YV12 this is 1 for example. * chroma_height= -((-luma_height) >> log2_chroma_h) * The note above is needed to ensure rounding up. + * This value only refers to the chroma components. */ uint8_t log2_chroma_h; uint8_t flags; - AVComponentDescriptor comp[4]; ///< parameters that describe how pixels are packed + + /** + * Parameters that describe how pixels are packed. If the format + * has chroma components, they must be stored in comp[1] and + * comp[2]. + */ + AVComponentDescriptor comp[4]; }AVPixFmtDescriptor; #define PIX_FMT_BE 1 ///< big-endian |