FFmpeg
|
Go to the source code of this file.
Macros | |
#define | MUL64(a, b) ((int64_t)(a) * (int64_t)(b)) |
#define | MULL(a, b, s) (MUL64(a, b) >> (s)) |
#define | MAC64(d, a, b) ((d) += MUL64(a, b)) |
#define | MLS64(d, a, b) ((d) -= MUL64(a, b)) |
#define | MAC16(rt, ra, rb) rt += (ra) * (rb) |
#define | MUL16(ra, rb) ((ra) * (rb)) |
#define | MLS16(rt, ra, rb) ((rt) -= (ra) * (rb)) |
#define | mid_pred mid_pred |
#define | COPY3_IF_LT(x, y, a, b, c, d) |
#define | MASK_ABS(mask, level) |
#define | NEG_SSR32(a, s) ((( int32_t)(a))>>(32-(s))) |
#define | NEG_USR32(a, s) (((uint32_t)(a))>>(32-(s))) |
#define | PACK_2U8(a, b) (((b) << 8) | (a)) |
#define | PACK_4U8(a, b, c, d) (((d) << 24) | ((c) << 16) | ((b) << 8) | (a)) |
#define | PACK_2U16(a, b) (((b) << 16) | (a)) |
#define | PACK_2S8(a, b) PACK_2U8((a)&255, (b)&255) |
#define | PACK_4S8(a, b, c, d) PACK_4U8((a)&255, (b)&255, (c)&255, (d)&255) |
#define | PACK_2S16(a, b) PACK_2U16((a)&0xffff, (b)&0xffff) |
#define | FASTDIV(a, b) ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) |
Functions | |
static av_always_inline int | MULH (int a, int b) |
static av_always_inline unsigned | UMULH (unsigned a, unsigned b) |
static av_const int | mid_pred (int a, int b, int c) |
static av_const int | sign_extend (int val, unsigned bits) |
static av_const unsigned | zero_extend (unsigned val, unsigned bits) |
static av_const unsigned int | ff_sqrt (unsigned int a) |
Variables | |
const uint32_t | ff_inverse [257] |
const uint8_t | ff_reverse [256] |
const uint8_t | ff_sqrt_tab [256] |
Definition at line 51 of file mathops.h.
Referenced by decode_var_block_data(), l1_unscale(), MULH(), parcor_to_lpc(), and revert_channel_correlation().
Definition at line 55 of file mathops.h.
Referenced by long_term_filter(), and lsp2poly().
Definition at line 71 of file mathops.h.
Referenced by ac3_sum_square_butterfly_int32_c().
Definition at line 80 of file mathops.h.
Referenced by ff_g722_apply_qmf().
#define mid_pred mid_pred |
Definition at line 94 of file mathops.h.
Referenced by add_hfyu_median_prediction_c(), add_lag_median_prediction(), correlate(), correlate_slice_buffered(), decorrelate(), direct_search(), encode_q_branch(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_h263_pred_motion(), ff_pre_estimate_p_frame_motion(), get_chroma_mv(), h263_mv4_search(), interlaced_search(), lag_pred_line_yuy2(), loco_predict(), ls_decode_line(), ls_encode_line(), motion_search(), mv_pred_median(), pred_motion(), pred_mv(), pred_pskip_motion(), pred_spatial_direct_motion(), predict(), restore_median(), restore_median_il(), rv34_pred_b_vector(), rv34_pred_mv(), rv34_pred_mv_rv3(), sub_hfyu_median_prediction_c(), svq1_decode_motion_vector(), vc1_mc_4mv_luma(), vc1_pred_b_mv(), vc1_pred_mv(), vc1_pred_mv_intfr(), and wmv2_pred_motion().
Definition at line 148 of file mathops.h.
Referenced by dnxhd_init_vlc(), and mpeg1_encode_block().
Definition at line 159 of file mathops.h.
Referenced by decode_block(), decode_block_progressive(), decode_vlc_codeword(), dnxhd_decode_dct_block(), dv_decode_ac(), and get_xbits().
Definition at line 177 of file mathops.h.
Referenced by pred4x4_vertical_vp8_c().
#define FASTDIV | ( | a, | |
b | |||
) | ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) |
Definition at line 195 of file mathops.h.
Referenced by decode_blockcode(), ff_mpeg4_pred_dc(), ff_msmpeg4_pred_dc(), ff_sqrt(), get_dc(), lag_get_rac(), mpeg4_decode_block(), unpack_bitstream(), and vorbis_residue_decode_internal().
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
Definition at line 123 of file mathops.h.
Referenced by adpcm_decode_frame(), alac_linear_predictor(), cinaudio_decode_frame(), dpcm_decode_frame(), ff_h263_decode_motion(), ff_h263_encode_motion(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), get_sbits_long(), libopus_decode_init(), lpc_prediction(), mpeg1_encode_motion(), mpeg_decode_motion(), smka_decode_frame(), svq1_decode_motion_vector(), tscc2_decode_mb(), xa_decode(), and xan_wc3_decode_frame().
|
inlinestatic |
|
inlinestatic |
Definition at line 198 of file mathops.h.
Referenced by calc_cpl_coord(), dpcm_predict(), draw_arrow(), encode_q_branch(), ff_estimate_p_frame_motion(), ff_t_sqrt(), get_visual_weight(), and square_root().
const uint32_t ff_inverse[257] |
Definition at line 25 of file mathtables.c.
Referenced by dct_quantize_TMPL(), ff_msmpeg4_pred_dc(), and vorbis_residue_decode_internal().
const uint8_t ff_reverse[256] |
Definition at line 72 of file mathtables.c.
Referenced by asv2_get_bits(), asv2_put_bits(), bitswap_32(), decode_frame(), encode_frame(), inv_bits(), ir2_decode_frame(), pcm_decode_frame(), pcm_encode_frame(), s302m_decode_frame(), tiff_unpack_strip(), wnv1_get_code(), xbm_decode_frame(), and xbm_encode_frame().
const uint8_t ff_sqrt_tab[256] |
Definition at line 61 of file mathtables.c.
Referenced by ff_sqrt().