Revision b3858964

View differences:

libavcodec/arm/dsputil_init_neon.c
168 168

  
169 169
void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, int blocksize);
170 170

  
171
int32_t ff_scalarproduct_int16_neon(int16_t *v1, int16_t *v2, int len,
171
int32_t ff_scalarproduct_int16_neon(const int16_t *v1, const int16_t *v2, int len,
172 172
                                    int shift);
173
int32_t ff_scalarproduct_and_madd_int16_neon(int16_t *v1, int16_t *v2,
174
                                             int16_t *v3, int len, int mul);
173
int32_t ff_scalarproduct_and_madd_int16_neon(int16_t *v1, const int16_t *v2,
174
                                             const int16_t *v3, int len, int mul);
175 175

  
176 176
void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx)
177 177
{
libavcodec/dsputil.c
3988 3988
    }
3989 3989
}
3990 3990

  
3991
static int32_t scalarproduct_int16_c(int16_t * v1, int16_t * v2, int order, int shift)
3991
static int32_t scalarproduct_int16_c(const int16_t * v1, const int16_t * v2, int order, int shift)
3992 3992
{
3993 3993
    int res = 0;
3994 3994

  
......
3998 3998
    return res;
3999 3999
}
4000 4000

  
4001
static int32_t scalarproduct_and_madd_int16_c(int16_t *v1, int16_t *v2, int16_t *v3, int order, int mul)
4001
static int32_t scalarproduct_and_madd_int16_c(int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul)
4002 4002
{
4003 4003
    int res = 0;
4004 4004
    while (order--) {
libavcodec/dsputil.h
544 544
     * @param len length of vectors, should be multiple of 16
545 545
     * @param shift number of bits to discard from product
546 546
     */
547
    int32_t (*scalarproduct_int16)(int16_t *v1, int16_t *v2/*align 16*/, int len, int shift);
547
    int32_t (*scalarproduct_int16)(const int16_t *v1, const int16_t *v2/*align 16*/, int len, int shift);
548 548
    /* ape functions */
549 549
    /**
550 550
     * Calculate scalar product of v1 and v2,
551 551
     * and v1[i] += v3[i] * mul
552 552
     * @param len length of vectors, should be multiple of 16
553 553
     */
554
    int32_t (*scalarproduct_and_madd_int16)(int16_t *v1/*align 16*/, int16_t *v2, int16_t *v3, int len, int mul);
554
    int32_t (*scalarproduct_and_madd_int16)(int16_t *v1/*align 16*/, const int16_t *v2, const int16_t *v3, int len, int mul);
555 555

  
556 556
    /* rv30 functions */
557 557
    qpel_mc_func put_rv30_tpel_pixels_tab[4][16];
libavcodec/ppc/int_altivec.c
79 79
    return u.score[3];
80 80
}
81 81

  
82
static int32_t scalarproduct_int16_altivec(int16_t * v1, int16_t * v2, int order, const int shift)
82
static int32_t scalarproduct_int16_altivec(const int16_t * v1, const int16_t * v2, int order, const int shift)
83 83
{
84 84
    int i;
85 85
    LOAD_ZERO;
......
109 109
    return ires;
110 110
}
111 111

  
112
static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1, int16_t *v2, int16_t *v3, int order, int mul)
112
static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul)
113 113
{
114 114
    LOAD_ZERO;
115 115
    vec_s16 *pv1 = (vec_s16*)v1;
libavcodec/x86/dsputil_mmx.c
2374 2374
void ff_float_to_int16_interleave6_sse(int16_t *dst, const float **src, int len);
2375 2375
void ff_float_to_int16_interleave6_3dnow(int16_t *dst, const float **src, int len);
2376 2376
void ff_float_to_int16_interleave6_3dn2(int16_t *dst, const float **src, int len);
2377
int32_t ff_scalarproduct_int16_mmx2(int16_t *v1, int16_t *v2, int order, int shift);
2378
int32_t ff_scalarproduct_int16_sse2(int16_t *v1, int16_t *v2, int order, int shift);
2379
int32_t ff_scalarproduct_and_madd_int16_mmx2(int16_t *v1, int16_t *v2, int16_t *v3, int order, int mul);
2380
int32_t ff_scalarproduct_and_madd_int16_sse2(int16_t *v1, int16_t *v2, int16_t *v3, int order, int mul);
2381
int32_t ff_scalarproduct_and_madd_int16_ssse3(int16_t *v1, int16_t *v2, int16_t *v3, int order, int mul);
2377
int32_t ff_scalarproduct_int16_mmx2(const int16_t *v1, const int16_t *v2, int order, int shift);
2378
int32_t ff_scalarproduct_int16_sse2(const int16_t *v1, const int16_t *v2, int order, int shift);
2379
int32_t ff_scalarproduct_and_madd_int16_mmx2(int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul);
2380
int32_t ff_scalarproduct_and_madd_int16_sse2(int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul);
2381
int32_t ff_scalarproduct_and_madd_int16_ssse3(int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul);
2382 2382
void ff_add_hfyu_median_prediction_mmx2(uint8_t *dst, const uint8_t *top, const uint8_t *diff, int w, int *left, int *left_top);
2383 2383
int  ff_add_hfyu_left_prediction_ssse3(uint8_t *dst, const uint8_t *src, int w, int left);
2384 2384
int  ff_add_hfyu_left_prediction_sse4(uint8_t *dst, const uint8_t *src, int w, int left);

Also available in: Unified diff