Libav
|
logging functions More...
#include "config.h"
#include <stdarg.h>
#include <stdlib.h>
#include "avstring.h"
#include "avutil.h"
#include "common.h"
#include "internal.h"
#include "log.h"
Go to the source code of this file.
Macros | |
#define | set_color(x) fprintf(stderr, "\033[%d;3%dm", color[x] >> 4, color[x]&15) |
#define | print_256color(x) fprintf(stderr, "\033[38;5;%dm", x) |
#define | reset_color() fprintf(stderr, "\033[0m") |
Functions | |
static void | check_color_terminal (void) |
static void | colored_fputs (int level, int tint, const char *str) |
const char * | av_default_item_name (void *ptr) |
Return the context name. More... | |
void | av_log_default_callback (void *avcl, 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 uint8_t | color [] = { 0x41, 0x41, 0x11, 0x03, 9, 0x02, 0x06 } |
static int | use_color = -1 |
static void(* | av_log_callback )(void *, int, const char *, va_list) |
logging functions
Definition in file log.c.
#define set_color | ( | x | ) | fprintf(stderr, "\033[%d;3%dm", color[x] >> 4, color[x]&15) |
Definition at line 56 of file log.c.
Referenced by colored_fputs().
#define print_256color | ( | x | ) | fprintf(stderr, "\033[38;5;%dm", x) |
Definition at line 57 of file log.c.
Referenced by colored_fputs().
#define reset_color | ( | ) | fprintf(stderr, "\033[0m") |
Definition at line 58 of file log.c.
Referenced by colored_fputs().
Definition at line 62 of file log.c.
Referenced by colored_fputs().
|
static |
Definition at line 85 of file log.c.
Referenced by av_log_default_callback().
Definition at line 168 of file log.c.
Referenced by missing_feature_sample().
|
static |
Definition at line 205 of file log.c.
Referenced by avpriv_report_missing_feature(), and avpriv_request_sample().
|
static |
Definition at line 43 of file log.c.
Referenced by av_log_default_callback(), av_log_get_level(), and av_log_set_level().
|
static |
Definition at line 44 of file log.c.
Referenced by ape_tag_read_field(), apply_param_change(), asf_write_packet(), av_get_cpu_flags(), av_log_default_callback(), av_log_set_flags(), av_parse_cpu_flags(), av_read_image_line(), av_write_image_line(), avi_read_idx1(), avi_write_packet(), avio_check(), bidir_refine(), decode_frame(), decode_frame_header(), decode_header(), decode_hextile(), decode_init(), decode_mb_b(), decode_rle(), decode_subblock(), decode_subblock3(), device_open(), dump_paramchange(), dump_stream_format(), dxa_read_header(), epzs_motion_search2(), epzs_motion_search4(), fbdev_read_header(), ff_ac3_apply_rematrixing(), ff_add_index_entry(), ff_alsa_open(), ff_get_unscaled_swscale(), ff_mms_asf_header_parser(), ff_mp4_parse_es_descr(), ff_rdt_parse_packet(), ff_thread_get_buffer(), fileTest(), filter_codec_opts(), flv_read_header(), flv_read_packet(), flv_write_packet(), get_audio_flags(), get_mb_score(), get_needed_flags(), gif_read_image(), hls_read_seek(), hpel_motion_search(), ipvideo_decode_block_opcode_0x7(), ipvideo_decode_block_opcode_0x7_16(), ipvideo_decode_block_opcode_0x8(), ipvideo_decode_block_opcode_0x8_16(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0x9_16(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_block_opcode_0xA_16(), main(), matroska_parse_block(), matroska_parse_wavpack(), mov_parse_stsd_audio(), mov_read_tfhd(), mov_read_tkhd(), mov_read_trun(), mov_write_tfhd_tag(), mov_write_tkhd_tag(), mov_write_trun_tag(), mpeg_decode_user_data(), mpegps_read_pes_header(), mpegts_push_data(), mpegts_write_pes(), mpegts_write_section1(), msvideo1_decode_16bit(), msvideo1_decode_8bit(), nut_write_packet(), ogg_read_page(), old_codec37(), opt_cpuflags(), parse_MP4SLDescrTag(), parse_pcr(), pmp_header(), qpel_motion_search(), read_desc_chunk(), read_header(), read_packet(), read_part_of_packet(), rm_read_dts(), rm_read_header(), rm_read_packet(), rtp_parse_one_packet(), rtp_parse_packet_internal(), rtp_resolve_host(), rv10_write_header(), sad_hpel_motion_search(), selfTest(), seqvideo_decode(), show_help_default(), smacker_read_packet(), sws_getCachedContext(), sws_getContext(), sws_init_context(), swscale(), txd_decode_frame(), udp_resolve_host(), url_alloc_for_protocol(), video_open(), vmdaudio_decode_frame(), vp8_encode(), wmavoice_decode_init(), and wv_read_block_header().
|
static |
Definition at line 55 of file log.c.
Referenced by avfilter_register_all(), cdg_border_preset(), cdg_load_palette(), cdg_scroll(), cdg_tile_block(), color_config_props(), color_init(), color_request_frame(), color_uninit(), copy_color_mask(), decode_0(), decode_format80(), decode_frame(), decode_hextile(), decode_i2_frame(), decode_mvc2(), decode_rle(), dvb_encode_rle2(), dvb_encode_rle4(), dvd_encode_rle(), encode_dvd_subtitles(), fill_frame(), guess_dc(), mm_decode_inter(), mm_decode_intra(), mp_get_yuv_from_rgb(), mp_read_changes_map(), mp_set_rgb_from_yuv(), rle_decode(), and xsub_encode_rle().
|
static |
Definition at line 60 of file log.c.
Referenced by check_color_terminal(), and colored_fputs().
Definition at line 165 of file log.c.
Referenced by av_log_set_callback(), and av_vlog().