[FFmpeg-cvslog] pixdesc: Document the component order

Luca Barbato git at videolan.org
Sat Sep 12 13:03:49 CEST 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Sep 10 05:02:47 2015 +0200| [7b02cb29d9d60cdd5ef321043d11d02023e7dc8f] | committer: Luca Barbato

pixdesc: Document the component order

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b02cb29d9d60cdd5ef321043d11d02023e7dc8f
---

 libavutil/pixdesc.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index ea84fd3..fe06d94 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];
 



More information about the ffmpeg-cvslog mailing list