comparison dsputil.h @ 10300:4d1b9ca628fc libavcodec

Drop unused args from vector_fmul_add_add, simpify code, and rename The src3 and step arguments to vector_fmul_add_add() are always zero and one, respectively. This removes these arguments from the function, simplifies the code accordingly, and renames the function to better match the new operation.
author mru
date Sun, 27 Sep 2009 16:51:54 +0000
parents 87ae4a167138
children 6009feb54020
comparison
equal deleted inserted replaced
10299:a1654cd1b5b9 10300:4d1b9ca628fc
64 void ff_h264_idct_add16_c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]); 64 void ff_h264_idct_add16_c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);
65 void ff_h264_idct_add16intra_c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]); 65 void ff_h264_idct_add16intra_c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);
66 void ff_h264_idct8_add4_c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]); 66 void ff_h264_idct8_add4_c(uint8_t *dst, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);
67 void ff_h264_idct_add8_c(uint8_t **dest, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]); 67 void ff_h264_idct_add8_c(uint8_t **dest, const int *blockoffset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]);
68 68
69 void ff_vector_fmul_add_add_c(float *dst, const float *src0, const float *src1,
70 const float *src2, int src3, int blocksize, int step);
71 void ff_vector_fmul_window_c(float *dst, const float *src0, const float *src1, 69 void ff_vector_fmul_window_c(float *dst, const float *src0, const float *src1,
72 const float *win, float add_bias, int len); 70 const float *win, float add_bias, int len);
73 void ff_float_to_int16_c(int16_t *dst, const float *src, long len); 71 void ff_float_to_int16_c(int16_t *dst, const float *src, long len);
74 void ff_float_to_int16_interleave_c(int16_t *dst, const float **src, long len, int channels); 72 void ff_float_to_int16_interleave_c(int16_t *dst, const float **src, long len, int channels);
75 73
389 void (*flac_compute_autocorr)(const int32_t *data, int len, int lag, double *autoc); 387 void (*flac_compute_autocorr)(const int32_t *data, int len, int lag, double *autoc);
390 /* assume len is a multiple of 8, and arrays are 16-byte aligned */ 388 /* assume len is a multiple of 8, and arrays are 16-byte aligned */
391 void (*vector_fmul)(float *dst, const float *src, int len); 389 void (*vector_fmul)(float *dst, const float *src, int len);
392 void (*vector_fmul_reverse)(float *dst, const float *src0, const float *src1, int len); 390 void (*vector_fmul_reverse)(float *dst, const float *src0, const float *src1, int len);
393 /* assume len is a multiple of 8, and src arrays are 16-byte aligned */ 391 /* assume len is a multiple of 8, and src arrays are 16-byte aligned */
394 void (*vector_fmul_add_add)(float *dst, const float *src0, const float *src1, const float *src2, int src3, int len, int step); 392 void (*vector_fmul_add)(float *dst, const float *src0, const float *src1, const float *src2, int len);
395 /* assume len is a multiple of 4, and arrays are 16-byte aligned */ 393 /* assume len is a multiple of 4, and arrays are 16-byte aligned */
396 void (*vector_fmul_window)(float *dst, const float *src0, const float *src1, const float *win, float add_bias, int len); 394 void (*vector_fmul_window)(float *dst, const float *src0, const float *src1, const float *win, float add_bias, int len);
397 /* assume len is a multiple of 8, and arrays are 16-byte aligned */ 395 /* assume len is a multiple of 8, and arrays are 16-byte aligned */
398 void (*int32_to_float_fmul_scalar)(float *dst, const int *src, float mul, int len); 396 void (*int32_to_float_fmul_scalar)(float *dst, const int *src, float mul, int len);
399 void (*vector_clipf)(float *dst /* align 16 */, const float *src /* align 16 */, float min, float max, int len /* align 16 */); 397 void (*vector_clipf)(float *dst /* align 16 */, const float *src /* align 16 */, float min, float max, int len /* align 16 */);