49#define AV_IS_INPUT_DEVICE(category) \
50 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT) || \
51 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT) || \
52 ((category) == AV_CLASS_CATEGORY_DEVICE_INPUT))
54#define AV_IS_OUTPUT_DEVICE(category) \
55 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT) || \
56 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT) || \
57 ((category) == AV_CLASS_CATEGORY_DEVICE_OUTPUT))
77 const char* (*item_name)(
void* ctx);
131 void* (*child_next)(
void *obj,
void *prev);
146 const struct AVClass* (*child_class_iterate)(
void **iter);
162#define AV_LOG_QUIET -8
167#define AV_LOG_PANIC 0
174#define AV_LOG_FATAL 8
180#define AV_LOG_ERROR 16
186#define AV_LOG_WARNING 24
191#define AV_LOG_INFO 32
196#define AV_LOG_VERBOSE 40
201#define AV_LOG_DEBUG 48
206#define AV_LOG_TRACE 56
208#define AV_LOG_MAX_OFFSET (AV_LOG_TRACE - AV_LOG_QUIET)
222#define AV_LOG_C(x) ((x) << 8)
277void av_vlog(
void *avcl,
int level, const
char *fmt, va_list vl);
343 char *line,
int line_size,
int *print_prefix);
360 char *line,
int line_size,
int *print_prefix);
370#define AV_LOG_SKIP_REPEATED 1
378#define AV_LOG_PRINT_LEVEL 2
Macro definitions for various function/variable attributes.
#define av_printf_format(fmtpos, attrpos)
int av_log_format_line2(void *ptr, int level, const char *fmt, va_list vl, char *line, int line_size, int *print_prefix)
Format a line of log the same way as the default callback.
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
Set the logging callback.
const char * av_default_item_name(void *ctx)
Return the context name.
void av_log_set_level(int level)
Set the log level.
void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
Default logging callback.
void void void av_vlog(void *avcl, int level, const char *fmt, va_list vl)
Send the specified message to the log if the level is less than or equal to the current av_log_level.
AVClassCategory av_default_get_category(void *ptr)
int av_log_get_flags(void)
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level.
int av_log_get_level(void)
Get the current log level.
void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl, char *line, int line_size, int *print_prefix)
Format a line of log the same way as the default callback.
void void av_log_once(void *avcl, int initial_level, int subsequent_level, int *state, const char *fmt,...) av_printf_format(5
Send the specified message to the log once with the initial_level and then with the subsequent_level.
void av_log_set_flags(int arg)
@ AV_CLASS_CATEGORY_INPUT
@ AV_CLASS_CATEGORY_MUXER
@ AV_CLASS_CATEGORY_SWSCALER
@ AV_CLASS_CATEGORY_BITSTREAM_FILTER
@ AV_CLASS_CATEGORY_DEVICE_OUTPUT
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
@ AV_CLASS_CATEGORY_NB
not part of ABI/API
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT
@ AV_CLASS_CATEGORY_FILTER
@ AV_CLASS_CATEGORY_DEMUXER
@ AV_CLASS_CATEGORY_OUTPUT
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT
@ AV_CLASS_CATEGORY_DEVICE_INPUT
@ AV_CLASS_CATEGORY_SWRESAMPLER
@ AV_CLASS_CATEGORY_ENCODER
@ AV_CLASS_CATEGORY_DECODER
Describe the class of an AVClass context structure.
int(* query_ranges)(struct AVOptionRanges **, void *obj, const char *key, int flags)
Callback to return the supported/allowed ranges.
AVClassCategory(* get_category)(void *ctx)
Callback to return the category.
AVClassCategory category
Category used for visualization (like color) This is only set if the category is equal for all object...
const struct AVOption * option
a pointer to the first option specified in the class if any or NULL
int version
LIBAVUTIL_VERSION with which this structure was created.
int parent_log_context_offset
Offset in the structure where a pointer to the parent context for logging is stored.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
int log_level_offset_offset
Offset in the structure where log_level_offset is stored.
List of AVOptionRange structs.