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");
54 printf(
"testing 5/3 DWT\n");
69 printf(
"testing 9/7 DWT\n");
70 s.spatial_decomposition_type=0;
86 int level, orientation, x, y;
91 s.spatial_decomposition_count=3;
92 s.spatial_decomposition_type=0;
94 for(orientation=
level ? 1 : 0; orientation<4; orientation++){
101 if(orientation&1) buf+=
w;
102 if(orientation>1) buf+=
stride>>1;
108 for(x=0; x<
width; x++){
121 printf(
"static int const visual_weight[][4]={\n");
124 for(orientation=0; orientation<4; orientation++){
133 for(x=0; x<
width; x++){
134 int tab[4]={0,2,3,1};
140 for(x=0; x<
width; x++){