Go to the source code of this file.
|
typedef void(* | log_handler_t) (int lvl, const char *msg, va_list args, void *p) |
|
|
enum | {
OBS_NAL_UNKNOWN = 0,
OBS_NAL_SLICE = 1,
OBS_NAL_SLICE_DPA = 2,
OBS_NAL_SLICE_DPB = 3,
OBS_NAL_SLICE_DPC = 4,
OBS_NAL_SLICE_IDR = 5,
OBS_NAL_SEI = 6,
OBS_NAL_SPS = 7,
OBS_NAL_PPS = 8,
OBS_NAL_AUD = 9,
OBS_NAL_FILLER = 12,
LOG_ERROR = 100,
LOG_WARNING = 200,
LOG_INFO = 300,
LOG_DEBUG = 400,
simde_MM_ROUND_NEAREST,
simde_MM_ROUND_DOWN,
simde_MM_ROUND_UP,
simde_MM_ROUND_TOWARD_ZERO
} |
|
|
EXPORT void | base_get_log_handler (log_handler_t *handler, void **param) |
|
EXPORT void | base_set_log_handler (log_handler_t handler, void *param) |
|
EXPORT void | base_set_crash_handler (void(*handler)(const char *, va_list, void *), void *param) |
|
EXPORT void | blogva (int log_level, const char *format, va_list args) |
|
EXPORT void | blog (int log_level, const char *format,...) |
|
EXPORT void | bcrash (const char *format,...) |
|
◆ FILE_LINE
#define FILE_LINE __FILE__ " (" S__LINE__ "): " |
◆ INT_CUR_LINE
#define INT_CUR_LINE __LINE__ |
◆ PRINTFATTR
#define PRINTFATTR |
( |
|
f, |
|
|
|
a |
|
) |
| __attribute__((__format__(__printf__, f, a))) |
◆ S__LINE__
◆ STRINGIFY
#define STRINGIFY |
( |
|
x | ) |
#x |
◆ STRINGIFY_
◆ log_handler_t
typedef void(* log_handler_t) (int lvl, const char *msg, va_list args, void *p) |
◆ anonymous enum
Enumerator |
---|
OBS_NAL_UNKNOWN | |
OBS_NAL_SLICE | |
OBS_NAL_SLICE_DPA | |
OBS_NAL_SLICE_DPB | |
OBS_NAL_SLICE_DPC | |
OBS_NAL_SLICE_IDR | |
OBS_NAL_SEI | |
OBS_NAL_SPS | |
OBS_NAL_PPS | |
OBS_NAL_AUD | |
OBS_NAL_FILLER | |
LOG_ERROR | Use if there's a problem that can potentially affect the program, but isn't enough to require termination of the program.
Use in creation functions and core subsystem functions. Places that should definitely not fail.
|
LOG_WARNING | Use if a problem occurs that doesn't affect the program and is recoverable.
Use in places where failure isn't entirely unexpected, and can be handled safely.
|
LOG_INFO | Informative message to be displayed in the log.
|
LOG_DEBUG | Debug message to be used mostly by developers.
|
simde_MM_ROUND_NEAREST | |
simde_MM_ROUND_DOWN | |
simde_MM_ROUND_UP | |
simde_MM_ROUND_TOWARD_ZERO | |
◆ base_get_log_handler()
◆ base_set_crash_handler()
EXPORT void base_set_crash_handler |
( |
void(*)(const char *, va_list, void *) |
handler, |
|
|
void * |
param |
|
) |
| |
◆ base_set_log_handler()
◆ bcrash()
EXPORT void bcrash |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ blog()
EXPORT void blog |
( |
int |
log_level, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ blogva()
EXPORT void blogva |
( |
int |
log_level, |
|
|
const char * |
format, |
|
|
va_list |
args |
|
) |
| |