#include <stdarg.h>
#include "avutil.h"
#include "attributes.h"
+#include "version.h"
/**
* Describe the class of an AVClass context structure. That is an
*/
#define AV_LOG_DEBUG 48
+/**
+ * Extremely verbose debugging, useful for libav* development.
+ */
+#define AV_LOG_TRACE 56
+
/**
* @}
*/
+/**
+ * Sets additional colors for extended debugging sessions.
+ * @code
+ av_log(ctx, AV_LOG_DEBUG|AV_LOG_C(134), "Message in purple\n");
+ @endcode
+ * Requires 256color terminal support. Uses outside debugging is not
+ * recommended.
+ */
+#define AV_LOG_C(x) (x << 8)
+
/**
* Send the specified message to the log if the level is less than or equal
* to the current av_log_level. By default, all logging messages are sent to
* lavu_log_constants "Logging Constant".
* @param fmt The format string (printf-compatible) that specifies how
* subsequent arguments are converted to output.
- * @param ap The arguments referenced by the format string.
+ * @param vl The arguments referenced by the format string.
*/
-void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
+void av_log_default_callback(void *avcl, int level, const char *fmt,
+ va_list vl);
/**
* Return the context name
*/
const char* av_default_item_name(void* ctx);
+#if FF_API_DLOG
/**
* av_dlog macros
+ * @deprecated unused
* Useful to print debug messages that shouldn't get compiled in normally.
*/
#else
# define av_dlog(pctx, ...)
#endif
+#endif /* FF_API_DLOG */
/**
* Skip repeated messages, this requires the user app to use av_log() instead of