FFmpeg
|
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/reverse.h"
#include "config.h"
Go to the source code of this file.
Macros | |
#define | MAX_NEG_CROP 1024 |
#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 | median4 median4 |
#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)) |
#define | ff_sqrt ff_sqrt |
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 | median4 (int a, int b, int c, int d) |
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) |
static av_const float | ff_sqrf (float a) |
static int8_t | ff_u8_to_s8 (uint8_t a) |
static av_always_inline uint32_t | bitswap_32 (uint32_t x) |
Variables | |
const uint32_t | ff_inverse [257] |
const uint8_t | ff_sqrt_tab [256] |
const uint8_t | ff_crop_tab [256+2 *MAX_NEG_CROP] |
const uint8_t | ff_zigzag_direct [64] |
const uint8_t | ff_zigzag_scan [16+1] |
#define FASTDIV | ( | a, | |
b | |||
) | ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) |
|
static |
Definition at line 130 of file mathops.h.
Referenced by adpcm_decode_frame(), alac_linear_predictor(), aptx_unpack_codeword(), aptxhd_unpack_codeword(), atrac9_decode_init(), cinaudio_decode_frame(), decode_band_numwavs(), decode_block(), decode_channel_sf_idx(), decode_plane(), decode_qu_spectra(), decode_tones_amplitude(), decode_tones_frequency(), dpcm_decode_frame(), ff_h263_decode_motion(), ff_h263_encode_motion(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), fold(), generate_joint_tables(), get_sbits(), get_sbits_long(), get_xbits_le(), libopus_decode_init(), lpc_prediction(), mpeg1_encode_motion(), mpeg_decode_motion(), on2avc_decode_pairs(), on2avc_decode_quads(), paf_audio_decode(), read_coeffs_coarse(), read_coeffs_fine(), scale_coefs(), smka_decode_frame(), svq1_decode_motion_vector(), tscc2_decode_mb(), tta_decode_frame(), xa_decode(), and xan_wc3_decode_frame().
|
inlinestatic |
Definition at line 139 of file mathops.h.
Referenced by get_xbits_le().
|
inlinestatic |
Definition at line 228 of file mathops.h.
Referenced by search_for_quantizers_twoloop().
|
inlinestatic |
Definition at line 233 of file mathops.h.
Referenced by color_transform_delta().
|
static |
Definition at line 243 of file mathops.h.
Referenced by build_table(), and reverse().
const uint32_t ff_inverse[257] |
Definition at line 27 of file mathtables.c.
Referenced by dct_quantize_TMPL(), ff_msmpeg4_pred_dc(), and setup_classifs().
const uint8_t ff_sqrt_tab[256] |
Definition at line 63 of file mathtables.c.
Referenced by ff_sqrt().
const uint8_t ff_crop_tab[256+2 *MAX_NEG_CROP] |
Definition at line 77 of file mathtables.c.
const uint8_t ff_zigzag_direct[64] |
Definition at line 98 of file mathtables.c.
Referenced by compute_quant_matrix(), decode_block(), decode_dct(), decode_gop_header(), decode_i_block(), decode_init(), decode_scaling_list(), decode_studio_vop_header(), decode_vol_header(), decode_vop_header(), dnxhd_decode_header(), dnxhd_init_qmat(), dv_init_enc_block(), dvvideo_decode_init(), encode_picture(), ff_cavs_init(), ff_mpv_idct_init(), ff_rtjpeg_init(), ff_vp56_init_context(), ff_write_quant_matrix(), fic_decode_block(), fill_quantization_matrices(), fill_scaling_lists(), hq_decode_block(), init_idct(), init_scan_tables(), jpg_decode_block(), jpg_init(), ljpeg_encode_init(), load_matrix(), mpeg_decode_picture_coding_extension(), mss4_decode_dct(), read_quant_matrix_ext(), speedhq_decode_init(), tgq_decode_init(), tqi_decode_init(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_start_frame(), and vp3_decode_init().
const uint8_t ff_zigzag_scan[16+1] |
Definition at line 109 of file mathtables.c.
Referenced by decode_mb_coeffs(), decode_scaling_list(), fill_scaling_lists(), init_scan_tables(), svq3_decode_block(), tscc2_decode_mb(), vp78_decode_init(), vp7_decode_frame_header(), and vp8_decode_block_coeffs_internal().