#include "libavutil/intreadwrite.h"
#include "avcodec.h"
Go to the source code of this file.
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 BASIS_SHIFT 16 |
Definition at line 480 of file dsputil.h.
Referenced by add_8x8basis_c(), add_8x8basis_TMPL(), build_basis(), try_8x8basis_c(), and try_8x8basis_TMPL().
#define CALL_2X_PIXELS | ( | a, | |||
b, | |||||
n | ) |
#define DEF_OLD_QPEL | ( | name | ) |
Value:
void ff_put_ ## name (uint8_t *dst/*align width (8 or 16)*/, uint8_t *src/*align 1*/, int stride);\ void ff_put_no_rnd_ ## name (uint8_t *dst/*align width (8 or 16)*/, uint8_t *src/*align 1*/, int stride);\ void ff_avg_ ## name (uint8_t *dst/*align width (8 or 16)*/, uint8_t *src/*align 1*/, int stride);
#define EDGE_BOTTOM 2 |
Definition at line 486 of file dsputil.h.
Referenced by draw_edges(), ff_draw_horiz_band(), ff_MPV_frame_end(), ff_snow_frame_start(), and interpolate_refplane().
#define EDGE_TOP 1 |
Definition at line 485 of file dsputil.h.
Referenced by draw_edges(), ff_draw_horiz_band(), ff_MPV_frame_end(), ff_snow_frame_start(), and interpolate_refplane().
#define EDGE_WIDTH 16 |
Definition at line 484 of file dsputil.h.
Referenced by avcodec_get_edge_width(), ff_draw_horiz_band(), ff_MPV_frame_end(), ff_snow_frame_start(), ff_snow_release_buffer(), halfpel_interpol(), interpolate_refplane(), mc_subpel(), and video_get_buffer().
#define EMULATED_EDGE | ( | depth | ) |
#define ff_avg_pixels8x8_c ff_avg_pixels8x8_8_c |
#define FF_LIBMPEG2_IDCT_PERM 2 |
Definition at line 472 of file dsputil.h.
Referenced by dct_quantize_TMPL(), ff_dsputil_init(), ff_dsputil_init_arm(), ff_dsputil_init_armv6(), ff_dsputil_init_mmi(), ff_dsputil_init_mmx(), and ff_init_scantable_permutation().
#define FF_NO_IDCT_PERM 1 |
Definition at line 471 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_vp3dsp_init(), tgq_decode_init(), and tqi_decode_init().
#define FF_PARTTRANS_IDCT_PERM 5 |
Definition at line 475 of file dsputil.h.
Referenced by ff_dsputil_init_neon(), ff_init_scantable_permutation(), and ff_vp3dsp_init_x86().
#define ff_put_pixels8x8_c ff_put_pixels8x8_8_c |
#define FF_SIMPLE_IDCT_PERM 3 |
Definition at line 473 of file dsputil.h.
Referenced by dct_quantize_TMPL(), ff_dsputil_init_mmx(), and ff_init_scantable_permutation().
#define FF_SSE2_IDCT_PERM 6 |
Definition at line 476 of file dsputil.h.
Referenced by ff_dsputil_init_mmx(), and ff_init_scantable_permutation().
#define FF_TRANSPOSE_IDCT_PERM 4 |
Definition at line 474 of file dsputil.h.
Referenced by ff_dsputil_init_ppc(), ff_dsputil_init_vis(), ff_init_scantable_permutation(), ff_proresdsp_x86_init(), ff_vp3dsp_init_arm(), ff_vp3dsp_init_ppc(), and ff_vp3dsp_init_x86().
#define H264_IDCT | ( | depth | ) |
Value:
void ff_h264_idct8_add_ ## depth ## _c(uint8_t *dst, DCTELEM *block, int stride);\ void ff_h264_idct_add_ ## depth ## _c(uint8_t *dst, DCTELEM *block, int stride);\ void ff_h264_idct8_dc_add_ ## depth ## _c(uint8_t *dst, DCTELEM *block, int stride);\ void ff_h264_idct_dc_add_ ## depth ## _c(uint8_t *dst, DCTELEM *block, int stride);\ void ff_h264_idct_add16_ ## depth ## _c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);\ void ff_h264_idct_add16intra_ ## depth ## _c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);\ void ff_h264_idct8_add4_ ## depth ## _c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);\ void ff_h264_idct_add8_422_ ## depth ## _c(uint8_t **dest, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);\ void ff_h264_idct_add8_ ## depth ## _c(uint8_t **dest, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);\ void ff_h264_luma_dc_dequant_idct_ ## depth ## _c(DCTELEM *output, DCTELEM *input, int qmul);\ void ff_h264_chroma422_dc_dequant_idct_ ## depth ## _c(DCTELEM *block, int qmul);\ void ff_h264_chroma_dc_dequant_idct_ ## depth ## _c(DCTELEM *block, int qmul);
Definition at line 657 of file dsputil.h.
Referenced by apply_channel_coupling(), apply_window_mp3(), bink_decode_plane(), binkb_decode_plane(), bit8x8_c(), count_mantissa_bits(), dca_subsubframe(), dct_max8x8_c(), dct_quantize_refine(), dct_quantize_TMPL(), dct_sad8x8_c(), decode_slice_chroma(), decode_slice_luma(), dnxhd_calc_bits_thread(), dv_decode_video_segment(), dv_init_enc_block(), ff_check_alignment(), h263_skip_b_part(), imc_decode_frame(), mpc7_decode_init(), quant_psnr8x8_c(), rd8x8_c(), render_slice(), rv34_decode_inter_macroblock(), rv34_output_i16x16(), sbr_hf_assemble(), and sbr_hf_inverse_filter().
Definition at line 651 of file dsputil.h.
Referenced by dv_encode_video_segment(), and h264_filter_mb_fast_internal().
#define LOCAL_ALIGNED_A | ( | a, | |||
t, | |||||
v, | |||||
s, | |||||
o, | |||||
... | ) |
#define MAX_NEG_CROP 1024 |
Definition at line 88 of file dsputil.h.
Referenced by cavs_idct8_add_c(), deinterlace_line_c(), deinterlace_line_inplace_c(), ff_bfin_vp3_idct_put(), ff_dsputil_static_init(), 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 PUTAVG_PIXELS | ( | depth | ) |
Value:
void ff_put_pixels8x8_ ## depth ## _c(uint8_t *dst, uint8_t *src, int stride);\ void ff_avg_pixels8x8_ ## depth ## _c(uint8_t *dst, uint8_t *src, int stride);\ void ff_put_pixels16x16_ ## depth ## _c(uint8_t *dst, uint8_t *src, int stride);\ void ff_avg_pixels16x16_ ## depth ## _c(uint8_t *dst, uint8_t *src, int stride);
#define RECON_SHIFT 6 |
Definition at line 481 of file dsputil.h.
Referenced by add_8x8basis_c(), add_8x8basis_TMPL(), dct_quantize_refine(), try_8x8basis_c(), and try_8x8basis_TMPL().
#define STRIDE_ALIGN 16 |
Definition at line 631 of file dsputil.h.
Referenced by avcodec_align_dimensions2(), and fill_rectangle().
#define WRAPPER8_16 | ( | name8, | |||
name16 | ) |
#define WRAPPER8_16_SQ | ( | name8, | |||
name16 | ) |
Value:
static int name16(void /*MpegEncContext*/ *s, uint8_t *dst, uint8_t *src, int stride, int h){\ int score=0;\ score +=name8(s, dst , src , stride, 8);\ score +=name8(s, dst+8 , src+8 , stride, 8);\ if(h==16){\ dst += 8*stride;\ src += 8*stride;\ score +=name8(s, dst , src , stride, 8);\ score +=name8(s, dst+8 , src+8 , stride, 8);\ }\ return score;\ }
static void copy_block4 | ( | uint8_t * | dst, | |
const uint8_t * | src, | |||
int | dstStride, | |||
int | srcStride, | |||
int | h | |||
) | [inline, static] |
Definition at line 692 of file dsputil.h.
Referenced by copy_block(), copy_cell(), decode_0(), mjpeg_copy_block(), and old_codec37().
static void copy_block8 | ( | uint8_t * | dst, | |
const uint8_t * | src, | |||
int | dstStride, | |||
int | srcStride, | |||
int | h | |||
) | [inline, static] |
Definition at line 703 of file dsputil.h.
Referenced by copy_block(), mjpeg_copy_block(), and rd8x8_c().
attribute_deprecated void dsputil_init | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
Definition at line 3189 of file dsputil.c.
Referenced by config_input(), config_props(), init(), and vf_open().
Referenced by ff_rv40dsp_init().
Referenced by ff_rv40dsp_init().
void ff_block_permute | ( | DCTELEM * | block, | |
uint8_t * | permutation, | |||
const uint8_t * | scantable, | |||
int | last | |||
) |
permute block according to permuatation.
last | last non zero element in scantable order |
block | the block which will be permuted according to the given permutation vector | |
permutation | the permutation vector | |
last | the last non zero coefficient in scantable order, used to speed the permutation up | |
scantable | the used scantable, this is only used to speed the permutation up, the block is not (inverse) permutated to scantable order! |
Definition at line 1838 of file dsputil.c.
Referenced by dct_quantize_bfin(), and ff_dct_quantize_c().
int ff_check_alignment | ( | void | ) |
Definition at line 2799 of file dsputil.c.
Referenced by encode_thread(), estimate_motion_thread(), ff_dsputil_init(), and mb_var_thread().
void ff_dsputil_init | ( | DSPContext * | p, | |
AVCodecContext * | avctx | |||
) |
Definition at line 2819 of file dsputil.c.
Referenced by aac_decode_init(), ac3_decode_init(), ape_decode_init(), atrac1_decode_init(), cllc_decode_init(), common_init(), decode_init(), decode_slice_header(), decoder_init(), dirac_decode_init(), dnxhd_decode_header(), dsp_init(), dsputil_init(), encode_init(), ff_ac3_encode_init(), ff_dct_common_init(), ff_dvvideo_init(), ff_mjpeg_decode_init(), ff_vp56_init_context(), ff_wma_init(), imc_decode_init(), ipvideo_decode_init(), lag_decode_init(), main(), mca(), mdec_common_init(), mimic_decode_init(), mlp_decode_init(), mp_decode_init(), mpc7_decode_init(), mpc8_decode_init(), png_enc_init(), svq1_encode_init(), tqi_decode_init(), truespeech_decode_init(), twin_decode_init(), utvideo_encode_init(), vble_decode_init(), vorbis_decode_init(), vp3_decode_init(), and vp8_decode_init().
void ff_dsputil_init_alpha | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_init_arm | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_init_bfin | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_init_dwt | ( | DSPContext * | c | ) |
void ff_dsputil_init_mips | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_init_mmi | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_init_mmx | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_init_ppc | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_init_sh4 | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_init_vis | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_dsputil_static_init | ( | void | ) |
void ff_fdct248_islow_10 | ( | DCTELEM * | data | ) |
Referenced by ff_dsputil_init().
void ff_fdct248_islow_8 | ( | DCTELEM * | data | ) |
Referenced by ff_dsputil_init().
void ff_fdct_ifast | ( | DCTELEM * | data | ) |
Definition at line 208 of file jfdctfst.c.
Referenced by dct_quantize_trellis_c(), ff_convert_matrix(), and ff_dsputil_init().
void ff_fdct_ifast248 | ( | DCTELEM * | data | ) |
void ff_fdct_mmx | ( | DCTELEM * | block | ) |
Referenced by hadamard_func().
void ff_fdct_mmx2 | ( | DCTELEM * | block | ) |
Referenced by hadamard_func().
void ff_fdct_sse2 | ( | DCTELEM * | block | ) |
Referenced by hadamard_func().
Definition at line 137 of file dsputil.c.
Referenced by decode_frame_header(), decode_init(), decode_pic(), decode_vop_header(), dnxhd_init_vlc(), encode_init(), ff_dct_common_init(), ff_intrax8_common_init(), ff_mjpeg_decode_init(), ff_msmpeg4_common_init(), ff_vp56_init_context(), ff_wmv2_common_init(), mimic_decode_init(), mpeg_decode_picture_coding_extension(), tgq_decode_init(), tqi_decode_init(), and vp3_decode_init().
Definition at line 158 of file dsputil.c.
Referenced by decode_init(), decode_pic(), ff_dsputil_init(), ff_proresdsp_init(), ff_vp56_init_context(), tgq_decode_init(), tqi_decode_init(), and vp3_decode_init().
void ff_j_rev_dct | ( | DCTELEM * | data | ) |
Referenced by ff_dsputil_init(), ff_jref_idct_add(), and ff_jref_idct_put().
void ff_j_rev_dct1 | ( | DCTELEM * | data | ) |
Referenced by ff_dsputil_init().
void ff_j_rev_dct2 | ( | DCTELEM * | data | ) |
Referenced by ff_dsputil_init(), ff_jref_idct2_add(), and ff_jref_idct2_put().
void ff_j_rev_dct4 | ( | DCTELEM * | data | ) |
Referenced by ff_dsputil_init(), ff_jref_idct4_add(), and ff_jref_idct4_put().
void ff_jpeg_fdct_islow_10 | ( | DCTELEM * | data | ) |
Referenced by fdct_get(), ff_convert_matrix(), and ff_dsputil_init().
void ff_jpeg_fdct_islow_8 | ( | DCTELEM * | data | ) |
Referenced by ff_convert_matrix(), and ff_dsputil_init().
void ff_mlp_init | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
void ff_mlp_init_x86 | ( | DSPContext * | c, | |
AVCodecContext * | avctx | |||
) |
Referenced by ff_rv40dsp_init().
Referenced by ff_rv40dsp_init().
float ff_scalarproduct_float_c | ( | const float * | v1, | |
const float * | v2, | |||
int | len | |||
) |
Return the scalar product of two vectors.
v1 | first input vector | |
v2 | first input vector | |
len | number of elements |
Definition at line 2548 of file dsputil.c.
Referenced by acelp_decode_gain_codef(), apply_gain_ctrl(), calc_input_response(), convolve(), decode(), decode_frame(), ff_adaptive_gain_control(), ff_amr_set_fixed_gain(), ff_dsputil_init(), ff_scale_vector_to_given_sum_of_squares(), kalman_smoothen(), postfilter(), synth_block_fcb_acb(), and tilt_factor().
void ff_set_cmp | ( | DSPContext * | c, | |
me_cmp_func * | cmp, | |||
int | type | |||
) |
Definition at line 1863 of file dsputil.c.
Referenced by encode_init(), ff_dvvideo_init(), ff_init_me(), and ff_MPV_encode_init().
Definition at line 173 of file svq3.c.
Referenced by hl_decode_mb(), hl_decode_mb_idct_luma(), and hl_decode_mb_predict_luma().
void ff_wmv2_idct_c | ( | DCTELEM * | data | ) |
Definition at line 2715 of file dsputil.c.
Referenced by ff_dsputil_init(), ff_wmv2_idct_add_c(), and ff_wmv2_idct_put_c().
Definition at line 592 of file dsputil.h.
Referenced by encode_q_branch(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_pre_estimate_p_frame_motion(), get_4block_rd(), and get_block_rd().
static uint32_t no_rnd_avg32 | ( | uint32_t | a, | |
uint32_t | b | |||
) | [inline, static] |
static uint32_t rnd_avg32 | ( | uint32_t | a, | |
uint32_t | b | |||
) | [inline, static] |
const uint8_t ff_alternate_horizontal_scan[64] |
Definition at line 101 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 112 of file dsputil.c.
Referenced by decode_vop_header(), ff_dct_common_init(), and mpeg_decode_picture_coding_extension().
uint8_t ff_cropTbl[256+2 *MAX_NEG_CROP] |
uint32_t ff_squareTbl[512] |
Definition at line 43 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_zigzag248_direct[64] |
const uint8_t ff_zigzag_direct[64] |
Definition at line 74 of file dsputil.c.
Referenced by decode_dct(), decode_gop_header(), decode_i_block(), decode_init(), decode_pic(), decode_scaling_list(), decode_vol_header(), decode_vop_header(), dnxhd_init_qmat(), dnxhd_init_vlc(), dv_init_enc_block(), encode_picture(), 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(), 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().