aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pixdesc.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-03-18 09:57:02 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-03-21 19:01:39 +0100
commit38c3b68e3ab0835ae63faf28eac41ab1d8e9aafd (patch)
tree9bf5270cedb7d0449b8387ee82fafbafa1ea130a /libavutil/pixdesc.h
parent5ca595facb9c0591c526903d1d836932fc86b80c (diff)
downloadffmpeg-38c3b68e3ab0835ae63faf28eac41ab1d8e9aafd.tar.gz
pixdesc: put components always in the same order.
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r--libavutil/pixdesc.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index 0730f5bb21..f1a2dde780 100644
--- a/libavutil/pixdesc.h
+++ b/libavutil/pixdesc.h
@@ -76,9 +76,12 @@ typedef struct AVPixFmtDescriptor{
uint8_t flags;
/**
- * Parameters that describe how pixels are packed. If the format
- * has chroma components, they must be stored in comp[1] and
- * comp[2].
+ * Parameters that describe how pixels are packed.
+ * If the format has 2 or 4 components, then alpha is last.
+ * If the format has 1 or 2 components, then luma is 0.
+ * If the format has 3 or 4 components,
+ * if the RGB flag is set then 0 is red, 1 is green and 2 is blue;
+ * otherwise 0 is luma, 1 is chroma-U and 2 is chroma-V.
*/
AVComponentDescriptor comp[4];
}AVPixFmtDescriptor;