Go to the documentation of this file.
58 #define AV_IS_INPUT_DEVICE(category) \
59 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT) || \
60 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT) || \
61 ((category) == AV_CLASS_CATEGORY_DEVICE_INPUT))
63 #define AV_IS_OUTPUT_DEVICE(category) \
64 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT) || \
65 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT) || \
66 ((category) == AV_CLASS_CATEGORY_DEVICE_OUTPUT))
86 const char* (*item_name)(
void*
ctx);
149 void* (*child_next)(
void *obj,
void *prev);
166 const struct AVClass* (*child_class_iterate)(
void **iter);
191 #define AV_LOG_QUIET -8
196 #define AV_LOG_PANIC 0
203 #define AV_LOG_FATAL 8
209 #define AV_LOG_ERROR 16
215 #define AV_LOG_WARNING 24
220 #define AV_LOG_INFO 32
225 #define AV_LOG_VERBOSE 40
230 #define AV_LOG_DEBUG 48
235 #define AV_LOG_TRACE 56
237 #define AV_LOG_MAX_OFFSET (AV_LOG_TRACE - AV_LOG_QUIET)
251 #define AV_LOG_C(x) ((x) << 8)
306 void av_vlog(
void *avcl,
int level, const
char *fmt, va_list vl);
372 char *
line,
int line_size,
int *print_prefix);
389 char *
line,
int line_size,
int *print_prefix);
399 #define AV_LOG_SKIP_REPEATED 1
407 #define AV_LOG_PRINT_LEVEL 2
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.
@ AV_CLASS_CATEGORY_DECODER
int version
LIBAVUTIL_VERSION with which this structure was created.
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.
@ AV_CLASS_CATEGORY_INPUT
@ AV_CLASS_CATEGORY_OUTPUT
@ AV_CLASS_CATEGORY_DEVICE_INPUT
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT
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.
int(* query_ranges)(struct AVOptionRanges **, void *obj, const char *key, int flags)
Callback to return the supported/allowed ranges.
int state_flags_offset
When non-zero, offset in the object to an unsigned int holding object state flags,...
@ AV_CLASS_CATEGORY_NB
not part of ABI/API
static void callback(void *priv_data, int index, uint8_t *buf, int buf_size, int64_t time, enum dshowDeviceType devtype)
@ AV_CLASS_CATEGORY_DEMUXER
int av_log_get_level(void)
Get the current log level.
Describe the class of an AVClass context structure.
const char * av_default_item_name(void *ctx)
Return the context name.
#define av_printf_format(fmtpos, attrpos)
void av_log_set_flags(int arg)
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
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.
@ AV_CLASS_STATE_INITIALIZED
Object initialization has finished and it is now in the 'runtime' stage.
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT
@ AV_CLASS_CATEGORY_FILTER
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
Set the logging callback.
AVClassCategory category
Category used for visualization (like color).
AVClassCategory(* get_category)(void *ctx)
Callback to return the instance category.
int av_log_get_flags(void)
@ AV_CLASS_CATEGORY_SWRESAMPLER
void av_log_set_level(int level)
Set the log level.
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
List of AVOptionRange structs.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
@ AV_CLASS_CATEGORY_MUXER
const struct AVOption * option
An array of options for the structure or NULL.
AVClassCategory av_default_get_category(void *ptr)
@ AV_CLASS_CATEGORY_SWSCALER
@ AV_CLASS_CATEGORY_DEVICE_OUTPUT
void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
Default logging callback.
@ AV_CLASS_CATEGORY_BITSTREAM_FILTER
int log_level_offset_offset
Offset in the structure where the log level offset is stored.
#define flags(name, subs,...)
@ AV_CLASS_CATEGORY_ENCODER
int parent_log_context_offset
Offset in the structure where a pointer to the parent context for logging is stored.
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.