# HG changeset patch # User stefano # Date 1258583552 0 # Node ID 9072135121e045de93a9298c663079a40e5ab4cf # Parent 57659b3ef05cc0058df2b67dbc808eea9bc26687 Clarify relations between log2_chroma_w, log2_chroma_h and comp. diff -r 57659b3ef05c -r 9072135121e0 pixdesc.h --- a/pixdesc.h Wed Nov 18 17:15:17 2009 +0000 +++ b/pixdesc.h Wed Nov 18 22:32:32 2009 +0000 @@ -62,6 +62,7 @@ * 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 @@ * 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