# HG changeset patch # User michael # Date 1095604989 0 # Node ID c26038875ebc7e8cc36160c25349f40ba0037eb1 # Parent c46fed9b7575a1f19275f5b7d39dfd26c79eca73 consistent use of types patch by (D Richard Felker III ) diff -r c46fed9b7575 -r c26038875ebc snow.c --- a/snow.c Fri Sep 17 23:51:36 2004 +0000 +++ b/snow.c Sun Sep 19 14:43:09 2004 +0000 @@ -618,7 +618,7 @@ } -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 @@ 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 @@ 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 @@ #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 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 @@ 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 @@ 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--){