void ff_spatial_dwt(int *buffer, int width, int height, int stride, int type, int decomposition_count){
void ff_spatial_dwt(DWTELEM *buffer, int width, int height, int stride, int type, int decomposition_count){
void ff_spatial_dwt(int *buffer, int width, int height, int stride, int type, int decomposition_count){    int level;        for(level=0; level<decomposition_count; level++){        switch(type){        case 0: spatial_decompose97i(buffer, width>>level, height>>level, stride<<level); break;        case 1: spatial_decompose53i(buffer, width>>level, height>>level, stride<<level); break;        case 2: spatial_decomposeX  (buffer, width>>level, height>>level, stride<<level); break;        }    }}