40 s.spatial_decomposition_count=6;
41 s.spatial_decomposition_type=1;
46 if (!
s.temp_dwt_buffer || !
s.temp_idwt_buffer) {
47 fprintf(stderr,
"Failed to allocate memory\n");
53 printf(
"testing 5/3 DWT\n");
68 printf(
"testing 9/7 DWT\n");
69 s.spatial_decomposition_type=0;
85 int level, orientation, x, y;
90 s.spatial_decomposition_count=3;
91 s.spatial_decomposition_type=0;
93 for(orientation=
level ? 1 : 0; orientation<4; orientation++){
100 if(orientation&1) buf+=
w;
101 if(orientation>1) buf+=
stride>>1;
107 for(x=0; x<
width; x++){
120 printf(
"static int const visual_weight[][4]={\n");
123 for(orientation=0; orientation<4; orientation++){
132 for(x=0; x<
width; x++){
133 int tab[4]={0,2,3,1};
139 for(x=0; x<
width; x++){