#include "common.h"#include "rational.h"#include <sys/types.h>#include <stdarg.h>

Go to the source code of this file.
Definition in file avcodec.h.
| #define AV_LOG_DEBUG 2 |
Definition at line 2308 of file avcodec.h.
Referenced by amr_nb_encode_init(), av_resample(), bitplane_decoding(), build_table(), compute_exp_strategy(), decode_b_picture_secondary_header(), decode_ext_header(), decode_frame(), decode_i_picture_primary_header(), decode_i_picture_secondary_header(), decode_nal_units(), decode_p_picture_primary_header(), decode_p_picture_secondary_header(), decode_picture_parameter_set(), decode_residuals(), decode_seq_parameter_set(), decode_sequence_header(), decode_slice_header(), decode_subframe(), decode_subframe_lpc(), decode_vop_header(), dump_headers(), encode_exp(), execute_ref_pic_marking(), ff_build_rac_states(), ff_er_frame_end(), ff_h263_decode_frame(), ff_mpeg4_decode_picture_header(), ff_print_debug_info(), ff_rate_estimate_qscale(), ff_vbv_update(), ff_wmv2_decode_secondary_picture_header(), flac_decode_frame(), flv_h263_decode_picture_header(), get_level_prefix(), h263_decode_picture_header(), mjpeg_decode_app(), mjpeg_decode_frame(), mjpeg_decode_sos(), mjpegb_decode_frame(), mm_support(), modify_qscale(), MPA_encode_init(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg_decode_frame(), mpeg_decode_gop(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), mpeg_motion(), msmpeg4_decode_picture_header(), oggvorbis_decode_init(), opt_debug(), output_audio_block(), print_long_term(), print_short_term(), remove_short(), rv10_decode_init(), rv20_decode_picture_header(), stream_component_open(), svq3_decode_frame(), theora_decode_header(), vc9_decode_frame(), vc9_init_common(), vmdaudio_decode_init(), vp3_decode_frame(), X264_log(), and xvid_correct_framerate().
| #define AV_LOG_ERROR 0 |
Definition at line 2306 of file avcodec.h.
Referenced by a52_decode_frame(), a52_resample_init(), aasc_decode_frame(), adpcm_decode_frame(), alac_decode_frame(), alloc_picture(), amr_nb_decode_init(), asv1_decode_block(), audio_resample_init(), avcodec_check_dimensions(), avcodec_close(), avcodec_encode_audio(), avcodec_encode_video(), avcodec_open(), bits2qp(), build_table(), check_diff(), check_input_motion(), check_intra4x4_pred_mode(), check_intra_pred_mode(), cinepak_decode_frame(), compute_bit_allocation(), copy_picture_attributes(), cyuv_decode_frame(), decode_b_picture_primary_header(), decode_dc(), decode_format80(), decode_frame(), decode_header(), decode_i_block(), decode_i_frame(), decode_init(), decode_init_mp3on4(), decode_mb_cabac(), decode_mb_cavlc(), decode_nal_units(), decode_p_frame(), decode_picture_parameter_set(), decode_ref_pic_list_reordering(), decode_ref_pic_marking(), decode_residual(), decode_rle(), decode_seq_parameter_set(), decode_sequence_header(), decode_slice(), decode_slice_header(), decode_subframe_fixed(), decode_vol_header(), decode_vop_header(), decode_vui_parameters(), decode_wave_header(), delete_state(), dpcm_decode_init(), dsputil_init(), dts_decode_frame(), dv_decode_video_segment(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_object_segment(), dvbsub_parse_pixel_data_block(), dvbsub_read_2bit_string(), dvbsub_read_4bit_string(), dvbsub_read_8bit_string(), dvvideo_decode_frame(), encode_422_bitstream(), encode_blocks(), encode_frame(), encode_gray_bitstream(), encode_init(), encode_line(), encode_mb(), encode_subband_c0run(), evalPrimary(), execute_ref_pic_marking(), faac_decode_frame(), faac_decode_init(), Faac_encode_init(), faac_init_mp4(), ff_er_frame_end(), ff_h263_decode_frame(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), ff_mpeg4_decode_partitions(), ff_mpeg4_decode_picture_header(), ff_mpeg4_pred_dc(), ff_rate_control_init(), ff_set_cmp(), ff_spatial_idwt_buffered_init(), ff_vbv_update(), ff_wmv2_decode_picture_header(), ff_wmv2_decode_secondary_picture_header(), ff_xvid_encode_frame(), ff_xvid_encode_init(), flac_decode_frame(), flic_decode_frame(), flic_decode_init(), flv_h263_decode_picture_header(), frame_start(), g726_init(), generate_bits_table(), h261_decode_block(), h261_decode_frame(), h261_decode_gob(), h261_decode_mb(), h261_decode_picture_header(), h263_decode_block(), h263_decode_picture_header(), idcin_decode_frame(), idcin_decode_init(), idcin_decode_vlcs(), indeo3_decode_frame(), init_offset(), init_pass2(), intel_h263_decode_picture_header(), ipvideo_decode_block_opcode_0x6(), ipvideo_decode_frame(), ipvideo_decode_init(), ipvideo_decode_opcodes(), ir2_decode_frame(), iv_Decode_Chunk(), mdec_decode_block_intra(), mjpeg_decode_app(), mjpeg_decode_frame(), mjpeg_decode_sof(), MP3lame_encode_frame(), MPA_encode_init(), mpeg1_decode_block_inter(), mpeg1_decode_block_intra(), 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_mb(), mpeg_decode_slice(), mpeg_field_start(), MPV_common_init(), MPV_frame_start(), msmpeg4_decode_block(), msmpeg4_decode_dc(), msmpeg4_decode_ext_header(), msmpeg4_decode_motion(), msmpeg4_decode_picture_header(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), msrle_decode_frame(), msrle_decode_pal4(), msrle_decode_pal8(), msvideo1_decode_frame(), oggvorbis_decode_init(), oggvorbis_encode_init(), pam_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), qp2bits(), qtrle_decode_frame(), qtrle_decode_init(), ra288_decode_frame(), read_header(), read_huffman_tables(), read_huffman_tree(), render_fragments(), render_slice(), roq_decode_frame(), roqvideo_decode_frame(), rpza_decode_frame(), rpza_decode_stream(), rv10_decode_init(), rv10_decode_packet(), rv10_decode_picture_header(), rv20_decode_picture_header(), rv_decode_dc(), shorten_decode_frame(), smc_decode_frame(), sonic_decode_init(), svq3_decode_frame(), svq3_decode_mb(), svq3_decode_slice_header(), svq3_mc_dir(), Theora_decode_init(), theora_decode_tables(), truemotion1_decode_frame(), truemotion1_decode_header(), ulti_decode_frame(), unpack_modes(), unpack_superblocks(), unpack_token(), unpack_vectors(), unpack_vlcs(), vc9_decode_block(), vc9_decode_frame(), vc9_decode_i_mb(), vmd_decode(), vmdvideo_decode_frame(), vmdvideo_decode_init(), vorbis_decode_init(), 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_tdtransforms(), vorbis_residue_decode(), vp3_decode_frame(), vqa_decode_chunk(), vqa_decode_frame(), vqa_decode_init(), wmv2_add_block(), wmv2_decode_mb(), X264_log(), xan_decode_frame(), xan_decode_init(), xan_wc3_build_palette(), xan_wc3_copy_pixel_run(), and xan_wc3_output_pixel_run().
| #define AV_LOG_INFO 1 |
Definition at line 2307 of file avcodec.h.
Referenced by a52_resample_init(), check_marker(), decode_b_picture_secondary_header(), decode_dvd_subtitles(), decode_init(), decode_p_picture_secondary_header(), decode_sequence_header(), decode_vol_header(), decode_wave_header(), dsputil_init_mmx(), dts_decode_frame(), dvbsub_decode(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvdsub_decode(), encode_init(), ff_er_frame_end(), help(), main(), mjpeg_decode_app(), mjpeg_decode_com(), mjpeg_decode_init(), MPV_common_init_ppc(), rv20_decode_picture_header(), smc_decode_stream(), sonic_decode_init(), standard_decode_picture_primary_header(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_decode_delta_block(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_motion_inter_4v_block(), svq1_motion_inter_block(), theora_decode_header(), truemotion1_decode_header(), ulti_decode_frame(), vc9_decode_init(), vmdaudio_loadsound(), vorbis_len2vlc(), vorbis_parse_setup_hdr_codebooks(), vp3_decode_frame(), and X264_log().
| #define AV_NOPTS_VALUE int64_t_C(0x8000000000000000) |
Definition at line 30 of file avcodec.h.
Referenced by audio_decode_frame(), av_encode(), av_parser_parse(), avcodec_get_frame_defaults(), decode_thread(), do_subtitle_out(), dvbsub_parse(), http_prepare_data(), open_input_stream(), opt_input_file(), output_packet(), rtsp_cmd_pause(), rtsp_cmd_play(), and video_thread().
| #define AV_PARSER_PTS_NB 4 |
| #define AV_TIME_BASE 1000000 |
Definition at line 31 of file avcodec.h.
Referenced by av_encode(), decode_thread(), event_loop(), get_sync_ipts(), http_prepare_data(), opt_input_file(), opt_output_file(), output_packet(), and rtsp_cmd_play().
| #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} |
Definition at line 32 of file avcodec.h.
Referenced by av_encode(), do_subtitle_out(), http_prepare_data(), and output_packet().
| #define AVCODEC_MAX_AUDIO_FRAME_SIZE 131072 |
Definition at line 254 of file avcodec.h.
Referenced by audio_decode_example(), output_packet(), and pcm_decode_frame().
| #define AVPALETTE_SIZE 1024 |
AVPaletteControl This structure defines a method for communicating palette changes between and demuxer and a decoder.
Definition at line 1791 of file avcodec.h.
Referenced by cinepak_decode_frame(), decode_frame(), flic_decode_frame(), msrle_decode_pal4(), msrle_decode_pal8(), msvideo1_decode_8bit(), qtrle_decode_frame(), and smc_decode_stream().
| #define BE_16 | ( | x | ) | ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1]) |
Definition at line 2323 of file avcodec.h.
Referenced by alac_set_info(), cinepak_decode(), cinepak_decode_strip(), decode_format80(), decode_frame(), dvbsub_decode(), dvbsub_parse(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), qtrle_decode_16bpp(), qtrle_decode_24bpp(), qtrle_decode_32bpp(), qtrle_decode_4bpp(), qtrle_decode_8bpp(), rpza_decode_stream(), smc_decode_stream(), and xan_wc3_decode_frame().
| #define BE_32 | ( | x | ) |
Value:
((((uint8_t*)(x))[0] << 24) | \
(((uint8_t*)(x))[1] << 16) | \
(((uint8_t*)(x))[2] << 8) | \
((uint8_t*)(x))[3])
Definition at line 2324 of file avcodec.h.
Referenced by alac_set_info(), cinepak_decode_codebook(), cinepak_decode_vectors(), decode_frame(), main(), rpza_decode_stream(), smc_decode_stream(), svq3_decode_frame(), and vqa_decode_chunk().
| #define CODEC_CAP_DELAY 0x0020 |
codec has a non zero delay and needs to be feeded with NULL at the end to get the delayed data. if this is not set, the codec is guranteed to never be feeded with NULL data
Definition at line 381 of file avcodec.h.
Referenced by avcodec_decode_audio(), avcodec_decode_video(), avcodec_encode_audio(), and avcodec_encode_video().
| #define CODEC_CAP_DR1 0x0002 |
Codec uses get_buffer() for allocating buffers. direct rendering method 1
Definition at line 370 of file avcodec.h.
Referenced by show_formats().
| #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001 |
decoder can use draw_horiz_band callback
Definition at line 365 of file avcodec.h.
Referenced by show_formats().
| #define CODEC_CAP_PARSE_ONLY 0x0004 |
| #define CODEC_CAP_TRUNCATED 0x0008 |
| #define CODEC_FLAG2_FAST 0x00000001 |
allow non spec compliant speedup tricks
Definition at line 353 of file avcodec.h.
Referenced by mpeg_decode_mb(), and stream_component_open().
| #define CODEC_FLAG2_LOCAL_HEADER 0x00000008 |
place global headers at every keyframe instead of in extradata
Definition at line 356 of file avcodec.h.
Referenced by av_parser_change(), and new_video_stream().
| #define CODEC_FLAG2_NO_OUTPUT 0x00000004 |
skip bitstream encoding
Definition at line 355 of file avcodec.h.
Referenced by encode_422_bitstream(), encode_frame(), encode_gray_bitstream(), and new_video_stream().
| #define CODEC_FLAG2_STRICT_GOP 0x00000002 |
strictly enforce GOP size
Definition at line 354 of file avcodec.h.
Referenced by new_video_stream().
| #define CODEC_FLAG_4MV 0x0004 |
4 MV per MB allowed / Advanced prediction for H263
Definition at line 317 of file avcodec.h.
Referenced by check_input_motion(), common_init(), encode(), ff_estimate_p_frame_motion(), ff_fix_long_p_mvs(), ff_xvid_encode_init(), new_video_stream(), and parse_ffconfig().
| #define CODEC_FLAG_AC_PRED 0x01000000 |
H263 Advanced intra coding / MPEG4 AC prediction.
Definition at line 342 of file avcodec.h.
Referenced by encode(), and ff_xvid_encode_init().
| #define CODEC_FLAG_ALT_SCAN 0x00100000 |
| #define CODEC_FLAG_BITEXACT 0x00800000 |
use only bitexact stuff (except (i)dct)
Definition at line 339 of file avcodec.h.
Referenced by dsputil_init_mmx(), dsputil_init_pix_mmx(), ff_h263_decode_frame(), new_video_stream(), and opt_input_file().
| #define CODEC_FLAG_CBP_RD 0x04000000 |
use rate distortion optimization for cbp
Definition at line 344 of file avcodec.h.
Referenced by new_video_stream().
| #define CODEC_FLAG_CLOSED_GOP 0x80000000 |
Definition at line 352 of file avcodec.h.
Referenced by ff_xvid_encode_init(), and new_video_stream().
| #define CODEC_FLAG_EMU_EDGE 0x4000 |
don't draw edges
Definition at line 329 of file avcodec.h.
Referenced by avcodec_default_get_buffer(), chroma_4mv_motion(), chroma_4mv_motion_lowres(), decode_frame(), ff_mspel_motion(), gmc1_motion(), hpel_motion(), mc_dir_part(), MPV_frame_end(), MPV_motion(), opt_input_file(), stream_component_open(), and svq3_mc_dir_part().
| #define CODEC_FLAG_EXTERN_HUFF 0x1000 |
use external huffman table (for mjpeg)
Definition at line 327 of file avcodec.h.
Referenced by mjpeg_decode_init().
| #define CODEC_FLAG_GLOBAL_HEADER 0x00400000 |
place global headers in extradata instead of every keyframe
Definition at line 338 of file avcodec.h.
Referenced by add_video_stream(), av_parser_change(), Faac_encode_init(), ff_xvid_encode_init(), new_audio_stream(), and new_video_stream().
| #define CODEC_FLAG_GMC 0x0020 |
| #define CODEC_FLAG_GRAY 0x2000 |
only decode/encode grayscale
Definition at line 328 of file avcodec.h.
Referenced by backup_mb_border(), backup_pair_border(), dct_get(), decode_frame(), ff_mspel_motion(), ff_wmv2_add_mb(), ff_xvid_encode_init(), gmc1_motion(), gmc_motion(), hl_decode_mb(), idct_put(), indeo3_decode_frame(), iv_decode_frame(), mc_dir_part(), mpeg_motion(), mpeg_motion_lowres(), MPV_decode_mb_internal(), MPV_motion(), MPV_motion_lowres(), new_video_stream(), opt_input_file(), qpel_motion(), render_fragments(), render_slice(), svq1_decode_frame(), svq3_mc_dir_part(), vp3_decode_frame(), xchg_mb_border(), and xchg_pair_border().
| #define CODEC_FLAG_H263P_AIC 0x01000000 |
H263 Advanced intra coding / MPEG4 AC prediction (remove this).
Definition at line 341 of file avcodec.h.
Referenced by new_video_stream().
| #define CODEC_FLAG_H263P_AIV 0x00000008 |
H263 Alternative inter vlc.
Definition at line 346 of file avcodec.h.
Referenced by new_video_stream().
| #define CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000 |
Definition at line 349 of file avcodec.h.
Referenced by encode(), new_video_stream(), and quicktime_new_ffmpeg().
| #define CODEC_FLAG_H263P_UMV 0x02000000 |
Unlimited motion vector.
Definition at line 343 of file avcodec.h.
Referenced by encode(), and new_video_stream().
| #define CODEC_FLAG_INTERLACED_DCT 0x00040000 |
use interlaced dct
Definition at line 334 of file avcodec.h.
Referenced by encode(), and new_video_stream().
| #define CODEC_FLAG_INTERLACED_ME 0x20000000 |
interlaced motion estimation
Definition at line 350 of file avcodec.h.
Referenced by check_input_motion(), encode(), encode_init(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), MPV_common_init(), and new_video_stream().
| #define CODEC_FLAG_LOOP_FILTER 0x00000800 |
| #define CODEC_FLAG_LOW_DELAY 0x00080000 |
force low delay
Definition at line 335 of file avcodec.h.
Referenced by decode_nal_units(), decode_vop_header(), ff_h263_decode_frame(), mpeg1_decode_sequence(), and mpeg_decode_sequence_extension().
| #define CODEC_FLAG_MV0 0x0040 |
always try a MB with MV=<0,0>
Definition at line 320 of file avcodec.h.
Referenced by ff_estimate_p_frame_motion(), and new_video_stream().
| #define CODEC_FLAG_NORMALIZE_AQP 0x00020000 |
normalize adaptive quantization
Definition at line 333 of file avcodec.h.
Referenced by adaptive_quantization(), and new_video_stream().
| #define CODEC_FLAG_OBMC 0x00000001 |
| #define CODEC_FLAG_PART 0x0080 |
| #define CODEC_FLAG_PASS1 0x0200 |
use internal 2pass ratecontrol in first pass mode
Definition at line 325 of file avcodec.h.
Referenced by av_encode(), avcodec_string(), encode_422_bitstream(), encode_frame(), encode_gray_bitstream(), encode_init(), ff_xvid_encode_init(), and new_video_stream().
| #define CODEC_FLAG_PASS2 0x0400 |
use internal 2pass ratecontrol in second pass mode
Definition at line 326 of file avcodec.h.
Referenced by av_encode(), avcodec_string(), encode_frame(), encode_init(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_xvid_encode_init(), and new_video_stream().
| #define CODEC_FLAG_PSNR 0x8000 |
error[?] variables will be set during encoding
Definition at line 330 of file avcodec.h.
Referenced by do_video_stats(), encode_frame(), MPV_decode_mb_internal(), new_video_stream(), and print_report().
| #define CODEC_FLAG_QP_RD 0x08000000 |
use rate distortion optimization for qp selectioon
Definition at line 345 of file avcodec.h.
Referenced by new_video_stream().
| #define CODEC_FLAG_QPEL 0x0010 |
use qpel MC
Definition at line 318 of file avcodec.h.
Referenced by common_init(), encode_frame(), encode_q_branch(), ff_init_me(), ff_xvid_encode_init(), get_flags(), and new_video_stream().
| #define CODEC_FLAG_QSCALE 0x0002 |
use fixed qscale
Definition at line 316 of file avcodec.h.
Referenced by encode(), ff_xvid_encode_init(), new_video_stream(), and X264_init().
| #define CODEC_FLAG_SVCD_SCAN_OFFSET 0x40000000 |
will reserve space for SVCD scan offset user data
Definition at line 351 of file avcodec.h.
Referenced by new_video_stream().
| #define CODEC_FLAG_TRELLIS_QUANT 0x00200000 |
use trellis quantization
Definition at line 337 of file avcodec.h.
Referenced by DCT_common_init(), ff_xvid_encode_init(), and new_video_stream().
| #define CODEC_FLAG_TRUNCATED 0x00010000 |
Definition at line 331 of file avcodec.h.
Referenced by decode_frame(), ff_h263_decode_frame(), get_consumed_bytes(), mpeg_decode_frame(), and video_decode_example().
| #define DEFAULT_FRAME_RATE_BASE 1001000 |
| #define FF_AA_FLOAT 3 |
| #define FF_ALPHA_SEMI_TRANSP 0x0002 |
Definition at line 2096 of file avcodec.h.
Referenced by get_alpha_info_pal8(), and img_get_alpha_info().
| #define FF_ALPHA_TRANSP 0x0001 |
Definition at line 2095 of file avcodec.h.
Referenced by get_alpha_info_pal8(), and img_get_alpha_info().
| #define FF_ASPECT_EXTENDED 15 |
Definition at line 634 of file avcodec.h.
Referenced by decode_vol_header(), and h263_decode_picture_header().
| #define FF_B_TYPE 3 |
Definition at line 528 of file avcodec.h.
Referenced by ff_print_debug_info(), ff_xvid_encode_frame(), output_picture2(), and X264_frame().
| #define FF_BUFFER_HINTS_PRESERVE 0x04 |
Definition at line 535 of file avcodec.h.
Referenced by aasc_decode_frame(), cinepak_decode_frame(), decode_frame(), flic_decode_frame(), ir2_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), rpza_decode_frame(), smc_decode_frame(), and ulti_decode_frame().
| #define FF_BUFFER_HINTS_READABLE 0x02 |
Definition at line 534 of file avcodec.h.
Referenced by avcodec_default_reget_buffer(), qtrle_decode_frame(), and smc_decode_frame().
| #define FF_BUFFER_HINTS_REUSABLE 0x08 |
Definition at line 536 of file avcodec.h.
Referenced by aasc_decode_frame(), cinepak_decode_frame(), decode_frame(), flic_decode_frame(), ir2_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), rpza_decode_frame(), smc_decode_frame(), and ulti_decode_frame().
| #define FF_BUFFER_HINTS_VALID 0x01 |
Definition at line 533 of file avcodec.h.
Referenced by aasc_decode_frame(), cinepak_decode_frame(), cyuv_decode_frame(), decode_frame(), flic_decode_frame(), ir2_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), rpza_decode_frame(), smc_decode_frame(), and ulti_decode_frame().
| #define FF_BUFFER_TYPE_COPY 8 |
just a (modified) copy of some other buffer, don't dealloc anything
Definition at line 523 of file avcodec.h.
Referenced by copy_picture(), and ff_print_debug_info().
| #define FF_BUFFER_TYPE_INTERNAL 1 |
Definition at line 520 of file avcodec.h.
Referenced by avcodec_default_get_buffer(), avcodec_default_reget_buffer(), avcodec_default_release_buffer(), and ff_mpeg_flush().
| #define FF_BUFFER_TYPE_SHARED 4 |
buffer from somewhere else, don't dealloc image (data/base), all other tables are not shared
Definition at line 522 of file avcodec.h.
Referenced by alloc_picture(), and free_picture().
| #define FF_BUFFER_TYPE_USER 2 |
Direct rendering buffers (image is (de)allocated by user).
Definition at line 521 of file avcodec.h.
Referenced by ff_mpeg_flush().
| #define FF_BUG_AC_VLC 0 |
| #define FF_BUG_AUTODETECT 1 |
autodetection
Definition at line 818 of file avcodec.h.
Referenced by avcodec_get_context_defaults(), decode_slice(), and ff_h263_decode_frame().
| #define FF_BUG_DC_CLIP 4096 |
Definition at line 831 of file avcodec.h.
Referenced by ff_h263_decode_frame(), and ff_mpeg4_pred_dc().
| #define FF_BUG_DIRECT_BLOCKSIZE 512 |
Definition at line 828 of file avcodec.h.
Referenced by ff_h263_decode_frame(), and ff_mpeg4_set_direct_mv().
| #define FF_BUG_EDGE 1024 |
Definition at line 829 of file avcodec.h.
Referenced by decode_vop_header(), and ff_h263_decode_frame().
| #define FF_BUG_HPEL_CHROMA 2048 |
| #define FF_BUG_MS 8192 |
| #define FF_BUG_NO_PADDING 16 |
Definition at line 822 of file avcodec.h.
Referenced by decode_slice(), ff_h263_decode_frame(), and mpeg4_is_resync().
| #define FF_BUG_QPEL_CHROMA 64 |
| #define FF_BUG_QPEL_CHROMA2 256 |
| #define FF_BUG_STD_QPEL 128 |
| #define FF_BUG_UMP4 8 |
Definition at line 821 of file avcodec.h.
Referenced by decode_vop_header(), and ff_h263_decode_frame().
| #define FF_BUG_XVID_ILACE 4 |
Definition at line 820 of file avcodec.h.
Referenced by ff_h263_decode_frame(), and ff_mpeg4_decode_mb().
| #define FF_CMP_BIT 5 |
| #define FF_CMP_CHROMA 256 |
Definition at line 1253 of file avcodec.h.
Referenced by check_bidir_mv(), ff_estimate_p_frame_motion(), ff_init_me(), and h263_mv4_search().
| #define FF_CMP_DCT 3 |
| #define FF_CMP_DCTMAX 13 |
| #define FF_CMP_NSSE 10 |
| #define FF_CMP_PSNR 4 |
| #define FF_CMP_RD 6 |
Definition at line 1245 of file avcodec.h.
Referenced by ff_set_cmp(), get_penalty_factor(), h263_mv4_search(), and interlaced_search().
| #define FF_CMP_SAD 0 |
Definition at line 1239 of file avcodec.h.
Referenced by encode(), ff_init_me(), ff_set_cmp(), and get_penalty_factor().
| #define FF_CMP_SATD 2 |
| #define FF_CMP_SSE 1 |
Definition at line 1240 of file avcodec.h.
Referenced by ff_estimate_p_frame_motion(), ff_set_cmp(), and get_penalty_factor().
| #define FF_CMP_VSAD 8 |
Definition at line 1247 of file avcodec.h.
Referenced by avcodec_get_context_defaults(), encode(), and ff_set_cmp().
| #define FF_CMP_VSSE 9 |
| #define FF_CMP_W53 11 |
| #define FF_CMP_W97 12 |
| #define FF_CMP_ZERO 7 |
| #define FF_CODER_TYPE_AC 1 |
| #define FF_COMPLIANCE_EXPERIMENTAL -2 |
allow non standarized experimental things
Definition at line 859 of file avcodec.h.
Referenced by encode_init().
| #define FF_COMPLIANCE_INOFFICIAL -1 |
| #define FF_COMPLIANCE_STRICT 1 |
| #define FF_COMPLIANCE_VERY_STRICT 2 |
| #define FF_DCT_ALTIVEC 5 |
Definition at line 1022 of file avcodec.h.
Referenced by dsputil_init_ppc(), and MPV_common_init_ppc().
| #define FF_DCT_AUTO 0 |
Definition at line 1017 of file avcodec.h.
Referenced by dsputil_init_mmx(), dsputil_init_ppc(), MPV_common_init_mlib(), MPV_common_init_mmx(), and MPV_common_init_ppc().
| #define FF_DCT_FAAN 6 |
| #define FF_DCT_FASTINT 1 |
| #define FF_DCT_MLIB 4 |
| #define FF_DCT_MMX 3 |
Definition at line 1020 of file avcodec.h.
Referenced by dsputil_init_mmx(), and MPV_common_init_mmx().
| #define FF_DEBUG_BUGS 0x00001000 |
| #define FF_DEBUG_DCT_COEFF 0x00000040 |
Definition at line 1174 of file avcodec.h.
Referenced by alloc_picture(), and MPV_decode_mb_internal().
| #define FF_DEBUG_ER 0x00000400 |
| #define FF_DEBUG_MB_TYPE 8 |
| #define FF_DEBUG_MMCO 0x00000800 |
Definition at line 1179 of file avcodec.h.
Referenced by execute_ref_pic_marking(), print_long_term(), print_short_term(), and remove_short().
| #define FF_DEBUG_MV 32 |
| #define FF_DEBUG_PICT_INFO 1 |
Definition at line 1168 of file avcodec.h.
Referenced by decode_ext_header(), decode_frame(), decode_init(), decode_picture_parameter_set(), decode_seq_parameter_set(), decode_slice_header(), decode_vol_header(), decode_vop_header(), ff_wmv2_decode_secondary_picture_header(), flv_h263_decode_picture_header(), h263_decode_picture_header(), mjpeg_decode_app(), mjpeg_decode_com(), mjpeg_decode_sos(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg_decode_gop(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), msmpeg4_decode_picture_header(), rv10_decode_init(), rv20_decode_picture_header(), svq3_decode_frame(), truemotion1_decode_header(), and vp3_decode_frame().
| #define FF_DEBUG_PTS 0x00000200 |
| #define FF_DEBUG_QP 16 |
Definition at line 1172 of file avcodec.h.
Referenced by ff_print_debug_info(), mjpeg_decode_frame(), and mjpegb_decode_frame().
| #define FF_DEBUG_RC 2 |
Definition at line 1169 of file avcodec.h.
Referenced by ff_rate_estimate_qscale(), ff_vbv_update(), and modify_qscale().
| #define FF_DEBUG_SKIP 0x00000080 |
| #define FF_DEBUG_STARTCODE 0x00000100 |
Definition at line 1176 of file avcodec.h.
Referenced by decode_nal_units(), ff_mpeg4_decode_picture_header(), mjpeg_decode_app(), mjpeg_decode_frame(), and mpeg_decode_frame().
| #define FF_DEBUG_VIS_MB_TYPE 0x00004000 |
Definition at line 1182 of file avcodec.h.
Referenced by ff_print_debug_info(), and MPV_common_init().
| #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 |
| #define FF_DEBUG_VIS_MV_B_FOR 0x00000002 |
| #define FF_DEBUG_VIS_MV_P_FOR 0x00000001 |
| #define FF_DEBUG_VIS_QP 0x00002000 |
Definition at line 1181 of file avcodec.h.
Referenced by ff_print_debug_info(), and MPV_common_init().
| #define FF_DEFAULT_QUANT_BIAS 999999 |
Definition at line 1340 of file avcodec.h.
Referenced by avcodec_get_context_defaults(), and encode().
| #define FF_DTG_AFD_14_9 11 |
| #define FF_DTG_AFD_16_9 10 |
| #define FF_DTG_AFD_16_9_SP_14_9 14 |
| #define FF_DTG_AFD_4_3 9 |
| #define FF_DTG_AFD_4_3_SP_14_9 13 |
| #define FF_DTG_AFD_SAME 8 |
| #define FF_DTG_AFD_SP_4_3 15 |
| #define FF_EC_DEBLOCK 2 |
| #define FF_EC_GUESS_MVS 1 |
| #define FF_ER_AGGRESSIVE 3 |
| #define FF_ER_COMPLIANT 2 |
Definition at line 878 of file avcodec.h.
Referenced by h263_decode_block(), mpeg1_decode_picture(), and mpeg4_decode_block().
| #define FF_I_TYPE 1 |
Definition at line 526 of file avcodec.h.
Referenced by decode_frame(), encode_frame(), ff_print_debug_info(), ff_xvid_encode_frame(), output_picture2(), pam_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), raw_init_decoder(), raw_init_encoder(), and X264_frame().
| #define FF_IDCT_ALTIVEC 8 |
Definition at line 1078 of file avcodec.h.
Referenced by dsputil_init_ppc(), and MPV_common_init_ppc().
| #define FF_IDCT_ARM 7 |
| #define FF_IDCT_AUTO 0 |
Definition at line 1070 of file avcodec.h.
Referenced by dsputil_init(), dsputil_init_armv4l(), dsputil_init_mmi(), dsputil_init_mmx(), dsputil_init_ppc(), dsputil_init_sh4(), ff_h263_decode_frame(), MPV_common_init_mlib(), MPV_common_init_ppc(), vcr2_init_sequence(), and vp3_decode_init().
| #define FF_IDCT_INT 1 |
| #define FF_IDCT_IPP 13 |
| #define FF_IDCT_LIBMPEG2MMX 4 |
Definition at line 1074 of file avcodec.h.
Referenced by dsputil_init_mmx(), and ff_h263_decode_frame().
| #define FF_IDCT_MLIB 6 |
| #define FF_IDCT_PS2 5 |
| #define FF_IDCT_SH4 9 |
| #define FF_IDCT_SIMPLE 2 |
| #define FF_IDCT_SIMPLEARM 10 |
| #define FF_IDCT_SIMPLEMMX 3 |
| #define FF_IDCT_VP3 12 |
Definition at line 1082 of file avcodec.h.
Referenced by dsputil_init(), dsputil_init_mmx(), render_fragments(), render_slice(), and vp3_decode_init().
| #define FF_INPUT_BUFFER_PADDING_SIZE 8 |
Required number of additionally allocated bytes at the end of the input bitstream for decoding. this is mainly needed because some optimized bitstream readers read 32 or 64 bit at once and could read over the end
Note, if the first 23 bits of the additional bytes are not 0 then damaged MPEG bitstreams could cause overread and segfault
Definition at line 263 of file avcodec.h.
Referenced by audio_decode_example(), av_parser_change(), av_parser_parse(), decode_frame(), decode_i_frame(), decode_p_frame(), ff_combine_frame(), ff_h263_decode_frame(), mjpeg_decode_frame(), and video_decode_example().
| #define FF_LAMBDA_MAX (256*128-1) |
Definition at line 1372 of file avcodec.h.
Referenced by get_qminmax(), opt_mb_lmax(), and opt_mb_lmin().
| #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT) |
| #define FF_LAMBDA_SHIFT 7 |
Definition at line 1369 of file avcodec.h.
Referenced by encode_frame(), encode_q_branch(), and get_penalty_factor().
| #define FF_LEVEL_UNKNOWN -99 |
Definition at line 1624 of file avcodec.h.
Referenced by avcodec_get_context_defaults(), and encode().
| #define FF_LOSS_ALPHA 0x0008 |
Definition at line 2086 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().
| #define FF_LOSS_CHROMA 0x0020 |
| #define FF_LOSS_COLORQUANT 0x0010 |
Definition at line 2087 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().
| #define FF_LOSS_COLORSPACE 0x0004 |
Definition at line 2085 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().
| #define FF_LOSS_DEPTH 0x0002 |
Definition at line 2084 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().
| #define FF_LOSS_RESOLUTION 0x0001 |
Definition at line 2083 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().
| #define FF_MAX_B_FRAMES 8 |
| #define FF_MB_DECISION_BITS 1 |
chooses the one which needs the fewest bits
Definition at line 1423 of file avcodec.h.
Referenced by parse_ffconfig().
| #define FF_MB_DECISION_SIMPLE 0 |
uses mb_cmp
Definition at line 1422 of file avcodec.h.
Referenced by encode(), ff_estimate_b_frame_motion(), and ff_estimate_p_frame_motion().
| #define FF_MIN_BUFFER_SIZE 16384 |
minimum encoding buffer size. used to avoid some checks during header writing
Definition at line 269 of file avcodec.h.
Referenced by avcodec_encode_audio(), and avcodec_encode_video().
| #define FF_MM_FORCE 0x80000000 |
Definition at line 1116 of file avcodec.h.
Referenced by dsputil_init_iwmmxt(), and dsputil_init_mmx().
| #define FF_OPT_TYPE_BOOL 1 |
| #define FF_OPT_TYPE_MASK 0x1f |
| #define FF_OPT_TYPE_RCOVERRIDE (FF_OPT_TYPE_STRING | 0x80) |
| #define FF_P_TYPE 2 |
Definition at line 527 of file avcodec.h.
Referenced by decode_frame(), encode_frame(), ff_print_debug_info(), ff_xvid_encode_frame(), and X264_frame().
| #define FF_PROFILE_UNKNOWN -99 |
Definition at line 1616 of file avcodec.h.
Referenced by avcodec_get_context_defaults(), and encode().
| #define FF_QP2LAMBDA 118 |
factor to convert from H.263 QP to lambda
Definition at line 1371 of file avcodec.h.
Referenced by avcodec_get_context_defaults(), do_video_stats(), encode(), encode_frame(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_xvid_encode_frame(), get_diff_limited_q(), mjpeg_decode_frame(), mjpegb_decode_frame(), new_video_stream(), opt_lmax(), opt_lmin(), opt_mb_lmax(), opt_mb_lmin(), print_report(), X264_frame(), and X264_init().
| #define FF_QSCALE_TYPE_MPEG2 1 |
| #define FF_QUALITY_SCALE FF_LAMBDA_SCALE |
| #define FF_S_TYPE 4 |
Definition at line 529 of file avcodec.h.
Referenced by ff_print_debug_info(), and ff_xvid_encode_frame().
| #define FF_SI_TYPE 5 |
| #define FF_SP_TYPE 6 |
| #define FFMPEG_VERSION "CVS" |
Definition at line 19 of file avcodec.h.
Referenced by show_banner(), show_help(), and show_version().
| #define LE_16 | ( | x | ) | ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0]) |
Definition at line 2328 of file avcodec.h.
Referenced by adpcm_decode_frame(), decode_format80(), dpcm_decode_frame(), flic_decode_frame(), flic_decode_init(), msvideo1_decode_16bit(), truemotion1_decode_header(), vmd_decode(), vqa_decode_init(), ws_snd_decode_frame(), and xan_wc3_decode_frame().
| #define LE_32 | ( | x | ) |
Value:
((((uint8_t*)(x))[3] << 24) | \
(((uint8_t*)(x))[2] << 16) | \
(((uint8_t*)(x))[1] << 8) | \
((uint8_t*)(x))[0])
Definition at line 2329 of file avcodec.h.
Referenced by adpcm_decode_frame(), decode_frame(), decode_init(), flic_decode_frame(), lz_unpack(), vmdaudio_decode_frame(), and vmdvideo_decode_init().
| #define LIBAVCODEC_BUILD 4759 |
| #define LIBAVCODEC_IDENT "FFmpeg" LIBAVCODEC_VERSION "b" AV_STRINGIFY(LIBAVCODEC_BUILD) |
| #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT |
| #define MB_TYPE_16x16 0x0008 |
Definition at line 387 of file avcodec.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), decode_mb_skip(), ff_er_frame_end(), ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), pred_direct_motion(), preview_obmc(), and svq3_decode_mb().
| #define MB_TYPE_16x8 0x0010 |
Definition at line 388 of file avcodec.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), and mpeg_decode_mb().
| #define MB_TYPE_8x8 0x0040 |
Definition at line 390 of file avcodec.h.
Referenced by ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), mpeg4_decode_partition_a(), pred_direct_motion(), and preview_obmc().
| #define MB_TYPE_ACPRED 0x0200 |
Definition at line 393 of file avcodec.h.
Referenced by ff_h263_decode_mb(), ff_mpeg4_decode_mb(), and mpeg4_decode_partition_b().
| #define MB_TYPE_CBP 0x00020000 |
| #define MB_TYPE_DIRECT2 0x0100 |
Definition at line 392 of file avcodec.h.
Referenced by decode_mb_skip(), ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), and pred_direct_motion().
| #define MB_TYPE_GMC 0x0400 |
Definition at line 394 of file avcodec.h.
Referenced by ff_mpeg4_decode_mb(), and mpeg4_decode_partition_a().
| #define MB_TYPE_INTERLACED 0x0080 |
Definition at line 391 of file avcodec.h.
Referenced by decode_mb_cabac(), decode_mb_cavlc(), decode_mb_skip(), ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), and mpeg_decode_mb().
| #define MB_TYPE_INTRA16x16 0x0002 |
| #define MB_TYPE_INTRA4x4 0x0001 |
| #define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0) |
Definition at line 400 of file avcodec.h.
Referenced by ff_er_frame_end(), ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_mpeg4_decode_mb(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), and preview_obmc().
| #define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1) |
Definition at line 402 of file avcodec.h.
Referenced by ff_mpeg4_decode_mb(), ff_mpeg4_set_direct_mv(), mpeg_decode_mb(), and pred_direct_motion().
| #define MB_TYPE_P0L0 0x1000 |
| #define MB_TYPE_P0L1 0x4000 |
| #define MB_TYPE_P1L0 0x2000 |
| #define MB_TYPE_QUANT 0x00010000 |
| #define MB_TYPE_SKIP 0x0800 |
Definition at line 395 of file avcodec.h.
Referenced by decode_mb_skip(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), preview_obmc(), and svq3_decode_mb().
| #define PCM_CODEC | ( | id, | |||
| name | ) |
| #define SLICE_FLAG_ALLOW_FIELD 0x0002 |
allow draw_horiz_band() with field slices (MPEG2 field pics)
Definition at line 1406 of file avcodec.h.
Referenced by ff_draw_horiz_band().
| #define SLICE_FLAG_ALLOW_PLANE 0x0004 |
| #define SLICE_FLAG_CODED_ORDER 0x0001 |
draw_horiz_band() is called in coded order instead of display
Definition at line 1405 of file avcodec.h.
Referenced by ff_draw_horiz_band().
| typedef struct ImgReSampleContext ImgReSampleContext |
| typedef struct ReSampleContext ReSampleContext |
| enum AVDiscard |
| enum AVRounding |
| enum CodecID |
| enum CodecType |
| enum Motion_Est_ID |
| enum PixelFormat |
Pixel format. Notes:
PIX_FMT_RGBA32 is handled in an endian-specific manner. A RGBA color is put together as: (A << 24) | (R << 16) | (G << 8) | B This is stored as BGRA on little endian CPU architectures and ARGB on big endian CPUs.
When the pixel format is palettized RGB (PIX_FMT_PAL8), the palettized image data is stored in AVFrame.data[0]. The palette is transported in AVFrame.data[1] and, is 1024 bytes long (256 4-byte entries) and is formatted the same as in PIX_FMT_RGBA32 described above (i.e., it is also endian-specific). Note also that the individual RGB palette components stored in AVFrame.data[1] should be in the range 0..255. This is important as many custom PAL8 video codecs that were designed to run on the IBM VGA graphics adapter use 6-bit palette components.
| PIX_FMT_NONE | |
| PIX_FMT_YUV420P | Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples). |
| PIX_FMT_YUV422 | Packed pixel, Y0 Cb Y1 Cr. |
| PIX_FMT_RGB24 | Packed pixel, 3 bytes per pixel, RGBRGB... |
| PIX_FMT_BGR24 | Packed pixel, 3 bytes per pixel, BGRBGR... |
| PIX_FMT_YUV422P | Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples). |
| PIX_FMT_YUV444P | Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples). |
| PIX_FMT_RGBA32 | Packed pixel, 4 bytes per pixel, BGRABGRA..., stored in cpu endianness. |
| PIX_FMT_YUV410P | Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples). |
| PIX_FMT_YUV411P | Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples). |
| PIX_FMT_RGB565 | always stored in cpu endianness |
| PIX_FMT_RGB555 | always stored in cpu endianness, most significant bit to 1 |
| PIX_FMT_GRAY8 | |
| PIX_FMT_MONOWHITE | 0 is white |
| PIX_FMT_MONOBLACK | 0 is black |
| PIX_FMT_PAL8 | 8 bit with RGBA palette |
| PIX_FMT_YUVJ420P | Planar YUV 4:2:0 full scale (jpeg). |
| PIX_FMT_YUVJ422P | Planar YUV 4:2:2 full scale (jpeg). |
| PIX_FMT_YUVJ444P | Planar YUV 4:4:4 full scale (jpeg). |
| PIX_FMT_XVMC_MPEG2_MC | XVideo Motion Acceleration via common packet passing(xvmc_render.h). |
| PIX_FMT_XVMC_MPEG2_IDCT | |
| PIX_FMT_UYVY422 | Packed pixel, Cb Y0 Cr Y1. |
| PIX_FMT_UYVY411 | Packed pixel, Cb Y0 Y1 Cr Y2 Y3. |
| PIX_FMT_NB |
| enum SampleFormat |
| int audio_resample | ( | ReSampleContext * | s, | |
| short * | output, | |||
| short * | input, | |||
| int | nb_samples | |||
| ) |
Definition at line 169 of file resample.c.
References ac3_5p1_mux(), av_free(), av_malloc(), av_realloc(), av_resample(), ReSampleContext::filter_channels, ReSampleContext::input_channels, memcpy, mono_to_stereo(), ReSampleContext::output_channels, ReSampleContext::ratio, ReSampleContext::resample_context, stereo_mux(), stereo_split(), stereo_to_mono(), ReSampleContext::temp, and ReSampleContext::temp_len.
Referenced by do_audio_out().

