#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.
Data Structures | |
struct | AVDictionary |
Defines | |
#define | NDEBUG |
#define | INT16_MIN (-0x7fff - 1) |
#define | INT16_MAX 0x7fff |
#define | INT32_MIN (-0x7fffffff - 1) |
#define | INT32_MAX 0x7fffffff |
#define | UINT32_MAX 0xffffffff |
#define | INT64_MIN (-0x7fffffffffffffffLL - 1) |
#define | INT64_MAX INT64_C(9223372036854775807) |
#define | UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF) |
#define | INT_BIT (CHAR_BIT * sizeof(int)) |
#define | LABEL_MANGLE(a) EXTERN_PREFIX #a |
#define | LOCAL_MANGLE(a) #a |
#define | MANGLE(a) EXTERN_PREFIX LOCAL_MANGLE(a) |
#define | av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) |
#define | MASK_ABS(mask, level) |
#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 | 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. | |
Functions | |
static av_always_inline void | emms_c (void) |
Empty mmx state. |
Definition in file internal.h.
#define av_abort | ( | ) | do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) |
Definition at line 110 of file internal.h.
Referenced by flush_packet(), iff_read_packet(), and rtp_send_samples().
#define exit exit_is_forbidden |
Definition at line 150 of file internal.h.
Referenced by add_audio_stream(), add_video_stream(), audio_decode_example(), audio_encode_example(), build_feed_streams(), do_exit(), ffmpeg_exit(), help(), main(), open_audio(), open_video(), opt_default(), opt_input_file(), opt_loglevel(), opt_sync(), parse_number_or_die(), parse_options(), parse_time_or_die(), queue_picture(), set_context_opts(), start_children(), start_multicast(), transcode(), 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 160 of file internal.h.
Referenced by allocate_buffers(), allocate_sample_buffers(), ape_decode_init(), ff_iir_filter_init_coeffs(), initFilter(), 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 169 of file internal.h.
Referenced by allocate_buffers(), allocate_sample_buffers(), context_init(), dnxhd_encode_init(), dnxhd_init_qmat(), dnxhd_init_rc(), dnxhd_init_vlc(), ff_ac3_encode_init(), ff_alloc_picture(), ff_h264_alloc_tables(), ff_iir_filter_init_coeffs(), init_duplicate_context(), initFilter(), MPV_common_init(), and sws_init_context().
#define fprintf please_use_av_log_instead_of_fprintf |
Definition at line 154 of file internal.h.
Referenced by add_audio_stream(), add_video_stream(), alloc_picture(), audio_decode_example(), audio_decode_frame(), audio_encode_example(), av_log_default_callback(), do_audio_out(), do_subtitle_out(), do_video_out(), do_video_stats(), doTest(), event_loop(), ffmpeg_exit(), ffserver_opt_preset(), fileTest(), find_codec_or_die(), grow_array(), handle_child_exit(), http_vlog(), main(), new_audio_stream(), new_data_stream(), new_output_stream(), new_subtitle_stream(), new_video_stream(), open_audio(), open_input_file(), open_video(), opt_bitrate(), opt_bsf(), opt_default(), opt_default2(), opt_format(), opt_frame_aspect_ratio(), opt_frame_crop(), opt_frame_pix_fmt(), opt_frame_rate(), opt_frame_size(), opt_input_file(), opt_loglevel(), opt_map_meta_data(), opt_metadata(), opt_new_stream(), opt_output_file(), opt_pad(), opt_preset(), opt_qscale(), opt_streamid(), opt_sync(), opt_target(), opt_thread_count(), opt_timelimit(), output_packet(), parse_acl_row(), parse_matrix_coeffs(), parse_meta_type(), parse_number_or_die(), parse_options(), parse_time_or_die(), pgm_save(), pgmyuv_save(), pre_process_video_frame(), print_digraph(), print_error(), print_report(), probe(), put_image(), queue_picture(), read_file(), read_thread(), report_config_error(), set_context_opts(), show_banner(), stream_component_open(), transcode(), usage(), video_decode_example(), video_encode_example(), video_open(), write_audio_frame(), write_frame(), and write_video_frame().
#define free please_use_av_free |
Definition at line 132 of file internal.h.
#define INT16_MAX 0x7fff |
Definition at line 61 of file internal.h.
#define INT16_MIN (-0x7fff - 1) |
Definition at line 57 of file internal.h.
#define INT32_MAX 0x7fffffff |
Definition at line 69 of file internal.h.
Referenced by av_resample_init(), mov_write_edts_tag(), mov_write_mdhd_tag(), mov_write_tkhd_tag(), read_pakt_chunk(), read_specific_config(), and write_subframes().
#define INT32_MIN (-0x7fffffff - 1) |
Definition at line 65 of file internal.h.
#define INT64_MAX INT64_C(9223372036854775807) |
Definition at line 81 of file internal.h.
Referenced by av_gen_search(), av_update_stream_timings(), avi_read_header(), avi_read_packet(), compute_chapters_end(), copy_chapters(), estimate_best_b_count(), ff_fetch_timestamp(), ff_gen_syncpoint_search(), find_frame_rate_index(), get_subtitle_pkt(), guess_ni_flag(), main(), mov_find_next_sample(), mov_read_default(), mov_read_header(), mov_read_packet(), movie_init(), output_packet(), parse_options(), print_report(), read_fps(), read_seek2(), read_thread(), rl2_read_packet(), search_hi_lo_keyframes(), seek_subtitle(), transcode(), write_packet(), and xwma_read_header().
#define INT64_MIN (-0x7fffffffffffffffLL - 1) |
Definition at line 77 of file internal.h.
Referenced by av_parse_time(), av_rescale_rnd(), av_update_stream_timings(), avcodec_open2(), main(), parse_options(), read_thread(), and seek_subtitle().
#define INT_BIT (CHAR_BIT * sizeof(int)) |
Definition at line 89 of file internal.h.
Referenced by decode_cabac_mb_mvd(), ff_h263_encode_motion(), h263_decode_motion(), h263_get_motion_length(), inter_predict(), and mpeg_decode_motion().
#define LABEL_MANGLE | ( | a | ) | EXTERN_PREFIX #a |
Definition at line 97 of file internal.h.
#define LOCAL_MANGLE | ( | a | ) | #a |
Definition at line 103 of file internal.h.
#define malloc please_use_av_malloc |
Definition at line 130 of file internal.h.
Referenced by alloc_buffer(), analyze(), audio_decode_example(), audio_encode_example(), av_malloc(), config(), deNoise(), do_plane(), init(), init_pullup(), main(), new_mp_image(), open(), pgmyuv_save(), put_image(), safe_malloc(), vf_open(), and video_encode_example().
#define MANGLE | ( | a | ) | EXTERN_PREFIX LOCAL_MANGLE(a) |
Definition at line 106 of file internal.h.
Referenced by BEToUV_TMPL(), bgr24ToUV_mmx_TMPL(), bgr24ToY_mmx_TMPL(), column_fidct_mmx(), dering_TMPL(), do_a_deblock_TMPL(), doVertDefFilter_TMPL(), ff_idct_xvid_sse2(), ff_imdct_calc_sse(), ff_put_signed_pixels_clamped_mmx(), lpc_apply_welch_window_sse2(), lpc_compute_autocorr_sse2(), rgb24tobgr24_TMPL(), rgb24toyv12_TMPL(), row_fdct_mmx(), row_idct_mmx(), sad8_4_mmx(), sad8_4_mmx2(), tempNoiseReducer_TMPL(), uyvyToUV_TMPL(), vc1_put_ver_16b_shift2_mmx(), vertX1Filter_TMPL(), and yuy2ToUV_TMPL().
Value:
Definition at line 123 of file internal.h.
Referenced by dnxhd_init_vlc(), and mpeg1_encode_block().
#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 188 of file internal.h.
Referenced by decode_frame().
#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 Returns NULL if a threading library has not been enabled. Used to disable threading functions in AVCodec definitions when not needed. |
Definition at line 227 of file internal.h.
#define perror please_use_av_log_instead_of_perror |
Definition at line 158 of file internal.h.
Referenced by audio_open(), do_video_stats(), doTest(), init_demo(), main(), opt_timelimit(), parse_dynamic_acl(), parse_ffconfig(), and socket_open_listen().
#define printf please_use_av_log_instead_of_printf |
Definition at line 152 of file internal.h.
Referenced by audio_decode_example(), audio_decode_frame(), audio_encode_example(), av_estimate_timings(), compute_scale_factors(), dct_error(), dct_quantize_refine(), do_audio_out(), do_exit(), doTest(), extract_mpeg4_header(), ff_combine_frame(), fileTest(), flush_packet(), grab_read_header(), help(), idct248_error(), main(), mpegvideo_parse(), opt_audio_sample_fmt(), opt_bsfs(), opt_codecs(), opt_filters(), opt_formats(), opt_help(), opt_license(), opt_pix_fmts(), opt_protocols(), opt_version(), print_aff_and_breaks(), print_sdp(), printval(), pullup_get_frame(), qpel_motion_search(), queue_picture(), rm_read_header(), selfTest(), show_format(), show_help_options(), show_packet(), show_stream(), show_usage(), synchronize_audio(), test_motion(), usage(), vf_open(), video_decode_example(), video_encode_example(), video_refresh(), WRITE_1D_FUNC_ARGV(), write_fileheader(), write_float_3d_array(), and write_float_4d_array().
#define puts please_use_av_log_instead_of_puts |
Definition at line 156 of file internal.h.
#define rand rand_is_forbidden_due_to_state_trashing_use_av_lfg_get |
Definition at line 138 of file internal.h.
Referenced by av_resample(), initNoise(), main(), and noise().
#define random random_is_forbidden_due_to_state_trashing_use_av_lfg_get |
#define realloc please_use_av_realloc |
Definition at line 134 of file internal.h.
Referenced by analyze(), av_realloc(), config(), and put_image().
#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf |
Definition at line 144 of file internal.h.
#define srand srand_is_forbidden_due_to_state_trashing_use_av_lfg_init |
#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 time time_is_forbidden_due_to_security_issues |
Definition at line 136 of file internal.h.
Referenced by av_parse_time(), avi_metadata_creation_time(), compute_status(), ctime1(), draw_text(), ff_h263_decode_frame(), handle_child_exit(), load_input_picture(), mov_read_elst(), mpeg4_encode_gop_header(), mxf_parse_timestamp(), opt_vstats(), rtsp_reply_header(), start_children(), and video_refresh().
#define UINT32_MAX 0xffffffff |
Definition at line 73 of file internal.h.
Referenced by adpcm_decode_frame(), calc_rice_params(), encode_residual_ch(), main(), mov_write_mvhd_tag(), mov_write_stco_tag(), mov_write_trailer(), and start_frame().
#define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF) |
Definition at line 85 of file internal.h.
static av_always_inline void emms_c | ( | void | ) | [static] |
Empty mmx state.
this must be called between any dsp function and float/double code. for example sin(); dsp->idct_put(); emms_c(); cos()
Definition at line 236 of file internal.h.
Referenced by ape_decode_frame(), avcodec_decode_video2(), avcodec_encode_video(), avpicture_deinterlace(), build_basis(), decode_chunks(), decode_frame(), decode_slice(), encode_picture(), encode_picture_lossless(), encode_picture_ls(), encode_thread(), ff_draw_horiz_band(), ff_faandct(), ff_faandct248(), ff_faanidct(), ff_faanidct_add(), ff_faanidct_put(), ff_mjpeg_decode_sos(), ff_rate_control_init(), ff_rate_control_uninit(), ff_rate_estimate_qscale(), initFilter(), MPV_frame_end(), process_exponents(), select_input_picture(), slice_decode_thread(), sws_init_context(), swScale(), swScale_c(), test_motion(), and vp3_draw_horiz_band().