World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Logging Facility
+ Граф связей класса Logging Facility:

Группы

 Logging Constants
 

Функции

void av_log (void *avcl, int level, const char *fmt,...) av_printf_format(3
 
void void av_vlog (void *avcl, int level, const char *fmt, va_list vl)
 
int av_log_get_level (void)
 
void av_log_set_level (int level)
 
void av_log_set_callback (void(*callback)(void *, int, const char *, va_list))
 
void av_log_default_callback (void *avcl, int level, const char *fmt, va_list vl)
 
const char * av_default_item_name (void *ctx)
 
AVClassCategory av_default_get_category (void *ptr)
 
void av_log_format_line (void *ptr, int level, const char *fmt, va_list vl, char *line, int line_size, int *print_prefix)
 
int av_log_format_line2 (void *ptr, int level, const char *fmt, va_list vl, char *line, int line_size, int *print_prefix)
 
void av_log_set_flags (int arg)
 
int av_log_get_flags (void)
 

Подробное описание

Функции

◆ av_log()

void av_log ( void avcl,
int  level,
const char *  fmt,
  ... 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Send the specified message to the log if the level is less than or equal to the current av_log_level. By default, all logging messages are sent to stderr. This behavior can be altered by setting a different logging callback function.

См. также
av_log_set_callback
Аргументы
avclA pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct or NULL if general log.
levelThe importance level of the message expressed using a Logging Constant.
fmtThe format string (printf-compatible) that specifies how subsequent arguments are converted to output.

◆ av_vlog()

void void av_vlog ( void avcl,
int  level,
const char *  fmt,
va_list  vl 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Send the specified message to the log if the level is less than or equal to the current av_log_level. By default, all logging messages are sent to stderr. This behavior can be altered by setting a different logging callback function.

См. также
av_log_set_callback
Аргументы
avclA pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct.
levelThe importance level of the message expressed using a Logging Constant.
fmtThe format string (printf-compatible) that specifies how subsequent arguments are converted to output.
vlThe arguments referenced by the format string.

◆ av_log_get_level()

int av_log_get_level ( void  )

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Get the current log level

См. также
Logging Constants
Возвращает
Current log level

◆ av_log_set_level()

void av_log_set_level ( int  level)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Set the log level

См. также
Logging Constants
Аргументы
levelLogging level

◆ av_log_set_callback()

void av_log_set_callback ( void(*)(void *, int, const char *, va_list)  callback)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Set the logging callback

Заметки
The callback must be thread safe, even if the application does not use threads itself as some codecs are multithreaded.
См. также
av_log_default_callback
Аргументы
callbackA logging function with a compatible signature.

Используется в MPlayer::MPlayer().

+ Граф вызова функции:

◆ av_log_default_callback()

void av_log_default_callback ( void avcl,
int  level,
const char *  fmt,
va_list  vl 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Default logging callback

It prints the message to stderr, optionally colorizing it.

Аргументы
avclA pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct.
levelThe importance level of the message expressed using a Logging Constant.
fmtThe format string (printf-compatible) that specifies how subsequent arguments are converted to output.
vlThe arguments referenced by the format string.

◆ av_default_item_name()

const char* av_default_item_name ( void ctx)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Return the context name

Аргументы
ctxThe AVClass context
Возвращает
The AVClass class_name

◆ av_default_get_category()

◆ av_log_format_line()

void av_log_format_line ( void ptr,
int  level,
const char *  fmt,
va_list  vl,
char *  line,
int  line_size,
int *  print_prefix 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Format a line of log the same way as the default callback.

Аргументы
linebuffer to receive the formatted line
line_sizesize of the buffer
print_prefixused to store whether the prefix must be printed; must point to a persistent integer initially set to 1

Используется в av_logger().

+ Граф вызова функции:

◆ av_log_format_line2()

int av_log_format_line2 ( void ptr,
int  level,
const char *  fmt,
va_list  vl,
char *  line,
int  line_size,
int *  print_prefix 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>

Format a line of log the same way as the default callback.

Аргументы
linebuffer to receive the formatted line; may be NULL if line_size is 0
line_sizesize of the buffer; at most line_size-1 characters will be written to the buffer, plus one null terminator
print_prefixused to store whether the prefix must be printed; must point to a persistent integer initially set to 1
Возвращает
Returns a negative value if an error occurred, otherwise returns the number of characters that would have been written for a sufficiently large buffer, not including the terminating null character. If the return value is not less than line_size, it means that the log message was truncated to fit the buffer.

◆ av_log_set_flags()

◆ av_log_get_flags()