| void audio_resample_close | ( | ReSampleContext * | s | ) |
Definition at line 241 of file resample.c.
References av_free(), av_freep(), av_resample_close(), ReSampleContext::resample_context, and ReSampleContext::temp.
Referenced by av_encode().

| ReSampleContext* audio_resample_init | ( | int | output_channels, | |
| int | input_channels, | |||
| int | output_rate, | |||
| int | input_rate | |||
| ) |
Definition at line 127 of file resample.c.
References av_log(), AV_LOG_ERROR, av_mallocz(), av_resample_init(), ReSampleContext::filter_channels, ReSampleContext::input_channels, NULL, ReSampleContext::output_channels, ReSampleContext::ratio, ReSampleContext::resample_context, and s.
Referenced by av_encode().

| void* av_fast_realloc | ( | void * | ptr, | |
| unsigned int * | size, | |||
| unsigned int | min_size | |||
| ) |
realloc which does nothing if the block is large enough
Definition at line 101 of file utils.c.
References av_realloc().
Referenced by allocate_buffers(), av_mallocz_static(), avcodec_default_get_buffer(), decode_frame(), decode_i_frame(), decode_nal(), decode_p_frame(), ff_combine_frame(), ff_h263_decode_frame(), flac_decode_frame(), output_packet(), and shorten_decode_frame().

