#include "attributes.h"
Go to the source code of this file.
Defines | |
#define | DECLARE_ALIGNED(n, t, v) t v |
#define | DECLARE_ASM_CONST(n, t, v) static const t v |
#define | av_malloc_attrib |
#define | av_alloc_size(n) |
Functions | |
void * | av_malloc (unsigned int size) av_malloc_attrib av_alloc_size(1) |
Allocates a block of size bytes with alignment suitable for all memory accesses (including vectors if available on the CPU). | |
void * | av_realloc (void *ptr, unsigned int size) av_alloc_size(2) |
Allocates or reallocates a block of memory. | |
void | av_free (void *ptr) |
Frees a memory block which has been allocated with av_malloc(z)() or av_realloc(). | |
void * | av_mallocz (unsigned int size) av_malloc_attrib av_alloc_size(1) |
Allocates a block of size bytes with alignment suitable for all memory accesses (including vectors if available on the CPU) and zeroes all the bytes of the block. | |
char * | av_strdup (const char *s) av_malloc_attrib |
Duplicates the string s. | |
void | av_freep (void *ptr) |
Frees a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer pointing to it to NULL. |
Definition in file mem.h.
Definition at line 48 of file mem.h.
Referenced by ac3_downmix_sse(), bink_decode_plane(), biweight_h264_WxH_altivec(), cavs_idct8_add_mmx(), dct_quantize_TMPL(), dct_unquantize_h263_altivec(), dering_altivec(), doVertDefFilter_altivec(), doVertLowPass_altivec(), ff_check_alignment(), ff_fdct_mmx(), ff_fdct_mmx2(), ff_fdct_sse2(), ff_h264_filter_mb(), ff_h264_idct8_add_mmx(), ff_simple_idct_vis(), ff_snow_horizontal_compose97i_sse2(), ff_yuv2packedX_altivec(), ff_yuv2rgb_init_tables_altivec(), filter_mb_dir(), float_to_int16_interleave_altivec(), gmc1_altivec(), h263_h_loop_filter_mmx(), H264_CHROMA_MC8_TMPL(), h264_h_loop_filter_chroma_intra_mmx2(), h264_h_loop_filter_chroma_mmx2(), h264_h_loop_filter_luma_mmx2(), h264_idct_dc_add_internal(), h264_loop_filter_luma_mmx2(), h264_loop_filter_strength_mmx2(), hcscale_fast_TMPL(), hScale_altivec_real(), hyscale_fast_TMPL(), idct(), idct_col(), postProcess_TMPL(), PREFIX_h264_chroma_mc8_altivec(), PREFIX_no_rnd_vc1_chroma_mc8_altivec(), vertClassify_altivec(), weight_h264_WxH_altivec(), write16x4(), and yuv2yuvX_altivec_real().
void av_free | ( | void * | ptr | ) |
Frees a memory block which has been allocated with av_malloc(z)() or av_realloc().
ptr | Pointer to the memory block which should be freed. |
It is recommended that you use av_freep() instead.
Definition at line 139 of file mem.c.
Referenced by add_pes_stream(), alloc_blocks(), alloc_picture(), asf_read_close(), asf_write_trailer(), asfrtp_free_context(), asfrtp_parse_packet(), atrac3_decode_close(), atrac3_decode_init(), audio_decode_example(), audio_encode_example(), audio_read_header(), audio_resample(), audio_resample_close(), av_audio_convert_free(), av_audio_resample_init(), av_bitstream_filter_close(), av_close_input_stream(), av_destruct_packet(), av_exit(), av_fast_malloc(), av_fft_end(), av_fifo_free(), av_fifo_realloc2(), av_find_stream_info(), av_freep(), av_metadata_free(), av_metadata_set2(), av_open_input_file(), av_open_input_stream(), av_parser_close(), av_parser_init(), av_read_frame(), av_read_packet(), av_set_string3(), av_tree_destroy(), avcodec_thread_free(), avcodec_thread_init(), avfilter_default_free_video_buffer(), avfilter_destroy(), avfilter_formats_unref(), avfilter_merge_formats(), avfilter_set_common_formats(), avfilter_unref_pic(), avi_read_close(), avi_write_trailer(), avisynth_read_close(), avpicture_free(), bfi_decode_close(), cinvideo_decode_end(), close(), close_audio(), close_connection(), close_video(), concat_open(), cond_release_buffer(), cook_decode_close(), decode_end(), decode_frame(), deinterlace_bottom_field_inplace(), delete_region_display_list(), delete_state(), dirac_parse_close(), DiracFreeFrame(), dnxhd_encode_end(), do_exit(), doTest(), dump_format(), dv1394_close(), dv_init_demux(), dv_read_close(), dvbsub_close_decoder(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), ebml_free(), ebml_read_ascii(), ebml_read_binary(), encode_end(), encode_frame(), encode_picture_ls(), enu_free(), escape124_decode_close(), escape124_decode_frame(), ff_asf_parse_packet(), ff_cavs_end(), ff_ccitt_unpack(), ff_dct_end(), ff_dct_init(), ff_do_elbg(), ff_free_parser_state(), ff_gen_syncpoint_search(), ff_h264_decode_picture_parameter_set(), ff_http_auth_create_response(), ff_iir_filter_free_coeffs(), ff_iir_filter_free_state(), ff_init_elbg(), ff_isom_write_avcc(), ff_jpegls_decode_picture(), ff_metadata_demux_compat(), ff_mjpeg_decode_end(), ff_mjpeg_decode_frame(), ff_mjpeg_encode_close(), ff_mov_add_hinted_packet(), ff_mov_close_hinting(), ff_mov_init_hinting(), ff_mpegts_parse_close(), ff_new_chapter(), ff_nut_add_sp(), ff_parse1_close(), ff_parse_expr(), ff_pca_free(), ff_png_zfree(), ff_probe_input_buffer(), ff_rdt_parse_close(), ff_restore_parser_state(), ff_rewind_with_probe_data(), ff_rtsp_close_streams(), ff_store_parser_state(), ff_wma_end(), ff_wms_parse_sdp_a_line(), ff_yuv2rgb_c_init_tables(), ffm_read_header(), film_read_close(), film_read_header(), film_read_packet(), find_and_decode_index(), flashsv_decode_end(), flashsv_decode_frame(), flashsv_encode_end(), flic_read_header(), flush_packet_queue(), flv_get_extradata(), flv_write_packet(), fourxm_read_header(), free_filter_param(), free_fragment_if_needed(), free_inout(), free_packet_list(), free_subpicture(), generate_codebook(), generate_new_codebooks(), gif_write_header(), h264_free_context(), h264_mp4toannexb_filter(), http_close(), http_open(), http_parse_request(), http_receive_data(), init_coef_vlc(), init_cook_mlt(), init_pass2(), initFilter(), link_filter_inouts(), main(), make_digest_auth(), matroska_clear_queue(), matroska_decode_buffer(), matroska_deliver_packet(), matroska_fix_ass_packet(), matroska_merge_packets(), matroska_parse_block(), matroska_read_close(), matroska_read_header(), merge_ref(), mimic_decode_end(), mjpeg_decode_com(), mkv_flush_dynbuf(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_cues(), mkv_write_seekhead(), mkv_write_trailer(), mmap_close(), mmap_init(), mmap_release_buffer(), mov_read_chapters(), mov_read_cmov(), mov_read_dref(), mov_read_glbl(), mov_read_smi(), mov_read_strf(), mov_read_stsz(), mov_read_wave(), mov_write_ctts_tag(), mov_write_stts_tag(), mov_write_trailer(), mov_write_udta_tag(), mpc7_decode_frame(), mpc8_parse_seektable(), mpeg_mux_init(), mpegts_close_filter(), mpegts_open_section_filter(), mpegts_set_stream_info(), mpegts_write_end(), mpegts_write_header(), mpegts_write_packet(), new_connection(), nsv_parse_NSVf_header(), nsv_read_close(), nut_read_header(), ogg_new_buf(), ogg_read_close(), ogg_read_page(), ogg_restore(), ogg_write_trailer(), ogm_chapter(), opt_vstats_file(), output_packet(), packet_queue_get(), parse_filter(), parse_inputs(), parse_key_value_pair(), parse_outputs(), pp_free_context(), pp_free_mode(), pp_get_mode_by_name_and_quality(), pre_process_video_frame(), prepare_sdp_description(), put_packet(), qtrle_encode_end(), radix_sort(), rdt_free_context(), read_frame(), reallocAlign(), release_buffer(), rl2_decode_end(), rl2_read_header(), rm_write_audio(), roq_encode_end(), roq_encode_video(), rtmp_calc_digest(), rtmp_close(), rtmp_open(), rtp_check_and_send_back_rr(), rtp_close(), rtp_new_av_stream(), rtp_new_connection(), rtp_open(), rtp_parse_close(), rtp_parse_mp4_au(), rtp_parse_open(), rtp_send_punch_packets(), rtsp_cmd_describe(), rtsp_rtp_mux_open(), sample_queue_free(), sample_queue_pop(), SchroedingerFreeFrame(), sdp_parse_fmtp_config(), sdp_parse_fmtp_config_h264(), sdp_read_header(), sdt_cb(), seq_read_close(), smacker_decode_header_tree(), smacker_read_close(), smacker_read_header(), smka_decode_frame(), sp5x_decode_frame(), stream_close(), stream_open(), svq3_decode_init(), sws_addVec(), sws_convVec(), sws_freeContext(), sws_freeFilter(), sws_freeVec(), sws_shiftVec(), sws_subVec(), tcp_close(), tcp_write_packet(), tgv_decode_end(), tiff_unpack_strip(), tm2_build_huff_table(), tm2_free_codes(), tqi_decode_end(), truemotion1_decode_end(), try_decode_frame(), tta_decode_close(), twin_decode_close(), udp_close(), udp_open(), url_close(), url_fclose(), url_fdopen(), url_open_protocol(), url_setbufsize(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_headers(), vfw_read_close(), vfw_read_header(), vfw_read_packet(), video_decode_example(), video_encode_example(), video_thread(), videostream_cb(), vmd_read_close(), vmd_read_header(), vmdvideo_decode_end(), vorbis_free(), vorbis_parse_setup_hdr_codebooks(), vp3_decode_end(), vp56_size_changed(), vqa_decode_end(), wc3_read_close(), write_globalinfo(), write_headers(), write_streaminfo(), wsvqa_read_header(), X264_close(), xiph_free_context(), xiph_handle_packet(), xiph_parse_fmtp_pair(), xiph_parse_sdp_line(), and xvid_encode_close().
void av_freep | ( | void * | ptr | ) |
Frees a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer pointing to it to NULL.
ptr | Pointer to the pointer to the memory block which should be freed. |
Definition at line 150 of file mem.c.
Referenced by aac_decode_close(), aac_encode_close(), aac_encode_end(), ac3_decode_end(), AC3_encode_close(), adx_encode_close(), alac_decode_close(), alac_encode_close(), alloc_frame_buffer(), ape_decode_close(), ape_read_close(), asf_write_header1(), asfrtp_free_context(), asfrtp_parse_packet(), audio_resample_close(), av_bitstream_filter_close(), av_close_input_stream(), av_fifo_alloc(), av_interleave_packet_per_dts(), av_metadata_free(), av_metadata_set2(), av_open_input_file(), av_open_input_stream(), av_read_packet(), av_resample_close(), av_set_string3(), av_write_trailer(), avcodec_close(), avcodec_copy_context(), avcodec_default_free_buffers(), avcodec_default_get_buffer(), avcodec_open(), avcodec_thread_free(), avfilter_destroy(), avfilter_graph_destroy(), avi_read_header(), avi_write_trailer(), build_feed_streams(), calc_rice_params(), che_configure(), clear_programs(), close_connection(), close_decoder(), common_end(), common_init_after_header(), concat_close(), concat_open(), cond_release_buffer(), decode_close(), decode_dvd_subtitles(), decode_end(), decode_frame(), decode_init(), DiracFreeFrame(), dnxhd_encode_end(), dvbsub_parse_close(), dvdsub_parse(), dvdsub_parse_close(), ebml_free(), encode_close(), encode_end(), estimate_best_b_count(), extract_mpeg4_header(), Faac_encode_close(), ff_avc_parse_nal_units_buf(), ff_bgmc_end(), ff_dirac_schro_queue_pop(), ff_fft_end(), ff_fft_init(), ff_free_expr(), ff_h264_free_context(), ff_intrax8_common_end(), ff_ivi_free_buffers(), ff_ivi_init_tiles(), ff_lzw_decode_close(), ff_mdct_end(), ff_mjpeg_decode_end(), ff_mjpeg_decode_sof(), ff_mov_add_hinted_packet(), ff_mov_close_hinting(), ff_mov_init_hinting(), ff_parse_close(), ff_pca_free(), ff_psy_end(), ff_psy_preprocess_end(), ff_rate_control_uninit(), ff_rtmp_packet_destroy(), ff_rv34_decode_end(), ff_slice_buffer_destroy(), ff_timefilter_destroy(), ff_vaapi_common_end_frame(), ff_vorbis_comment(), ffm_close(), find_smallest_bounding_rectangle(), fixup_vorbis_headers(), flac_decode_close(), flac_encode_close(), flac_read_header(), flac_write_block_comment(), fourxm_read_close(), fourxm_read_header(), free_acl_list(), free_bundles(), free_coded_frame(), free_duplicate_context(), free_frame_buffer(), free_picture(), free_subpicture(), free_tables(), free_vlc(), FreeSchroFrame(), g726_close(), get_tag(), gif_encode_close(), gopher_close(), gxf_write_trailer(), h264_mp4toannexb_close(), h264_mp4toannexb_filter(), handle_connection(), http_connect(), http_prepare_data(), http_send_data(), iff_read_packet(), init_vlc_sparse(), initFilter(), iv_alloc_frames(), iv_free_func(), libdirac_decode_close(), libdirac_encode_close(), libdirac_encode_frame(), libgsm_close(), libschroedinger_decode_buffer_free(), libschroedinger_decode_close(), libschroedinger_encode_close(), libschroedinger_encode_frame(), main(), matroska_clear_queue(), matroska_deliver_packet(), mjpega_dump_header(), mov_read_chapters(), mov_read_close(), mov_read_ftyp(), mov_read_stsz(), mov_read_trak(), mov_write_header(), mov_write_trailer(), MP3lame_encode_close(), mp_decode_end(), MPA_encode_close(), mpc_read_close(), mpegts_close_filter(), mpegts_read_packet(), mpegts_write_end(), MPV_common_end(), MPV_encode_end(), mxf_free(), mxf_interleave_get_packet(), mxf_read_close(), mxf_write_footer(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), nsv_read_close(), nut_read_close(), ogg_write_header(), ogg_write_pages(), ogg_write_trailer(), oggvorbis_encode_close(), opt_codec(), opt_input_file(), output_packet(), packet_queue_flush(), parse_ffconfig(), parse_link_name(), parse_primary(), pcm_encode_close(), psy_3gpp_end(), put_str16(), r3d_close(), raw_close_decoder(), rdt_free_context(), rdt_parse_packet(), read_close(), remove_decoded_packets(), roq_dpcm_encode_close(), rtmp_close(), rtp_write_trailer(), sample_queue_free(), SchroedingerFreeFrame(), shorten_decode_close(), sox_read_header(), spdif_write_trailer(), stop_jack(), svq1_encode_end(), sws_allocVec(), sws_freeContext(), sws_freeVec(), tgv_decode_frame(), url_fdopen(), vc1_decode_end(), video_thread(), vorbis_encode_close(), vorbis_free(), vp56_free(), vp8_free(), write_trailer(), X264_close(), xan_decode_end(), xan_decode_init(), and xvid_encode_close().
void* av_malloc | ( | unsigned int | size | ) |
Allocates a block of size bytes with alignment suitable for all memory accesses (including vectors if available on the CPU).
size | Size in bytes for the memory block to be allocated. |
Definition at line 64 of file mem.c.
Referenced by aac_encode_init(), add_av_stream1(), add_metadata(), alloc_picture(), alloc_temp(), allocate_buffers(), apc_read_header(), ape_decode_init(), ape_read_header(), ape_tag_read_field(), asf_write_header(), asfrtp_parse_packet(), audio_resample(), av_audio_convert_alloc(), av_d2str(), av_dup_packet(), av_fast_malloc(), av_fft_init(), av_fifo_alloc(), av_find_stream_info(), av_get_token(), av_mallocz(), av_new_packet(), av_parser_change(), av_realloc(), av_set_string3(), av_strdup(), av_tempfile(), av_transcode(), avcodec_alloc_context2(), avcodec_alloc_frame(), avcodec_default_get_buffer(), avfilter_default_get_video_buffer(), avfilter_make_format_list(), avfilter_merge_formats(), avfilter_open(), avfilter_ref_pic(), avformat_alloc_context(), avi_read_header(), avi_read_tag(), avi_write_packet(), avpicture_alloc(), bfi_read_header(), build_modpred(), calc_rice_params(), common_init(), concat_open(), create_cel_evals(), create_map(), create_vorbis_context(), decode_dvd_subtitles(), decode_frame(), decode_header_trees(), decode_init(), decode_main_header(), decode_rle(), decode_slice_header(), deinterlace_bottom_field_inplace(), dnxhd_encode_init(), do_subtitle_out(), dump_extradata(), dvbsub_display_end_segment(), dvbsub_parse_clut_segment(), dvbsub_parse_init(), dvbsub_parse_region_segment(), dvdsub_parse(), ebml_read_ascii(), ebml_read_binary(), encode_frame(), encode_init(), encode_nals(), encode_picture_ls(), estimate_best_b_count(), extract_mpeg4_header(), Faac_encode_init(), ff_asf_parse_packet(), ff_bgmc_init(), ff_cavs_init_top_lines(), ff_ccitt_unpack(), ff_dct_init(), ff_do_elbg(), ff_fft_init(), ff_gen_syncpoint_search(), ff_h264_frame_start(), ff_http_auth_create_response(), ff_iir_filter_init_coeffs(), ff_init_elbg(), ff_ivi_init_planes(), ff_ivi_init_tiles(), ff_mdct_init(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sof(), ff_mjpeg_encode_init(), ff_mov_write_packet(), ff_parse_expr(), ff_png_zalloc(), ff_psy_init(), ff_rtmp_packet_create(), ff_rv34_decode_init(), ff_slice_buffer_init(), ff_store_parser_state(), ff_vorbis_comment(), ff_yuv2rgb_c_init_tables(), ffm_read_header(), FfmpegFindNextSchroParseUnit(), fft_ref_init(), film_read_header(), film_read_packet(), find_and_decode_index(), find_smallest_bounding_rectangle(), flac_encode_init(), flac_header(), flac_write_block_comment(), flashsv_decode_frame(), flic_read_header(), flv_set_video_codec(), fourxm_read_header(), generate_codebook(), generate_new_codebooks(), get_codec_data(), get_meta(), get_stats(), get_tag(), getstr8(), gif_encode_init(), gopher_open(), halfpel_interpol(), horizX1Filter(), http_open(), http_receive_data(), idcin_read_header(), iff_read_header(), imx_dump_header(), init_bundles(), init_coef_vlc(), init_cook_mlt(), init_filter_param(), init_mdct_win(), init_pass2(), init_rl(), initFilter(), iv_alloc_frames(), libdirac_decode_frame(), libdirac_encode_init(), main(), make_digest_auth(), make_format_list(), matroska_fix_ass_packet(), matroska_read_header(), mjpeg_decode_com(), mjpega_dump_header(), mmap_init(), mmap_read_frame(), mov2textsub(), mov_build_index(), mov_read_chapters(), mov_read_cmov(), mov_read_ctts(), mov_read_dref(), mov_read_ftyp(), mov_read_stco(), mov_read_stps(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_write_ctts_tag(), mov_write_stts_tag(), mp3_header_compress(), mp3_header_decompress(), mpc7_decode_frame(), mpc8_parse_seektable(), mpc_read_header(), mpegts_open_section_filter(), mpegts_push_data(), mpegts_set_stream_info(), mpegts_write_packet(), MPV_common_init(), mxf_decrypt_triplet(), mxf_read_content_storage(), mxf_read_generic_descriptor(), mxf_read_material_package(), mxf_read_primer_pack(), mxf_read_sequence(), mxf_read_source_package(), new_connection(), noise(), nsv_parse_NSVf_header(), nut_read_header(), ogg_new_buf(), ogg_new_stream(), ogg_read_page(), ogg_save(), open_audio(), open_video(), output_packet(), packet_queue_put(), parse_ffconfig(), parse_packed_headers(), pp_get_context(), pp_get_mode_by_name_and_quality(), pre_process_video_frame(), queue_frames(), r3d_read_rdvo(), radix_sort(), raw_init_decoder(), read_file(), read_frame(), read_header(), read_specific_config(), ready_codebook(), rl2_read_header(), rm_read_extradata(), rm_write_audio(), roq_encode_init(), rtp_new_connection(), rtp_parse_mp4_au(), rtp_write_header(), sample_queue_retain(), sdp_parse_fmtp_config_h264(), sdp_read_header(), seq_init_frame_buffers(), smacker_read_header(), sox_read_header(), speex_header(), start_jack(), submit_stats(), svq1_encode_frame(), svq3_decode_init(), sws_allocVec(), sws_getContext(), sws_getDefaultFilter(), tcp_open(), text2movsub(), tgv_decode_frame(), tiff_unpack_strip(), tm2_build_huff_table(), truemotion1_decode_init(), try_decode_frame(), unpack_codebook(), url_fdopen(), url_setbufsize(), vc1_decode_init(), vc1t_read_header(), vfw_read_header(), video_thread(), vmd_read_header(), vmdvideo_decode_init(), vorbis_parse_id_hdr(), vorbis_parse_setup_hdr_floors(), vp3_decode_init(), vp56_size_changed(), vp8_encode(), vp8_init(), vqa_decode_init(), wc3_read_header(), X264_init(), xan_decode_init(), xiph_parse_fmtp_pair(), xiph_parse_sdp_line(), xvid_encode_init(), and xvid_strip_vol_header().
void* av_mallocz | ( | unsigned int | size | ) |
Allocates a block of size bytes with alignment suitable for all memory accesses (including vectors if available on the CPU) and zeroes all the bytes of the block.
size | Size in bytes for the memory block to be allocated. |
Definition at line 157 of file mem.c.
Referenced by aac_adtstoasc_filter(), aac_encode_init(), ac3_decode_init(), add_av_stream1(), add_codec(), add_pes_stream(), add_to_pktbuf(), aiff_read_header(), alac_encode_init(), alloc_blocks(), alloc_frame_buffer(), alloc_temp(), asf_read_header(), asfrtp_new_context(), atrac3_decode_init(), av_alloc_put_byte(), av_audio_resample_init(), av_bitstream_filter_init(), av_fifo_alloc(), av_find_stream_info(), av_metadata_set2(), av_new_program(), av_new_stream(), av_open_input_stream(), av_parser_init(), av_resample_init(), av_set_parameters(), av_transcode(), av_write_header(), avcodec_default_get_buffer(), avcodec_open(), avcodec_thread_init(), avfilter_add_colorspace(), avfilter_default_get_video_buffer(), avfilter_link(), avfilter_make_format_list(), avfilter_merge_formats(), avfilter_open(), avi_read_header(), avi_write_header(), avisynth_read_header(), bfi_decode_init(), build_file_streams(), che_configure(), cinvideo_decode_init(), common_init(), common_init_after_header(), concat_open(), cook_decode_init(), copy_chapters(), decode_dvd_subtitles(), decode_frame(), decode_init(), decode_main_header(), decode_stream_header(), display_end_segment(), doTest(), dump_format(), dv_init_demux(), dvbsub_display_end_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), encode_init(), encode_picture_ls(), ff_cavs_init_top_lines(), ff_create_schro_frame(), ff_dirac_schro_queue_push_back(), ff_er_frame_end(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_seq_parameter_set(), ff_iir_filter_init_state(), ff_interleave_add_packet(), ff_intrax8_common_init(), ff_ivi_init_planes(), ff_ivi_init_tiles(), ff_jpegls_decode_picture(), ff_lzw_decode_open(), ff_mjpeg_decode_sof(), ff_mov_read_esds(), ff_mpegts_parse_open(), ff_new_chapter(), ff_nut_add_sp(), ff_pca_init(), ff_psy_init(), ff_psy_preprocess_init(), ff_rate_control_init(), ff_rdt_parse_open(), ff_rm_alloc_rmstream(), ff_rv34_decode_init(), ff_slice_buffer_init(), ff_timefilter_new(), ff_wms_parse_sdp_a_line(), fixup_vorbis_headers(), flac_read_header(), flashsv_encode_frame(), flashsv_encode_init(), flv_get_extradata(), gif_encode_init(), gxf_write_header(), h264_new_context(), http_prepare_data(), http_server(), libdirac_encode_frame(), libschroedinger_encode_frame(), link_filter_inouts(), main(), make_format_list(), matroska_parse_block(), matroska_read_header(), mkv_start_cues(), mkv_start_seekhead(), mkv_write_header(), mov_read_dref(), mov_read_glbl(), mov_read_smi(), mov_read_strf(), mov_read_trak(), mov_read_wave(), mov_write_header(), mp_decode_init(), mpc8_read_header(), mpc_read_header(), mpeg4video_parse_init(), mpeg_mux_init(), mpeg_mux_write_packet(), mpegts_add_service(), mpegts_open_pes_filter(), mpegts_open_section_filter(), mpegts_write_header(), mxf_read_local_tags(), mxf_write_header(), new_connection(), new_eval_expr(), nsv_parse_NSVf_header(), nsv_parse_NSVs_header(), nut_read_header(), ogg_buffer_page(), ogg_build_flac_headers(), ogg_build_speex_headers(), ogg_write_header(), ogg_write_vorbiscomment(), oggvorbis_encode_init(), oma_read_header(), opt_inter_matrix(), opt_intra_matrix(), parse_acl_row(), parse_dynamic_acl(), parse_ffconfig(), parse_inputs(), parse_primary(), prepare_sdp_description(), psy_3gpp_init(), put_main_header(), qtrle_encode_init(), rdt_new_context(), rdt_parse_b64buf(), read_ffserver_streams(), read_header(), read_kuki_chunk(), ready_codebook(), ready_residue(), reallocAlign(), rl2_decode_init(), rl2_read_header(), roq_encode_init(), rtmp_calc_digest(), rtmp_open(), rtp_new_av_stream(), rtp_new_connection(), rtp_open(), rtp_parse_open(), sdp_parse_fmtp_config(), sdp_parse_line(), smacker_decode_header_tree(), smka_decode_frame(), sp5x_decode_frame(), speex_header(), stream_open(), svq1_encode_init(), svq1_encode_plane(), theora_header(), tm2_build_huff_table(), tta_decode_init(), tta_read_header(), udp_open(), url_fdopen(), url_open_protocol(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_headers(), video_thread(), videostream_cb(), vmd_read_header(), vorbis_header(), vorbis_parse_id_hdr(), vorbis_parse_setup_hdr_codebooks(), vorbis_parse_setup_hdr_floors(), vorbis_parse_setup_hdr_mappings(), vorbis_parse_setup_hdr_modes(), vorbis_parse_setup_hdr_residues(), wmv2_encode_init(), write_header(), wsvqa_read_header(), xiph_new_context(), and yop_read_header().
void* av_realloc | ( | void * | ptr, | |
unsigned int | size | |||
) |
Allocates or reallocates a block of memory.
If ptr is NULL and size > 0, allocates a new block. If size is zero, frees the memory block pointed to by ptr.
size | Size in bytes for the memory block to be allocated or reallocated. | |
ptr | Pointer to a memory block already allocated with av_malloc(z)() or av_realloc() or NULL. |
Definition at line 119 of file mem.c.
Referenced by add_pat_entry(), alloc_and_copy(), alloc_table(), allocate_buffers(), ape_decode_frame(), asf_write_packet(), audio_resample(), av_fast_realloc(), av_metadata_set2(), av_read_packet(), avfilter_add_colorspace(), avfilter_formats_ref(), avfilter_graph_add_filter(), avfilter_insert_pad(), avi_read_header(), avi_write_packet(), codec_reinit(), concat_open(), concatenate_packet(), copy_chapters(), decode_frame(), do_audio_out(), ebml_parse_elem(), ff_dynarray_add(), ff_mov_write_packet(), ff_probe_input_buffer(), ff_program_add_stream_index(), ff_rewind_with_probe_data(), fixup_vorbis_headers(), fourxm_read_header(), get_packet(), gxf_write_map_packet(), gxf_write_packet(), h264_mp4toannexb_filter(), libdirac_encode_frame(), libschroedinger_encode_frame(), main(), matroska_decode_buffer(), matroska_deliver_packet(), matroska_merge_packets(), mkv_add_cuepoint(), mkv_add_seekhead_entry(), mov_read_extradata(), mov_read_trex(), mov_read_trun(), mxf_add_metadata_set(), mxf_write_packet(), mxf_write_partition(), new_video_stream(), nut_read_header(), ogg_new_stream(), ogg_restore(), oggvorbis_encode_init(), opt_default(), opt_metadata(), queue_frames(), rtmp_open(), rv34_decode_slice(), sample_queue_push(), smacker_read_packet(), tgv_decode_inter(), theora_header(), tm2_read_stream(), and vp56_size_changed().
char* av_strdup | ( | const char * | s | ) |
Duplicates the string s.
s | string to be duplicated |
Definition at line 165 of file mem.c.
Referenced by av_metadata_set2(), av_set_string3(), avcodec_copy_context(), avfilter_open(), ebml_parse_nest(), ff_http_auth_create_response(), ff_metadata_demux_compat(), ffm_read_header(), mpegts_add_service(), mtv_read_header(), opt_codec(), opt_metadata(), opt_video_standard(), opt_vstats_file(), parse_ffconfig(), parse_options(), sdp_parse_fmtp(), video_thread(), and x11grab_read_header().