void ff_spatial_idwt(int *buffer, int width, int height, int stride, int type, int decomposition_count){
void ff_spatial_idwt(DWTELEM *buffer, int width, int height, int stride, int type, int decomposition_count){
void ff_spatial_idwt(int *buffer, int width, int height, int stride, int type, int decomposition_count){    int level;    for(level=decomposition_count-1; level>=0; level--){        switch(type){        case 0: spatial_compose97i(buffer, width>>level, height>>level, stride<<level); break;        case 1: spatial_compose53i(buffer, width>>level, height>>level, stride<<level); break;        case 2: spatial_composeX  (buffer, width>>level, height>>level, stride<<level); break;        }    }}