aboutsummaryrefslogtreecommitdiff
path: root/libavutil/log.h
diff options
context:
space:
mode:
authorNicolas George2011-12-08 13:54:05 +0100
committerNicolas George2011-12-08 18:47:47 +0100
commit26c6fec9d911300177f8f386a4e85a308d94c322 (patch)
treef6f2b9e1c53fbc46f6cfe57c5238994e4b790b14 /libavutil/log.h
parent15c481614bb410cfa147f8051024d42b01eadff8 (diff)
lavu: introduce av_log_format_line.
Diffstat (limited to 'libavutil/log.h')
-rw-r--r--libavutil/log.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/log.h b/libavutil/log.h
index b8683302a2..02a0e1ac8c 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -148,6 +148,16 @@ 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.
*/