]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/log.h
Deprecate PIX_FMT_YUVJ*
[ffmpeg] / libavutil / log.h
index 566440f854eabc394c136c6c302ebe7cb87893f0..0a413f6e8c26fb82b02748da7062b4fecc2688da 100644 (file)
@@ -51,11 +51,25 @@ typedef struct {
 
     /**
      * LIBAVUTIL_VERSION with which this structure was created.
-     * This is used to allow fields to be added without requireing major
+     * This is used to allow fields to be added without requiring major
      * version bumps everywhere.
      */
 
     int version;
+
+    /**
+     * Offset in the structure where log_level_offset is stored.
+     * 0 means there is no such variable
+     */
+    int log_level_offset_offset;
+
+    /**
+     * Offset in the structure where a pointer to the parent context for loging is stored.
+     * for example a decoder that uses eval.c could pass its AVCodecContext to eval as such
+     * parent context. And a av_log() implementation could then display the parent context
+     * can be NULL of course
+     */
+    int parent_log_context_offset;
 } AVClass;
 
 /* av_log API */
@@ -119,5 +133,6 @@ int av_log_get_level(void);
 void av_log_set_level(int);
 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);
 
 #endif /* AVUTIL_LOG_H */