36 s.spatial_decomposition_count=6;
37 s.spatial_decomposition_type=1;
42 if (!
s.temp_dwt_buffer || !
s.temp_idwt_buffer) {
43 fprintf(stderr,
"Failed to allocate memory\n");
50 printf(
"testing 5/3 DWT\n");
65 printf(
"testing 9/7 DWT\n");
66 s.spatial_decomposition_type=0;
82 int level, orientation, x, y;
87 s.spatial_decomposition_count=3;
88 s.spatial_decomposition_type=0;
90 for(orientation=
level ? 1 : 0; orientation<4; orientation++){
97 if(orientation&1) buf+=
w;
98 if(orientation>1) buf+=
stride>>1;
104 for(x=0; x<
width; x++){
117 printf(
"static int const visual_weight[][4]={\n");
120 for(orientation=0; orientation<4; orientation++){
129 for(x=0; x<
width; x++){
130 int tab[4]={0,2,3,1};
136 for(x=0; x<
width; x++){