| void av_free | ( | void * | ptr | ) |
Definition at line 121 of file mem.c.
Referenced by alac_decode_close(), alloc_picture(), audio_decode_example(), audio_encode_example(), audio_resample(), audio_resample_close(), av_encode(), av_freep(), av_parser_close(), av_parser_init(), avcodec_thread_free(), avcodec_thread_init(), avpicture_free(), close_audio(), close_connection(), close_video(), decode_close_mp3on4(), decode_dvd_subtitles(), decode_end(), deinterlace_bottom_field_inplace(), delete_region_display_list(), delete_state(), do_video_out(), dvbsub_close_decoder(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), dvvideo_init(), encode_end(), ff_parse_close(), ff_xvid_encode_close(), free_vlc(), http_parse_request(), img_resample_close(), img_resample_full_init(), init_pass2(), init_vlc(), iv_free_func(), main(), mjpeg_decode_com(), mjpeg_decode_end(), mjpeg_decode_frame(), modified_levinson_durbin(), new_audio_stream(), new_connection(), opt_new_subtitle_stream(), output_packet(), packet_queue_get(), parse1_close(), pcm_encode_close(), pre_process_video_frame(), prepare_sdp_description(), rtp_new_av_stream(), rtp_new_connection(), slice_buffer_destroy(), sonic_decode_close(), sp5x_decode_frame(), stream_open(), truemotion1_decode_end(), video_decode_example(), video_encode_example(), video_thread(), vmdvideo_decode_end(), vorbis_free(), vorbis_parse_setup_hdr_codebooks(), vp3_decode_end(), vqa_decode_end(), wma_decode_end(), and xan_decode_end().
| void av_free_static | ( | void | ) |
free all static arrays and reset pointers to 0.
Definition at line 156 of file utils.c.
References array_static, av_freep(), and last_static.
Referenced by main().

