FFmpeg
|
#include "config.h"
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bprint.h"
#include "common.h"
#include "internal.h"
#include "log.h"
#include "thread.h"
Go to the source code of this file.
Macros | |
#define | LINE_SZ 1024 |
#define | NB_LEVELS 8 |
Functions | |
static void | check_color_terminal (void) |
static void | ansi_fputs (int level, int tint, const char *str, int local_use_color) |
static void | colored_fputs (int level, int tint, const char *str) |
const char * | av_default_item_name (void *ptr) |
Return the context name. More... | |
AVClassCategory | av_default_get_category (void *ptr) |
static void | sanitize (uint8_t *line) |
static int | get_category (void *ptr) |
static const char * | get_level_str (int level) |
static void | format_line (void *avcl, int level, const char *fmt, va_list vl, AVBPrint part[4], int *print_prefix, int type[2]) |
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. More... | |
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. More... | |
void | av_log_default_callback (void *ptr, int level, const char *fmt, va_list vl) |
Default logging callback. More... | |
void | av_log (void *avcl, int level, const char *fmt,...) |
void | av_log_once (void *avcl, int initial_level, int subsequent_level, int *state, const char *fmt,...) |
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. More... | |
int | av_log_get_level (void) |
Get the current log level. More... | |
void | av_log_set_level (int level) |
Set the log level. More... | |
void | av_log_set_flags (int arg) |
int | av_log_get_flags (void) |
void | av_log_set_callback (void(*callback)(void *, int, const char *, va_list)) |
Set the logging callback. More... | |
static void | missing_feature_sample (int sample, void *avc, const char *msg, va_list argument_list) |
void | avpriv_request_sample (void *avc, const char *msg,...) |
void | avpriv_report_missing_feature (void *avc, const char *msg,...) |
Variables | |
static AVMutex | mutex = AV_MUTEX_INITIALIZER |
static int | av_log_level = AV_LOG_INFO |
static int | flags |
static const uint32_t | color [16+AV_CLASS_CATEGORY_NB] |
static int | use_color = -1 |
static void(* | av_log_callback )(void *, int, const char *, va_list) |
logging functions
Definition in file log.c.
|
static |
Definition at line 150 of file log.c.
Referenced by colored_fputs().
Definition at line 185 of file log.c.
Referenced by colored_fputs().
Definition at line 209 of file log.c.
Referenced by av_log_default_callback().
|
static |
Definition at line 247 of file log.c.
Referenced by av_log_default_callback().
|
static |
Definition at line 255 of file log.c.
Referenced by format_line().
|
static |
Definition at line 268 of file log.c.
Referenced by format_line().
|
static |
Definition at line 294 of file log.c.
Referenced by av_log_default_callback(), and av_log_format_line2().
void av_log | ( | void * | avcl, |
int | level, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 409 of file log.c.
Referenced by main(), and missing_feature_sample().
void av_log_once | ( | void * | avcl, |
int | initial_level, | ||
int | subsequent_level, | ||
int * | state, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 417 of file log.c.
Referenced by ff_ccfifo_extractbytes(), ff_h264_decode_seq_parameter_set(), get_dvb_stream_type(), get_m2ts_stream_type(), and hevc_frame_start().
|
static |
Definition at line 462 of file log.c.
Referenced by avpriv_report_missing_feature(), and avpriv_request_sample().
void avpriv_request_sample | ( | void * | avc, |
const char * | msg, | ||
... | |||
) |
void avpriv_report_missing_feature | ( | void * | avc, |
const char * | msg, | ||
... | |||
) |
|
static |
Definition at line 46 of file log.c.
Referenced by append_buffer(), av_log_default_callback(), ff_pthread_init(), get_buffer(), pthread_cond_timedwait(), pthread_cond_wait(), pthread_mutex_destroy(), pthread_mutex_init(), pthread_mutex_lock(), and pthread_mutex_unlock().
|
static |
Definition at line 56 of file log.c.
Referenced by av_log_default_callback(), av_log_get_level(), and av_log_set_level().
|
static |
Definition at line 57 of file log.c.
Referenced by av_log_default_callback(), av_log_get_flags(), av_log_set_flags(), and format_line().
|
static |
Definition at line 94 of file log.c.
Referenced by av1_parser_parse(), av_get_known_color_name(), cdg_load_palette(), cdg_scroll(), cdg_tile_block(), color_get(), color_inc(), config_input(), config_output(), config_props(), copy_color_mask(), create_cv_pixel_buffer(), decode_format80(), decode_hextile(), decode_rle(), draw_block_rectangle(), draw_curves(), draw_line(), dvb_encode_rle2(), dvb_encode_rle4(), dvb_encode_rle8(), dvd_encode_rle(), ff_dovi_rpu_parse(), ff_fill_rectangle(), ff_htmlmarkup_to_ass(), ff_snow_pred_block(), fill_frame(), guess_dc(), main(), mm_decode_inter(), mm_decode_intra(), modplug_read_packet(), mov_text_ass_style_set(), mp_get_yuv_from_rgb(), mp_set_rgb_from_yuv(), overlay_ass_image(), plot_freqs(), rle_decode(), select_palette(), set_frame(), and test_av_get_known_color_name().
|
static |
Definition at line 123 of file log.c.
Referenced by ansi_fputs(), check_color_terminal(), color_printf(), colored_fputs(), and main().
|
static |
Definition at line 406 of file log.c.
Referenced by av_log_set_callback(), and av_vlog().