[FFmpeg-cvslog] avutil/pixfmt: Improve ascii art showing the meaning of the AVChromaLocation values

Michael Niedermayer git at videolan.org
Tue May 19 17:48:52 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 19 17:47:04 2015 +0200| [710abaf2c5d8132924f9a1b8486716cdc16d327f] | committer: Michael Niedermayer

avutil/pixfmt: Improve ascii art showing the meaning of the AVChromaLocation values

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavutil/pixfmt.h |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index ba22eed..36b0f98 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -530,9 +530,13 @@ enum AVColorRange {
 /**
  * Location of chroma samples.
  *
- *  X   X      3 4 X      X are luma samples,
- *             1 2        1-6 are possible chroma positions
- *  X   X      5 6 X      0 is undefined/unknown position
+ * Illustration showing the location, the left shows only luma, the right
+ * shows the location of the chroma samples, the 2 could be imagined to overlay
+ * each other but are drawn seperately due to limitations of ASCII
+ *  ______        ______
+ * |X   X ...    |3 4 X ...     X are luma samples,
+ * |             |1 2           1-6 are possible chroma positions
+ * |X   X ...    |5 6 X ...     0 is undefined/unknown position
  */
 enum AVChromaLocation {
     AVCHROMA_LOC_UNSPECIFIED = 0,



More information about the ffmpeg-cvslog mailing list