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 569 of file avcodec.h.
Referenced by a64multi_init_encoder(), aac_adtstoasc_filter(), aac_decode_frame(), aac_encode_init(), aacPlus_encode_init(), add_av_stream1(), adpcm_encode_init(), adx_read_header(), afc_read_header(), aiff_read_header(), alac_encode_init(), alloc_and_copy(), alloc_buffers(), apc_read_header(), ape_tag_read_field(), asf_parse_packet(), asf_read_stream_properties(), atrac3_decode_init(), audio_decode_example(), av_fast_padded_malloc(), av_fast_padded_mallocz(), av_grow_packet(), av_new_packet(), av_packet_from_data(), av_packet_merge_side_data(), av_packet_new_side_data(), av_packet_split_side_data(), av_parser_change(), av_parser_parse2(), av_shrink_packet(), avcodec_copy_context(), avcodec_encode_audio2(), avcodec_encode_video2(), avformat_find_stream_info(), avi_read_header(), avio_close_dyn_buf(), avui_encode_init(), cdxl_decode_frame(), celt_header(), cook_decode_init(), dca_parse_params(), decode_frame(), decode_i_frame(), decode_init(), decode_p_frame(), decode_plane(), decode_stream_header(), dshow_add_device(), dump_extradata(), dv_decode_video_segment(), encode_init(), extract_header(), extract_mpeg4_header(), Faac_encode_init(), ff_alloc_packet2(), ff_combine_frame(), ff_generate_avci_extradata(), ff_h263_decode_frame(), ff_h264_decode_nal(), ff_id3v2_parse_apic(), ff_mjpeg_find_marker(), ff_mp4_read_dec_config_descr(), ff_mpeg_update_thread_context(), ff_parse_mpeg2_descriptor(), fixup_vorbis_headers(), flac_header(), flac_read_header(), flic_decode_frame_8BPP(), flv_get_extradata(), flv_queue_extradata(), flv_set_video_codec(), g2m_init_buffers(), h264_extradata_to_annexb(), h264_mp4toannexb_filter(), h264_new_context(), handle_packets(), iff_read_header(), imx_dump_header(), jacosub_read_header(), jpg_decode_data(), latm_decode_audio_specific_config(), libopus_encode_init(), mjpega_dump_header(), mov2textsub(), mov_read_dvc1(), mov_read_extradata(), mov_read_glbl(), mov_read_strf(), mov_read_stsz(), mov_read_wave(), mov_write_dvc1_structs(), mp3_header_compress(), mp3_header_decompress(), mp_decode_frame(), mpc8_parse_seektable(), mpc8_read_header(), mpc_read_header(), mpegts_push_data(), mss2_decode_frame(), mxf_parse_structural_metadata(), mxg_update_cache(), new_pes_packet(), noise(), ogg_new_buf(), ogg_new_stream(), ogg_read_page(), ogg_save(), oggvorbis_encode_init(), ogm_header(), oma_read_header(), opus_header(), parse_fmtp_config(), parse_packed_headers(), pcx_decode_frame(), qdm2_parse_config(), qt_rtp_parse_packet(), rdt_parse_b64buf(), read_apic(), read_header(), read_kuki_chunk(), recode_subtitle(), redspark_read_header(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_extradata(), sdp_parse_fmtp_config_h264(), shorten_decode_frame(), smacker_read_header(), smush_read_header(), spdif_write_packet(), speex_header(), Stagefright_init(), submit_packet(), svq3_decode_frame(), svq3_parse_packet(), tak_read_header(), text2movsub(), theora_header(), tiff_unpack_fax(), transcode_init(), tta_read_header(), utvideo_encode_frame(), utvideo_encode_init(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_headers(), vfw_read_header(), video_decode_example(), vmd_read_header(), vqf_read_header(), wma_decode_superframe(), write_frame(), wsvqa_read_header(), wsvqa_read_packet(), wv_get_value_float(), xmv_process_packet_header(), xwma_read_header(), and yop_read_header().
discard nothing
discard useless packets like 0 size packets in avi
discard all non reference
discard all bidirectional frames
discard all frames except keyframes
discard all
Find a registered decoder with a matching codec ID.
Definition at line 2454 of file utils.c.
Referenced by add_input_streams(), audio_decode_example(), av_find_best_stream(), avcodec_get_name(), avcodec_get_type(), avcodec_open2(), avcodec_string(), avformat_find_stream_info(), choose_decoder(), dshow_cycle_formats(), ff_load_image(), filter_codec_opts(), find_codec_or_die(), list_formats(), open_codec_context(), open_input_file(), open_stream(), show_codecs(), smvjpeg_decode_init(), stream_component_open(), try_decode_frame(), and video_decode_example().
Find a registered decoder with the specified name.
Definition at line 2459 of file utils.c.
Referenced by find_codec_or_die(), show_help_codec(), stream_component_open(), and v4l2_read_header().
The default callback for AVCodecContext.get_buffer2().
It is made public so it can be called by custom get_buffer2() implementations for decoders without CODEC_CAP_DR1 set.
Definition at line 602 of file utils.c.
Referenced by alloc_frame_buffer(), avcodec_get_context_defaults3(), ff_thread_release_buffer(), submit_packet(), and thread_get_buffer_internal().
Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you do not use any horizontal padding.
May only be used if a codec with CODEC_CAP_DR1 has been opened. If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased according to avcodec_get_edge_width() before.
Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you also ensure that all line sizes are a multiple of the respective linesize_align[i].
May only be used if a codec with CODEC_CAP_DR1 has been opened. If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased according to avcodec_get_edge_width() before.
Definition at line 192 of file utils.c.
Referenced by avcodec_align_dimensions(), and update_frame_pool().
Decode the audio frame of size avpkt->size from avpkt->data into frame.
Some decoders may support multiple frames in a single AVPacket. Such decoders would then just decode the first frame. In this case, avcodec_decode_audio4 has to be called again with an AVPacket containing the remaining data in order to decode the second frame, etc... Even if no frames are returned, the packet needs to be fed to the decoder with remaining data until it is completely consumed or an error occurs.
Definition at line 2049 of file utils.c.
Referenced by audio_decode_example(), audio_decode_frame(), decode_audio(), decode_packet(), main(), movie_push_frame(), process_frame(), try_decode_frame(), and wrap().
Decode the video frame of size avpkt->size from avpkt->data into picture.
Some decoders may support multiple frames in a single AVPacket, such decoders would then just decode the first frame.
In practice, avpkt->data should have 4 byte alignment at minimum.
Definition at line 1914 of file utils.c.
Referenced by decode_packet(), decode_video(), decode_write_frame(), ff_load_image(), get_video_frame(), main(), movie_push_frame(), process_frame(), smvjpeg_decode_frame(), try_decode_frame(), and wrap().
Decode a subtitle message.
Return a negative value on error, otherwise return the number of bytes used. If no subtitle could be decompressed, got_sub_ptr is zero. Otherwise, the subtitle is stored in *sub. Note that CODEC_CAP_DR1 is not available for subtitle codecs. This is for simplicity, because the performance difference is expect to be negligible and reusing a get_buffer written for video codecs would probably perform badly due to a potentially very different allocation pattern.
Definition at line 2254 of file utils.c.
Referenced by subtitle_thread(), transcode_subtitles(), try_decode_frame(), and wrap().