FFmpeg
Loading...
Searching...
No Matches
intmath.h File Reference
#include <stdint.h>
#include "config.h"
#include "attributes.h"

Go to the source code of this file.

Macros

#define ff_log2   ff_log2_c
 
#define ff_log2_16bit   ff_log2_16bit_c
 
#define av_log2   ff_log2
 
#define av_log2_16bit   ff_log2_16bit
 
#define ff_ctz   ff_ctz_c
 
#define ff_ctzll   ff_ctzll_c
 
#define ff_clz   ff_clz_c
 
#define av_parity   __builtin_parity
 

Functions

static av_always_inline av_const int ff_log2_c (unsigned int v)
 
static av_always_inline av_const int ff_log2_16bit_c (unsigned int v)
 
static av_always_inline av_const int ff_ctz_c (int v)
 Trailing zero bit count.
 
static av_always_inline av_const int ff_ctzll_c (long long v)
 
static av_always_inline av_const unsigned ff_clz_c (unsigned x)
 

Variables

const uint8_t ff_log2_tab [256]
 

Macro Definition Documentation

◆ ff_log2

◆ ff_log2_16bit

#define ff_log2_16bit   ff_log2_16bit_c

Definition at line 70 of file intmath.h.

Referenced by av_log2_16bit().

◆ av_log2

#define av_log2   ff_log2

Definition at line 84 of file intmath.h.

Referenced by abs_get_rice_param(), ac3_extract_exponents_c(), ac_get(), add_tb(), adjust_frame_pts_to_encoder_tb(), affine_merge_const6(), alac_entropy_coder(), apv_read_vlc(), arith2_get_number(), arith2_get_prob(), audio_open(), av_bprint_utf8(), av_ceil_log2_c(), av_normalize_sf(), av_q2intfloat(), buffer_pool_get(), cabac_unary_prefix(), cbs_vp9_assemble_fragment(), cbs_write_multi_byte(), cclm_get_params(), check_lpc(), check_put_vvc_chroma(), check_put_vvc_chroma_uni(), check_put_vvc_luma(), check_put_vvc_luma_uni(), choose_tiling(), clv_decode_init(), compute_scale_factors(), config_input(), config_input(), config_output(), config_output(), config_props(), convert_coeffs(), count_vc2_ue_uint(), D(), d3d12va_encode_av1_init_sequence_params(), d3d12va_encode_hevc_configure(), d3d12va_encode_hevc_init_sequence_params(), decode_ac_coeffs(), decode_cdlms(), decode_channel(), decode_channel_residues(), decode_frame(), decode_frame(), decode_init(), decode_init(), decode_init(), decode_lowdelay_slice(), decode_mclms(), decode_q_branch(), decode_spectrum_and_dequant(), decode_subframe(), decode_subframe_length(), decode_subframe_lpc(), decode_tones_frequency(), decode_tsd(), decode_uncompressed(), decode_vol_header(), delta_dlt(), derive_bdof_vx_vy(), ebml_id_size(), encode_cblk(), encode_frame(), encode_init(), encode_packet(), encode_q_branch(), encode_q_branch2(), encode_subband_c0run(), encode_vlc_codeword(), encode_vlc_codeword(), ep_update_hist(), escape124_decode_frame(), estimate_vlc(), exact_log2(), ff_apv_entropy_build_decode_lut(), ff_apv_entropy_decode_block(), ff_cbs_read_se_golomb(), ff_cbs_read_ue_golomb(), ff_cbs_write_se_golomb(), ff_cbs_write_ue_golomb(), ff_celt_decode_frame(), ff_dca_core_dequantize(), ff_dca_downmix_to_stereo_fixed(), ff_dca_downmix_to_stereo_float(), ff_dca_export_downmix_matrix(), ff_dcaadpcm_subband_analysis(), ff_eac3_parse_header(), ff_evc_derive_poc(), ff_g723_1_normalize_bits(), ff_g729_adaptive_gain_control(), ff_hw_base_encode_init_params_h264(), ff_hw_base_init_gop_structure(), ff_jpegls_init_state(), ff_log2_q15(), ff_mpeg4_decode_studio_slice_header(), ff_mpeg4_decode_video_packet_header(), ff_mpeg4_encode_video_packet_header(), ff_pcm_default_packet_size(), ff_prores_kostya_encode_init(), ff_prores_kostya_write_picture_header(), ff_vk_decode_add_slice(), ff_vp9_decode_block(), ff_vvc_ep_init_stat_coeff(), ff_vvc_nscale_derive(), ff_vvc_pred_flag(), ff_wma_init(), ffio_write_leb(), find_optimal_param(), fps_umf2avr(), gainc_loc_mode0(), generate_noise(), get_block_bits(), get_k(), get_level_prefix(), get_max_p_order(), get_packet(), get_rac_count(), get_se_golomb(), get_tail(), get_tilt_comp(), get_ue_golomb(), get_ue_golomb_long(), get_ur_golomb(), get_ur_golomb_jpegls(), gif_image_write_image(), headroom(), imdct_and_window(), init(), init_cavlc_level_tab(), init_lengths(), init_mdct_win(), init_mv_penalty(), init_quantization(), init_sequence_headers(), init_sequence_headers(), init_subblock_params(), initFilter(), intra_pred(), jpeg2000_decode_packet(), klv_ber_length(), lag_read_prob_header(), lmcs_derive_chroma_scale(), lmcs_derive_lut(), long_term_filter(), lpc_encode_choose_datapath(), luma_prof(), luma_prof_uni(), main(), mc(), mc_bi(), mc_scaled(), mc_uni(), mc_uni_scaled(), merge_superframe(), mip_downsampling(), mp_decode_init(), mpeg4_is_resync(), mv_compression(), next_pow2(), opus_rc_tell(), opus_rc_tell_frac(), palette_subblock_data(), parse_setup_header(), pnm_decode_frame(), pps(), pred_dc_val(), pred_gpm_blk(), pred_planar(), prepare_intra_edge_params(), print_stats(), probe_codec(), prores_encode_picture(), put_symbol(), put_symbol_inline(), qdm2_decode_init(), qdmc_decode_init(), quantize_and_encode_band_cost_template(), read_diff_float_data(), read_header(), read_map(), ref_pic_lists_modification(), resolve_divisor(), rice_decompress(), rv20_decode_picture_header(), rv30_parse_slice_header(), scaling_derive(), set_output_frame(), set_ue_golomb(), set_ue_golomb_long(), shorten_decode_frame(), slice_segment_header(), softfloat_mul(), softfloat_reciprocal(), speedhq_init_static_data(), svq3_decode_slice_header(), truncated_binary_decode(), unpack_coeffs(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_vp9_init_picture_params(), vc2_encode_init(), vc2_init_static_data(), very_broken_op(), vk_prores_end_frame(), vpx_init(), wma_decode_block(), wmapro_window(), wp_log2(), write_index(), wv_get_value_float(), and yae_reset().

◆ av_log2_16bit

Function Documentation

◆ ff_log2_c()

static av_always_inline av_const int ff_log2_c ( unsigned int v)
static

Definition at line 52 of file intmath.h.

◆ ff_log2_16bit_c()

static av_always_inline av_const int ff_log2_16bit_c ( unsigned int v)
static

Definition at line 71 of file intmath.h.

Variable Documentation

◆ ff_log2_tab

const uint8_t ff_log2_tab[256]
extern