50 #define AV_IS_INPUT_DEVICE(category) \
51 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT) || \
52 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT) || \
53 ((category) == AV_CLASS_CATEGORY_DEVICE_INPUT))
55 #define AV_IS_OUTPUT_DEVICE(category) \
56 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT) || \
57 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT) || \
58 ((category) == AV_CLASS_CATEGORY_DEVICE_OUTPUT))
78 const char* (*item_name)(
void* ctx);
113 void* (*child_next)(
void *obj,
void *prev);
158 #define AV_LOG_QUIET -8
163 #define AV_LOG_PANIC 0
170 #define AV_LOG_FATAL 8
176 #define AV_LOG_ERROR 16
182 #define AV_LOG_WARNING 24
187 #define AV_LOG_INFO 32
192 #define AV_LOG_VERBOSE 40
197 #define AV_LOG_DEBUG 48
199 #define AV_LOG_MAX_OFFSET (AV_LOG_DEBUG - AV_LOG_QUIET)
204 #define AV_LOG_TRACE 56
218 #define AV_LOG_C(x) ((x) << 8)
252 void av_vlog(
void *avcl,
int level, const
char *fmt, va_list vl);
318 char *
line,
int line_size,
int *print_prefix);
328 # define av_dlog(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)
330 # define av_dlog(pctx, ...) do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
342 #define AV_LOG_SKIP_REPEATED 1
350 #define AV_LOG_PRINT_LEVEL 2
void av_log_set_level(int level)
Set the log level.
const char * av_default_item_name(void *ctx)
Return the context name.
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...
Macro definitions for various function/variable attributes.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
const struct AVOption * option
a pointer to the first option specified in the class if any or NULL
int log_level_offset_offset
Offset in the structure where log_level_offset is stored.
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 av_log_get_level(void)
Get the current log level.
AVClassCategory category
Category used for visualization (like color) This is only set if the category is equal for all object...
Libavutil version macros.
void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
Default logging callback.
#define av_printf_format(fmtpos, attrpos)
static void callback(void *priv_data, int index, uint8_t *buf, int buf_size, int64_t time, enum dshowDeviceType devtype)
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
Set the logging callback.
AVClassCategory(* get_category)(void *ctx)
Callback to return the category.
int av_log_get_flags(void)
Describe the class of an AVClass context structure.
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...
int version
LIBAVUTIL_VERSION with which this structure was created.
int(* query_ranges)(struct AVOptionRanges **, void *obj, const char *key, int flags)
Callback to return the supported/allowed ranges.
int parent_log_context_offset
Offset in the structure where a pointer to the parent context for logging is stored.
List of AVOptionRange structs.
AVClassCategory av_default_get_category(void *ptr)
void av_log_set_flags(int arg)