| void av_freep | ( | void * | arg | ) |
Frees memory and sets the pointer to NULL.
| arg | pointer to the pointer which should be freed |
Definition at line 168 of file utils.c.
References av_free(), and NULL.
Referenced by AC3_encode_close(), amr_nb_encode_close(), audio_resample_close(), av_encode(), av_free_static(), av_resample_close(), avcodec_close(), avcodec_default_free_buffers(), avcodec_open(), avcodec_thread_free(), build_feed_streams(), close_connection(), common_end(), decode_dvd_subtitles(), decode_end(), dvbsub_parse_close(), dvdsub_parse(), dvdsub_parse_close(), encode_end(), extract_mpeg4_header(), Faac_encode_close(), ff_fft_end(), ff_fft_init(), ff_mdct_end(), ff_mdct_init(), ff_rate_control_uninit(), find_smallest_bouding_rectangle(), flac_decode_close(), free_bitplane(), free_duplicate_context(), free_picture(), free_tables(), g726_close(), handle_connection(), http_prepare_data(), http_receive_data(), http_send_data(), main(), mjpeg_decode_sof(), MP3lame_encode_close(), MPA_encode_close(), MPV_common_end(), oggvorbis_encode_close(), output_packet(), packet_queue_flush(), parse_ffconfig(), pcm_encode_close(), raw_close_decoder(), shorten_decode_close(), vc9_decode_end(), and vorbis_free().

