[FFmpeg-devel] [PATCH] log: swap colors for muxer and codec layer

Michael Niedermayer michaelni at gmx.at
Mon Jun 4 01:08:03 CEST 2012


This way the filters which are semantically closer to the codec layer
have a (subjectively to me) more similar color.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavutil/log.c |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/libavutil/log.c b/libavutil/log.c
index 62394ea..30f2ccd 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -43,12 +43,12 @@ static const uint8_t color[16 + AV_CLASS_CATEGORY_NB] = {
     [AV_LOG_VERBOSE/8] = 10,
     [AV_LOG_DEBUG  /8] = 10,
     [16+AV_CLASS_CATEGORY_NA              ] =  7,
-    [16+AV_CLASS_CATEGORY_INPUT           ] =  3,
-    [16+AV_CLASS_CATEGORY_OUTPUT          ] = 11,
-    [16+AV_CLASS_CATEGORY_MUXER           ] =  3,
-    [16+AV_CLASS_CATEGORY_DEMUXER         ] = 11,
-    [16+AV_CLASS_CATEGORY_ENCODER         ] =  5,
-    [16+AV_CLASS_CATEGORY_DECODER         ] = 13,
+    [16+AV_CLASS_CATEGORY_INPUT           ] =  5,
+    [16+AV_CLASS_CATEGORY_OUTPUT          ] = 13,
+    [16+AV_CLASS_CATEGORY_MUXER           ] =  5,
+    [16+AV_CLASS_CATEGORY_DEMUXER         ] = 13,
+    [16+AV_CLASS_CATEGORY_ENCODER         ] =  3,
+    [16+AV_CLASS_CATEGORY_DECODER         ] = 11,
     [16+AV_CLASS_CATEGORY_FILTER          ] =  1,
     [16+AV_CLASS_CATEGORY_BITSTREAM_FILTER] =  9,
 };
@@ -68,12 +68,12 @@ static const uint8_t color[16 + AV_CLASS_CATEGORY_NB] = {
     [AV_LOG_VERBOSE/8] = 0x02,
     [AV_LOG_DEBUG  /8] = 0x02,
     [16+AV_CLASS_CATEGORY_NA              ] =    9,
-    [16+AV_CLASS_CATEGORY_INPUT           ] = 0x06,
-    [16+AV_CLASS_CATEGORY_OUTPUT          ] = 0x16,
-    [16+AV_CLASS_CATEGORY_MUXER           ] = 0x06,
-    [16+AV_CLASS_CATEGORY_DEMUXER         ] = 0x16,
-    [16+AV_CLASS_CATEGORY_ENCODER         ] = 0x05,
-    [16+AV_CLASS_CATEGORY_DECODER         ] = 0x15,
+    [16+AV_CLASS_CATEGORY_INPUT           ] = 0x05,
+    [16+AV_CLASS_CATEGORY_OUTPUT          ] = 0x15,
+    [16+AV_CLASS_CATEGORY_MUXER           ] = 0x05,
+    [16+AV_CLASS_CATEGORY_DEMUXER         ] = 0x15,
+    [16+AV_CLASS_CATEGORY_ENCODER         ] = 0x06,
+    [16+AV_CLASS_CATEGORY_DECODER         ] = 0x16,
     [16+AV_CLASS_CATEGORY_FILTER          ] = 0x04,
     [16+AV_CLASS_CATEGORY_BITSTREAM_FILTER] = 0x14,
 };
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list