summaryrefslogtreecommitdiff
path: root/libavutil/pixdesc.h
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-09-10 05:02:47 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-09-10 12:08:57 +0200
commit7b02cb29d9d60cdd5ef321043d11d02023e7dc8f (patch)
tree33977aefad4aa1b7ad1a22415da014aaa2ecf85c /libavutil/pixdesc.h
parentc7ed26ad6035793c7212c17545b0ded18b72db69 (diff)
pixdesc: Document the component order
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r--libavutil/pixdesc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index ea84fd3c08..fe06d94f56 100644
--- a/libavutil/pixdesc.h
+++ b/libavutil/pixdesc.h
@@ -108,6 +108,13 @@ typedef struct AVPixFmtDescriptor {
* Parameters that describe how pixels are packed. If the format
* has chroma components, they must be stored in comp[1] and
* comp[2].
+ * If the format is RGB-like, the first component is R, followed
+ * by G and B.
+ *
+ * If the format is YUV-like, the first component is Y, followed
+ * by U and V.
+ *
+ * If present, the Alpha channel is always the last component.
*/
AVComponentDescriptor comp[4];