Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-04 00:39:54 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-06-19 19:22:02 +0400
commite69263cd01380b7b20b92588dcac324bf776b59f (patch)
tree17ac20fc02982a5114aa921eda1361dd038c03cd /libavutil/log.h
parentb76f77ee0da3a6ebdb7c931b78fd3e1783d39947 (diff)
avutil: add get_category() for the case where one AVClass can have more than 1 category
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/log.h')
-rw-r--r--libavutil/log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/log.h b/libavutil/log.h
index 951c60b333..8d9601ab7d 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -102,9 +102,16 @@ typedef struct AVClass {
/**
* Category used for visualization (like color)
+ * This is only set if the category is equal for all objects using this class.
* available since version (51 << 16 | 56 << 8 | 100)
*/
AVClassCategory category;
+
+ /**
+ * Callback to return the category.
+ * available since version (51 << 16 | 59 << 8 | 100)
+ */
+ AVClassCategory (*get_category)(void* ctx);
} AVClass;
/* av_log API */
@@ -167,6 +174,7 @@ 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);
+AVClassCategory av_default_get_category(void *ptr);
/**
* Format a line of log the same way as the default callback.