static void spatial_composeX(int *buffer, int width, int height, int stride){
static void spatial_composeX(DWTELEM *buffer, int width, int height, int stride){
static void spatial_composeX(int *buffer, int width, int height, int stride){    int x, y;      inplace_liftV(buffer, width, height, stride, COEFFS4, N4, SHIFT4, LX0, 1);    inplace_liftV(buffer, width, height, stride, COEFFS3, N3, SHIFT3, LX1, 1);    inplace_liftV(buffer, width, height, stride, COEFFS2, N2, SHIFT2, LX0, 1);    inplace_liftV(buffer, width, height, stride, COEFFS1, N1, SHIFT1, LX1, 1);    for(y=0; y<height; y++){        horizontal_composeX(buffer + y*stride, width);    }    for(y=0; y<height; y++){        for(x=0; x<width; x++){            buffer[y*stride + x] /= SCALEX;        }    }}