common internal API header More...
#include <limits.h>
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include "config.h"
#include "common.h"
#include "mem.h"
#include "timer.h"
Go to the source code of this file.
Defines | |
#define | LOCAL_MANGLE(a) #a |
#define | MANGLE(a) EXTERN_PREFIX LOCAL_MANGLE(a) |
#define | dprintf(pctx,...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) |
#define | av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) |
#define | FASTDIV(a, b) ((a)/(b)) |
#define | MASK_ABS(mask, level) |
#define | COPY3_IF_LT(x, y, a, b, c, d) |
#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_random |
#define | srand srand_is_forbidden_due_to_state_trashing_use_av_random_init |
#define | random random_is_forbidden_due_to_state_trashing_use_av_random |
#define | sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf |
#define | strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat |
#define | exit exit_is_forbidden |
#define | CHECKED_ALLOCZ(p, size) |
#define | DECLARE_ALIGNED(n, t, v) t v |
#define | DECLARE_ASM_CONST(n, t, v) static const t v |
#define | NULL_IF_CONFIG_SMALL(x) x |
Returns NULL if CONFIG_SMALL is true, otherwise the argument without modification. | |
Functions | |
static av_const unsigned int | ff_sqrt (unsigned int a) |
static av_always_inline av_const long long | llrint (double x) |
static av_always_inline av_const long int | lrint (double x) |
static av_always_inline av_const long int | lrintf (float x) |
static av_always_inline av_const double | round (double x) |
static av_always_inline av_const float | roundf (float x) |
static av_always_inline av_const float | truncf (float x) |
Variables | |
const uint32_t | ff_inverse [256] |
const uint8_t | ff_sqrt_tab [256] |
common internal API header
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 120 of file internal.h.
Referenced by ff_rtp_send_aac(), flush_packet(), h_resample_fast(), and rtp_send_samples().
#define CHECKED_ALLOCZ | ( | p, | |||
size | ) |
{\ p= av_mallocz(size);\ if(p==NULL && (size)!=0){\ av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory.");\ goto fail;\ }\ }
Definition at line 249 of file internal.h.
Referenced by alloc_picture(), alloc_tables(), context_init(), dnxhd_encode_init(), dnxhd_init_qmat(), dnxhd_init_rc(), dnxhd_init_vlc(), init_duplicate_context(), and MPV_common_init().
#define COPY3_IF_LT | ( | x, | |||
y, | |||||
a, | |||||
b, | |||||
c, | |||||
d | ) |
if((y)<(x)){\
(x)=(y);\
(a)=(b);\
(c)=(d);\
}
Definition at line 209 of file internal.h.
Definition at line 270 of file internal.h.
Referenced by dering_altivec(), doVertDefFilter_altivec(), doVertLowPass_altivec(), float_to_int16_interleave_altivec(), h263_h_loop_filter_mmx(), idct(), postProcess_SSE2(), and vertClassify_altivec().
Definition at line 271 of file internal.h.
#define dprintf | ( | pctx, | |||
... | ) | av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) |
Definition at line 115 of file internal.h.
Referenced by asf_read_header(), decode_init(), dnxhd_decode_frame(), dnxhd_decode_header(), ff_asf_get_packet(), ff_mpeg1_decode_block_intra(), ff_mpegaudio_decode_header(), ff_rtp_send_data(), ff_wma_init(), ffm_read_packet(), flv_read_packet(), gif_parse_next_image(), gif_read_extension(), gif_read_header1(), gif_read_image(), h263_decode_picture_header(), huffman_decode(), mov_build_index(), mov_read_ctts(), mov_read_default(), mov_read_dref(), mov_read_elst(), mov_read_enda(), mov_read_esds(), mov_read_hdlr(), mov_read_header(), mov_read_moof(), mov_read_mvhd(), mov_read_packet(), mov_read_smi(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tfhd(), mov_read_trak(), mov_read_trkn(), mov_read_trun(), mov_read_udta_string(), mov_seek_stream(), mp4_read_descr(), mp_decode_frame(), mp_decode_layer2(), mp_decode_layer3(), mpeg1_decode_sequence(), mpeg1_encode_block(), mpeg2_decode_block_intra(), mpeg_decode_frame(), mpeg_decode_mb(), mpeg_decode_picture_coding_extension(), mpeg_decode_quant_matrix_extension(), mpeg_decode_sequence_extension(), mpegaudio_parse(), mxf_parse_structural_metadata(), mxf_read_header(), mxf_read_index_table_segment(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_pixel_layout(), print_guid(), r3d_read_header(), r3d_read_rdvo(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), r3d_read_reos(), r3d_seek(), read_access_unit(), read_atom(), read_decoding_params(), read_restart_header(), rtcp_send_sr(), rtp_check_and_send_back_rr(), and rtp_write_packet().
#define exit exit_is_forbidden |
Definition at line 237 of file internal.h.
Referenced by add_audio_stream(), add_video_stream(), audio_decode_example(), audio_encode_example(), av_exit(), build_feed_streams(), do_exit(), help(), init_demo(), main(), open_audio(), open_video(), opt_default(), opt_format(), opt_frame_size(), opt_sync(), parse_number_or_die(), parse_options(), parse_time_or_die(), queue_picture(), start_children(), start_multicast(), video_decode_example(), video_encode_example(), write_audio_frame(), and write_video_frame().
#define FASTDIV | ( | a, | |||
b | ) | ((a)/(b)) |
Definition at line 159 of file internal.h.
Referenced by ff_mpeg4_pred_dc(), ff_sqrt(), find_optimal_param(), get_dc(), mpeg4_decode_block(), msmpeg4_pred_dc(), and vorbis_residue_decode_internal().
#define free please_use_av_free |
Definition at line 221 of file internal.h.
#define LOCAL_MANGLE | ( | a | ) | #a |
Definition at line 106 of file internal.h.
#define malloc please_use_av_malloc |
Definition at line 219 of file internal.h.
Referenced by audio_decode_example(), audio_encode_example(), av_malloc(), doTest(), main(), pgmyuv_save(), and video_encode_example().
#define MANGLE | ( | a | ) | EXTERN_PREFIX LOCAL_MANGLE(a) |
Definition at line 109 of file internal.h.
Referenced by apply_welch_window_sse2(), dering_SSE2(), doVertDefFilter_SSE2(), ff_flac_compute_autocorr_sse2(), ff_idct_xvid_sse2(), ff_vp6_filter_diag4_mmx(), get_cabac_inline(), H264_CHROMA_MC4_TMPL(), rgb24tobgr24_SSE2(), rgb24toyv12_SSE2(), sad8_4_mmx(), sad8_4_mmx2(), tempNoiseReducer_SSE2(), vc1_put_hor_16b_shift2_mmx(), vc1_put_shift2_mmx(), vc1_put_ver_16b_shift2_mmx(), vertX1Filter_SSE2(), and yuv420_rgb16_SSE2().
Definition at line 193 of file internal.h.
Referenced by dnxhd_init_vlc(), and mpeg1_encode_block().
#define NULL_IF_CONFIG_SMALL | ( | x | ) | x |
Returns 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 325 of file internal.h.
#define rand rand_is_forbidden_due_to_state_trashing_use_av_random |
Definition at line 227 of file internal.h.
Referenced by av_resample().
#define random random_is_forbidden_due_to_state_trashing_use_av_random |
Definition at line 231 of file internal.h.
Referenced by dct_error(), fill_random(), frandom(), idct248_error(), and main().
#define realloc please_use_av_realloc |
Definition at line 223 of file internal.h.
Referenced by av_realloc().
#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf |
Definition at line 233 of file internal.h.
#define srand srand_is_forbidden_due_to_state_trashing_use_av_random_init |
Definition at line 229 of file internal.h.
#define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat |
Definition at line 235 of file internal.h.
Referenced by main().
#define time time_is_forbidden_due_to_security_issues |
Definition at line 225 of file internal.h.
Referenced by compute_status(), ctime1(), ff_h263_decode_frame(), handle_child_exit(), load_input_picture(), main(), mov_read_elst(), mxf_parse_timestamp(), opt_vstats(), parse_date(), Process(), rtsp_reply_header(), and start_children().
static av_const unsigned int ff_sqrt | ( | unsigned int | a | ) | [inline, static] |
Definition at line 164 of file internal.h.
Referenced by draw_arrow(), encode_q_branch(), ff_estimate_p_frame_motion(), get_visual_weight(), roq_dpcm_table_init(), and t_sqrt().
static av_always_inline av_const long long llrint | ( | double | x | ) | [static] |
Definition at line 276 of file internal.h.
Referenced by av_set_number2(), and decode_init().
static av_always_inline av_const long int lrint | ( | double | x | ) | [static] |
Definition at line 283 of file internal.h.
Referenced by av_audio_convert(), and encode_block().
static av_always_inline av_const long int lrintf | ( | float | x | ) | [static] |
Definition at line 290 of file internal.h.
Referenced by av_audio_convert(), av_build_filter(), av_find_stream_info(), av_resample(), avi_write_header(), build_basis(), do_audio_out(), do_video_out(), ff_faandct(), ff_faandct248(), ff_iir_filter(), ff_xvid_rate_control_init(), init_qexp(), MPV_encode_picture(), p8idct(), print_fps(), print_report(), quantize_lpc_coefs(), saturate_output_float(), and wma_decode_frame().
static av_always_inline av_const double round | ( | double | x | ) | [static] |
Definition at line 297 of file internal.h.
static av_always_inline av_const float roundf | ( | float | x | ) | [static] |
Definition at line 304 of file internal.h.
Referenced by flt16_round(), and xvid_correct_framerate().
static av_always_inline av_const float truncf | ( | float | x | ) | [static] |
Definition at line 311 of file internal.h.
Referenced by flt16_trunc().
const uint32_t ff_inverse[256] |
Definition at line 114 of file dsputil.c.
Referenced by dct_quantize_SSE2(), msmpeg4_pred_dc(), and vorbis_residue_decode_internal().
const uint8_t ff_sqrt_tab[256] |
Definition at line 31 of file mathematics.c.