Commit 19a9b061 authored by stefano's avatar stefano

Clarify relations between log2_chroma_w, log2_chroma_h and comp.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20550 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2c363316
...@@ -62,6 +62,7 @@ typedef struct AVPixFmtDescriptor{ ...@@ -62,6 +62,7 @@ typedef struct AVPixFmtDescriptor{
* For YV12 this is 1 for example. * For YV12 this is 1 for example.
* chroma_width = -((-luma_width) >> log2_chroma_w) * chroma_width = -((-luma_width) >> log2_chroma_w)
* The note above is needed to ensure rounding up. * 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) uint8_t log2_chroma_w; ///< chroma_width = -((-luma_width )>>log2_chroma_w)
...@@ -70,10 +71,17 @@ typedef struct AVPixFmtDescriptor{ ...@@ -70,10 +71,17 @@ typedef struct AVPixFmtDescriptor{
* For YV12 this is 1 for example. * For YV12 this is 1 for example.
* chroma_height= -((-luma_height) >> log2_chroma_h) * chroma_height= -((-luma_height) >> log2_chroma_h)
* The note above is needed to ensure rounding up. * The note above is needed to ensure rounding up.
* This value only refers to the chroma components.
*/ */
uint8_t log2_chroma_h; uint8_t log2_chroma_h;
uint8_t flags; 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; }AVPixFmtDescriptor;
#define PIX_FMT_BE 1 ///< big-endian #define PIX_FMT_BE 1 ///< big-endian
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment