FFmpeg
2.1.1
|
logging functions More...
#include "config.h"
#include <stdarg.h>
#include <stdlib.h>
#include "avutil.h"
#include "bprint.h"
#include "common.h"
#include "internal.h"
#include "log.h"
Go to the source code of this file.
Macros | |
#define | LINE_SZ 1024 |
#define | set_color(x) fprintf(stderr, "\033[%d;3%dm", (color[x] >> 4) & 15, color[x] & 15) |
#define | set_256color(x) fprintf(stderr, "\033[48;5;%dm\033[38;5;%dm", (color[x] >> 16) & 0xff, (color[x] >> 8) & 0xff) |
#define | reset_color() fprintf(stderr, "\033[0m") |
Functions | |
static void | colored_fputs (int level, 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 void | format_line (void *ptr, int level, const char *fmt, va_list vl, AVBPrint part[3], 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... | |
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_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) |
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 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.
#define LINE_SZ 1024 |
Definition at line 48 of file log.c.
Referenced by av_log_default_callback().
#define set_color | ( | x | ) | fprintf(stderr, "\033[%d;3%dm", (color[x] >> 4) & 15, color[x] & 15) |
Definition at line 104 of file log.c.
Referenced by colored_fputs().
#define set_256color | ( | x | ) | fprintf(stderr, "\033[48;5;%dm\033[38;5;%dm", (color[x] >> 16) & 0xff, (color[x] >> 8) & 0xff) |
Definition at line 105 of file log.c.
Referenced by colored_fputs().
#define reset_color | ( | ) | fprintf(stderr, "\033[0m") |
Definition at line 106 of file log.c.
Referenced by colored_fputs().
|
static |
Definition at line 110 of file log.c.
Referenced by av_log_default_callback().
Definition at line 155 of file log.c.
Referenced by av_log_default_callback().
|
static |
Definition at line 163 of file log.c.
Referenced by format_line().
|
static |
Definition at line 176 of file log.c.
Referenced by av_log_default_callback(), and av_log_format_line().
|
static |
Definition at line 308 of file log.c.
Referenced by avpriv_report_missing_feature(), and avpriv_request_sample().
|
static |
Definition at line 50 of file log.c.
Referenced by av_log_default_callback(), av_log_get_level(), and av_log_set_level().
|
static |
Definition at line 51 of file log.c.
Referenced by av_log_default_callback(), and av_log_set_flags().
|
static |
Definition at line 83 of file log.c.
Referenced by av_get_known_color_name(), avfilter_register_all(), caca_write_header(), calc_coefficients(), cdg_border_preset(), cdg_load_palette(), cdg_scroll(), cdg_tile_block(), config_input(), config_props(), copy_color_mask(), count_colors(), dc_test(), decode_0(), decode_format80(), decode_hextile(), decode_i2_frame(), decode_mvc2(), decode_rle(), draw_line(), dvb_encode_rle2(), dvb_encode_rle4(), dvb_encode_rle8(), dvd_encode_rle(), ff_ass_split_override_codes(), ff_snow_pred_block(), fill_frame(), filter_frame(), guess_dc(), init(), iterative_me(), microdvd_init(), mm_decode_inter(), mm_decode_intra(), modplug_read_packet(), mp_get_yuv_from_rgb(), mp_read_changes_map(), mp_set_rgb_from_yuv(), overlay_ass_image(), ring1_test(), rle_decode(), select_palette(), super2xsai(), write_pixel_15_7(), x11grab_read_header(), and xsub_encode_rle().
|
static |
Definition at line 108 of file log.c.
Referenced by colored_fputs().
Definition at line 266 of file log.c.
Referenced by av_log_set_callback(), and av_vlog().