diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-28 12:49:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-01 14:02:03 +0200 |
commit | 5f509fa2e1ee91726a8fcfb8a2877edcc0895f8a (patch) | |
tree | 9e2e60782f0b612668c83cb7a88bb48cb22bf02a /libavutil/log.h | |
parent | 23b365f1c41a1ac213f2a446aa1557b5939ed749 (diff) | |
download | ffmpeg-5f509fa2e1ee91726a8fcfb8a2877edcc0895f8a.tar.gz |
log: add category to AVClass
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/log.h')
-rw-r--r-- | libavutil/log.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavutil/log.h b/libavutil/log.h index 26c806f644..ad3c3dd427 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -25,6 +25,18 @@ #include "avutil.h" #include "attributes.h" +typedef enum { + AV_CLASS_CATEGORY_NA = 0, + AV_CLASS_CATEGORY_INPUT, + AV_CLASS_CATEGORY_OUTPUT, + AV_CLASS_CATEGORY_MUXER, + AV_CLASS_CATEGORY_DEMUXER, + AV_CLASS_CATEGORY_ENCODER, + AV_CLASS_CATEGORY_DECODER, + AV_CLASS_CATEGORY_FILTER, + AV_CLASS_CATEGORY_BITSTREAM_FILTER, +}AVClassCategory; + /** * Describe the class of an AVClass context structure. That is an * arbitrary struct of which the first field is a pointer to an @@ -86,6 +98,12 @@ typedef struct AVClass { * child_class_next iterates over _all possible_ children. */ const struct AVClass* (*child_class_next)(const struct AVClass *prev); + + /** + * Category used for visualization (like color) + * available since version (51 << 16 | 56 << 8 | 100) + */ + AVClassCategory category; } AVClass; /* av_log API */ |