DSP utils. More...
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "dsputil.h"
#include "simple_idct.h"
#include "faandct.h"
#include "faanidct.h"
#include "mathops.h"
#include "mpegvideo.h"
#include "config.h"
#include "ac3dec.h"
#include "vorbis.h"
#include "png.h"
#include "dsputil_template.c"
Go to the source code of this file.
Macros | |
#define | BIT_DEPTH 9 |
#define | BIT_DEPTH 10 |
#define | BIT_DEPTH 8 |
#define | pb_7f (~0UL/255 * 0x7f) |
#define | pb_80 (~0UL/255 * 0x80) |
#define | avg2(a, b) ((a+b+1)>>1) |
#define | avg4(a, b, c, d) ((a+b+c+d+2)>>2) |
#define | QPEL_MC(r, OPNAME, RND, OP) |
#define | op_avg(a, b) a = (((a)+cm[((b) + 16)>>5]+1)>>1) |
#define | op_avg_no_rnd(a, b) a = (((a)+cm[((b) + 15)>>5])>>1) |
#define | op_put(a, b) a = cm[((b) + 16)>>5] |
#define | op_put_no_rnd(a, b) a = cm[((b) + 15)>>5] |
#define | put_qpel8_mc00_c ff_put_pixels8x8_c |
#define | avg_qpel8_mc00_c ff_avg_pixels8x8_c |
#define | put_qpel16_mc00_c ff_put_pixels16x16_c |
#define | avg_qpel16_mc00_c ff_avg_pixels16x16_c |
#define | put_no_rnd_qpel8_mc00_c ff_put_pixels8x8_c |
#define | put_no_rnd_qpel16_mc00_c ff_put_pixels16x16_8_c |
#define | B 0 |
#define | G 1 |
#define | R 2 |
#define | A 3 |
#define | BUTTERFLY2(o1, o2, i1, i2) |
#define | BUTTERFLY1(x, y) |
#define | BUTTERFLYA(x, y) (FFABS((x)+(y)) + FFABS((x)-(y))) |
#define | VSAD_INTRA(size) |
#define | SQ(a) ((a)*(a)) |
#define | VSSE_INTRA(size) |
#define | W0 2048 |
#define | W1 2841 /* 2048*sqrt (2)*cos (1*pi/16) */ |
#define | W2 2676 /* 2048*sqrt (2)*cos (2*pi/16) */ |
#define | W3 2408 /* 2048*sqrt (2)*cos (3*pi/16) */ |
#define | W4 2048 /* 2048*sqrt (2)*cos (4*pi/16) */ |
#define | W5 1609 /* 2048*sqrt (2)*cos (5*pi/16) */ |
#define | W6 1108 /* 2048*sqrt (2)*cos (6*pi/16) */ |
#define | W7 565 /* 2048*sqrt (2)*cos (7*pi/16) */ |
#define | dspfunc(PFX, IDX, NUM) |
#define | SET_CMP_FUNC(name) |
#define | FUNC(f, depth) f ## _ ## depth |
#define | FUNCC(f, depth) f ## _ ## depth ## _c |
#define | dspfunc1(PFX, IDX, NUM, depth) |
#define | dspfunc2(PFX, IDX, NUM, depth) |
#define | BIT_DEPTH_FUNCS(depth, dct) |
Functions | |
void | ff_init_scantable (uint8_t *permutation, ScanTable *st, const uint8_t *src_scantable) |
void | ff_init_scantable_permutation (uint8_t *idct_permutation, int idct_permutation_type) |
static int | pix_sum_c (uint8_t *pix, int line_size) |
static int | pix_norm1_c (uint8_t *pix, int line_size) |
static void | bswap_buf (uint32_t *dst, const uint32_t *src, int w) |
static void | bswap16_buf (uint16_t *dst, const uint16_t *src, int len) |
static int | sse4_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | sse8_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | sse16_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static void | diff_pixels_c (DCTELEM *restrict block, const uint8_t *s1, const uint8_t *s2, int stride) |
void | ff_put_pixels_clamped_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size) |
static void | put_pixels_clamped4_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size) |
static void | put_pixels_clamped2_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size) |
void | ff_put_signed_pixels_clamped_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size) |
void | ff_add_pixels_clamped_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size) |
static void | add_pixels_clamped4_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size) |
static void | add_pixels_clamped2_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size) |
static int | sum_abs_dctelem_c (DCTELEM *block) |
static void | fill_block16_c (uint8_t *block, uint8_t value, int line_size, int h) |
static void | fill_block8_c (uint8_t *block, uint8_t value, int line_size, int h) |
static void | gmc1_c (uint8_t *dst, uint8_t *src, int stride, int h, int x16, int y16, int rounder) |
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) |
static void | put_tpel_pixels_mc00_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | put_tpel_pixels_mc10_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | put_tpel_pixels_mc20_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | put_tpel_pixels_mc01_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | put_tpel_pixels_mc11_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | put_tpel_pixels_mc12_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | put_tpel_pixels_mc02_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | put_tpel_pixels_mc21_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | put_tpel_pixels_mc22_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc00_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc10_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc20_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc01_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc11_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc12_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc02_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc21_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | avg_tpel_pixels_mc22_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height) |
static void | wmv2_mspel8_h_lowpass (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h) |
static void | wmv2_mspel8_v_lowpass (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w) |
static void | put_mspel8_mc10_c (uint8_t *dst, uint8_t *src, int stride) |
static void | put_mspel8_mc20_c (uint8_t *dst, uint8_t *src, int stride) |
static void | put_mspel8_mc30_c (uint8_t *dst, uint8_t *src, int stride) |
static void | put_mspel8_mc02_c (uint8_t *dst, uint8_t *src, int stride) |
static void | put_mspel8_mc12_c (uint8_t *dst, uint8_t *src, int stride) |
static void | put_mspel8_mc32_c (uint8_t *dst, uint8_t *src, int stride) |
static void | put_mspel8_mc22_c (uint8_t *dst, uint8_t *src, int stride) |
static void | h263_v_loop_filter_c (uint8_t *src, int stride, int qscale) |
static void | h263_h_loop_filter_c (uint8_t *src, int stride, int qscale) |
static void | h261_loop_filter_c (uint8_t *src, int stride) |
static int | pix_abs16_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs16_x2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs16_y2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs16_xy2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs8_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs8_x2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs8_y2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs8_xy2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | nsse16_c (void *v, uint8_t *s1, uint8_t *s2, int stride, int h) |
static int | nsse8_c (void *v, uint8_t *s1, uint8_t *s2, int stride, int h) |
static int | try_8x8basis_c (int16_t rem[64], int16_t weight[64], int16_t basis[64], int scale) |
static void | add_8x8basis_c (int16_t rem[64], int16_t basis[64], int scale) |
void | ff_block_permute (DCTELEM *block, uint8_t *permutation, const uint8_t *scantable, int last) |
Permute an 8x8 block. | |
static int | zero_cmp (void *s, uint8_t *a, uint8_t *b, int stride, int h) |
void | ff_set_cmp (DSPContext *c, me_cmp_func *cmp, int type) |
static void | add_bytes_c (uint8_t *dst, uint8_t *src, int w) |
static void | add_bytes_l2_c (uint8_t *dst, uint8_t *src1, uint8_t *src2, int w) |
static void | diff_bytes_c (uint8_t *dst, uint8_t *src1, uint8_t *src2, int w) |
static void | add_hfyu_median_prediction_c (uint8_t *dst, const uint8_t *src1, const uint8_t *diff, int w, int *left, int *left_top) |
static void | sub_hfyu_median_prediction_c (uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int w, int *left, int *left_top) |
static int | add_hfyu_left_prediction_c (uint8_t *dst, const uint8_t *src, int w, int acc) |
static void | add_hfyu_left_prediction_bgr32_c (uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue, int *alpha) |
static int | hadamard8_diff8x8_c (void *s, uint8_t *dst, uint8_t *src, int stride, int h) |
static int | hadamard8_intra8x8_c (void *s, uint8_t *src, uint8_t *dummy, int stride, int h) |
static int | dct_sad8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | dct_max8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | quant_psnr8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | rd8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | bit8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | vsad16_c (void *c, uint8_t *s1, uint8_t *s2, int stride, int h) |
static int | vsse16_c (void *c, uint8_t *s1, uint8_t *s2, int stride, int h) |
static int | ssd_int8_vs_int16_c (const int8_t *pix1, const int16_t *pix2, int size) |
static void | vector_fmul_c (float *dst, const float *src0, const float *src1, int len) |
static void | vector_fmul_reverse_c (float *dst, const float *src0, const float *src1, int len) |
static void | vector_fmul_add_c (float *dst, const float *src0, const float *src1, const float *src2, int len) |
static void | vector_fmul_window_c (float *dst, const float *src0, const float *src1, const float *win, int len) |
static void | vector_fmul_scalar_c (float *dst, const float *src, float mul, int len) |
static void | vector_fmac_scalar_c (float *dst, const float *src, float mul, int len) |
static void | butterflies_float_c (float *restrict v1, float *restrict v2, int len) |
static void | butterflies_float_interleave_c (float *dst, const float *src0, const float *src1, int len) |
static float | scalarproduct_float_c (const float *v1, const float *v2, int len) |
static uint32_t | clipf_c_one (uint32_t a, uint32_t mini, uint32_t maxi, uint32_t maxisign) |
static void | vector_clipf_c_opposite_sign (float *dst, const float *src, float *min, float *max, int len) |
static void | vector_clipf_c (float *dst, const float *src, float min, float max, int len) |
static int32_t | scalarproduct_int16_c (const int16_t *v1, const int16_t *v2, int order, int shift) |
static int32_t | scalarproduct_and_madd_int16_c (int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul) |
static void | apply_window_int16_c (int16_t *output, const int16_t *input, const int16_t *window, unsigned int len) |
static void | vector_clip_int32_c (int32_t *dst, const int32_t *src, int32_t min, int32_t max, unsigned int len) |
static void | wmv2_idct_row (short *b) |
static void | wmv2_idct_col (short *b) |
void | ff_wmv2_idct_c (short *block) |
static void | ff_wmv2_idct_put_c (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_wmv2_idct_add_c (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_jref_idct_put (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_jref_idct_add (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_jref_idct4_put (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_jref_idct4_add (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_jref_idct2_put (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_jref_idct2_add (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_jref_idct1_put (uint8_t *dest, int line_size, DCTELEM *block) |
static void | ff_jref_idct1_add (uint8_t *dest, int line_size, DCTELEM *block) |
static void | just_return (void *mem av_unused, int stride av_unused, int h av_unused) |
av_cold void | dsputil_static_init (void) |
int | ff_check_alignment (void) |
av_cold void | dsputil_init (DSPContext *c, AVCodecContext *avctx) |
Variables | |
uint8_t | ff_cropTbl [256+2 *MAX_NEG_CROP] = {0, } |
uint32_t | ff_squareTbl [512] = {0, } |
const uint8_t | ff_zigzag_direct [64] |
const uint8_t | ff_zigzag248_direct [64] |
uint16_t | inv_zigzag_direct16 [64] |
const uint8_t | ff_alternate_horizontal_scan [64] |
const uint8_t | ff_alternate_vertical_scan [64] |
static const uint8_t | simple_mmx_permutation [64] |
static const uint8_t | idct_sse2_row_perm [8] = {0, 4, 1, 5, 2, 6, 3, 7} |
DSP utils.
Definition in file dsputil.c.
Definition at line 518 of file dsputil.c.
Referenced by pix_abs16_x2_c(), pix_abs16_y2_c(), pix_abs8_x2_c(), and pix_abs8_y2_c().
Definition at line 519 of file dsputil.c.
Referenced by pix_abs16_xy2_c(), and pix_abs8_xy2_c().
#define avg_qpel16_mc00_c ff_avg_pixels16x16_c |
#define avg_qpel8_mc00_c ff_avg_pixels8x8_c |
#define B 0 |
Definition at line 1975 of file dsputil.c.
Referenced by add_hfyu_left_prediction_bgr32_c(), altivec_uyvy_rgb32(), avg_no_rnd_vc1_chroma_mc8_c(), ff_h263_pred_motion(), ff_yuv2packedX_altivec(), find_and_decode_index(), gmc1_c(), horizX1Filter(), idct(), initFilter(), ipvideo_decode_block_opcode_0x2(), ipvideo_decode_block_opcode_0x3(), ipvideo_decode_block_opcode_0x4(), pred_16x8_motion(), pred_motion(), pred_pskip_motion(), pred_spatial_direct_motion(), put_no_rnd_vc1_chroma_mc4_c(), put_no_rnd_vc1_chroma_mc8_c(), restore_median(), restore_median_il(), rv30_decode_intra_types(), rv34_pred_mv(), rv34_pred_mv_b(), rv34_pred_mv_rv3(), rv40_decode_intra_types(), vc1_pred_b_mv(), vc1_pred_mv(), vc1_pred_mv_intfr(), wmv2_pred_motion(), wv_unpack_stereo(), x8_ac_compensation(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), yuv2rgb48_X_c_template(), and yuv2rgb_full_X_c_template().
#define BIT_DEPTH_FUNCS | ( | depth, | |
dct | |||
) |
Referenced by dsputil_init().
#define BUTTERFLY1 | ( | x, | |
y | |||
) |
Definition at line 2014 of file dsputil.c.
Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().
#define BUTTERFLY2 | ( | o1, | |
o2, | |||
i1, | |||
i2 | |||
) |
Definition at line 2010 of file dsputil.c.
Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().
Definition at line 2023 of file dsputil.c.
Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().
#define dspfunc | ( | PFX, | |
IDX, | |||
NUM | |||
) |
#define dspfunc1 | ( | PFX, | |
IDX, | |||
NUM, | |||
depth | |||
) |
#define dspfunc2 | ( | PFX, | |
IDX, | |||
NUM, | |||
depth | |||
) |
#define G 1 |
Definition at line 1976 of file dsputil.c.
Referenced by add_hfyu_left_prediction_bgr32_c(), altivec_uyvy_rgb32(), ff_yuv2packedX_altivec(), idct(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), yuv2rgb48_X_c_template(), and yuv2rgb_full_X_c_template().
#define pb_7f (~0UL/255 * 0x7f) |
Definition at line 58 of file dsputil.c.
Referenced by add_bytes_c(), add_bytes_l2_c(), and diff_bytes_c().
#define pb_80 (~0UL/255 * 0x80) |
Definition at line 59 of file dsputil.c.
Referenced by add_bytes_c(), add_bytes_l2_c(), and diff_bytes_c().
#define put_no_rnd_qpel8_mc00_c ff_put_pixels8x8_c |
#define put_qpel16_mc00_c ff_put_pixels16x16_c |
#define put_qpel8_mc00_c ff_put_pixels8x8_c |
#define R 2 |
Definition at line 1977 of file dsputil.c.
Referenced by add_hfyu_left_prediction_bgr32_c(), altivec_uyvy_rgb32(), ff_yuv2packedX_altivec(), ls_decode_line(), ls_encode_line(), wv_unpack_stereo(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), yuv2rgb48_X_c_template(), and yuv2rgb_full_X_c_template().
#define SET_CMP_FUNC | ( | name | ) |
Referenced by dsputil_init().
#define SQ | ( | a | ) | ((a)*(a)) |
Definition at line 2389 of file dsputil.c.
Referenced by vsse16_c().
#define VSAD_INTRA | ( | size | ) |
#define VSSE_INTRA | ( | size | ) |
#define W0 2048 |
Definition at line 2623 of file dsputil.c.
Referenced by wmv2_idct_col(), and wmv2_idct_row().
#define W1 2841 /* 2048*sqrt (2)*cos (1*pi/16) */ |
Definition at line 2624 of file dsputil.c.
Referenced by wmv2_idct_col(), and wmv2_idct_row().
#define W2 2676 /* 2048*sqrt (2)*cos (2*pi/16) */ |
Definition at line 2625 of file dsputil.c.
Referenced by wmv2_idct_col(), and wmv2_idct_row().
#define W3 2408 /* 2048*sqrt (2)*cos (3*pi/16) */ |
Definition at line 2626 of file dsputil.c.
Referenced by wmv2_idct_col(), and wmv2_idct_row().
#define W5 1609 /* 2048*sqrt (2)*cos (5*pi/16) */ |
Definition at line 2628 of file dsputil.c.
Referenced by wmv2_idct_col(), and wmv2_idct_row().
#define W6 1108 /* 2048*sqrt (2)*cos (6*pi/16) */ |
Definition at line 2629 of file dsputil.c.
Referenced by wmv2_idct_col(), and wmv2_idct_row().
#define W7 565 /* 2048*sqrt (2)*cos (7*pi/16) */ |
Definition at line 2630 of file dsputil.c.
Referenced by wmv2_idct_col(), and wmv2_idct_row().
|
static |
Definition at line 1767 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1868 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1879 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1980 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1950 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1915 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 476 of file dsputil.c.
Referenced by ff_jref_idct2_add().
|
static |
Definition at line 460 of file dsputil.c.
Referenced by ff_jref_idct4_add().
|
static |
Definition at line 2594 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 699 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 730 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 763 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 708 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 741 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 752 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 719 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 774 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 785 of file dsputil.c.
Referenced by dsputil_init().
|
static |
|
static |
Definition at line 271 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 253 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2495 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2506 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 2529 of file dsputil.c.
Referenced by vector_clipf_c_opposite_sign().
|
static |
|
static |
|
static |
Definition at line 1890 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 345 of file dsputil.c.
Referenced by dsputil_init().
av_cold void dsputil_init | ( | DSPContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 2789 of file dsputil.c.
Referenced by aac_decode_init(), aac_encode_init(), ac3_decode_init(), ape_decode_init(), atrac1_decode_init(), atrac3_decode_init(), common_init(), dca_decode_init(), decode_init(), dnxhd_decode_header(), dnxhd_encode_init(), dvvideo_init(), encode_init(), ff_ac3_encode_init(), ff_dct_common_init(), ff_mjpeg_decode_init(), ff_vp56_init(), ff_wma_init(), h264_set_parameter_from_sps(), 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_dec_init(), png_enc_init(), ra288_decode_init(), svq1_encode_init(), tgq_decode_init(), tqi_decode_init(), truespeech_decode_init(), twin_decode_init(), vble_decode_init(), vorbis_decode_init(), vp3_decode_init(), and vp8_decode_init().
Definition at line 2752 of file dsputil.c.
Referenced by avcodec_init().
Definition at line 440 of file dsputil.c.
Referenced by dsputil_init(), ff_jref_idct_add(), and ff_wmv2_idct_add_c().
void ff_block_permute | ( | DCTELEM * | block, |
uint8_t * | permutation, | ||
const uint8_t * | scantable, | ||
int | last | ||
) |
Permute an 8x8 block.
permute block according to permuatation.
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 1783 of file dsputil.c.
Referenced by dct_quantize_altivec(), dct_quantize_bfin(), and dct_quantize_c().
int ff_check_alignment | ( | void | ) |
Definition at line 2769 of file dsputil.c.
Referenced by dsputil_init(), encode_thread(), estimate_motion_thread(), and mb_var_thread().
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 544 of file dsputil.c.
Referenced by dsputil_init(), and gmc().
Definition at line 124 of file dsputil.c.
Referenced by common_init(), decode_frame_header(), decode_init(), decode_pic(), decode_vop_header(), dnxhd_init_vlc(), ff_dct_common_init(), ff_intrax8_common_init(), ff_mjpeg_decode_init(), ff_vp56_init(), ff_wmv2_common_init(), mimic_decode_init(), mpeg_decode_picture_coding_extension(), tgq_decode_init(), tqi_decode_init(), and vp3_decode_init().
void ff_init_scantable_permutation | ( | uint8_t * | idct_permutation, |
int | idct_permutation_type | ||
) |
Definition at line 148 of file dsputil.c.
Referenced by dsputil_init(), and ff_proresdsp_init().
Definition at line 2744 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2740 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2734 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2729 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2723 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2718 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2712 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2707 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 366 of file dsputil.c.
Referenced by dsputil_init(), ff_jref_idct_put(), and ff_wmv2_idct_put_c().
void ff_put_signed_pixels_clamped_c | ( | const DCTELEM * | block, |
uint8_t *restrict | pixels, | ||
int | line_size | ||
) |
Definition at line 419 of file dsputil.c.
Referenced by dsputil_init().
void ff_set_cmp | ( | DSPContext * | c, |
me_cmp_func * | cmp, | ||
int | type | ||
) |
Definition at line 1808 of file dsputil.c.
Referenced by dvvideo_init(), ff_init_me(), and MPV_encode_init().
Definition at line 2702 of file dsputil.c.
Referenced by dsputil_init().
void ff_wmv2_idct_c | ( | short * | block | ) |
Definition at line 2685 of file dsputil.c.
Referenced by dsputil_init(), ff_wmv2_idct_add_c(), and ff_wmv2_idct_put_c().
Definition at line 2697 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 498 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 508 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 521 of file dsputil.c.
Referenced by dsputil_init(), and dsputil_init_align().
|
static |
Definition at line 1473 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1436 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1399 of file dsputil.c.
Referenced by dsputil_init().
|
static |
|
static |
Definition at line 2070 of file dsputil.c.
Referenced by dsputil_init().
Definition at line 2749 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1700 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1726 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 1500 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1528 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1586 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1556 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 1616 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1636 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1678 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1656 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 205 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 183 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1371 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1355 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1375 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1361 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1393 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1365 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1384 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 404 of file dsputil.c.
Referenced by ff_jref_idct2_put().
|
static |
Definition at line 387 of file dsputil.c.
Referenced by ff_jref_idct4_put().
|
inlinestatic |
Definition at line 602 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 633 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 666 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 611 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 644 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 655 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 622 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 677 of file dsputil.c.
Referenced by dsputil_init().
|
inlinestatic |
Definition at line 688 of file dsputil.c.
Referenced by dsputil_init().
|
static |
|
static |
|
static |
Definition at line 2584 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2518 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2574 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2423 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 315 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 277 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 294 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1932 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 490 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 1752 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2607 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2556 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2538 of file dsputil.c.
Referenced by vector_clipf_c().
|
static |
Definition at line 2487 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2456 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2443 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2449 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2479 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2462 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2374 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2408 of file dsputil.c.
Referenced by dsputil_init().
|
static |
Definition at line 2658 of file dsputil.c.
Referenced by ff_wmv2_idct_c().
|
static |
Definition at line 2632 of file dsputil.c.
Referenced by ff_wmv2_idct_c().
|
static |
Definition at line 1293 of file dsputil.c.
Referenced by put_mspel8_mc10_c(), put_mspel8_mc12_c(), put_mspel8_mc20_c(), put_mspel8_mc22_c(), put_mspel8_mc30_c(), and put_mspel8_mc32_c().
|
static |
Definition at line 1326 of file dsputil.c.
Referenced by put_mspel8_mc02_c(), put_mspel8_mc12_c(), put_mspel8_mc22_c(), and put_mspel8_mc32_c().
|
static |
Definition at line 1804 of file dsputil.c.
Referenced by ff_set_cmp().
const uint8_t ff_alternate_horizontal_scan[64] |
Definition at line 88 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 99 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] = {0, } |
uint32_t ff_squareTbl[512] = {0, } |
Definition at line 44 of file dsputil.c.
Referenced by dsputil_static_init(), pix_norm1_c(), sse(), sse16_c(), sse4_c(), and sse8_c().
const uint8_t ff_zigzag248_direct[64] |
Definition at line 74 of file dsputil.c.
Referenced by dv_init_enc_block(), and dvvideo_init().
const uint8_t ff_zigzag_direct[64] |
Definition at line 61 of file dsputil.c.
Referenced by 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(), dsputil_static_init(), dv_init_enc_block(), dvvideo_init(), ff_dct_common_init(), ff_mjpeg_decode_init(), ff_vp56_init(), ff_write_quant_matrix(), fill_quantization_matrices(), fill_scaling_lists(), init_scan_tables(), load_matrix(), mpeg_decode_picture_coding_extension(), rtjpeg_decode_init(), tgq_decode_init(), tqi_decode_init(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_start_frame(), and vp3_decode_init().
|
static |
Definition at line 122 of file dsputil.c.
Referenced by ff_init_scantable_permutation().
uint16_t inv_zigzag_direct16[64] |
Definition at line 86 of file dsputil.c.
Referenced by dct_quantize_TMPL(), and dsputil_static_init().
|
static |
Definition at line 111 of file dsputil.c.
Referenced by ff_init_scantable_permutation().