]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/log.h
log: use a different color for debug (green).
[ffmpeg] / libavutil / log.h
index b8683302a2d424ffdcf532cc4b16340b9d3c01c2..02a0e1ac8ce22e7beb1dc357f6a1bb598b78f48b 100644 (file)
@@ -147,6 +147,16 @@ void av_log_set_callback(void (*)(void*, int, const char*, va_list));
 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
 const char* av_default_item_name(void* ctx);
 
+/**
+ * Format a line of log the same way as the default callback.
+ * @param line          buffer to receive the formated line
+ * @param line_size     size of the buffer
+ * @param print_prefix  used to store whether the prefix must be printed;
+ *                      must point to a persistent integer initially set to 1
+ */
+void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl,
+                        char *line, int line_size, int *print_prefix);
+
 /**
  * av_dlog macros
  * Useful to print debug messages that shouldn't get compiled in normally.