From aa25a462b691e7d156325cf07f853fd259aaf781 Mon Sep 17 00:00:00 2001 From: D Richard Felker III Date: Sun, 19 Sep 2004 14:43:09 +0000 Subject: [PATCH] consistent use of types patch by (D Richard Felker III ) Originally committed as revision 3480 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/snow.c | 68 +++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 62a7a131d2..8d187016db 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -618,7 +618,7 @@ static always_inline void lift5(DWTELEM *dst, DWTELEM *src, DWTELEM *ref, int ds } -static void inplace_lift(int *dst, int width, int *coeffs, int n, int shift, int start, int inverse){ +static void inplace_lift(DWTELEM *dst, int width, int *coeffs, int n, int shift, int start, int inverse){ int x, i; for(x=start; x>1; const int w2= (width+1)>>1; int A1,A2,A3,A4, x; @@ -787,8 +787,8 @@ static void horizontal_decomposeX(int *b, int width){ memcpy(b, temp, width*sizeof(int)); } -static void horizontal_composeX(int *b, int width){ - int temp[width]; +static void horizontal_composeX(DWTELEM *b, int width){ + DWTELEM temp[width]; const int width2= width>>1; int A1,A2,A3,A4, x; const int w2= (width+1)>>1; @@ -807,7 +807,7 @@ static void horizontal_composeX(int *b, int width){ inplace_lift(b, width, COEFFS1, N1, SHIFT1, LX1, 1); } -static void spatial_decomposeX(int *buffer, int width, int height, int stride){ +static void spatial_decomposeX(DWTELEM *buffer, int width, int height, int stride){ int x, y; for(y=0; y>1; int A1,A2,A3,A4, x; const int w2= (width+1)>>1; @@ -891,7 +891,7 @@ static void horizontal_decompose53i(int *b, int width){ #endif } -static void vertical_decompose53iH0(int *b0, int *b1, int *b2, int width){ +static void vertical_decompose53iH0(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width){ int i; for(i=0; i>1; lift (temp+w2, b +1, b , 1, 2, 2, width, -W_AM, W_AO, W_AS, 1, 0); @@ -1011,7 +1011,7 @@ static void horizontal_decompose97i(int *b, int width){ } -static void vertical_decompose97iH0(int *b0, int *b1, int *b2, int width){ +static void vertical_decompose97iH0(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width){ int i; for(i=0; i>1; const int w2= (width+1)>>1; int A1,A2,A3,A4, x; @@ -1143,7 +1143,7 @@ static void horizontal_compose53i(int *b, int width){ b[2*x ]= temp[x ]; } -static void vertical_compose53iH0(int *b0, int *b1, int *b2, int width){ +static void vertical_compose53iH0(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width){ int i; for(i=0; i>1; lift (temp , b , b +w2, 1, 1, 1, width, W_DM, W_DO, W_DS, 0, 1); @@ -1194,7 +1194,7 @@ static void horizontal_compose97i(int *b, int width){ lift (b+1 , temp+w2, b , 2, 1, 2, width, -W_AM, W_AO, W_AS, 1, 1); } -static void vertical_compose97iH0(int *b0, int *b1, int *b2, int width){ +static void vertical_compose97iH0(DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width){ int i; for(i=0; i=0; level--){