#include <limits.h>
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include "config.h"
#include "attributes.h"
#include "timer.h"
#include "libm.h"
Go to the source code of this file.
Defines | |
| #define | NDEBUG |
| #define | attribute_align_arg |
| #define | INT16_MIN (-0x7fff - 1) |
| Mark a variable as used and prevent the compiler from optimizing it away. | |
| #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 | offsetof(T, F) ((unsigned int)((char *)&((T *)0)->F)) |
| #define | LABEL_MANGLE(a) EXTERN_PREFIX #a |
| #define | LOCAL_MANGLE(a) #a |
| #define | MANGLE(a) EXTERN_PREFIX LOCAL_MANGLE(a) |
| #define | dprintf(pctx,...) |
| #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 | 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. | |
Definition in file internal.h.
| #define attribute_align_arg |
Definition at line 45 of file internal.h.
| #define av_abort | ( | ) | do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) |
| #define dprintf | ( | pctx, | |||
| ... | ) |
Definition at line 121 of file internal.h.
Referenced by asf_read_header(), avfilter_draw_slice(), avfilter_get_video_buffer(), avfilter_start_frame(), avi_read_header(), decode(), decode_coeffs(), decode_dvd_subtitles(), decode_frame(), decode_init(), decode_packet(), decode_rle(), decode_slice(), decode_subframe(), decode_tilehdr(), dnxhd_decode_frame(), dnxhd_decode_header(), dprint_specific_config(), dvbsub_decode(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvdsub_decode(), end_frame(), ff_asf_get_packet(), ff_dprintf_link(), ff_dprintf_ref(), ff_mov_read_stsd_entries(), ff_mp4_read_dec_config_descr(), ff_mp4_read_descr(), ff_mpegaudio_decode_header(), ff_parse_mpeg2_descriptor(), ff_rtp_send_data(), ff_rtsp_read_reply(), ff_rtsp_send_cmd_with_content_async(), ff_rtsp_skip_packet(), ff_rtsp_tcp_read_packet(), ff_vaapi_common_end_frame(), ff_wma_init(), ffm_read_packet(), find_marker(), flv_read_packet(), get_http_header_data(), get_tcp_server_response(), gif_parse_next_image(), gif_read_extension(), gif_read_header1(), gif_read_image(), h261_decode_frame(), h263_decode_picture_header(), h263p_decode_umotion(), handle_packet_stream_changing_type(), http_connect(), http_read(), huffman_decode(), mms_open(), mms_read(), mms_safe_send_recv(), mmsh_open(), mov_build_index(), mov_find_next_sample(), mov_read_ctts(), mov_read_default(), mov_read_dref(), mov_read_elst(), mov_read_enda(), mov_read_hdlr(), mov_read_header(), mov_read_moof(), mov_read_mvhd(), mov_read_packet(), mov_read_smi(), mov_read_stsc(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tfhd(), mov_read_trak(), mov_read_trun(), mov_seek_stream(), mp4_read_iods(), mp_decode_frame(), mp_decode_layer2(), mp_decode_layer3(), MPA_encode_init(), mpeg1_decode_block_intra(), 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(), mpegts_open_section_filter(), mpegts_push_data(), mpegts_read_header(), mxf_parse_structural_metadata(), mxf_read_header(), mxf_read_index_table_segment(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_pixel_layout(), parse_palette_segment(), parse_presentation_segment(), pat_cb(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pmt_cb(), process_line(), r3d_read_header(), r3d_read_rdvo(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), r3d_read_reos(), r3d_seek(), read_atom(), read_data_packet(), rtcp_send_sr(), rtp_check_and_send_back_rr(), rtp_write_packet(), rv10_decode_frame(), rv10_decode_packet(), rv10_decode_picture_header(), sdt_cb(), start_frame(), vaapi_mpeg2_decode_slice(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_decode_slice(), vaapi_mpeg4_start_frame(), vaapi_vc1_decode_slice(), and vaapi_vc1_start_frame().
| #define exit exit_is_forbidden |
Definition at line 162 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(), init_demo(), main(), open_audio(), open_video(), opt_default(), opt_format(), opt_frame_size(), opt_input_file(), opt_loglevel(), opt_sync(), parse_number_or_die(), parse_options(), parse_time_or_die(), queue_picture(), 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 174 of file internal.h.
Referenced by adpcm_encode_init(), allocate_buffers(), fft_init(), initFilter(), mdct_init(), 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 183 of file internal.h.
Referenced by allocate_buffers(), context_init(), dnxhd_encode_init(), dnxhd_init_qmat(), dnxhd_init_rc(), dnxhd_init_vlc(), ff_alloc_picture(), ff_h264_alloc_tables(), init_duplicate_context(), initFilter(), MPV_common_init(), and sws_init_context().
| #define fprintf please_use_av_log_instead_of_fprintf |
Definition at line 167 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(), decode_thread(), do_audio_out(), do_subtitle_out(), do_video_out(), do_video_stats(), doTest(), event_loop(), ff_h263_decode_frame(), ffmpeg_exit(), ffserver_opt_preset(), fileTest(), find_codec_or_die(), grow_array(), handle_child_exit(), http_vlog(), list_fmts(), load_module(), main(), new_audio_stream(), new_output_stream(), new_subtitle_stream(), new_video_stream(), open_audio(), open_input_file(), open_video(), opt_bitrate(), opt_bsf(), opt_default(), 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_metadata(), opt_new_stream(), opt_output_file(), opt_pad(), opt_pass(), 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(), queue_picture(), read_file(), report_config_error(), 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 146 of file internal.h.
| #define INT16_MAX 0x7fff |
Definition at line 68 of file internal.h.
| #define INT16_MIN (-0x7fff - 1) |
Mark a variable as used and prevent the compiler from optimizing it away.
This is useful for asm that accesses varibles in ways that the compiler does not understand
Definition at line 64 of file internal.h.
| #define INT32_MAX 0x7fffffff |
Definition at line 76 of file internal.h.
Referenced by 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 72 of file internal.h.
| #define INT64_MAX INT64_C(9223372036854775807) |
Definition at line 88 of file internal.h.
Referenced by av_gen_search(), av_update_stream_timings(), avi_read_header(), avi_read_packet(), copy_chapters(), decode_thread(), estimate_best_b_count(), ff_fetch_timestamp(), ff_gen_syncpoint_search(), find_frame_rate_index(), generate_len_table(), get_subtitle_pkt(), guess_ni_flag(), main(), mov_find_next_sample(), mov_read_default(), mov_read_header(), mov_read_packet(), output_packet(), parse_options(), read_fps(), read_seek2(), rl2_read_packet(), search_hi_lo_keyframes(), seek_subtitle(), transcode(), wav_read_header(), wav_write_header(), and write_packet().
| #define INT64_MIN (-0x7fffffffffffffffLL - 1) |
Definition at line 84 of file internal.h.
Referenced by av_rescale_rnd(), av_update_stream_timings(), decode_thread(), init_pts_correction(), main(), open_input_stream(), parse_date(), parse_options(), parse_time_or_die(), and seek_subtitle().
| #define INT_BIT (CHAR_BIT * sizeof(int)) |
Definition at line 96 of file internal.h.
Referenced by decode_cabac_mb_mvd(), ff_h263_encode_motion(), h263_decode_motion(), h263_get_motion_length(), inter_predict(), mpeg1_encode_motion(), and mpeg_decode_motion().
| #define LABEL_MANGLE | ( | a | ) | EXTERN_PREFIX #a |
| #define LOCAL_MANGLE | ( | a | ) | #a |
| #define malloc please_use_av_malloc |
Definition at line 144 of file internal.h.
Referenced by audio_decode_example(), audio_encode_example(), av_malloc(), main(), pgmyuv_save(), and video_encode_example().
| #define MANGLE | ( | a | ) | EXTERN_PREFIX LOCAL_MANGLE(a) |
Definition at line 113 of file internal.h.
Referenced by apply_welch_window_sse2(), decode_significance_8x8_x86(), dering_TMPL(), do_a_deblock_TMPL(), doVertDefFilter_TMPL(), ff_idct_xvid_sse2(), ff_lpc_compute_autocorr_sse2(), ff_put_signed_pixels_clamped_mmx(), get_cabac_inline(), planar2x_TMPL(), rgb24tobgr24_TMPL(), rgb24toyv12_TMPL(), sad8_4_mmx(), sad8_4_mmx2(), tempNoiseReducer_TMPL(), vc1_put_ver_16b_shift2_mmx(), and vertX1Filter_TMPL().
Value:
__asm__ volatile(\ "cltd \n\t"\ "xorl %1, %0 \n\t"\ "subl %1, %0 \n\t"\ : "+a" (level), "=&d" (mask)\ );
Definition at line 129 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 202 of file internal.h.
Referenced by decode_frame().
Definition at line 100 of file internal.h.
Referenced by avfilter_insert_inpad(), avfilter_insert_outpad(), and commit_bitstream_and_slice_buffer().
| #define perror please_use_av_log_instead_of_perror |
Definition at line 171 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 165 of file internal.h.
Referenced by audio_decode_example(), audio_decode_frame(), audio_encode_example(), av_estimate_timings(), avi_load_index(), compute_bit_allocation(), compute_scale_factors(), compute_target_time(), dct_error(), dct_quantize_refine(), decode_frame(), do_audio_out(), do_exit(), doTest(), dv_decode_ac(), dv_decode_video_segment(), encode_frame(), extract_mpeg4_header(), ff_combine_frame(), ff_estimate_p_frame_motion(), ff_h264_decode_nal(), ff_rate_estimate_qscale(), ff_wmv2_decode_picture_header(), fileTest(), flush_packet(), funny_diamond_search(), grab_read_header(), hadamard8_diff8x8_c(), help(), idct248_error(), main(), mpegps_read_dts(), mpegvideo_parse(), msmpeg4_encode_mb(), output_picture2(), print_sdp(), qpel_motion_search(), read_huffman_tables(), rm_read_header(), selfTest(), show_bsfs(), show_codecs(), show_filters(), show_format(), show_formats(), show_help(), show_help_options(), show_license(), show_packet(), show_pix_fmts(), show_protocols(), show_stream(), show_usage(), show_version(), synchronize_audio(), test_motion(), usage(), var_diamond_search(), video_decode_example(), video_encode_example(), video_image_display(), video_refresh_timer(), wma_lsp_to_curve_init(), wmv2_decode_inter_block(), 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 169 of file internal.h.
| #define rand rand_is_forbidden_due_to_state_trashing_use_av_lfg_get |
| #define random random_is_forbidden_due_to_state_trashing_use_av_lfg_get |
| #define realloc please_use_av_realloc |
| #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf |
Definition at line 158 of file internal.h.
| #define srand srand_is_forbidden_due_to_state_trashing_use_av_lfg_init |
Definition at line 154 of file internal.h.
| #define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat |
| #define time time_is_forbidden_due_to_security_issues |
Definition at line 150 of file internal.h.
Referenced by avi_metadata_creation_time(), compute_status(), ctime1(), ff_h263_decode_frame(), handle_child_exit(), load_input_picture(), mov_read_elst(), mpeg4_encode_gop_header(), mxf_parse_timestamp(), opt_vstats(), parse_date(), rtsp_reply_header(), start_children(), and video_refresh_timer().
| #define UINT32_MAX 0xffffffff |
Definition at line 80 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 92 of file internal.h.
1.5.6