wresample/rematrix_template: fix internal types

Should make no difference, but future commits will need it

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-06-04 14:53:58 +02:00
parent 372e00793f
commit f3c638eac1
1 changed files with 7 additions and 7 deletions

View File

@ -42,8 +42,8 @@ typedef void (RENAME(mix_any_func_type))(SAMPLE **out, const SAMPLE **in1, COEFF
static void RENAME(sum2)(SAMPLE *out, const SAMPLE *in1, const SAMPLE *in2, COEFF *coeffp, integer index1, integer index2, integer len){ static void RENAME(sum2)(SAMPLE *out, const SAMPLE *in1, const SAMPLE *in2, COEFF *coeffp, integer index1, integer index2, integer len){
int i; int i;
COEFF coeff1 = coeffp[index1]; INTER coeff1 = coeffp[index1];
COEFF coeff2 = coeffp[index2]; INTER coeff2 = coeffp[index2];
for(i=0; i<len; i++) for(i=0; i<len; i++)
out[i] = R(coeff1*in1[i] + coeff2*in2[i]); out[i] = R(coeff1*in1[i] + coeff2*in2[i]);
@ -51,7 +51,7 @@ static void RENAME(sum2)(SAMPLE *out, const SAMPLE *in1, const SAMPLE *in2, COEF
static void RENAME(copy)(SAMPLE *out, const SAMPLE *in, COEFF *coeffp, integer index, integer len){ static void RENAME(copy)(SAMPLE *out, const SAMPLE *in, COEFF *coeffp, integer index, integer len){
int i; int i;
COEFF coeff = coeffp[index]; INTER coeff = coeffp[index];
for(i=0; i<len; i++) for(i=0; i<len; i++)
out[i] = R(coeff*in[i]); out[i] = R(coeff*in[i]);
} }
@ -61,8 +61,8 @@ static void RENAME(mix6to2)(SAMPLE **out, const SAMPLE **in, COEFF *coeffp, inte
for(i=0; i<len; i++) { for(i=0; i<len; i++) {
INTER t = in[2][i]*coeffp[0*6+2] + in[3][i]*coeffp[0*6+3]; INTER t = in[2][i]*coeffp[0*6+2] + in[3][i]*coeffp[0*6+3];
out[0][i] = R(t + in[0][i]*coeffp[0*6+0] + in[4][i]*coeffp[0*6+4]); out[0][i] = R(t + in[0][i]*(INTER)coeffp[0*6+0] + in[4][i]*(INTER)coeffp[0*6+4]);
out[1][i] = R(t + in[1][i]*coeffp[1*6+1] + in[5][i]*coeffp[1*6+5]); out[1][i] = R(t + in[1][i]*(INTER)coeffp[1*6+1] + in[5][i]*(INTER)coeffp[1*6+5]);
} }
} }
@ -71,8 +71,8 @@ static void RENAME(mix8to2)(SAMPLE **out, const SAMPLE **in, COEFF *coeffp, inte
for(i=0; i<len; i++) { for(i=0; i<len; i++) {
INTER t = in[2][i]*coeffp[0*8+2] + in[3][i]*coeffp[0*8+3]; INTER t = in[2][i]*coeffp[0*8+2] + in[3][i]*coeffp[0*8+3];
out[0][i] = R(t + in[0][i]*coeffp[0*8+0] + in[4][i]*coeffp[0*8+4] + in[6][i]*coeffp[0*8+6]); out[0][i] = R(t + in[0][i]*(INTER)coeffp[0*8+0] + in[4][i]*(INTER)coeffp[0*8+4] + in[6][i]*(INTER)coeffp[0*8+6]);
out[1][i] = R(t + in[1][i]*coeffp[1*8+1] + in[5][i]*coeffp[1*8+5] + in[7][i]*coeffp[1*8+7]); out[1][i] = R(t + in[1][i]*(INTER)coeffp[1*8+1] + in[5][i]*(INTER)coeffp[1*8+5] + in[7][i]*(INTER)coeffp[1*8+7]);
} }
} }