World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Группы | |
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) |
#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.
avcl | A pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct or NULL if general log. |
level | The importance level of the message expressed using a Logging Constant. |
fmt | The format string (printf-compatible) that specifies how subsequent arguments are converted to output. |
#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.
avcl | A pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct. |
level | The importance level of the message expressed using a Logging Constant. |
fmt | The format string (printf-compatible) that specifies how subsequent arguments are converted to output. |
vl | The arguments referenced by the format string. |
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
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
level | Logging level |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/log.h>
Set the logging callback
callback | A logging function with a compatible signature. |
Используется в MPlayer::MPlayer().
#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.
avcl | A pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct. |
level | The importance level of the message expressed using a Logging Constant. |
fmt | The format string (printf-compatible) that specifies how subsequent arguments are converted to output. |
vl | The arguments referenced by the format string. |
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
ctx | The AVClass context |
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 | ||
) |
#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.
line | buffer to receive the formatted line |
line_size | size of the buffer |
print_prefix | used to store whether the prefix must be printed; must point to a persistent integer initially set to 1 |
Используется в av_logger().
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.
line | buffer to receive the formatted line; may be NULL if line_size is 0 |
line_size | size of the buffer; at most line_size-1 characters will be written to the buffer, plus one null terminator |
print_prefix | used to store whether the prefix must be printed; must point to a persistent integer initially set to 1 |
void av_log_set_flags | ( | int | arg | ) |
int av_log_get_flags | ( | void | ) |