#include <limits.h>
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include "config.h"
#include "attributes.h"
#include "timer.h"
#include "cpu.h"
#include "dict.h"
#include "libm.h"
Go to the source code of this file.
Defines | |
#define | NDEBUG |
#define | INT_BIT (CHAR_BIT * sizeof(int)) |
#define | malloc please_use_av_malloc |
#define | free please_use_av_free |
#define | realloc please_use_av_realloc |
#define | time time_is_forbidden_due_to_security_issues |
#define | rand rand_is_forbidden_due_to_state_trashing_use_av_lfg_get |
#define | srand srand_is_forbidden_due_to_state_trashing_use_av_lfg_init |
#define | random random_is_forbidden_due_to_state_trashing_use_av_lfg_get |
#define | sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf |
#define | strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat |
#define | strncpy strncpy_is_forbidden_due_to_security_issues_use_av_strlcpy |
#define | exit exit_is_forbidden |
#define | printf please_use_av_log_instead_of_printf |
#define | fprintf please_use_av_log_instead_of_fprintf |
#define | puts please_use_av_log_instead_of_puts |
#define | perror please_use_av_log_instead_of_perror |
#define | strcasecmp please_use_av_strcasecmp |
#define | strncasecmp please_use_av_strncasecmp |
#define | FF_ALLOC_OR_GOTO(ctx, p, size, label) |
#define | FF_ALLOCZ_OR_GOTO(ctx, p, size, label) |
#define | NULL_IF_CONFIG_SMALL(x) x |
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. | |
#define | ONLY_IF_THREADS_ENABLED(x) NULL |
Define a function with only the non-default version specified. | |
#define | emms_c() |
Definition in file internal.h.
#define emms_c | ( | ) |
Definition at line 176 of file internal.h.
Referenced by ape_decode_frame(), avcodec_decode_video2(), avcodec_encode_video2(), avpicture_deinterlace(), build_basis(), dct_error(), decode_chunks(), decode_frame(), dvvideo_decode_frame(), encode_frame(), encode_picture(), encode_picture_lossless(), encode_picture_ls(), encode_thread(), ff_ac3_process_exponents(), ff_draw_horiz_band(), ff_faandct(), ff_faandct248(), ff_faanidct(), ff_faanidct_add(), ff_faanidct_put(), ff_mjpeg_decode_sos(), ff_MPV_frame_end(), ff_rate_control_init(), ff_rate_control_uninit(), ff_rate_estimate_qscale(), filter(), find_block_motion(), idct248_error(), initFilter(), select_input_picture(), slice_decode_thread(), swri_multiple_resample(), sws_init_context(), swScale(), test_motion(), and vp3_draw_horiz_band().
#define exit exit_is_forbidden |
Definition at line 77 of file internal.h.
Referenced by add_audio_stream(), add_video_stream(), audio_decode_example(), audio_encode_example(), build_feed_streams(), do_exit(), exit_program(), iec61883_callback(), main(), open_audio(), open_video(), opt_input_file(), opt_sync(), print_usage(), queue_picture(), sigterm_handler(), start_children(), start_multicast(), transcode_init(), video_decode_example(), video_encode_example(), write_audio_frame(), and write_video_frame().
#define FF_ALLOC_OR_GOTO | ( | ctx, | |||
p, | |||||
size, | |||||
label | ) |
Value:
{\ p = av_malloc(size);\ if (p == NULL && (size) != 0) {\ av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\ goto label;\ }\ }
Definition at line 91 of file internal.h.
Referenced by adpcm_encode_init(), allocate_buffers(), allocate_sample_buffers(), ape_decode_init(), ff_iir_filter_init_coeffs(), ff_snow_common_init_after_header(), init_context_frame(), init_mdct_win(), initFilter(), mca(), and sws_init_context().
#define FF_ALLOCZ_OR_GOTO | ( | ctx, | |||
p, | |||||
size, | |||||
label | ) |
Value:
{\ p = av_mallocz(size);\ if (p == NULL && (size) != 0) {\ av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\ goto label;\ }\ }
Definition at line 100 of file internal.h.
Referenced by alloc_buffers(), allocate_buffers(), allocate_sample_buffers(), context_init(), dnxhd_encode_init(), dnxhd_init_qmat(), dnxhd_init_rc(), dnxhd_init_vlc(), ff_alloc_picture(), ff_h264_alloc_tables(), ff_iir_filter_init_coeffs(), ff_MPV_common_init(), ff_snow_common_init_after_header(), init_context_frame(), init_duplicate_context(), initFilter(), mca(), and sws_init_context().
#define fprintf please_use_av_log_instead_of_fprintf |
Definition at line 81 of file internal.h.
Referenced by add_audio_stream(), add_video_stream(), alloc_picture(), assert_file_overwrite(), audio_decode_example(), audio_decode_frame(), audio_encode_example(), audio_open(), av_log_default_callback(), check_keyboard_interaction(), decode_packet(), do_video_out(), do_video_stats(), doTest(), dump_argument(), event_loop(), ffserver_opt_preset(), fileTest(), flush_encoders(), get_format_from_sample_fmt(), getopt(), handle_child_exit(), handle_file(), http_vlog(), main(), open_audio(), open_codec_context(), open_video(), opt_format(), opt_input_file(), opt_sync(), output_client_manifest(), output_server_manifest(), parse_acl_row(), parse_loglevel(), pgm_save(), pgmyuv_save(), print_digraph(), print_usage(), probe(), put_image(), queue_picture(), read_mfra(), read_thread(), report_config_error(), usage(), video_decode_example(), video_encode_example(), video_open(), write_audio_frame(), and write_video_frame().
#define free please_use_av_free |
Definition at line 59 of file internal.h.
#define INT_BIT (CHAR_BIT * sizeof(int)) |
Definition at line 52 of file internal.h.
Referenced by decode_cabac_mb_mvd(), h263_get_motion_length(), and inter_predict().
#define malloc please_use_av_malloc |
Definition at line 57 of file internal.h.
Referenced by alloc_buffer(), analyze(), av_malloc(), config(), deNoise(), do_plane(), init(), init_pullup(), main(), new_mp_image(), open(), pgmyuv_save(), put_image(), and vf_open().
#define NDEBUG |
Definition at line 30 of file internal.h.
#define NULL_IF_CONFIG_SMALL | ( | x | ) | x |
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Used to disable the definition of strings (for example AVCodec long_names).
Definition at line 119 of file internal.h.
Referenced by mpeg12_class().
#define ONLY_IF_THREADS_ENABLED | ( | x | ) | NULL |
Define a function with only the non-default version specified.
On systems with ELF shared libraries, all symbols exported from FFmpeg libraries are tagged with the name and major version of the library to which they belong. If a function is moved from one library to another, a wrapper must be retained in the original location to preserve binary compatibility.
Functions defined with this macro will never be used to resolve symbols by the build-time linker.
type | return type of function | |
name | name of function | |
args | argument list of function | |
ver | version tag to assign function Return NULL if a threading library has not been enabled. Used to disable threading functions in AVCodec definitions when not needed. |
Definition at line 158 of file internal.h.
#define perror please_use_av_log_instead_of_perror |
Definition at line 85 of file internal.h.
Referenced by do_video_stats(), doTest(), init_demo(), main(), opt_timelimit(), output_client_manifest(), output_server_manifest(), parse_dynamic_acl(), parse_ffconfig(), and socket_open_listen().
#define printf please_use_av_log_instead_of_printf |
Definition at line 79 of file internal.h.
Referenced by audio_decode_example(), audio_decode_frame(), audio_encode_example(), compact_print_int(), compact_print_section_footer(), compact_print_section_header(), compact_print_str(), dct_error(), dct_quantize_refine(), decode_packet(), default_print_int(), default_print_section_footer(), default_print_section_header(), default_print_str(), do_exit(), doTest(), extract_mpeg4_header(), fileTest(), flat_print_int(), flat_print_key_prefix(), flat_print_str(), help(), idct248_error(), ini_print_int(), ini_print_section_header(), ini_print_str(), json_print_int(), json_print_item_str(), json_print_section_footer(), json_print_section_header(), json_print_str(), main(), print_aff_and_breaks(), print_codec(), print_codecs(), print_codecs_for_id(), print_option(), print_pix_fmt_fourccs(), print_sdp(), printval(), pullup_get_frame(), queue_picture(), run_psnr(), selfTest(), show_bsfs(), show_codec_opts(), show_codecs(), show_filters(), show_format_opts(), show_formats(), show_help_children(), show_help_default(), show_help_demuxer(), show_help_muxer(), show_help_options(), show_layouts(), show_license(), show_opts(), show_pix_fmts(), show_protocols(), show_sample_fmts(), test_motion(), update_benchmark(), usage(), vf_open(), video_decode_example(), video_encode_example(), video_refresh(), WRITE_1D_FUNC_ARGV(), write_fileheader(), write_float_3d_array(), write_float_4d_array(), xml_print_int(), xml_print_section_footer(), xml_print_section_header(), and xml_print_str().
#define puts please_use_av_log_instead_of_puts |
#define rand rand_is_forbidden_due_to_state_trashing_use_av_lfg_get |
Definition at line 65 of file internal.h.
Referenced by av_resample(), initNoise(), main(), noise(), and swri_resample_TMPL().
#define random random_is_forbidden_due_to_state_trashing_use_av_lfg_get |
Definition at line 69 of file internal.h.
#define realloc please_use_av_realloc |
#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf |
Definition at line 71 of file internal.h.
#define srand srand_is_forbidden_due_to_state_trashing_use_av_lfg_init |
#define strcasecmp please_use_av_strcasecmp |
Definition at line 87 of file internal.h.
#define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat |
#define strncasecmp please_use_av_strncasecmp |
Definition at line 89 of file internal.h.
#define strncpy strncpy_is_forbidden_due_to_security_issues_use_av_strlcpy |
#define time time_is_forbidden_due_to_security_issues |
Definition at line 63 of file internal.h.
Referenced by av_parse_time(), avi_metadata_creation_time(), check_keyboard_interaction(), compute_status(), ctime1(), draw_text(), expand_timestamps(), ff_h263_decode_frame(), handle_child_exit(), insert_datetime(), load_input_picture(), main(), mov_read_elst(), mpeg4_encode_gop_header(), mxf_parse_timestamp(), opt_report(), opt_vstats(), rtsp_reply_header(), start_children(), update_video_pts(), and video_refresh().