| char av_get_pict_type_char | ( | int | pict_type | ) |
returns a single letter to describe the picture type
Definition at line 938 of file utils.c.
References B_TYPE, I_TYPE, P_TYPE, S_TYPE, SI_TYPE, and SP_TYPE.
Referenced by decode_mb_cavlc(), decode_slice_header(), do_video_stats(), ff_rate_estimate_qscale(), flv_h263_decode_picture_header(), h263_decode_picture_header(), and svq3_decode_frame().
| void av_log | ( | void * | , | |
| int | level, | |||
| const char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 1074 of file utils.c.
References av_vlog().
Referenced by a52_decode_frame(), a52_resample_init(), aasc_decode_frame(), adpcm_decode_frame(), alac_decode_frame(), alloc_picture(), amr_nb_decode_init(), amr_nb_encode_init(), asv1_decode_block(), audio_resample_init(), av_resample(), avcodec_check_dimensions(), avcodec_close(), avcodec_encode_audio(), avcodec_encode_video(), avcodec_open(), bitplane_decoding(), bits2qp(), build_table(), check_diff(), check_input_motion(), check_intra4x4_pred_mode(), check_intra_pred_mode(), check_marker(), cinepak_decode_frame(), compute_bit_allocation(), compute_exp_strategy(), copy_picture_attributes(), cyuv_decode_frame(), decode_b_picture_primary_header(), decode_b_picture_secondary_header(), decode_dc(), decode_dvd_subtitles(), decode_ext_header(), decode_format80(), decode_frame(), decode_header(), decode_i_block(), decode_i_frame(), decode_i_picture_primary_header(), decode_i_picture_secondary_header(), decode_init(), decode_init_mp3on4(), decode_mb_cabac(), decode_mb_cavlc(), decode_nal_units(), decode_p_frame(), decode_p_picture_primary_header(), decode_p_picture_secondary_header(), decode_picture_parameter_set(), decode_ref_pic_list_reordering(), decode_ref_pic_marking(), decode_residual(), decode_residuals(), decode_rle(), decode_seq_parameter_set(), decode_sequence_header(), decode_slice(), decode_slice_header(), decode_subframe(), decode_subframe_fixed(), decode_subframe_lpc(), decode_vol_header(), decode_vop_header(), decode_vui_parameters(), decode_wave_header(), delete_state(), dpcm_decode_init(), dsputil_init(), dsputil_init_mmx(), dts_decode_frame(), dump_headers(), dv_decode_video_segment(), 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(), dvvideo_decode_frame(), encode_422_bitstream(), encode_blocks(), encode_exp(), encode_frame(), encode_gray_bitstream(), encode_init(), encode_line(), encode_mb(), encode_subband_c0run(), evalPrimary(), execute_ref_pic_marking(), faac_decode_frame(), faac_decode_init(), Faac_encode_init(), faac_init_mp4(), ff_build_rac_states(), ff_er_frame_end(), ff_h263_decode_frame(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), ff_mpeg4_decode_partitions(), ff_mpeg4_decode_picture_header(), ff_mpeg4_pred_dc(), ff_print_debug_info(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_set_cmp(), ff_spatial_idwt_buffered_init(), ff_vbv_update(), ff_wmv2_decode_picture_header(), ff_wmv2_decode_secondary_picture_header(), ff_xvid_encode_frame(), ff_xvid_encode_init(), flac_decode_frame(), flic_decode_frame(), flic_decode_init(), flv_h263_decode_picture_header(), frame_start(), g726_init(), generate_bits_table(), get_level_prefix(), h261_decode_block(), h261_decode_frame(), h261_decode_gob(), h261_decode_mb(), h261_decode_picture_header(), h263_decode_block(), h263_decode_picture_header(), help(), idcin_decode_frame(), idcin_decode_init(), idcin_decode_vlcs(), indeo3_decode_frame(), init_offset(), init_pass2(), intel_h263_decode_picture_header(), ipvideo_decode_block_opcode_0x6(), ipvideo_decode_frame(), ipvideo_decode_init(), ipvideo_decode_opcodes(), ir2_decode_frame(), iv_Decode_Chunk(), main(), mdec_decode_block_intra(), mjpeg_decode_app(), mjpeg_decode_com(), mjpeg_decode_frame(), mjpeg_decode_init(), mjpeg_decode_sof(), mjpeg_decode_sos(), mjpegb_decode_frame(), mm_support(), modify_qscale(), MP3lame_encode_frame(), MPA_encode_init(), mpeg1_decode_block_inter(), mpeg1_decode_block_intra(), 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_frame(), mpeg_decode_gop(), mpeg_decode_mb(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), mpeg_field_start(), mpeg_motion(), MPV_common_init(), MPV_common_init_ppc(), MPV_frame_start(), msmpeg4_decode_block(), msmpeg4_decode_dc(), msmpeg4_decode_ext_header(), msmpeg4_decode_motion(), msmpeg4_decode_picture_header(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), msrle_decode_frame(), msrle_decode_pal4(), msrle_decode_pal8(), msvideo1_decode_frame(), oggvorbis_decode_init(), oggvorbis_encode_init(), output_audio_block(), pam_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), print_long_term(), print_short_term(), qp2bits(), qtrle_decode_frame(), qtrle_decode_init(), ra288_decode_frame(), read_header(), read_huffman_tables(), read_huffman_tree(), remove_short(), render_fragments(), render_slice(), roq_decode_frame(), roqvideo_decode_frame(), rpza_decode_frame(), rpza_decode_stream(), rv10_decode_init(), rv10_decode_packet(), rv10_decode_picture_header(), rv20_decode_picture_header(), rv_decode_dc(), shorten_decode_frame(), smc_decode_frame(), smc_decode_stream(), sonic_decode_init(), standard_decode_picture_primary_header(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_decode_delta_block(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_motion_inter_4v_block(), svq1_motion_inter_block(), svq3_decode_frame(), svq3_decode_mb(), svq3_decode_slice_header(), svq3_mc_dir(), theora_decode_header(), Theora_decode_init(), theora_decode_tables(), truemotion1_decode_frame(), truemotion1_decode_header(), ulti_decode_frame(), unpack_modes(), unpack_superblocks(), unpack_token(), unpack_vectors(), unpack_vlcs(), vc9_decode_block(), vc9_decode_frame(), vc9_decode_i_mb(), vc9_decode_init(), vc9_init_common(), vmd_decode(), vmdaudio_decode_init(), vmdaudio_loadsound(), vmdvideo_decode_frame(), vmdvideo_decode_init(), vorbis_decode_init(), vorbis_len2vlc(), 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_tdtransforms(), vorbis_residue_decode(), vp3_decode_frame(), vqa_decode_chunk(), vqa_decode_frame(), vqa_decode_init(), wmv2_add_block(), wmv2_decode_mb(), xan_decode_frame(), xan_decode_init(), xan_wc3_build_palette(), xan_wc3_copy_pixel_run(), xan_wc3_output_pixel_run(), and xvid_correct_framerate().

| void av_log_set_callback | ( | void(*)(void *, int, const char *, va_list) | ) |
| void av_log_set_level | ( | int | ) |
Definition at line 1092 of file utils.c.
Referenced by opt_debug(), opt_verbose(), and stream_component_open().
| void* av_malloc | ( | unsigned int | size | ) |
Memory allocation of size byte with alignment suitable for all memory accesses (including vectors if available on the CPU). av_malloc(0) must return a non NULL pointer.
Definition at line 45 of file mem.c.
References memalign, and NULL.
Referenced by alloc_bitplane(), alloc_temp(), allocate_buffers(), audio_resample(), av_encode(), av_mallocz(), av_parser_change(), av_realloc(), av_strdup(), avcodec_alloc_context(), avcodec_alloc_frame(), avcodec_default_get_buffer(), avpicture_alloc(), build_modpred(), decode_dvd_subtitles(), decode_init(), deinterlace_bottom_field_inplace(), do_audio_out(), do_subtitle_out(), do_video_out(), dvbsub_display_end_segment(), dvbsub_parse_clut_segment(), dvbsub_parse_init(), dvbsub_parse_region_segment(), dvdsub_parse(), dvvideo_init(), encode_init(), extract_mpeg4_header(), ff_fft_init(), ff_mdct_init(), ff_xvid_encode_init(), fft_ref_init(), find_smallest_bouding_rectangle(), frame_start(), init_2d_vlc_rl(), init_coef_vlc(), init_pass2(), init_rl(), init_vlc_rl(), iv_alloc_frames(), main(), mjpeg_decode_com(), mjpeg_decode_frame(), MPV_common_init(), new_connection(), packet_queue_put(), parse_ffconfig(), pcm_encode_init(), pre_process_video_frame(), raw_init_decoder(), read_header(), rtp_new_connection(), slice_buffer_init(), truemotion1_decode_init(), vc9_decode_init(), vmdvideo_decode_init(), vorbis_parse_id_hdr(), vp3_decode_init(), vqa_decode_init(), wma_decode_init(), xan_decode_init(), and xvid_strip_vol_header().
| void* av_mallocz | ( | unsigned int | size | ) |
Definition at line 75 of file utils.c.
References av_malloc(), and NULL.
Referenced by add_av_stream1(), add_codec(), alloc_blocks(), audio_resample_init(), av_encode(), av_mallocz_static(), av_parser_init(), av_resample_init(), avcodec_default_get_buffer(), avcodec_open(), avcodec_thread_init(), build_file_streams(), common_init(), decode_dvd_subtitles(), decode_init(), decode_init_mp3on4(), dvbsub_display_end_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), dvvideo_init(), encode_init(), ff_er_frame_end(), ff_rate_control_init(), http_prepare_data(), http_receive_data(), img_resample_full_init(), mjpeg_decode_sof(), modified_levinson_durbin(), mpeg4video_parse_init(), new_connection(), oggvorbis_encode_init(), opt_inter_matrix(), opt_intra_matrix(), parse_ffconfig(), read_ffserver_streams(), rtp_new_av_stream(), rtp_new_connection(), slice_buffer_init(), sonic_decode_init(), sp5x_decode_frame(), stream_open(), vc9_decode_frame(), vorbis_parse_setup_hdr_codebooks(), vorbis_parse_setup_hdr_floors(), vorbis_parse_setup_hdr_mappings(), vorbis_parse_setup_hdr_modes(), and vorbis_parse_setup_hdr_residues().

| void* av_mallocz_static | ( | unsigned int | size | ) |
allocation of static arrays - do not use for normal allocation.
Definition at line 119 of file utils.c.
References allocated_static, array_static, av_fast_realloc(), av_mallocz(), last_static, and NULL.
Referenced by av_realloc_static(), decode_init(), init_2d_vlc_rl(), init_rl(), and init_vlc_rl().

| int av_parser_change | ( | AVCodecParserContext * | s, | |
| AVCodecContext * | avctx, | |||
| uint8_t ** | poutbuf, | |||
| int * | poutbuf_size, | |||
| const uint8_t * | buf, | |||
| int | buf_size, | |||
| int | keyframe | |||
| ) |
Definition at line 149 of file parser.c.
References av_malloc(), CODEC_FLAG2_LOCAL_HEADER, CODEC_FLAG_GLOBAL_HEADER, AVCodecContext::extradata, AVCodecContext::extradata_size, FF_INPUT_BUFFER_PADDING_SIZE, AVCodecContext::flags, AVCodecContext::flags2, memcpy, AVCodecParserContext::parser, and AVCodecParser::split.
Referenced by output_packet().

| void av_parser_close | ( | AVCodecParserContext * | s | ) |
Definition at line 181 of file parser.c.
References av_free(), AVCodecParserContext::parser, AVCodecParser::parser_close, and AVCodecParserContext::priv_data.

| AVCodecParserContext* av_parser_init | ( | int | codec_id | ) |
Definition at line 32 of file parser.c.
References av_free(), av_mallocz(), CODEC_ID_NONE, AVCodecParser::codec_ids, AVCodecParserContext::fetch_timestamp, AVCodecParser::next, NULL, AVCodecParserContext::parser, AVCodecParser::parser_init, AVCodecParserContext::priv_data, AVCodecParser::priv_data_size, and s.

| int av_parser_parse | ( | AVCodecParserContext * | s, | |
| AVCodecContext * | avctx, | |||
| uint8_t ** | poutbuf, | |||
| int * | poutbuf_size, | |||
| const uint8_t * | buf, | |||
| int | buf_size, | |||
| int64_t | pts, | |||
| int64_t | dts | |||
| ) |
Definition at line 74 of file parser.c.
References AV_NOPTS_VALUE, AV_PARSER_PTS_NB, AVCodecParserContext::cur_frame_dts, AVCodecParserContext::cur_frame_offset, AVCodecParserContext::cur_frame_pts, AVCodecParserContext::cur_frame_start_index, AVCodecParserContext::cur_offset, AVCodecParserContext::dts, AVCodecParserContext::fetch_timestamp, FF_INPUT_BUFFER_PADDING_SIZE, AVCodecParserContext::frame_offset, AVCodecParserContext::last_dts, AVCodecParserContext::last_frame_offset, AVCodecParserContext::last_pts, AVCodecParserContext::parser, AVCodecParser::parser_parse, and AVCodecParserContext::pts.
| void* av_realloc | ( | void * | ptr, | |
| unsigned int | size | |||
| ) |
av_realloc semantics (same as glibc): if ptr is NULL and size > 0, identical to malloc(size). If size is zero, it is identical to free(ptr) and NULL is returned.
Definition at line 100 of file mem.c.
References av_malloc(), and NULL.
Referenced by alloc_table(), allocate_buffers(), audio_resample(), av_fast_realloc(), av_realloc_static(), do_audio_out(), iv_alloc_frames(), new_video_stream(), and oggvorbis_encode_init().

| void* av_realloc_static | ( | void * | ptr, | |
| unsigned int | size | |||
| ) |
same as above, but does realloc
Definition at line 137 of file utils.c.
References array_static, av_mallocz_static(), av_realloc(), last_static, and NULL.
Referenced by alloc_table().

| int av_reduce | ( | int * | dst_nom, | |
| int * | dst_den, | |||
| int64_t | nom, | |||
| int64_t | den, | |||
| int64_t | max | |||
| ) |
reduce a fraction. this is usefull for framerate calculations
| max | the maximum allowed for dst_nom & dst_den |
Definition at line 950 of file utils.c.
References a0, a1, ABS, AVRational::den, ff_gcd(), and AVRational::num.
Referenced by av_add_q(), av_d2q(), av_div_q(), av_mul_q(), av_sub_q(), and mpeg_decode_postinit().

| void av_register_codec_parser | ( | AVCodecParser * | parser | ) |
Definition at line 26 of file parser.c.
References AVCodecParser::next.
Referenced by avcodec_register_all().
| int av_resample | ( | AVResampleContext * | c, | |
| short * | dst, | |||
| short * | src, | |||
| int * | consumed, | |||
| int | src_size, | |||
| int | dst_size, | |||
| int | update_ctx | |||
| ) |
resamples.
| src | an array of unconsumed samples | |
| consumed | the number of samples of src which have been consumed are returned here | |
| src_size | the number of unconsumed samples available | |
| dst_size | the amount of space in samples available in dst | |
| update_ctx | if this is 0 then the context wont be modified, that way several channels can be resampled with the same context |
Definition at line 187 of file resample2.c.
References ABS, av_log(), AV_LOG_DEBUG, av_resample_compensate(), AVResampleContext::compensation_distance, AVResampleContext::dst_incr, FELEM, FELEM2, filter(), AVResampleContext::filter_bank, AVResampleContext::filter_length, FILTER_SHIFT, AVResampleContext::frac, AVResampleContext::ideal_dst_incr, AVResampleContext::index, AVResampleContext::linear, LL, NULL, AVResampleContext::phase_mask, AVResampleContext::phase_shift, and AVResampleContext::src_incr.
Referenced by audio_resample().

| void av_resample_close | ( | struct AVResampleContext * | c | ) |
Definition at line 155 of file resample2.c.
References av_freep(), and AVResampleContext::filter_bank.
Referenced by audio_resample_close().

| void av_resample_compensate | ( | AVResampleContext * | c, | |
| int | sample_delta, | |||
| int | compensation_distance | |||
| ) |
Compensates samplerate/timestamp drift. The compensation is done by changing the resampler parameters, so no audible clicks or similar distortions ocur
| compensation_distance | distance in output samples over which the compensation should be performed | |
| sample_delta | number of output samples which should be output less |
note, due to rounding the actual compensation might be slightly different, especially if the compensation_distance is large and the in_rate used during init is small
Definition at line 172 of file resample2.c.
References AVResampleContext::compensation_distance, AVResampleContext::dst_incr, and AVResampleContext::ideal_dst_incr.
Referenced by av_resample(), and do_audio_out().
| struct AVResampleContext* av_resample_init | ( | int | out_rate, | |
| int | in_rate, | |||
| int | filter_size, | |||
| int | phase_shift, | |||
| int | linear, | |||
| double | cutoff | |||
| ) | [read] |
initalizes a audio resampler. note, if either rate is not a integer then simply scale both rates up so they are
Definition at line 133 of file resample2.c.
References av_build_filter(), av_mallocz(), c, AVResampleContext::dst_incr, FELEM, AVResampleContext::filter_bank, AVResampleContext::filter_length, FILTER_SHIFT, AVResampleContext::ideal_dst_incr, AVResampleContext::index, AVResampleContext::linear, memcpy, AVResampleContext::phase_mask, AVResampleContext::phase_shift, and AVResampleContext::src_incr.
Referenced by audio_resample_init().

| int64_t av_rescale | ( | int64_t | a, | |
| int64_t | b, | |||
| int64_t | c | |||
| ) |
rescale a 64bit integer with rounding to nearest. a simple a*b/c isn't possible as it can overflow
Definition at line 1008 of file utils.c.
References av_rescale_rnd(), and AV_ROUND_NEAR_INF.
Referenced by output_packet().

| int64_t av_rescale_q | ( | int64_t | a, | |
| AVRational | bq, | |||
| AVRational | cq | |||
| ) |
rescale a 64bit integer by 2 rational numbers.
Definition at line 1012 of file utils.c.
References av_rescale_rnd(), AV_ROUND_NEAR_INF, b, AVRational::den, and AVRational::num.
Referenced by av_encode(), do_audio_out(), do_subtitle_out(), do_video_out(), http_prepare_data(), output_packet(), write_audio_frame(), and write_video_frame().

| int64_t av_rescale_rnd | ( | int64_t | a, | |
| int64_t | b, | |||
| int64_t | c, | |||
| enum | AVRounding | |||
| ) |
rescale a 64bit integer with specified rounding. a simple a*b/c isn't possible as it can overflow
Definition at line 983 of file utils.c.
References av_add_i(), av_div_i(), av_i2int(), av_int2i(), av_mul_i(), av_rescale_rnd(), AV_ROUND_NEAR_INF, INT64_MIN, and r.
Referenced by av_rescale(), av_rescale_q(), and av_rescale_rnd().

| char* av_strdup | ( | const char * | s | ) |
Definition at line 86 of file utils.c.
References av_malloc(), memcpy, and NULL.
Referenced by add_frame_hooker(), opt_audio_device(), opt_grab_device(), opt_video_device(), opt_video_standard(), and parse_options().

| void av_vlog | ( | void * | , | |
| int | level, | |||
| const char * | fmt, | |||
| va_list | ||||
| ) |
Definition at line 1082 of file utils.c.
References av_log_callback.
Referenced by av_log(), and X264_log().
| unsigned int av_xiphlacing | ( | unsigned char * | s, | |
| unsigned int | v | |||
| ) |
| void avcodec_align_dimensions | ( | AVCodecContext * | s, | |
| int * | width, | |||
| int * | height | |||
| ) |
Definition at line 205 of file utils.c.
References ALIGN, AVCodecContext::codec_id, CODEC_ID_MSZH, CODEC_ID_RPZA, CODEC_ID_SMC, CODEC_ID_SVQ1, CODEC_ID_ZLIB, AVCodecContext::pix_fmt, PIX_FMT_BGR24, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_RGB555, PIX_FMT_UYVY411, PIX_FMT_UYVY422, PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_YUV420P, PIX_FMT_YUV422, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, and PIX_FMT_YUVJ444P.
Referenced by avcodec_default_get_buffer().
| AVCodecContext* avcodec_alloc_context | ( | void | ) |
allocates a AVCodecContext and set it to defaults. this can be deallocated by simply calling free()
Definition at line 503 of file utils.c.
References av_malloc(), avcodec_get_context_defaults(), and NULL.
Referenced by add_av_stream1(), add_codec(), audio_decode_example(), audio_encode_example(), encode(), http_prepare_data(), FFMPEG::init(), init_codec(), init_decode(), FileAC3::open_file(), quicktime_new_ffmpeg(), rtp_new_av_stream(), video_decode_example(), and video_encode_example().

| AVFrame* avcodec_alloc_frame | ( | void | ) |
allocates a AVPFrame and set it to defaults. this can be deallocated by simply calling free()
Definition at line 524 of file utils.c.
References av_malloc(), avcodec_get_frame_defaults(), and NULL.
Referenced by AC3_encode_init(), alloc_picture(), amr_nb_encode_init(), Faac_encode_init(), g726_init(), FFMPEG::init(), libgsm_init(), MP3lame_encode_init(), MPA_encode_init(), oggvorbis_encode_init(), pcm_encode_init(), video_decode_example(), video_encode_example(), and video_thread().

| unsigned avcodec_build | ( | void | ) |
| int avcodec_check_dimensions | ( | void * | av_log_ctx, | |
| unsigned int | w, | |||
| unsigned int | h | |||
| ) |
Definition at line 259 of file utils.c.
References av_log(), and AV_LOG_ERROR.
Referenced by avcodec_decode_video(), avcodec_default_get_buffer(), avcodec_encode_video(), avcodec_open(), avpicture_fill(), decode_init(), decode_seq_parameter_set(), flv_h263_decode_picture_header(), iv_decode_frame(), mjpeg_decode_sof(), MPV_common_init(), pnm_decode_header(), theora_decode_header(), vqa_decode_init(), and xan_decode_init().

| int avcodec_close | ( | AVCodecContext * | avctx | ) |
Definition at line 691 of file utils.c.
References av_freep(), av_log(), AV_LOG_ERROR, avcodec_default_free_buffers(), AVCodec::close, AVCodecContext::codec, entangled_thread_counter, NULL, and AVCodecContext::priv_data.
Referenced by audio_decode_example(), audio_encode_example(), av_encode(), close_audio(), close_connection(), FileAC3::close_file(), close_video(), delete_codec(), quicktime_delete_ffmpeg(), stream_component_close(), video_decode_example(), video_encode_example(), and FFMPEG::~FFMPEG().

| int avcodec_decode_audio | ( | AVCodecContext * | avctx, | |
| int16_t * | samples, | |||
| int * | frame_size_ptr, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
Definition at line 658 of file utils.c.
References AVCodec::capabilities, AVCodecContext::codec, CODEC_CAP_DELAY, AVCodec::decode, and AVCodecContext::frame_number.
Referenced by audio_decode_example(), audio_decode_frame(), decode(), and output_packet().
| int avcodec_decode_subtitle | ( | AVCodecContext * | avctx, | |
| AVSubtitle * | sub, | |||
| int * | got_sub_ptr, | |||
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
Definition at line 677 of file utils.c.
References AVCodecContext::codec, AVCodec::decode, and AVCodecContext::frame_number.
Referenced by output_packet().
| int avcodec_decode_video | ( | AVCodecContext * | avctx, | |
| AVFrame * | picture, | |||
| int * | got_picture_ptr, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
decode a frame.
| buf | bitstream buffer, must be FF_INPUT_BUFFER_PADDING_SIZE larger then the actual read bytes because some optimized bitstream readers read 32 or 64 bit at once and could read over the end | |
| buf_size | the size of the buffer in bytes | |
| got_picture_ptr | zero if no frame could be decompressed, Otherwise, it is non zero |
Definition at line 631 of file utils.c.
References avcodec_check_dimensions(), AVCodec::capabilities, AVCodecContext::codec, CODEC_CAP_DELAY, AVCodecContext::coded_height, AVCodecContext::coded_width, AVCodec::decode, emms_c, and AVCodecContext::frame_number.
Referenced by FFMPEG::decode(), decode_wrapper(), output_packet(), video_decode_example(), and video_thread().

| int avcodec_default_execute | ( | AVCodecContext * | c, | |
| int(*)(AVCodecContext *c2, void *arg2) | func, | |||
| void ** | arg, | |||
| int * | ret, | |||
| int | count | |||
| ) |
| void avcodec_default_free_buffers | ( | AVCodecContext * | s | ) |
Definition at line 921 of file utils.c.
References av_freep(), InternalBuffer::base, buf, InternalBuffer::data, AVCodecContext::internal_buffer, AVCodecContext::internal_buffer_count, INTERNAL_BUFFER_SIZE, and NULL.
Referenced by avcodec_close(), and MPV_common_end().

| int avcodec_default_get_buffer | ( | AVCodecContext * | s, | |
| AVFrame * | pic | |||
| ) |
Definition at line 267 of file utils.c.
References ALIGN, av_fast_realloc(), av_malloc(), av_mallocz(), avcodec_align_dimensions(), avcodec_check_dimensions(), avcodec_get_chroma_sub_sample(), InternalBuffer::base, buf, CODEC_FLAG_EMU_EDGE, InternalBuffer::data, EDGE_WIDTH, FF_BUFFER_TYPE_INTERNAL, AVCodecContext::flags, AVCodecContext::height, AVCodecContext::internal_buffer, AVCodecContext::internal_buffer_count, INTERNAL_BUFFER_SIZE, InternalBuffer::last_pic_num, InternalBuffer::linesize, NULL, AVCodecContext::pix_fmt, PIX_FMT_BGR24, PIX_FMT_PAL8, PIX_FMT_RGB24, PIX_FMT_RGB555, PIX_FMT_RGB565, PIX_FMT_RGBA32, PIX_FMT_UYVY422, PIX_FMT_YUV422, STRIDE_ALIGN, and AVCodecContext::width.
Referenced by avcodec_get_context_defaults().

| enum PixelFormat avcodec_default_get_format | ( | struct AVCodecContext * | s, | |
| const enum PixelFormat * | fmt | |||
| ) |
| int avcodec_default_reget_buffer | ( | AVCodecContext * | s, | |
| AVFrame * | pic | |||
| ) |
Definition at line 398 of file utils.c.
References FF_BUFFER_HINTS_READABLE, FF_BUFFER_TYPE_INTERNAL, AVCodecContext::get_buffer, AVCodecContext::height, img_copy(), NULL, AVCodecContext::pix_fmt, AVCodecContext::release_buffer, and AVCodecContext::width.
Referenced by avcodec_get_context_defaults().

| void avcodec_default_release_buffer | ( | AVCodecContext * | s, | |
| AVFrame * | pic | |||
| ) |
Definition at line 370 of file utils.c.
References buf, InternalBuffer::data, FF_BUFFER_TYPE_INTERNAL, AVCodecContext::internal_buffer, AVCodecContext::internal_buffer_count, and NULL.
Referenced by avcodec_get_context_defaults().
| int avcodec_encode_audio | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size, | |||
| const short * | samples | |||
| ) |
Definition at line 579 of file utils.c.
References av_log(), AV_LOG_ERROR, AVCodec::capabilities, AVCodecContext::codec, CODEC_CAP_DELAY, AVCodec::encode, FF_MIN_BUFFER_SIZE, and AVCodecContext::frame_number.
Referenced by audio_encode_example(), do_audio_out(), output_packet(), write_audio_frame(), and FileAC3::write_samples().

| int avcodec_encode_subtitle | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size, | |||
| const AVSubtitle * | sub | |||
| ) |
Definition at line 613 of file utils.c.
References AVCodecContext::codec, AVCodec::encode, and AVCodecContext::frame_number.
Referenced by do_subtitle_out().
| int avcodec_encode_video | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size, | |||
| const AVFrame * | pict | |||
| ) |
Definition at line 594 of file utils.c.
References av_log(), AV_LOG_ERROR, avcodec_check_dimensions(), AVCodec::capabilities, AVCodecContext::codec, CODEC_CAP_DELAY, emms_c, AVCodec::encode, FF_MIN_BUFFER_SIZE, AVCodecContext::frame_number, AVCodecContext::height, and AVCodecContext::width.
Referenced by do_video_out(), encode(), output_packet(), video_encode_example(), and write_video_frame().

| int avcodec_find_best_pix_fmt | ( | int | pix_fmt_mask, | |
| int | src_pix_fmt, | |||
| int | has_alpha, | |||
| int * | loss_ptr | |||
| ) |
find best pixel format to convert to. Return -1 if none found
Definition at line 543 of file imgconvert.c.
References avcodec_find_best_pix_fmt1(), avcodec_get_pix_fmt_loss(), FF_LOSS_ALPHA, FF_LOSS_COLORQUANT, FF_LOSS_COLORSPACE, FF_LOSS_DEPTH, and FF_LOSS_RESOLUTION.

Definition at line 733 of file utils.c.
References AVCodec::decode, AVCodec::id, AVCodec::next, and NULL.
Referenced by audio_decode_example(), av_encode(), avcodec_string(), FFMPEG::init(), init_codec(), init_decode(), open_parser(), quicktime_new_ffmpeg(), stream_component_open(), and video_decode_example().
| AVCodec* avcodec_find_decoder_by_name | ( | const char * | name | ) |
Definition at line 745 of file utils.c.
References AVCodec::decode, AVCodec::name, AVCodec::next, and NULL.
Definition at line 709 of file utils.c.
References AVCodec::encode, AVCodec::id, AVCodec::next, and NULL.
Referenced by audio_encode_example(), av_encode(), avcodec_string(), compute_stats(), encode(), new_video_stream(), open_audio(), FileAC3::open_file(), open_video(), and video_encode_example().
| AVCodec* avcodec_find_encoder_by_name | ( | const char * | name | ) |
Definition at line 721 of file utils.c.
References AVCodec::encode, AVCodec::name, AVCodec::next, and NULL.
| void avcodec_flush_buffers | ( | AVCodecContext * | avctx | ) |
Flush buffers, should be called when seeking or when swicthing to a different stream.
Definition at line 915 of file utils.c.
References AVCodecContext::codec, and AVCodec::flush.
Referenced by decode_thread().
| void avcodec_get_chroma_sub_sample | ( | int | pix_fmt, | |
| int * | h_shift, | |||
| int * | v_shift | |||
| ) |
Definition at line 240 of file imgconvert.c.
References PixFmtInfo::x_chroma_shift, and PixFmtInfo::y_chroma_shift.
Referenced by avcodec_default_get_buffer(), encode_init(), ff_print_debug_info(), and MPV_common_init().
| void avcodec_get_context_defaults | ( | AVCodecContext * | s | ) |
Definition at line 455 of file utils.c.
References AVCodecContext::av_class, avcodec_default_execute(), avcodec_default_get_buffer(), avcodec_default_get_format(), avcodec_default_reget_buffer(), avcodec_default_release_buffer(), AVCodecContext::b_quant_factor, AVCodecContext::b_quant_offset, AVCodecContext::bit_rate, AVCodecContext::bit_rate_tolerance, AVCodecContext::error_concealment, AVCodecContext::error_resilience, AVCodecContext::execute, FF_BUG_AUTODETECT, FF_CMP_VSAD, FF_DEFAULT_QUANT_BIAS, FF_LEVEL_UNKNOWN, FF_PROFILE_UNKNOWN, FF_QP2LAMBDA, AVCodecContext::get_buffer, AVCodecContext::get_format, AVCodecContext::gop_size, AVCodecContext::i_quant_factor, AVCodecContext::i_quant_offset, AVCodecContext::ildct_cmp, AVCodecContext::inter_quant_bias, AVCodecContext::intra_quant_bias, AVCodecContext::level, AVCodecContext::lmax, AVCodecContext::lmin, AVCodecContext::max_qdiff, AVCodecContext::mb_lmax, AVCodecContext::mb_lmin, ME_EPZS, AVCodecContext::me_method, AVCodecContext::me_penalty_compensation, AVCodecContext::me_subpel_quality, NULL, AVCodecContext::palctrl, AVCodecContext::pix_fmt, PIX_FMT_NONE, AVCodecContext::profile, AVCodecContext::qcompress, AVCodecContext::qmax, AVCodecContext::qmin, AVCodecContext::rc_eq, AVCodecContext::reget_buffer, AVCodecContext::release_buffer, AVCodecContext::sample_aspect_ratio, AVCodecContext::thread_count, AVCodecContext::time_base, and AVCodecContext::workaround_bugs.
Referenced by avcodec_alloc_context().

| void avcodec_get_frame_defaults | ( | AVFrame * | pic | ) |
Definition at line 513 of file utils.c.
References AV_NOPTS_VALUE.
Referenced by av_encode(), avcodec_alloc_frame(), common_init(), do_video_out(), encode(), and output_packet().
| enum PixelFormat avcodec_get_pix_fmt | ( | const char * | name | ) |
Definition at line 254 of file imgconvert.c.
References PIX_FMT_NB.
Referenced by opt_frame_pix_fmt().
| int avcodec_get_pix_fmt_loss | ( | int | dst_pix_fmt, | |
| int | src_pix_fmt, | |||
| int | has_alpha | |||
| ) |
compute the loss when converting from a pixel format to another
Definition at line 419 of file imgconvert.c.
References PixFmtInfo::color_type, PixFmtInfo::depth, FF_COLOR_GRAY, FF_COLOR_RGB, FF_COLOR_YUV, FF_COLOR_YUV_JPEG, FF_LOSS_ALPHA, FF_LOSS_CHROMA, FF_LOSS_COLORQUANT, FF_LOSS_COLORSPACE, FF_LOSS_DEPTH, FF_LOSS_RESOLUTION, FF_PIXEL_PALETTE, PixFmtInfo::is_alpha, PIX_FMT_RGB555, PIX_FMT_RGB565, PixFmtInfo::pixel_type, PixFmtInfo::x_chroma_shift, and PixFmtInfo::y_chroma_shift.
Referenced by avcodec_find_best_pix_fmt(), and avcodec_find_best_pix_fmt1().
| const char* avcodec_get_pix_fmt_name | ( | int | pix_fmt | ) |
Definition at line 246 of file imgconvert.c.
References PixFmtInfo::name, and PIX_FMT_NB.
Referenced by avcodec_string().
| void avcodec_init | ( | void | ) |
Definition at line 901 of file utils.c.
References dsputil_static_init().
Referenced by encode(), FFMPEG::init(), init_codec(), init_decode(), main(), FileAC3::open_file(), and quicktime_new_ffmpeg().

| int avcodec_open | ( | AVCodecContext * | avctx, | |
| AVCodec * | codec | |||
| ) |
opens / inits the AVCodecContext. not thread save!
Definition at line 534 of file utils.c.
References av_freep(), av_log(), AV_LOG_ERROR, av_mallocz(), avcodec_check_dimensions(), avcodec_set_dimensions(), AVCodecContext::codec, AVCodecContext::codec_id, AVCodecContext::coded_height, AVCodecContext::coded_width, entangled_thread_counter, AVCodecContext::frame_number, AVCodecContext::height, AVCodec::id, AVCodec::init, NULL, AVCodecContext::priv_data, AVCodec::priv_data_size, and AVCodecContext::width.
Referenced by audio_decode_example(), audio_encode_example(), av_encode(), encode(), FFMPEG::init(), init_codec(), init_decode(), open_audio(), FileAC3::open_file(), open_parser(), open_video(), quicktime_new_ffmpeg(), stream_component_open(), video_decode_example(), and video_encode_example().

| int avcodec_parse_frame | ( | AVCodecContext * | avctx, | |
| uint8_t ** | pdata, | |||
| int * | data_size_ptr, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
| unsigned int avcodec_pix_fmt_to_codec_tag | ( | enum PixelFormat | p | ) |
Definition at line 67 of file raw.c.
References PixleFormatTag::fourcc, and PixleFormatTag::pix_fmt.
Referenced by raw_init_encoder().
| void avcodec_register_all | ( | void | ) |
simple call to register all the codecs.
Definition at line 33 of file allcodecs.c.
References aac_decoder, aasc_decoder, ac3_decoder, ac3_encoder, ac3_parser, alac_decoder, amr_nb_decoder, amr_nb_encoder, amr_wb_decoder, amr_wb_encoder, asv1_decoder, asv1_encoder, asv2_decoder, asv2_encoder, av_register_codec_parser(), cinepak_decoder, cljr_decoder, CODEC_ID_ADPCM_4XM, CODEC_ID_ADPCM_ADX, CODEC_ID_ADPCM_CT, CODEC_ID_ADPCM_EA, CODEC_ID_ADPCM_G726, CODEC_ID_ADPCM_IMA_DK3, CODEC_ID_ADPCM_IMA_DK4, CODEC_ID_ADPCM_IMA_QT, CODEC_ID_ADPCM_IMA_SMJPEG, CODEC_ID_ADPCM_IMA_WAV, CODEC_ID_ADPCM_IMA_WS, CODEC_ID_ADPCM_MS, CODEC_ID_ADPCM_SWF, CODEC_ID_ADPCM_XA, CODEC_ID_ADPCM_YAMAHA, CODEC_ID_PCM_ALAW, CODEC_ID_PCM_MULAW, CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE, CODEC_ID_PCM_S8, CODEC_ID_PCM_U16BE, CODEC_ID_PCM_U16LE, CODEC_ID_PCM_U8, cyuv_decoder, dts_decoder, dvbsub_decoder, dvbsub_encoder, dvbsub_parser, dvdsub_decoder, dvdsub_parser, dvvideo_decoder, dvvideo_encoder, eightbps_decoder, faac_encoder, ffv1_decoder, ffv1_encoder, ffvhuff_decoder, ffvhuff_encoder, flac_decoder, flic_decoder, flv_decoder, flv_encoder, fourxm_decoder, fraps_decoder, h261_decoder, h261_encoder, h261_parser, h263_decoder, h263_encoder, h263_parser, h263i_decoder, h263p_encoder, h264_decoder, h264_parser, huffyuv_decoder, huffyuv_encoder, idcin_decoder, indeo2_decoder, indeo3_decoder, interplay_dpcm_decoder, interplay_video_decoder, libgsm_decoder, libgsm_encoder, ljpeg_encoder, loco_decoder, mace3_decoder, mace6_decoder, mdec_decoder, mjpeg_decoder, mjpeg_encoder, mjpeg_parser, mjpegb_decoder, mp2_decoder, mp2_encoder, mp3_decoder, mp3adu_decoder, mp3lame_encoder, mp3on4_decoder, mpeg1video_decoder, mpeg1video_encoder, mpeg2video_decoder, mpeg2video_encoder, mpeg4_decoder, mpeg4_encoder, mpeg4aac_decoder, mpeg4video_parser, mpeg_xvmc_decoder, mpegaudio_parser, mpegvideo_decoder, mpegvideo_parser, msmpeg4v1_decoder, msmpeg4v1_encoder, msmpeg4v2_decoder, msmpeg4v2_encoder, msmpeg4v3_decoder, msmpeg4v3_encoder, msrle_decoder, msvideo1_decoder, mszh_decoder, oggtheora_decoder, oggvorbis_decoder, oggvorbis_encoder, pam_encoder, pbm_encoder, PCM_CODEC, pgm_encoder, pgmyuv_encoder, png_decoder, png_encoder, pnm_parser, ppm_encoder, qdraw_decoder, qpeg_decoder, qtrle_decoder, ra_144_decoder, ra_288_decoder, rawvideo_decoder, rawvideo_encoder, register_avcodec(), roq_decoder, roq_dpcm_decoder, rpza_decoder, rv10_decoder, rv10_encoder, rv20_decoder, rv20_encoder, shorten_decoder, smc_decoder, snow_decoder, snow_encoder, sol_dpcm_decoder, sonic_decoder, sonic_encoder, sonic_ls_encoder, sp5x_decoder, svq1_decoder, svq1_encoder, svq3_decoder, theora_decoder, truemotion1_decoder, tscc_decoder, ulti_decoder, vc9_decoder, vcr1_decoder, vmdaudio_decoder, vmdvideo_decoder, vorbis_decoder, vp3_decoder, vqa_decoder, wmav1_decoder, wmav2_decoder, wmv1_decoder, wmv1_encoder, wmv2_decoder, wmv2_encoder, wmv3_decoder, wnv1_decoder, ws_snd1_decoder, x264_encoder, xan_dpcm_decoder, xan_wc3_decoder, xl_decoder, xvid_encoder, zlib_decoder, and zlib_encoder.
Referenced by encode(), FFMPEG::init(), init_codec(), init_decode(), main(), FileAC3::open_file(), and quicktime_new_ffmpeg().

| void avcodec_set_dimensions | ( | AVCodecContext * | s, | |
| int | width, | |||
| int | height | |||
| ) |
Definition at line 187 of file utils.c.
References AVCodecContext::coded_height, AVCodecContext::coded_width, AVCodecContext::height, AVCodecContext::lowres, and AVCodecContext::width.
Referenced by av_mpeg4_decode_header(), avcodec_open(), ff_h263_decode_frame(), h261_decode_frame(), mjpeg_decode_sof(), mpeg_decode_postinit(), and mpegvideo_extract_headers().
| void avcodec_string | ( | char * | buf, | |
| int | buf_size, | |||
| AVCodecContext * | enc, | |||
| int | encode | |||
| ) |
Definition at line 757 of file utils.c.
References av_q2d(), avcodec_find_decoder(), avcodec_find_encoder(), avcodec_get_pix_fmt_name(), AVCodecContext::bit_rate, bitrate, AVCodecContext::channels, CODEC_FLAG_PASS1, CODEC_FLAG_PASS2, AVCodecContext::codec_id, CODEC_ID_MP3, CODEC_ID_MPEG2TS, CODEC_ID_PCM_ALAW, CODEC_ID_PCM_MULAW, CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE, CODEC_ID_PCM_S8, CODEC_ID_PCM_U16BE, CODEC_ID_PCM_U16LE, CODEC_ID_PCM_U8, AVCodecContext::codec_name, AVCodecContext::codec_tag, AVCodecContext::codec_type, CODEC_TYPE_AUDIO, CODEC_TYPE_DATA, CODEC_TYPE_SUBTITLE, CODEC_TYPE_VIDEO, AVCodecContext::flags, AVCodecContext::height, AVCodecContext::mb_decision, AVCodec::name, AVCodecContext::pix_fmt, PIX_FMT_NONE, AVCodecContext::qmax, AVCodecContext::qmin, AVCodecContext::sample_rate, AVCodecContext::sub_id, AVCodecContext::time_base, and AVCodecContext::width.
Referenced by compute_stats().

| int avcodec_thread_execute | ( | AVCodecContext * | s, | |
| int(*)(AVCodecContext *c2, void *arg2) | func, | |||
| void ** | arg, | |||
| int * | ret, | |||
| int | count | |||
| ) |
Definition at line 95 of file beosthread.c.
References ThreadContext::arg, ThreadContext::avctx, c, ThreadContext::func, NULL, ThreadContext::ret, thread_count, and AVCodecContext::thread_opaque.
Referenced by avcodec_thread_init().
| void avcodec_thread_free | ( | AVCodecContext * | s | ) |
free what has been allocated by avcodec_thread_init(). must be called after decoding has finished, especially dont call while avcodec_thread_execute() is running
Definition at line 78 of file beosthread.c.
References av_free(), av_freep(), c, ThreadContext::current_job_cond, ThreadContext::current_job_lock, ThreadContext::done, ThreadContext::func, ThreadContext::last_job_cond, NULL, AVCodecContext::thread_count, AVCodecContext::thread_opaque, and ThreadContext::workers.
Referenced by avcodec_thread_init().

| int avcodec_thread_init | ( | AVCodecContext * | s, | |
| int | thread_count | |||
| ) |
Definition at line 120 of file beosthread.c.
References av_free(), av_mallocz(), avcodec_thread_execute(), avcodec_thread_free(), avcodec_thread_park_workers(), ThreadContext::avctx, c, ThreadContext::current_job, ThreadContext::current_job_cond, ThreadContext::current_job_lock, ThreadContext::done, AVCodecContext::execute, ff_thread_func(), ThreadContext::job_count, ThreadContext::last_job_cond, NULL, ThreadContext::thread, AVCodecContext::thread_count, thread_func(), AVCodecContext::thread_opaque, worker(), and ThreadContext::workers.
Referenced by encode(), new_audio_stream(), new_video_stream(), opt_input_file(), quicktime_new_ffmpeg(), and stream_component_open().

| unsigned avcodec_version | ( | void | ) |
| int avpicture_alloc | ( | AVPicture * | picture, | |
| int | pix_fmt, | |||
| int | width, | |||
| int | height | |||
| ) |
Allocate memory for a picture. Call avpicture_free to free it.
| picture | the picture to be filled in. | |
| pix_fmt | the format of the picture. | |
| width | the width of the picture. | |
| height | the height of the picture. |
Definition at line 1922 of file imgconvert.c.
References av_malloc(), avpicture_fill(), and avpicture_get_size().
Referenced by av_encode(), and img_convert().

| int avpicture_deinterlace | ( | AVPicture * | dst, | |
| const AVPicture * | src, | |||
| int | pix_fmt, | |||
| int | width, | |||
| int | height | |||
| ) |
Definition at line 2450 of file imgconvert.c.
References AVPicture::data, deinterlace_bottom_field(), deinterlace_bottom_field_inplace(), emms, AVPicture::linesize, PIX_FMT_YUV411P, PIX_FMT_YUV420P, PIX_FMT_YUV422P, and PIX_FMT_YUV444P.
Referenced by pre_process_video_frame().

| int avpicture_fill | ( | AVPicture * | picture, | |
| uint8_t * | ptr, | |||
| int | pix_fmt, | |||
| int | width, | |||
| int | height | |||
| ) |
Definition at line 265 of file imgconvert.c.
References avcodec_check_dimensions(), AVPicture::data, AVPicture::linesize, NULL, PIX_FMT_BGR24, PIX_FMT_GRAY8, PIX_FMT_MONOBLACK, PIX_FMT_MONOWHITE, PIX_FMT_PAL8, PIX_FMT_RGB24, PIX_FMT_RGB555, PIX_FMT_RGB565, PIX_FMT_RGBA32, PIX_FMT_UYVY411, PIX_FMT_UYVY422, PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_YUV420P, PIX_FMT_YUV422, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_YUVJ444P, PixFmtInfo::x_chroma_shift, and PixFmtInfo::y_chroma_shift.
Referenced by alloc_picture(), avpicture_alloc(), avpicture_get_size(), do_video_out(), FFMPEG::init_picture_from_frame(), pre_process_video_frame(), raw_decode(), and vc9_decode_frame().

| void avpicture_free | ( | AVPicture * | picture | ) |
Definition at line 1941 of file imgconvert.c.
References av_free(), and AVPicture::data.
Referenced by img_convert().

| int avpicture_get_size | ( | int | pix_fmt, | |
| int | width, | |||
| int | height | |||
| ) |
Definition at line 410 of file imgconvert.c.
References avpicture_fill(), and NULL.
Referenced by alloc_picture(), avpicture_alloc(), avpicture_layout(), do_video_out(), pam_encode_frame(), pnm_encode_frame(), pnm_parse(), pre_process_video_frame(), raw_init_decoder(), and vc9_decode_frame().

| int avpicture_layout | ( | const AVPicture * | src, | |
| int | pix_fmt, | |||
| int | width, | |||
| int | height, | |||
| unsigned char * | dest, | |||
| int | dest_size | |||
| ) |
Definition at line 359 of file imgconvert.c.
References avpicture_get_size(), AVPicture::data, PixFmtInfo::depth, FF_PIXEL_PACKED, FF_PIXEL_PALETTE, AVPicture::linesize, memcpy, PixFmtInfo::nb_channels, PIX_FMT_PAL8, PIX_FMT_RGB555, PIX_FMT_RGB565, PIX_FMT_UYVY411, PIX_FMT_UYVY422, PIX_FMT_YUV422, PixFmtInfo::pixel_type, s, PixFmtInfo::x_chroma_shift, and PixFmtInfo::y_chroma_shift.
Referenced by raw_encode().

| int img_convert | ( | AVPicture * | dst, | |
| int | dst_pix_fmt, | |||
| const AVPicture * | src, | |||
| int | pix_fmt, | |||
| int | width, | |||
| int | height | |||
| ) |
Definition at line 1955 of file imgconvert.c.
References avpicture_alloc(), avpicture_free(), PixFmtInfo::color_type, conv411(), ConvertEntry::convert, AVPicture::data, FF_COLOR_GRAY, FF_COLOR_YUV, FF_COLOR_YUV_JPEG, grow21(), grow22(), grow41(), grow44(), height, img_apply_table(), img_convert(), img_convert_init(), img_copy(), img_copy_plane(), PixFmtInfo::is_alpha, is_yuv_planar(), AVPicture::linesize, PIX_FMT_GRAY8, PIX_FMT_NB, PIX_FMT_RGB24, PIX_FMT_RGBA32, PIX_FMT_UYVY411, PIX_FMT_UYVY422, PIX_FMT_YUV411P, PIX_FMT_YUV422, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_YUVJ444P, shrink12(), shrink21(), shrink22(), shrink41(), shrink44(), width, PixFmtInfo::x_chroma_shift, and PixFmtInfo::y_chroma_shift.
Referenced by FFMPEG::convert_cmodel(), do_video_out(), img_convert(), pre_process_video_frame(), queue_picture(), and write_video_frame().

Definition at line 591 of file imgconvert.c.
References bits, AVPicture::data, PixFmtInfo::depth, FF_PIXEL_PACKED, FF_PIXEL_PALETTE, FF_PIXEL_PLANAR, img_copy_plane(), AVPicture::linesize, PixFmtInfo::nb_channels, PIX_FMT_RGB555, PIX_FMT_RGB565, PIX_FMT_UYVY411, PIX_FMT_UYVY422, PIX_FMT_YUV422, PixFmtInfo::pixel_type, PixFmtInfo::x_chroma_shift, and PixFmtInfo::y_chroma_shift.
Referenced by avcodec_default_reget_buffer(), and img_convert().

| int img_get_alpha_info | ( | const AVPicture * | src, | |
| int | pix_fmt, | |||
| int | width, | |||
| int | height | |||
| ) |
Tell if an image really has transparent alpha values.
Definition at line 2226 of file imgconvert.c.
References FF_ALPHA_SEMI_TRANSP, FF_ALPHA_TRANSP, get_alpha_info_pal8(), PixFmtInfo::is_alpha, PIX_FMT_PAL8, PIX_FMT_RGB555, and PIX_FMT_RGBA32.

| void img_resample | ( | ImgReSampleContext * | s, | |
| AVPicture * | output, | |||
| const AVPicture * | input | |||
| ) |
Definition at line 602 of file imgresample.c.
References ImgReSampleContext::bottomBand, component_resample(), AVPicture::data, ImgReSampleContext::iheight, ImgReSampleContext::iwidth, ImgReSampleContext::leftBand, AVPicture::linesize, ImgReSampleContext::pad_oheight, ImgReSampleContext::pad_owidth, ImgReSampleContext::padleft, ImgReSampleContext::padtop, ImgReSampleContext::rightBand, shift(), and ImgReSampleContext::topBand.
Referenced by do_video_out().

| void img_resample_close | ( | ImgReSampleContext * | s | ) |
Definition at line 624 of file imgresample.c.
References av_free(), and ImgReSampleContext::line_buf.
Referenced by av_encode().

| ImgReSampleContext* img_resample_full_init | ( | int | owidth, | |
| int | oheight, | |||
| int | iwidth, | |||
| int | iheight, | |||
| int | topBand, | |||
| int | bottomBand, | |||
| int | leftBand, | |||
| int | rightBand, | |||
| int | padtop, | |||
| int | padbottom, | |||
| int | padleft, | |||
| int | padright | |||
| ) |
Definition at line 552 of file imgresample.c.
References av_build_filter(), av_free(), av_mallocz(), ImgReSampleContext::bottomBand, ImgReSampleContext::h_incr, ImgReSampleContext::iheight, ImgReSampleContext::iwidth, ImgReSampleContext::leftBand, ImgReSampleContext::line_buf, LINE_BUF_HEIGHT, NB_PHASES, NB_TAPS, NULL, ImgReSampleContext::oheight, ImgReSampleContext::owidth, ImgReSampleContext::pad_oheight, ImgReSampleContext::pad_owidth, ImgReSampleContext::padbottom, ImgReSampleContext::padleft, ImgReSampleContext::padright, ImgReSampleContext::padtop, POS_FRAC, ImgReSampleContext::rightBand, ImgReSampleContext::topBand, and ImgReSampleContext::v_incr.
Referenced by av_encode(), and img_resample_init().

| ImgReSampleContext* img_resample_init | ( | int | output_width, | |
| int | output_height, | |||
| int | input_width, | |||
| int | input_height | |||
| ) |
Definition at line 545 of file imgresample.c.
References img_resample_full_init().

| int is_adx | ( | const unsigned char * | buf, | |
| size_t | bufsize | |||
| ) |
Definition at line 270 of file adx.c.
References memcmp, offset, and read_long().
Referenced by adx_decode_header().

| PCM_CODEC | ( | CODEC_ID_ADPCM_YAMAHA | , | |
| adpcm_yamaha | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_SWF | , | |
| adpcm_swf | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_CT | , | |
| adpcm_ct | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_G726 | , | |
| adpcm_g726 | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_EA | , | |
| adpcm_ea | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_ADX | , | |
| adpcm_adx | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_XA | , | |
| adpcm_xa | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_4XM | , | |
| adpcm_4xm | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_MS | , | |
| adpcm_ms | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_SMJPEG | , | |
| adpcm_ima_smjpeg | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_IMA_WS | , | |
| adpcm_ima_ws | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_IMA_DK4 | , | |
| adpcm_ima_dk4 | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_IMA_DK3 | , | |
| adpcm_ima_dk3 | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_IMA_WAV | , | |
| adpcm_ima_wav | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_ADPCM_IMA_QT | , | |
| adpcm_ima_qt | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_PCM_MULAW | , | |
| pcm_mulaw | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_PCM_ALAW | , | |
| pcm_alaw | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_PCM_U8 | , | |
| pcm_u8 | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_PCM_S8 | , | |
| pcm_s8 | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_PCM_U16BE | , | |
| pcm_u16be | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_PCM_U16LE | , | |
| pcm_u16le | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_PCM_S16BE | , | |
| pcm_s16be | ||||
| ) |
| PCM_CODEC | ( | CODEC_ID_PCM_S16LE | , | |
| pcm_s16le | ||||
| ) |
| void register_avcodec | ( | AVCodec * | format | ) |
Definition at line 178 of file utils.c.
References AVCodec::next, and NULL.
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Definition at line 176 of file utils.c.
Referenced by opt_audio_codec(), opt_codec(), opt_video_codec(), and show_formats().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
XviD codec definition for libavcodec.
Definition at line 766 of file xvidff.c.
Referenced by avcodec_register_all().
Referenced by avcodec_register_all().
1.5.5