#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mem.h"
#include "config.h"
#include "internal.h"
Go to the source code of this file.
Defines | |
#define | AV_GCC_VERSION_AT_LEAST(x, y) 0 |
#define | av_always_inline inline |
#define | av_cold |
#define | av_unused |
#define | av_uninit(x) x |
#define | RSHIFT(a, b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) |
#define | ROUNDED_DIV(a, b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) |
#define | FFABS(a) ((a) >= 0 ? (a) : (-(a))) |
#define | FFSIGN(a) ((a) > 0 ? 1 : -1) |
#define | FFMAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | FFMAX3(a, b, c) FFMAX(FFMAX(a,b),c) |
#define | FFMIN(a, b) ((a) > (b) ? (b) : (a)) |
#define | FFMIN3(a, b, c) FFMIN(FFMIN(a,b),c) |
#define | FFSWAP(type, a, b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) |
#define | FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0])) |
#define | MKTAG(a, b, c, d) (a | (b << 8) | (c << 16) | (d << 24)) |
#define | MKBETAG(a, b, c, d) (d | (c << 8) | (b << 16) | (a << 24)) |
#define | GET_UTF8(val, GET_BYTE, ERROR) |
#define | PUT_UTF8(val, tmp, PUT_BYTE) |
Functions | |
static av_const int | av_log2 (unsigned int v) |
static av_const int | av_log2_16bit (unsigned int v) |
static av_const int | av_clip (int a, int amin, int amax) |
Clips a signed integer value into the amin-amax range. | |
static av_const uint8_t | av_clip_uint8 (int a) |
Clips a signed integer value into the 0-255 range. | |
static av_const int16_t | av_clip_int16 (int a) |
Clips a signed integer value into the -32768,32767 range. | |
static av_const float | av_clipf (float a, float amin, float amax) |
Clips a float value into the amin-amax range. | |
Variables | |
const uint8_t | ff_log2_tab [256] |
Definition in file common.h.
#define av_uninit | ( | x | ) | x |
Definition at line 112 of file common.h.
Referenced by bfi_decode_frame(), decode_subframe_fixed(), ea_read_packet(), execute_ref_pic_marking(), ff_lpc_calc_coefs(), ff_msmpeg4_decode_block(), msrle_decode_8_16_24_32(), qtrle_encode_line(), unpack(), and vp56_decode_frame().
#define av_unused |
Definition at line 104 of file common.h.
Referenced by body(), decode_cabac_residual_internal(), ff_faandct(), ff_fft_init(), ff_imdct_half_sse(), filter_mb(), get_cabac_inline(), get_rac(), p8idct(), pred4x4_down_left_svq3_c(), and row_fdct().
#define FF_ARRAY_ELEMS | ( | a | ) | (sizeof(a) / sizeof((a)[0])) |
Definition at line 129 of file common.h.
Referenced by aac_decode_init(), av_base64_decode(), av_crc_get_table(), av_parse_video_frame_rate(), av_parse_video_frame_size(), create_vorbis_context(), decode_init(), decode_init_vlc(), decode_vui_parameters(), dv_codec_profile(), dv_frame_profile(), ff_dnxhd_find_cid(), ff_dnxhd_get_cid_table(), ff_h264_decode_seq_parameter_set(), ff_metadata_demux_compat(), ff_mov_iso639_to_lang(), ff_mov_lang_to_iso639(), fmt_ff2v4l(), fmt_v4l2ff(), get_channel_name(), grab_read_header(), http_parse_request(), infer_size(), iv_Decode_Chunk(), matroska_aac_profile(), matroska_aac_sri(), mimic_decode_init(), mxf_write_header(), mxf_write_primer_pack(), parse_date(), print_report(), qdm2_decode(), qdm2_fft_decode_tones(), rm_read_metadata(), rv10_write_header(), shall_we_drop(), synthfilt_build_sb_samples(), and v4l2_read_header().
#define FFABS | ( | a | ) | ((a) >= 0 ? (a) : (-(a))) |
Definition at line 120 of file common.h.
Referenced by add_8x8basis_TMPL(), av_encode(), av_reduce(), av_resample(), avi_read_header(), codebook_sanity_check_for_rate_quarter(), compute_pkt_fields(), dct_error(), dct_max8x8_c(), dct_quantize_refine(), dct_quantize_trellis_c(), dct_single_coeff_elimination(), decode_frame_header(), decode_q_branch(), dering_TMPL(), do_a_deblock_C(), doHorizDefFilter_C(), doHorizLowPass_C(), doVertDefFilter_TMPL(), doVertLowPass_TMPL(), dpcm_predict(), draw_line(), dv_init_enc_block(), encode_block(), encode_header(), encode_q_branch(), encode_q_branch2(), encode_subband_c0run(), estimate_stereo_mode(), ff_ac3_bit_alloc_calc_psd(), ff_init_me(), ff_jpegls_update_state_regular(), ff_mpeg1_encode_init(), ff_msmpeg4_decode_block(), ff_nelly_get_sample_bits(), filter_mb_dir(), filter_mb_mbaff_edgecv(), filter_mb_mbaff_edgev(), find_frame_rate_index(), flashsv_encode_frame(), funny_diamond_search(), get_block_bits(), get_diff_limited_q(), get_needed_flags(), get_qminmax(), get_sae(), get_scale_factor(), guess_mv(), gxf_seek(), h263_h_loop_filter_c(), h263_v_loop_filter_c(), h264_loop_filter_chroma_c(), h264_loop_filter_chroma_intra_c(), h264_loop_filter_luma_c(), h264_loop_filter_luma_intra_c(), h_block_filter(), hadamard8_intra8x8_c(), headroom(), horizX1Filter(), implicit_weight_table(), init_uni_ac_vlc(), initFilter(), ls_decode_line(), ls_encode_line(), ls_encode_regular(), ls_get_code_runterm(), mov_read_ctts(), mov_read_packet(), mpc8_decode_frame(), mpeg1_encode_sequence_header(), mpeg4_decode_block(), nsse16_c(), nsse16_mmx(), nsse8_c(), nsse8_mmx(), packedCopy(), postProcess_TMPL(), pp_postprocess(), pred_direct_motion(), put_s(), put_symbol(), read_rle_sgi(), render_line(), render_slice(), reverse_dc_prediction(), rv40_adaptive_loop_filter(), rv40_weak_loop_filter(), sab_diamond_search(), seq_unpack_rle_block(), skip_check(), sum_abs_dctelem_c(), sws_getShiftedVec(), try_8x8basis_TMPL(), update_vlc_state(), v_block_filter(), var_diamond_search(), vc1_filter_line(), vc1_pred_b_mv(), vc1_pred_mv(), vertX1Filter_TMPL(), vorbis_floor1_decode(), vp6_filter(), vsad16_c(), wmv2_pred_motion(), and x8_loop_filter().
#define FFMAX | ( | a, | |||
b | ) | ((a) > (b) ? (a) : (b)) |
Definition at line 123 of file common.h.
Referenced by adaptive_quantization(), add_codec(), addTonalComponents(), allocate_buffers(), apply_tns(), asf_write_packet(), av_build_filter(), av_d2q(), av_encode(), av_fast_realloc(), av_fifo_init(), av_resample(), av_resample_init(), av_seek_frame_binary(), avcodec_default_get_buffer(), avi_read_header(), avi_read_idx1(), avi_read_packet(), avi_write_counters(), bit_allocation(), calc_lowcomp(), calc_lowcomp1(), cavs_decode_frame(), compute_frame_delay(), compute_pkt_fields2(), copy(), copy_backptr(), create_vorbis_context(), dct_error(), dct_max8x8_c(), decode(), decode_audio_block(), decode_chunks(), decode_frame(), decode_lspf(), decode_p_frame(), decodeChannelSoundUnit(), direct_search(), dnxhd_encode_rdo(), dnxhd_find_qscale(), do_a_deblock_C(), do_audio_out(), doHorizDefFilter_C(), doVertDefFilter_TMPL(), encode_block(), encode_init(), encode_picture(), epzs_motion_search_internal(), ff_ac3_bit_alloc_calc_bap(), ff_ac3_bit_alloc_calc_mask(), ff_ac3_bit_alloc_calc_psd(), ff_ac3_parse_header(), ff_acelp_reorder_lsf(), ff_acelp_update_past_gain(), ff_emulated_edge_mc(), ff_get_best_fcode(), ff_init_me(), ff_jpegls_init_state(), ff_jpegls_reset_coding_parameters(), ff_jpegls_update_state_regular(), ff_mjpeg_decode_dqt(), ff_nelly_get_sample_bits(), ff_pca(), findCode(), flac_decode_frame(), flv_write_packet(), full_search(), get_block_rd(), get_dc(), get_exponent_dynamic(), get_floor_average(), get_limits(), get_new_centroids(), get_quant_quality(), get_visual_weight(), guess_mv(), gxf_seek(), h_block_filter(), horizX1Filter(), init_dequantizer(), init_exp(), init_offset(), initFilter(), is_intra_more_likely(), iterative_me(), libopenjpeg_decode_frame(), match_format(), matroska_parse_block(), matroska_read_seek(), median4(), mkv_write_ass_blocks(), mkv_write_packet(), modify_qscale(), mov_write_esds_tag(), mp3_read_probe(), MPV_encode_picture(), output_packet(), postProcess_TMPL(), pp_postprocess(), put_codebook_header(), quantize_lpc_coefs(), read_braindead_odml_indx(), residue_encode(), rv34_gen_vlc(), select_input_picture(), shorten_decode_frame(), skip_check(), sp5x_decode_frame(), sws_diffVec(), sws_getContext(), sws_sumVec(), try_decode_frame(), umh_search(), v_block_filter(), var_diamond_search(), vertX1Filter_TMPL(), wmv2_pred_motion(), write_header(), x8_ac_compensation(), x8_loop_filter(), x8_setup_spatial_compensation(), and zmbv_me().
#define FFMAX3 | ( | a, | |||
b, | |||||
c | ) | FFMAX(FFMAX(a,b),c) |
Definition at line 124 of file common.h.
Referenced by encode_picture(), ff_mjpeg_decode_frame(), ff_mpeg4_get_video_packet_prefix_length(), filter_mb(), iv_decode_frame(), and mjpegb_decode_frame().
#define FFMIN | ( | a, | |||
b | ) | ((a) > (b) ? (b) : (a)) |
Definition at line 125 of file common.h.
Referenced by ac3_decode_frame(), ape_decode_frame(), ape_tag_read_field(), apply_pitch_filters(), apply_tns(), asf_read_header(), av_build_filter(), av_fifo_generic_read(), av_fifo_generic_write(), av_reduce(), av_resample(), av_resample_init(), avfilter_insert_pad(), avfilter_merge_formats(), avfilter_poll_frame(), avi_read_header(), chomp6(), cin_decode_lzss(), cin_decode_rle(), cinaudio_decode_frame(), clean_index(), copy_and_dup(), count_pixels(), dct_quantize_trellis_c(), decode_block_refinement(), decode_frame(), decode_lspf(), decode_mb_i(), decode_prediction(), decode_rgb_frame(), decode_rle(), decode_slice_header(), decodeTonalComponents(), dering_TMPL(), direct_search(), dnxhd_encode_rdo(), dnxhd_find_qscale(), do_a_deblock_C(), do_rematrixing(), do_video_out(), doHorizDefFilter_C(), doVertDefFilter_TMPL(), dxa_read_packet(), encode_exp(), encode_ext_header(), encode_frame(), encode_init(), encode_scalar(), encode_superframe(), epzs_motion_search_internal(), ff_aac_ac3_parse(), ff_ac3_bit_alloc_calc_bap(), ff_ac3_bit_alloc_calc_psd(), ff_acelp_reorder_lsf(), ff_draw_horiz_band(), ff_emulated_edge_mc(), ff_estimate_p_frame_motion(), ff_find_start_code(), ff_get_best_fcode(), ff_init_long_region(), ff_init_me(), ff_interleave_new_audio_packet(), ff_jpegls_reset_coding_parameters(), ff_jpegls_update_state_regular(), ff_pca(), ff_region_offset2size(), ff_rtp_send_aac(), ff_spatial_idwt_buffered_slice(), ff_spatial_idwt_slice(), ff_vorbis_floor1_render_list(), fill_rectangle(), find_optimal_param(), flac_decode_frame(), floor_encode(), full_search(), get_block_rd(), get_dc(), get_exponent_dynamic(), get_floor_average(), get_limits(), get_max_p_order(), get_meta(), get_new_centroids(), get_str(), get_symbol(), get_visual_weight(), guess_mv(), hcscale_TMPL(), hScale_altivec_real(), huffman_decode(), hyscale_TMPL(), id3v2_read_ttag(), init_poc(), initFilter(), interleave_buffer(), iv_decode_frame(), main(), median4(), mjpegb_decode_frame(), mkv_write_ass_blocks(), mkv_write_packet(), mov2textsub(), mov_read_default(), mov_read_dref(), mov_write_uuidprof_tag(), mp_decode_frame(), mp_read_changes_map(), mpc8_get_mask(), mpeg4_decode_sprite_trajectory(), mpeg_decode_slice(), mpegaudio_parse(), ogg_write_page(), paint_mouse_pointer(), pcm_decode_frame(), postProcess_TMPL(), pred_intra_mode(), predict_slice(), predict_slice_buffered(), put_bitstream_info(), put_symbol(), pva_read_timestamp(), qtrle_encode_line(), read_access_unit(), rm_assemble_video_frame(), rtp_check_and_send_back_rr(), rtp_send_samples(), rv30_decode_init(), rv34_gen_vlc(), seq_unpack_rle_block(), shorten_decode_frame(), spatial_compensation_1(), spatial_compensation_9(), stream_component_open(), sub_left_prediction_bgr32(), svq3_decode_mb(), svq3_get_ue_golomb(), truespeech_decode_frame(), umh_search(), unpack(), unpack_coeffs(), url_split(), var_diamond_search(), vc1_filter_line(), voc_get_packet(), vorbis_decode_init(), vp5_parse_coeff(), vp6_parse_coeff_huffman(), wav_read_packet(), write_packet(), x8_get_prediction(), x8_loop_filter(), x8_setup_spatial_compensation(), and zmbv_me().
#define FFMIN3 | ( | a, | |||
b, | |||||
c | ) | FFMIN(FFMIN(a,b),c) |
Definition at line 126 of file common.h.
Referenced by mov_read_udta_string(), and pred_direct_motion().
#define FFSIGN | ( | a | ) | ((a) > 0 ? 1 : -1) |
Definition at line 121 of file common.h.
Referenced by alac_linear_predictor(), do_a_deblock_C(), doHorizDefFilter_C(), doVertDefFilter_TMPL(), horizX1Filter(), sign_only(), and vertX1Filter_TMPL().
#define FFSWAP | ( | type, | |||
a, | |||||
b | ) | do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) |
Definition at line 128 of file common.h.
Referenced by adpcm_decode_frame(), av_aes_init(), av_rc4_crypt(), av_rc4_init(), avcodec_default_release_buffer(), cinvideo_decode_frame(), cmv_decode_frame(), compute_pkt_fields(), compute_pkt_fields2(), decode_bytes_and_gain(), decode_frame(), decodeFrame(), draw_line(), encode_frame(), eval_coefs(), eval_refl(), ff_acelp_reorder_lsf(), ff_ccitt_unpack(), ff_fft_calc_3dn2(), ff_huff_build_tree(), fft(), fill_default_ref_list(), getChannelWeights(), IMLT(), mp3_header_compress(), mp3_header_decompress(), png_choose_filter(), png_handle_row(), ra144_decode_frame(), rm_ac3_swap_bytes(), roq_decode_frame(), roq_encode_video(), tgv_decode_frame(), vmdvideo_decode_frame(), vp56_decode_frame(), and xan_decode_frame().
#define GET_UTF8 | ( | val, | |||
GET_BYTE, | |||||
ERROR | ) |
Value:
val= GET_BYTE;\ {\ int ones= 7 - av_log2(val ^ 255);\ if(ones==1)\ ERROR\ val&= 127>>ones;\ while(--ones > 0){\ int tmp= GET_BYTE - 128;\ if(tmp>>6)\ ERROR\ val= (val<<6) + tmp;\ }\ }
val | is the output and should be of type uint32_t. It holds the converted UCS-4 character and should be a left value. | |
GET_BYTE | gets UTF-8 encoded bytes from any proper source. It can be a function or a statement whose return value or evaluated value is of type uint8_t. It will be executed up to 4 times for values in the valid UTF-8 range, and up to 7 times in the general case. | |
ERROR | action that should be taken when an invalid UTF-8 byte is returned from GET_BYTE. It should be a statement that jumps out of the macro, like exit(), goto, return, break, or continue. |
Definition at line 228 of file common.h.
Referenced by ascii_to_wc(), get_utf8(), and utf8len().
#define MKBETAG | ( | a, | |||
b, | |||||
c, | |||||
d | ) | (d | (c << 8) | (b << 16) | (a << 24)) |
Definition at line 213 of file common.h.
Referenced by alac_encode_init(), id3v2_parse(), metadata_parse(), mjpegb_decode_frame(), mp3_parse_vbr_tags(), nsv_resync(), qdm2_decode_init(), swf_read_header(), and sync().
#define MKTAG | ( | a, | |||
b, | |||||
c, | |||||
d | ) | (a | (b << 8) | (c << 16) | (d << 24)) |
Definition at line 212 of file common.h.
Referenced by aiff_read_header(), amr_read_header(), ape_read_header(), asf_read_header(), au_read_header(), avi_load_index(), avi_read_header(), bfi_probe(), bfi_read_packet(), daud_header(), decode_frame(), decode_init(), decode_wave_header(), dxa_read_header(), dxa_read_packet(), encode_frame(), ff_flac_is_extradata_valid(), ff_mjpeg_decode_init(), ff_rm_read_mdpr_codecdata(), ffm_read_header(), ffm_write_header(), flac_decode_frame(), get_codec_data(), mmf_read_header(), mov_find_codec_tag(), mov_probe(), mov_read_cmov(), mov_read_dref(), mov_read_ftyp(), mov_read_hdlr(), mov_read_stco(), mov_read_stsd(), mov_read_udta_string(), mov_read_wide(), mov_write_audio_tag(), mov_write_header(), mov_write_video_tag(), mpc_read_header(), msnwc_tcp_probe(), msnwc_tcp_read_header(), mtv_read_header(), nsv_read_chunk(), png_write_row(), r3d_probe(), r3d_read_header(), r3d_read_packet(), raw_decode(), raw_init_decoder(), rdt_load_mdpr(), rm_read_header(), siff_parse_vbv1(), siff_read_header(), smacker_read_header(), sol_read_header(), thp_probe(), vfw_pixfmt(), vfw_read_header(), vid_probe(), vp3_decode_init(), wav_read_header(), wav_read_packet(), and wv_read_block_header().
#define PUT_UTF8 | ( | val, | |||
tmp, | |||||
PUT_BYTE | ) |
Value:
{\ int bytes, shift;\ uint32_t in = val;\ if (in < 0x80) {\ tmp = in;\ PUT_BYTE\ } else {\ bytes = (av_log2(in) + 4) / 5;\ shift = (bytes - 1) * 6;\ tmp = (256 - (256 >> bytes)) | (in >> shift);\ PUT_BYTE\ while (shift >= 6) {\ shift -= 6;\ tmp = 0x80 | ((in >> shift) & 0x3f);\ PUT_BYTE\ }\ }\ }
val | is an input-only argument and should be of type uint32_t. It holds a UCS-4 encoded Unicode character that is to be converted to UTF-8. If val is given as a function it is executed only once. | |
tmp | is a temporary variable and should be of type uint8_t. It represents an intermediate value during conversion that is to be output by PUT_BYTE. | |
PUT_BYTE | writes the converted UTF-8 bytes to any proper destination. It could be a function or a statement, and uses tmp as the input byte. For example, PUT_BYTE could be "*output++ = tmp;" PUT_BYTE will be executed up to 4 times for values in the valid UTF-8 range and up to 7 times in the general case, depending on the length of the converted Unicode character. |
Definition at line 259 of file common.h.
Referenced by get_str16_nolen(), id3v2_read_ttag(), and write_utf8().
#define ROUNDED_DIV | ( | a, | |||
b | ) | (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) |
Definition at line 119 of file common.h.
Referenced by decode_vop_header(), draw_arrow(), ff_convert_matrix(), initFilter(), mpeg4_decode_sprite_trajectory(), mpeg4_pred_ac(), and vect_division().
#define RSHIFT | ( | a, | |||
b | ) | ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) |
Definition at line 117 of file common.h.
Referenced by get_amv(), unpack_vectors(), and vp56_decode_4mv().
static av_const int av_clip | ( | int | a, | |
int | amin, | |||
int | amax | |||
) | [inline, static] |
Clips a signed integer value into the amin-amax range.
a | value to clip | |
amin | minimum value of the clip range | |
amax | maximum value of the clip range |
Definition at line 169 of file common.h.
Referenced by AC3_encode_init(), adpcm_ct_expand_nibble(), adpcm_decode_frame(), adpcm_sbpro_expand_nibble(), adpcm_yamaha_expand_nibble(), alac_encode_init(), av_build_filter(), bit_allocation(), blend_subrect(), build_qp_table(), categorize(), choose_vlc_set(), chroma_4mv_motion(), decode(), decode_gain_and_index(), decode_slice(), decode_subband_slice_buffered(), dequantize(), dequantize_slice_buffered(), direct_search(), do_audio_out(), draw_arrow(), draw_line(), encode_block(), encode_frame(), encode_mb_internal(), eval_expr(), ff_ac3_bit_alloc_calc_bap(), ff_er_add_slice(), ff_gmc_c(), ff_mspel_motion(), ff_nelly_get_sample_bits(), ff_vbv_update(), filter_mb_mbaff_edgecv(), filter_mb_mbaff_edgev(), flac_encode_init(), g726_decode(), get_dc(), get_qminmax(), get_scale_factor(), gmc1_motion(), gmc_c(), h263_h_loop_filter_c(), h263_v_loop_filter_c(), h264_loop_filter_chroma_c(), h264_loop_filter_luma_c(), hpel_motion(), implicit_weight_table(), init_dequantizer(), init_pass2(), loop_filter_c1(), loop_filter_l1(), ls_decode_line(), ls_encode_line(), mp_decode_frame_helper(), mp_decode_line(), MPV_motion_internal(), png_enc_init(), quant(), quantize(), quantize_lpc_coefs(), ratecontrol_1pass(), rv30_weak_loop_filter(), rv40_adaptive_loop_filter(), sum_bits(), svq3_mc_dir(), svq3_mc_dir_part(), truespeech_synth(), update_qscale(), vc1_interp_mc(), vc1_mc_1mv(), vc1_mc_4mv_chroma(), vc1_mc_4mv_luma(), vc1_pred_b_mv(), vp5_parse_coeff_models(), and vp6_parse_coeff_models().
static av_const int16_t av_clip_int16 | ( | int | a | ) | [inline, static] |
Clips a signed integer value into the -32768,32767 range.
a | value to clip |
Definition at line 192 of file common.h.
Referenced by adpcm_ct_expand_nibble(), adpcm_decode_frame(), adpcm_ima_expand_nibble(), adpcm_ms_expand_nibble(), adpcm_yamaha_expand_nibble(), adx_decode(), atrac3_decode_frame(), av_resample(), cinaudio_decode_frame(), do_apply_filter(), dpcm_decode_frame(), ff_acelp_high_pass_filter(), ff_acelp_interpolate(), ff_acelp_weighted_vector_sum(), ff_iir_filter(), ff_mpa_synth_filter(), ra144_decode_frame(), saturate_output_float(), vmdaudio_decode_audio(), wma_decode_frame(), and xa_decode().
static av_const uint8_t av_clip_uint8 | ( | int | a | ) | [inline, static] |
Clips a signed integer value into the 0-255 range.
a | value to clip |
Definition at line 181 of file common.h.
Referenced by encode_picture(), ff_vp3_h_loop_filter_c(), ff_vp3_v_loop_filter_c(), ff_vp6_filter_diag4_c(), filter_mb_mbaff_edgecv(), filter_mb_mbaff_edgev(), globalInit(), h264_loop_filter_chroma_c(), h264_loop_filter_luma_c(), ir2_decode_plane(), ir2_decode_plane_inter(), loop_filter_c1(), loop_filter_l1(), p8idct(), rv34_add_4x4_block(), sws_scale(), sws_yuv2rgb_c_init_tables(), tgq_dconly(), tm2_apply_deltas(), tm2_decode_blocks(), vc1_h_overlap_c(), vc1_mspel_mc(), vc1_parse_frame_header(), vc1_parse_frame_header_adv(), vc1_v_overlap_c(), vp56_edge_filter(), vp6_filter_hv4(), x8_decode_intra_mb(), yuv2nv12XinC(), and yuv2yuvXinC().
static av_const float av_clipf | ( | float | a, | |
float | amin, | |||
float | amax | |||
) | [inline, static] |
Clips a float value into the amin-amax range.
a | value to clip | |
amin | minimum value of the clip range | |
amax | maximum value of the clip range |
Definition at line 205 of file common.h.
Referenced by decode(), and qcelp_decode_frame().
static av_const int av_log2 | ( | unsigned int | v | ) | [inline, static] |
Definition at line 134 of file common.h.
Referenced by AC3_encode_frame(), alac_entropy_coder(), av_mod_i(), av_normalize_sf(), av_read_packet(), bastardized_rice_decompress(), compute_scale_factors(), decode_q_branch(), decode_vol_header(), ebml_id_size(), encode_block(), encode_q_branch(), encode_q_branch2(), encode_subband_c0run(), escape124_decode_frame(), ff_eac3_parse_header(), ff_log2(), ff_mpeg1_encode_init(), ff_wma_init(), find_optimal_param(), fps_umf2avr(), get_block_bits(), get_level_prefix(), get_max_p_order(), get_rac_count(), get_se_golomb(), get_tail(), get_ue_golomb(), get_ur_golomb(), get_ur_golomb_jpegls(), headroom(), init_cavlc_level_tab(), init_cook_mlt(), klv_ber_length(), klv_encode_ber_length(), log2_tab(), mp_decode_init(), mpeg4_decode_video_packet_header(), MPV_encode_init(), put_symbol(), qdm2_decode_init(), rv20_decode_picture_header(), set_ue_golomb(), shorten_decode_frame(), svq3_decode_slice_header(), unpack_coeffs(), vmdaudio_decode_frame(), wma_decode_block(), and wp_log2().
static av_const int av_log2_16bit | ( | unsigned int | v | ) | [inline, static] |
Definition at line 150 of file common.h.
Referenced by av_log2_i(), dnxhd_calc_bits_thread(), dnxhd_encode_dc(), encode_dc(), ff_mjpeg_encode_dc(), ff_sqrt(), i2f(), and quant().
const uint8_t ff_log2_tab[256] |
Definition at line 42 of file mathematics.c.
Referenced by av_log2(), av_log2_16bit(), decode_frame(), rtsp_read_header(), and seq_decode_op1().