FFmpeg
|
DSP utils. More...
Go to the source code of this file.
Data Structures | |
struct | ScanTable |
Scantable. More... | |
struct | DSPContext |
DSPContext. More... | |
Macros | |
#define | MAX_NEG_CROP 1024 |
#define | DEF_OLD_QPEL(name) |
#define | FF_NO_IDCT_PERM 1 |
#define | FF_LIBMPEG2_IDCT_PERM 2 |
#define | FF_SIMPLE_IDCT_PERM 3 |
#define | FF_TRANSPOSE_IDCT_PERM 4 |
#define | FF_PARTTRANS_IDCT_PERM 5 |
#define | FF_SSE2_IDCT_PERM 6 |
#define | BASIS_SHIFT 16 |
#define | RECON_SHIFT 6 |
#define | EDGE_WIDTH 16 |
#define | EDGE_TOP 1 |
#define | EDGE_BOTTOM 2 |
Typedefs | |
typedef void(* | tpel_mc_func )(uint8_t *block, const uint8_t *pixels, int line_size, int w, int h) |
typedef void(* | qpel_mc_func )(uint8_t *dst, uint8_t *src, ptrdiff_t stride) |
typedef void(* | op_fill_func )(uint8_t *block, uint8_t value, int line_size, int h) |
typedef int(* | me_cmp_func )(void *s, uint8_t *blk1, uint8_t *blk2, int line_size, int h) |
Variables | |
const uint8_t | ff_alternate_horizontal_scan [64] |
const uint8_t | ff_alternate_vertical_scan [64] |
const uint8_t | ff_zigzag_direct [64] |
const uint8_t | ff_zigzag248_direct [64] |
uint32_t | ff_squareTbl [512] |
const uint8_t | ff_cropTbl [256+2 *MAX_NEG_CROP] |
DSP utils.
note, many functions in here may use MMX which trashes the FPU state, it is absolutely necessary to call emms_c() between dsp & float/double code
Definition in file dsputil.h.
#define MAX_NEG_CROP 1024 |
Definition at line 44 of file dsputil.h.
Referenced by bfin_vp3_idct_add(), bfin_vp3_idct_put(), cavs_idct8_add_c(), filter_common(), filter_mbedge(), h_block_filter(), idct_add(), idct_put(), intra_pred_plane(), mp_yuv_to_rgb(), parse_palette_segment(), pred16x16_tm_vp8_c(), pred4x4_tm_vp8_c(), pred8x8_tm_vp8_c(), rv30_weak_loop_filter(), rv40_weak_loop_filter(), v_block_filter(), wmv2_mspel8_h_lowpass(), wmv2_mspel8_v_lowpass(), and yuv_a_to_rgba().
#define DEF_OLD_QPEL | ( | name | ) |
#define FF_NO_IDCT_PERM 1 |
Definition at line 248 of file dsputil.h.
Referenced by dct_quantize_bfin(), decode_init(), ff_cavsdsp_init(), ff_dct_quantize_c(), ff_dsputil_init(), ff_dsputil_init_arm(), ff_dsputil_init_armv5te(), ff_dsputil_init_bfin(), ff_dsputil_init_sh4(), ff_init_scantable_permutation(), ff_proresdsp_init(), ff_wmv2dsp_init(), tgq_decode_init(), and tqi_decode_init().
#define FF_LIBMPEG2_IDCT_PERM 2 |
Definition at line 249 of file dsputil.h.
Referenced by dct_quantize_TMPL(), ff_dsputil_init(), ff_dsputil_init_arm(), ff_dsputil_init_armv6(), and ff_init_scantable_permutation().
#define FF_SIMPLE_IDCT_PERM 3 |
Definition at line 250 of file dsputil.h.
Referenced by dct_quantize_TMPL(), ff_dsputil_init_x86(), and ff_init_scantable_permutation().
#define FF_TRANSPOSE_IDCT_PERM 4 |
Definition at line 251 of file dsputil.h.
Referenced by ff_dsputil_init_ppc(), ff_dsputil_init_vis(), ff_init_scantable_permutation(), and ff_proresdsp_x86_init().
#define FF_PARTTRANS_IDCT_PERM 5 |
Definition at line 252 of file dsputil.h.
Referenced by ff_dsputil_init_neon(), and ff_init_scantable_permutation().
#define FF_SSE2_IDCT_PERM 6 |
Definition at line 253 of file dsputil.h.
Referenced by dsputil_init_sse2(), and ff_init_scantable_permutation().
#define BASIS_SHIFT 16 |
Definition at line 257 of file dsputil.h.
Referenced by add_8x8basis_c(), add_8x8basis_TMPL(), build_basis(), try_8x8basis_c(), and try_8x8basis_TMPL().
#define RECON_SHIFT 6 |
Definition at line 258 of file dsputil.h.
Referenced by add_8x8basis_c(), add_8x8basis_TMPL(), dct_quantize_refine(), try_8x8basis_c(), and try_8x8basis_TMPL().
#define EDGE_WIDTH 16 |
Definition at line 261 of file dsputil.h.
Referenced by avcodec_get_edge_width(), encode_frame(), ff_draw_horiz_band(), ff_MPV_frame_end(), ff_snow_frame_start(), ff_snow_release_buffer(), halfpel_interpol(), interpolate_refplane(), mc_subpel(), update_frame_pool(), and video_get_buffer().
#define EDGE_TOP 1 |
Definition at line 262 of file dsputil.h.
Referenced by draw_edges(), encode_frame(), ff_draw_horiz_band(), ff_MPV_frame_end(), ff_snow_frame_start(), and interpolate_refplane().
#define EDGE_BOTTOM 2 |
Definition at line 263 of file dsputil.h.
Referenced by draw_edges(), encode_frame(), ff_draw_horiz_band(), ff_MPV_frame_end(), ff_snow_frame_start(), interpolate_refplane(), and load_input_picture().
Definition at line 1333 of file dsputil.c.
Referenced by ff_dsputil_init().
Referenced by ff_rv40dsp_init().
Referenced by ff_rv40dsp_init().
Referenced by ff_rv40dsp_init().
Referenced by ff_rv40dsp_init().
void ff_gmc_c | ( | uint8_t * | dst, |
uint8_t * | src, | ||
int | stride, | ||
int | h, | ||
int | ox, | ||
int | oy, | ||
int | dxx, | ||
int | dxy, | ||
int | dyx, | ||
int | dyy, | ||
int | shift, | ||
int | r, | ||
int | width, | ||
int | height | ||
) |
Definition at line 549 of file dsputil.c.
Referenced by ff_dsputil_init().
Definition at line 111 of file dsputil.c.
Referenced by aic_decode_init(), decode_frame_header(), decode_init(), decode_vop_header(), dnxhd_init_vlc(), encode_init(), ff_cavs_init(), ff_dct_common_init(), ff_intrax8_common_init(), ff_mjpeg_decode_init(), ff_msmpeg4_common_init(), ff_wmv2_common_init(), jpg_init(), mimic_decode_init(), mpeg_decode_picture_coding_extension(), tgq_decode_init(), and tqi_decode_init().
Definition at line 134 of file dsputil.c.
Referenced by decode_init(), ff_cavs_init(), ff_dsputil_init(), ff_intrax8_common_init(), ff_proresdsp_init(), ff_wmv2_common_init(), tgq_decode_init(), and tqi_decode_init().
Definition at line 2647 of file dsputil.c.
Referenced by avcodec_init().
void ff_dsputil_init | ( | DSPContext * | p, |
AVCodecContext * | avctx | ||
) |
Definition at line 2678 of file dsputil.c.
Referenced by ac3_decode_init(), aic_decode_init(), ape_decode_init(), avpriv_dsputil_init(), cllc_decode_init(), cook_decode_init(), decode_init(), decoder_init(), dirac_decode_init(), dnxhd_decode_header(), dsputil_init(), ff_ac3_encode_init(), ff_asv_common_init(), ff_cavs_init(), ff_dct_common_init(), ff_dvvideo_init(), ff_h264_decode_init(), ff_huffyuv_common_init(), ff_mjpeg_decode_init(), ffv1_common_init(), flac_encode_init(), h264_set_parameter_from_sps(), hevc_init_context(), imc_decode_init(), jpg_init(), lag_decode_init(), main(), mca(), mimic_decode_init(), mp_decode_init(), mpc7_decode_init(), mpc8_decode_init(), png_enc_init(), svq1_encode_init(), tak_decode_init(), tqi_decode_init(), truespeech_decode_init(), utvideo_encode_init(), and vble_decode_init().
void avpriv_dsputil_init | ( | DSPContext * | p, |
AVCodecContext * | avctx | ||
) |
Definition at line 2947 of file dsputil.c.
Referenced by config_input(), config_props(), and init().
attribute_deprecated void dsputil_init | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
int ff_check_alignment | ( | void | ) |
Definition at line 2658 of file dsputil.c.
Referenced by encode_thread(), estimate_motion_thread(), ff_dsputil_init(), and mb_var_thread().
void ff_set_cmp | ( | DSPContext * | c, |
me_cmp_func * | cmp, | ||
int | type | ||
) |
Definition at line 1872 of file dsputil.c.
Referenced by encode_init(), ff_dvvideo_init(), ff_init_me(), and ff_MPV_encode_init().
void ff_dsputil_init_alpha | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 122 of file dsputil_alpha.c.
Referenced by ff_dsputil_init().
void ff_dsputil_init_arm | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 59 of file dsputil_init_arm.c.
Referenced by ff_dsputil_init().
void ff_dsputil_init_bfin | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 126 of file dsputil_bfin.c.
Referenced by ff_dsputil_init().
void ff_dsputil_init_ppc | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 141 of file dsputil_ppc.c.
Referenced by ff_dsputil_init().
void ff_dsputil_init_sh4 | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 93 of file dsputil_sh4.c.
Referenced by ff_dsputil_init().
void ff_dsputil_init_vis | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 26 of file dsputil_vis.c.
Referenced by ff_dsputil_init().
void ff_dsputil_init_x86 | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 686 of file dsputil_init.c.
Referenced by ff_dsputil_init().
void ff_dsputil_init_dwt | ( | DSPContext * | c | ) |
Definition at line 847 of file snow_dwt.c.
Referenced by ff_dsputil_init().
const uint8_t ff_alternate_horizontal_scan[64] |
Definition at line 75 of file dsputil.c.
Referenced by decode_vop_header(), and ff_dct_common_init().
const uint8_t ff_alternate_vertical_scan[64] |
Definition at line 86 of file dsputil.c.
Referenced by decode_vop_header(), ff_dct_common_init(), and mpeg_decode_picture_coding_extension().
const uint8_t ff_zigzag_direct[64] |
Definition at line 115 of file mathtables.c.
Referenced by decode_dct(), decode_gop_header(), decode_i_block(), decode_init(), decode_scaling_list(), decode_vol_header(), decode_vop_header(), dnxhd_init_qmat(), dnxhd_init_vlc(), dv_init_enc_block(), encode_picture(), ff_cavs_init(), ff_dct_common_init(), ff_dsputil_static_init(), ff_dvvideo_init(), ff_mjpeg_decode_init(), ff_rtjpeg_decode_init(), ff_vp56_init_context(), ff_write_quant_matrix(), fill_quantization_matrices(), fill_scaling_lists(), init_scan_tables(), jpg_decode_block(), jpg_init(), load_matrix(), mpeg_decode_picture_coding_extension(), mss4_decode_dct(), tgq_decode_init(), tqi_decode_init(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_start_frame(), and vp3_decode_init().
const uint8_t ff_zigzag248_direct[64] |
Definition at line 61 of file dsputil.c.
Referenced by dv_init_enc_block(), and ff_dvvideo_init().
uint32_t ff_squareTbl[512] |
Definition at line 46 of file dsputil.c.
Referenced by ff_dsputil_static_init(), pix_norm1(), pix_norm1_c(), sse(), sse16_c(), sse4_c(), and sse8_c().
const uint8_t ff_cropTbl[256+2 *MAX_NEG_CROP] |
Definition at line 94 of file mathtables.c.