diff dsputil.h @ 11981:d3551fcf4c1c libavcodec

Add const to some pointer parameters. Patch by Eli Friedman, eli D friedman A gmail
author cehoyos
date Sun, 27 Jun 2010 15:11:38 +0000
parents eaf3ffb5df56
children 1241c824de46
line wrap: on
line diff
--- a/dsputil.h	Sun Jun 27 12:21:12 2010 +0000
+++ b/dsputil.h	Sun Jun 27 15:11:38 2010 +0000
@@ -544,14 +544,14 @@
      * @param len length of vectors, should be multiple of 16
      * @param shift number of bits to discard from product
      */
-    int32_t (*scalarproduct_int16)(int16_t *v1, int16_t *v2/*align 16*/, int len, int shift);
+    int32_t (*scalarproduct_int16)(const int16_t *v1, const int16_t *v2/*align 16*/, int len, int shift);
     /* ape functions */
     /**
      * Calculate scalar product of v1 and v2,
      * and v1[i] += v3[i] * mul
      * @param len length of vectors, should be multiple of 16
      */
-    int32_t (*scalarproduct_and_madd_int16)(int16_t *v1/*align 16*/, int16_t *v2, int16_t *v3, int len, int mul);
+    int32_t (*scalarproduct_and_madd_int16)(int16_t *v1/*align 16*/, const int16_t *v2, const int16_t *v3, int len, int mul);
 
     /* rv30 functions */
     qpel_mc_func put_rv30_tpel_pixels_tab[4][16];