]> git.sesse.net Git - ffmpeg/commitdiff
fmtconvert: int32_t input to int32_to_float_fmul_scalar
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Thu, 27 Dec 2012 21:33:51 +0000 (22:33 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 18 May 2013 16:01:16 +0000 (18:01 +0200)
It was previously declared as int.
Does not change fate results for x86.

Conflicts:

libavcodec/ppc/fmtconvert_altivec.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ac3dec.c
libavcodec/ac3dec.h
libavcodec/arm/dca.h
libavcodec/arm/fmtconvert_init_arm.c
libavcodec/dcadec.c
libavcodec/fmtconvert.c
libavcodec/fmtconvert.h
libavcodec/ppc/fmtconvert_altivec.c
libavcodec/x86/fmtconvert.asm
libavcodec/x86/fmtconvert_init.c

index a70d92ae07bab8102417498c057d521fa0f27578..c4cf266b80e54e345289d42df11ce9b809a421c4 100644 (file)
@@ -429,7 +429,7 @@ static void ac3_decode_transform_coeffs_ch(AC3DecodeContext *s, int ch_index, ma
     int end_freq   = s->end_freq[ch_index];
     uint8_t *baps  = s->bap[ch_index];
     int8_t *exps   = s->dexps[ch_index];
-    int *coeffs    = s->fixed_coeffs[ch_index];
+    int32_t *coeffs    = s->fixed_coeffs[ch_index];
     int dither     = (ch_index == CPL_CH) || s->dither_flag[ch_index];
     GetBitContext *gbc = &s->gbc;
     int freq;
index 6c99ef6e6aaca20ed7bd20b929d44644ad4916c8..ae72d80c83ec60fe43c92b3dae0f3a73a6160f0d 100644 (file)
@@ -209,7 +209,7 @@ typedef struct AC3DecodeContext {
     float *dlyptr[AC3_MAX_CHANNELS];
 
 ///@name Aligned arrays
-    DECLARE_ALIGNED(16, int,   fixed_coeffs)[AC3_MAX_CHANNELS][AC3_MAX_COEFS];       ///< fixed-point transform coefficients
+    DECLARE_ALIGNED(16, int32_t, fixed_coeffs)[AC3_MAX_CHANNELS][AC3_MAX_COEFS];     ///< fixed-point transform coefficients
     DECLARE_ALIGNED(32, float, transform_coeffs)[AC3_MAX_CHANNELS][AC3_MAX_COEFS];   ///< transform coefficients
     DECLARE_ALIGNED(32, float, delay)[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE];             ///< delay - added to the next block
     DECLARE_ALIGNED(32, float, window)[AC3_BLOCK_SIZE];                              ///< window coefficients
index 431b62e527ba617e34e97f1ef9fd5ceb331941b1..af37da863aedd6923d5fc04378536aa3b4902a3e 100644 (file)
@@ -30,9 +30,9 @@
 
 #define decode_blockcodes decode_blockcodes
 static inline int decode_blockcodes(int code1, int code2, int levels,
-                                    int *values)
+                                    int32_t *values)
 {
-    int v0, v1, v2, v3, v4, v5;
+    int32_t v0, v1, v2, v3, v4, v5;
 
     __asm__ ("smmul   %0,  %6,  %10           \n"
              "smmul   %3,  %7,  %10           \n"
index 1d99c9720a87b2bd676a086288344491437cf849..8f8a1d603eaa8f5c8a814587d7e03dde5c61d3e9 100644 (file)
@@ -25,7 +25,7 @@
 #include "libavcodec/avcodec.h"
 #include "libavcodec/fmtconvert.h"
 
-void ff_int32_to_float_fmul_scalar_neon(float *dst, const int *src,
+void ff_int32_to_float_fmul_scalar_neon(float *dst, const int32_t *src,
                                         float mul, int len);
 
 void ff_float_to_int16_neon(int16_t *dst, const float *src, long len);
index 384a192da70e9d1d4d8cd73cae26a780169f1fa8..aa583742f563b3f40911fde30bcd64a404489440 100644 (file)
@@ -1257,7 +1257,7 @@ static void dca_downmix(float **samples, int srcfmt,
 #ifndef decode_blockcodes
 /* Very compact version of the block code decoder that does not use table
  * look-up but is slightly slower */
-static int decode_blockcode(int code, int levels, int *values)
+static int decode_blockcode(int code, int levels, int32_t *values)
 {
     int i;
     int offset = (levels - 1) >> 1;
@@ -1271,7 +1271,7 @@ static int decode_blockcode(int code, int levels, int *values)
     return code;
 }
 
-static int decode_blockcodes(int code1, int code2, int levels, int *values)
+static int decode_blockcodes(int code1, int code2, int levels, int32_t *values)
 {
     return decode_blockcode(code1, levels, values) |
            decode_blockcode(code2, levels, values + 4);
@@ -1300,7 +1300,7 @@ static int dca_subsubframe(DCAContext *s, int base_channel, int block_index)
 
     /* FIXME */
     float (*subband_samples)[DCA_SUBBANDS][8] = s->subband_samples[block_index];
-    LOCAL_ALIGNED_16(int, block, [8]);
+    LOCAL_ALIGNED_16(int32_t, block, [8]);
 
     /*
      * Audio data
index 632c11d90e8bd18e9554d06685e6c67133390b14..afcbf0d13efa890a1f655318289f2938a4f9037c 100644 (file)
@@ -24,7 +24,7 @@
 #include "fmtconvert.h"
 #include "libavutil/common.h"
 
-static void int32_to_float_fmul_scalar_c(float *dst, const int *src, float mul, int len){
+static void int32_to_float_fmul_scalar_c(float *dst, const int32_t *src, float mul, int len){
     int i;
     for(i=0; i<len; i++)
         dst[i] = src[i] * mul;
index 473a5868b938f3d689b550b7052c3a15e2adb4d6..ea04489a7dafaae408ed65487efcf2024ab7bf2b 100644 (file)
@@ -35,7 +35,7 @@ typedef struct FmtConvertContext {
      * @param len number of elements to convert.
      *            constraints: multiple of 8
      */
-    void (*int32_to_float_fmul_scalar)(float *dst, const int *src, float mul, int len);
+    void (*int32_to_float_fmul_scalar)(float *dst, const int32_t *src, float mul, int len);
 
     /**
      * Convert an array of float to an array of int16_t.
index bf8ead450f81a89e8b007b8d96d8cf48e4caaf75..ee35754f363af4ab73ec48e156ecabe533e54a2f 100644 (file)
@@ -27,7 +27,7 @@
 
 #if HAVE_ALTIVEC
 
-static void int32_to_float_fmul_scalar_altivec(float *dst, const int *src,
+static void int32_to_float_fmul_scalar_altivec(float *dst, const int32_t *src,
                                                float mul, int len)
 {
     union {
index 1bd13fc28adc96373d87f4f248a1cd392c7c8e22..60078e2c2c73885514ecfbae86cbfd58d27653c8 100644 (file)
@@ -32,7 +32,7 @@ SECTION_TEXT
 %endmacro
 
 ;---------------------------------------------------------------------------------
-; void int32_to_float_fmul_scalar(float *dst, const int *src, float mul, int len);
+; void int32_to_float_fmul_scalar(float *dst, const int32_t *src, float mul, int len);
 ;---------------------------------------------------------------------------------
 %macro INT32_TO_FLOAT_FMUL_SCALAR 1
 %if UNIX64
index 91a4cb7af11f51cf0198bd7cd8674a89f8bf1857..340c1925006406821b2c978d03419d3cd388b9e7 100644 (file)
@@ -30,8 +30,8 @@
 
 #if HAVE_YASM
 
-void ff_int32_to_float_fmul_scalar_sse (float *dst, const int *src, float mul, int len);
-void ff_int32_to_float_fmul_scalar_sse2(float *dst, const int *src, float mul, int len);
+void ff_int32_to_float_fmul_scalar_sse (float *dst, const int32_t *src, float mul, int len);
+void ff_int32_to_float_fmul_scalar_sse2(float *dst, const int32_t *src, float mul, int len);
 
 void ff_float_to_int16_3dnow(int16_t *dst, const float *src, long len);
 void ff_float_to_int16_sse  (int16_t *dst, const float *src, long len);