libavutil/log.c File Reference

logging functions More...

#include "avutil.h"
#include "log.h"

Go to the source code of this file.

Functions

void av_log_default_callback (void *ptr, int level, const char *fmt, va_list vl)
void av_log (void *avcl, int level, const char *fmt,...)
 Sends the specified message to the log if the level is less than or equal to the current av_log_level.
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))

Variables

int av_log_level = AV_LOG_INFO
static void(* av_log_callback )(void *, int, const char *, va_list) = av_log_default_callback


Detailed Description

logging functions

Definition in file log.c.


Function Documentation

void av_log ( void *  ,
int  level,
const char *  fmt,
  ... 
)

Sends 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 av_vlog callback function.

Parameters:
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, lower values signifying higher importance.
fmt The format string (printf-compatible) that specifies how subsequent arguments are converted to output.
See also:
av_vlog

Definition at line 64 of file log.c.

Referenced by aac_decode_frame(), aac_encode_init(), aasc_decode_frame(), ac3_decode_frame(), adpcm_decode_frame(), adpcm_decode_init(), adx_encode_init(), aiff_read_header(), alac_decode_frame(), alac_encode_frame(), alac_encode_init(), alac_set_info(), alloc_picture(), allocate_buffers(), altivec_yuv2packedX(), ape_decode_frame(), ape_decode_init(), ape_dumpinfo(), ape_parse_tag(), ape_read_header(), ape_tag_read_field(), ape_unpack_mono(), ape_unpack_stereo(), apply_dependent_coupling(), apply_motion_generic(), args_parse(), asf_build_simple_index(), asf_read_frame_header(), asf_read_pts(), asf_read_seek(), asv1_decode_block(), atrac3_decode_frame(), atrac3_decode_init(), audio_open(), audio_read_header(), audio_read_packet(), audio_resample(), audio_write_header(), audio_write_packet(), av_adler32_update(), av_audio_resample_init(), av_build_filter(), av_find_stream_info(), av_gen_search(), av_new_program(), av_opt_set_defaults2(), av_opt_show(), av_read_frame_internal(), av_resample(), av_seek_frame_binary(), av_set_number2(), av_set_pts_info(), av_set_string3(), av_tempfile(), av_write_header(), avcodec_check_dimensions(), avcodec_close(), avcodec_decode_audio2(), avcodec_default_get_buffer(), avcodec_default_release_buffer(), avcodec_encode_audio(), avcodec_encode_subtitle(), avcodec_encode_video(), avcodec_open(), avfilter_config_links(), avfilter_graph_check_validity(), avfilter_graph_parse(), avfilter_insert_filter(), avi_read_header(), avi_read_idx1(), avi_read_packet(), avisynth_read_header(), avs_decode_frame(), avs_read_header(), bastardized_rice_decompress(), bethsoftvid_decode_frame(), bfi_decode_frame(), bitplane_decoding(), bits2qp(), bktr_getframe(), bktr_init(), bmp_decode_frame(), bmp_encode_frame(), build_table(), cdata_read_header(), check_diff(), check_input_motion(), check_intra4x4_pred_mode(), check_intra_pred_mode(), check_marker(), check_size(), cinepak_decode_frame(), cinvideo_decode_frame(), cinvideo_decode_init(), clip_coeffs(), cmv_decode_frame(), cmv_process_header(), codec_reinit(), compute_bit_allocation(), compute_exp_strategy(), compute_pkt_fields(), compute_pkt_fields2(), concatenate_packet(), Configure(), cook_decode_close(), cook_decode_init(), copy_block(), copy_picture_attributes(), create_filter(), cyuv_decode_frame(), dc1394_read_common(), dca_decode_block(), dca_decode_frame(), dca_downmix(), dca_parse_frame_header(), dca_subframe_header(), dca_subsubframe(), decode(), decode_13(), decode_audio_block(), decode_audio_specific_config(), decode_band_types(), decode_block(), decode_block_progressive(), decode_blockcode(), decode_buffering_period(), decode_bytes(), decode_cabac_mb_mvd(), decode_cce(), decode_chunks(), decode_cpe(), decode_dc(), decode_dc_progressive(), decode_dvd_subtitles(), decode_entry_point(), decode_ext_header(), decode_extradata(), decode_format80(), decode_frame(), decode_frame_header(), decode_group3_1d_line(), decode_group3_2d_line(), decode_header(), decode_header_trees(), decode_hextile(), decode_hrd_parameters(), decode_i2_frame(), decode_i_block(), decode_i_frame(), decode_ics(), decode_ics_info(), decode_info_header(), decode_init(), decode_main_header(), decode_mb_cabac(), decode_mb_cavlc(), decode_mb_i(), decode_nal_units(), decode_p_block(), decode_p_frame(), decode_pce(), decode_pic(), decode_prediction(), decode_ref_pic_list_reordering(), decode_ref_pic_marking(), decode_residual(), decode_residual_inter(), decode_residuals(), decode_scalefactors(), decode_sequence_header(), decode_sequence_header_adv(), decode_slice(), decode_slice_header(), decode_spectrum_and_dequant(), decode_stream_header(), decode_subframe(), decode_subframe_fixed(), decode_subframe_lpc(), decode_syncpoint(), decode_tag(), decode_tns(), decode_unregistered_user_data(), decode_user_data(), decode_vol_header(), decode_vop_header(), decode_vui_parameters(), decode_wave_header(), decodeChannelSoundUnit(), delete_state(), dequant(), dering_TMPL(), determine_bitrate(), device_init(), device_open(), dnxhd_decode_dct_block(), dnxhd_decode_frame(), dnxhd_decode_header(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_init_vlc(), dpcm_decode_init(), dsputil_init(), dsputil_init_mmx(), dump_bih(), dump_captureparms(), dump_format(), dump_headers(), dump_stream_format(), dump_videohdr(), dv1394_close(), dv1394_read_header(), dv1394_read_packet(), dv1394_start(), dv_assemble_frame(), dv_decode_video_segment(), dv_encode_video_segment(), dv_extract_audio_info(), dv_read_header(), dvbsub_decode(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvbsub_read_2bit_string(), dvbsub_read_4bit_string(), dvbsub_read_8bit_string(), dvdsub_decode(), dxa_read_header(), dxa_read_packet(), ebml_parse_elem(), ebml_parse_id(), ebml_read_master(), ebml_read_num(), encode_bgr_bitstream(), encode_bitstream(), encode_blocks(), encode_close(), encode_dvd_subtitles(), encode_exp(), encode_frame(), encode_init(), encode_init_ls(), encode_mb(), encode_picture_lossless(), encode_strip(), encode_subband_c0run(), encode_superframe(), encode_thread(), escape124_decode_frame(), eval_refl(), execute_ref_pic_marking(), faac_decode_frame(), faac_decode_init(), Faac_encode_init(), faac_init_mp4(), ff_acelp_interpolate(), ff_alsa_open(), ff_alsa_xrun_recover(), ff_asf_get_packet(), ff_asf_parse_packet(), ff_audio_interleave_init(), ff_bfin_get_unscaled_swscale(), ff_bfin_yuv2rgb_get_func_ptr(), ff_check_alignment(), ff_convert_matrix(), ff_eac3_decode_transform_coeffs_aht_ch(), ff_eac3_parse_header(), ff_er_add_slice(), ff_er_frame_end(), ff_find_unused_picture(), ff_flac_is_extradata_valid(), ff_h263_decode_frame(), ff_h263_decode_mb(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_seq_parameter_set(), ff_huff_build_tree(), ff_init_me(), ff_jpegls_decode_lse(), ff_jpegls_decode_picture(), ff_log_ask_for_sample(), ff_log_missing_feature(), ff_mjpeg_decode_dht(), ff_mjpeg_decode_dqt(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_init(), ff_mjpeg_decode_sof(), ff_mjpeg_decode_sos(), ff_mlp_read_major_sync(), ff_mpeg1_decode_block_intra(), ff_mpeg4_decode_mb(), ff_mpeg4_decode_partitions(), ff_mpeg4_decode_picture_header(), ff_mpeg4_pred_dc(), ff_msmpeg4_decode_block(), ff_msmpeg4_decode_motion(), ff_msrle_decode(), ff_pnm_decode_header(), ff_print_debug_info(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ff_rtp_send_aac(), ff_rv34_decode_frame(), ff_set_cmp(), ff_vbv_update(), ff_vorbis_len2vlc(), ff_wmv2_decode_mb(), ff_wmv2_decode_picture_header(), ff_wmv2_decode_secondary_picture_header(), ff_xvid_encode_frame(), ff_xvid_encode_init(), ff_xvid_rate_control_init(), ff_xvid_rate_estimate_qscale(), ff_xvmc_decode_mb(), ff_xvmc_field_start(), ffm_read_packet(), ffm_seek(), ffm_seek1(), find_and_decode_index(), find_marker(), find_short(), flac_decode_frame(), flac_encode_frame(), flac_encode_init(), flac_write_trailer(), flashsv_decode_frame(), flashsv_decode_init(), flashsv_encode_frame(), flashsv_encode_init(), flic_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), flic_decode_init(), flic_read_header(), flv_h263_decode_picture_header(), flv_read_header(), flv_read_packet(), flv_set_audio_codec(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), fourxm_read_header(), frame_hook_add(), frame_start(), g726_decode_frame(), g726_init(), generate_bits_table(), get_aac_sample_rates(), get_audio_flags(), get_dts(), get_level_prefix(), get_pointer_coordinates(), get_qscale(), get_quant(), get_riff(), GET_TOK(), get_watermark_picture(), gif_decode_frame(), gif_read_header1(), gif_write_header(), gopher_connect(), grab_read_header(), gxf_header(), gxf_packet(), gxf_read_index(), gxf_write_header(), h261_decode_block(), h261_decode_frame(), h261_decode_gob(), h261_decode_gob_header(), h261_decode_mb(), h261_decode_picture_header(), h263_decode_block(), h263_decode_picture_header(), h263p_decode_umotion(), h264_free_extradata(), h264_handle_packet(), h264_write_nal_unit(), help(), huffman_decode(), id3v2_parse(), idcin_decode_frame(), idcin_decode_init(), idcin_decode_vlcs(), if(), iff_read_header(), iff_read_packet(), imc_decode_frame(), imdct_and_windowing(), imx_dump_header(), indeo3_decode_frame(), init_cook_mlt(), init_cook_vlc_tables(), init_offset(), init_pass2(), init_vlc_sparse(), initFilter(), intel_h263_decode_picture_header(), ipvideo_decode_block_opcode_0x6(), ipvideo_decode_frame(), ipvideo_decode_init(), ipvideo_decode_opcodes(), ir2_decode_frame(), iterative_me(), iv_Decode_Chunk(), iv_decode_frame(), libdirac_decode_frame(), libdirac_encode_frame(), libdirac_encode_init(), libgsm_init(), libopenjpeg_decode_frame(), libschroedinger_encode_frame(), libschroedinger_encode_init(), libschroedinger_handle_first_access_unit(), libspeex_decode_frame(), libspeex_decode_init(), link_filter(), link_filter_inouts(), lmlm4_read_packet(), load_input_picture(), mace_decode_frame(), main(), matroska_execute_seekhead(), matroska_find_track_by_num(), matroska_parse_block(), matroska_read_header(), mdec_decode_block_intra(), mimic_decode_frame(), mimic_decode_init(), mjpeg_decode_app(), mjpeg_decode_com(), mjpeg_decode_dc(), mjpeg_decode_dri(), mjpeg_decode_scan(), mjpeg_decode_scan_progressive_ac(), mjpega_dump_header(), mjpegb_decode_frame(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_packet(), mkv_write_tracks(), mkv_write_trailer(), mlp_parse(), mm_decode_init(), mm_read_packet(), mm_support(), mmap_init(), mmap_read_frame(), mmap_release_buffer(), mmap_start(), mmf_read_header(), modify_pred(), modify_qscale(), mov_build_index(), mov_find_codec_tag(), mov_read_cmov(), mov_read_dref(), mov_read_elst(), mov_read_ftyp(), mov_read_header(), mov_read_pasp(), mov_read_stsd(), mov_read_tfhd(), mov_read_trak(), mov_write_header(), mov_write_mdhd_tag(), mov_write_packet(), mp3_header_compress(), mp3_header_decompress(), MP3lame_encode_frame(), mp_decode_frame(), mp_decode_layer3(), mp_get_code(), MPA_encode_init(), mpc7_decode_frame(), mpc7_decode_init(), mpc8_decode_init(), mpc8_parse_seektable(), mpc8_read_header(), mpc_read_header(), mpeg1_decode_block_inter(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg2_decode_block_intra(), mpeg2_decode_block_non_intra(), mpeg4_decode_block(), mpeg4_decode_dc(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), mpeg4_decode_video_packet_header(), mpeg_decode_gop(), mpeg_decode_mb(), mpeg_decode_picture_coding_extension(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), mpeg_field_start(), mpeg_motion_internal(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_open_section_filter(), mpegts_read_header(), mpegts_write_header(), mpegts_write_packet(), mpegts_write_pes(), MPV_common_init(), MPV_common_init_altivec(), MPV_encode_init(), MPV_encode_picture(), MPV_frame_start(), msmpeg4_decode_dc(), msmpeg4_decode_ext_header(), msmpeg4_decode_picture_header(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), msnwc_tcp_read_header(), msrle_decode_8_16_24_32(), msrle_decode_frame(), msrle_decode_pal4(), msvideo1_decode_frame(), mxf_decrypt_triplet(), mxf_parse_mpeg2_frame(), mxf_parse_structural_metadata(), mxf_read_header(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_primer_pack(), mxf_write_d10_video_packet(), mxf_write_essence_container_refs(), mxf_write_header(), mxf_write_index_table_segment(), mxf_write_package(), mxf_write_packet(), nal_send(), nc_read_packet(), nut_read_header(), nut_read_packet(), nut_read_timestamp(), nuv_packet(), ogg_get_headers(), ogg_packet(), ogg_read_page(), ogg_write_header(), oggvorbis_encode_init(), oma_read_header(), opt_list(), output_audio_block(), output_packet(), pal2rgbWrapper(), pam_encode_frame(), parse_link_name(), parse_nal_units(), pat_cb(), pcm_decode_frame(), pcm_encode_frame(), pcx_decode_frame(), pmt_cb(), pnm_decode_frame(), pnm_encode_frame(), pp_get_mode_by_name_and_quality(), pp_postprocess(), print_fps(), print_long_term(), print_short_term(), Process(), Process0(), Process1(), process_audio_header_eacs(), process_audio_header_elements(), process_ea_header(), ptx_decode_frame(), put_xiph_codecpriv(), qdm2_decode(), qdm2_decode_frame(), qdm2_decode_init(), qdm2_decode_sub_packet_header(), qdm2_decode_super_block(), qdm2_init(), qp2bits(), qpeg_decode_inter(), qtrle_decode_frame(), qtrle_decode_init(), qtrle_encode_frame(), qtrle_encode_init(), r3d_read_header(), r3d_read_reda(), r3d_read_redv(), r3d_seek(), ra144_decode_frame(), ra288_decode_frame(), read_access_unit(), read_block_data(), read_braindead_odml_indx(), read_decoding_params(), read_filter_params(), read_header(), read_huffman_tables(), read_huffman_tree(), read_major_sync(), read_old_huffman_tables(), read_packet(), read_restart_header(), read_seek(), reconstruct_and_encode_image(), remove_decoded_packets(), remove_short(), render_slice(), rgb2rgbWrapper(), rl2_decode_frame(), rl2_decode_init(), rm_read_audio_stream_info(), roq_decode_frame(), roq_dpcm_encode_init(), roq_encode_frame(), roq_encode_init(), roq_read_header(), roq_read_packet(), roqvideo_decode_frame(), rpl_read_header(), rpza_decode_frame(), rpza_decode_stream(), rtp_parse_packet(), rtp_write_header(), rtsp_read_play(), rv10_decode_frame(), rv10_decode_init(), rv10_decode_packet(), rv10_decode_picture_header(), rv20_decode_picture_header(), rv30_decode_init(), rv30_decode_intra_types(), rv30_decode_mb_info(), rv30_parse_slice_header(), rv34_decode_mb_header(), rv34_decode_slice(), rv40_decode_mb_info(), rv_decode_dc(), sdp_parse_fmtp_config_h264(), sdp_parse_rtpmap(), sdt_cb(), select_input_picture(), seqvideo_decode_frame(), set_default_channel_config(), set_disposition_bits(), SetSchroChromaFormat(), shall_we_drop(), shorten_decode_frame(), show_pict_info(), siff_parse_soun(), siff_parse_vbv1(), siff_read_header(), slice_end(), smacker_decode_bigtree(), smacker_decode_header_tree(), smacker_decode_tree(), smacker_read_header(), smc_decode_frame(), smc_decode_stream(), smka_decode_frame(), sp5x_decode_frame(), str_read_packet(), sunrast_decode_frame(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_decode_delta_block(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_encode_end(), svq1_encode_frame(), svq1_encode_plane(), svq1_motion_inter_4v_block(), svq1_motion_inter_block(), svq3_decode_frame(), svq3_decode_init(), svq3_decode_mb(), svq3_decode_slice_header(), svq3_mc_dir(), swf_read_header(), swf_write_audio(), swf_write_header(), swf_write_video(), sws_getContext(), sws_printVec2(), sws_scale(), sws_yuv2rgb_c_init_tables(), sws_yuv2rgb_get_func_ptr(), sws_yuv2rgb_init_altivec(), sws_yuv2rgb_init_vis(), targa_decode_rle(), targa_encode_frame(), tgq_decode_frame(), tgq_decode_mb(), tgv_decode_frame(), theora_header(), tiff_decode_tag(), tiff_unpack_strip(), tm2_build_huff_table(), tm2_decode_blocks(), tm2_read_deltas(), tm2_read_header(), tm2_read_stream(), tm2_read_tree(), tqi_decode_frame(), truemotion1_decode_frame(), truemotion1_decode_header(), tta_decode_frame(), tta_decode_init(), tta_read_header(), txd_decode_frame(), txd_read_packet(), udp_join_multicast_group(), udp_leave_multicast_group(), udp_open(), udp_set_multicast_ttl(), ulti_decode_frame(), unpack_modes(), unpack_superblocks(), unpack_vectors(), unpack_vlcs(), v4l2_read_header(), v4l2_set_parameters(), v4l_mm_read_picture(), vb_decode_framedata(), vb_decode_palette(), vc1_decode_b_blocks(), vc1_decode_frame(), vc1_decode_i_block(), vc1_decode_i_block_adv(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_init(), vc1_decode_intra_block(), vc1_decode_p_blocks(), vc1_parse_frame_header(), vc1_parse_frame_header_adv(), vc1test_write_header(), vfw_read_header(), vid_read_packet(), vmd_decode(), vmd_read_header(), vmd_read_packet(), vmdaudio_decode_init(), vmdvideo_decode_frame(), vmdvideo_decode_init(), voc_read_header(), vorbis_comment(), vorbis_decode_init(), vorbis_encode_init(), vorbis_floor0_decode(), vorbis_parse_audio_packet(), vorbis_parse_id_hdr(), vorbis_parse_setup_hdr(), vorbis_parse_setup_hdr_codebooks(), vorbis_parse_setup_hdr_floors(), vorbis_parse_setup_hdr_mappings(), vorbis_parse_setup_hdr_modes(), vorbis_parse_setup_hdr_residues(), vorbis_parse_setup_hdr_tdtransforms(), vorbis_residue_decode(), vorbis_residue_decode_internal(), vp3_decode_frame(), vp3_decode_init(), vp56_decode_frame(), vp56_size_changed(), vp5_parse_header(), vp6_parse_header(), vqa_decode_chunk(), vqa_decode_frame(), vqa_decode_init(), warn_insufficient_frame_quality(), wavpack_decode_frame(), wc3_read_header(), wc3_read_packet(), wma_decode_block(), wma_decode_init(), wma_decode_superframe(), wmv2_add_block(), write_header(), ws_snd_decode_frame(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_block_header(), wv_unpack_mono(), wv_unpack_stereo(), x11grab_read_header(), x11grab_read_packet(), xan_decode_frame(), xan_decode_init(), xvid_correct_framerate(), yuv4_read_header(), zmbv_decode_xor_16(), zmbv_decode_xor_32(), and zmbv_decode_xor_8().

void av_log_default_callback ( void *  ptr,
int  level,
const char *  fmt,
va_list  vl 
)

Definition at line 32 of file log.c.

int av_log_get_level ( void   ) 

Definition at line 77 of file log.c.

Referenced by avcodec_string().

void av_log_set_callback ( void(*)(void *, int, const char *, va_list)  callback  ) 

Definition at line 87 of file log.c.

Referenced by main(), and show_help().

void av_log_set_level ( int  level  ) 

Definition at line 82 of file log.c.

Referenced by opt_debug(), opt_default(), and opt_verbose().

void av_vlog ( void *  avcl,
int  level,
const char *  fmt,
va_list  vl 
)

Definition at line 72 of file log.c.

Referenced by av_log(), and X264_log().


Variable Documentation

void(* av_log_callback)(void *, int, const char *, va_list) = av_log_default_callback [static]

Referenced by av_log_set_callback(), and av_vlog().

int av_log_level = AV_LOG_INFO


Generated on Fri Oct 26 02:35:46 2012 for FFmpeg by  doxygen 1.5.8