From 7763118cae4eb468b032dbd29af15a011c2c233b Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 26 Apr 2013 15:12:05 +0200 Subject: log: Support for 256color terminals And provide extended coloring capabilities for debugging. The default colors do not change in 256 more to keep supporting people using Black on White, White on Black and Solarized terminals. Signed-off-by: Luca Barbato --- libavutil/log.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavutil/log.h') diff --git a/libavutil/log.h b/libavutil/log.h index 6d26b67db8..2f7811c072 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -143,6 +143,14 @@ typedef struct AVClass { */ #define AV_LOG_DEBUG 48 +/** + * Sets additional colors for extended debugging sessions. + * Requires 256color terminal support. Use outside debugging is not + * recommended. + */ + +#define AV_LOG_C(x) (x << 8) + /** * @} */ -- cgit v1.2.3