37 s.spatial_decomposition_count=6;
38 s.spatial_decomposition_type=1;
43 if (!
s.temp_dwt_buffer || !
s.temp_idwt_buffer) {
44 fprintf(stderr,
"Failed to allocate memory\n");
50 printf(
"testing 5/3 DWT\n");
60 printf(
"testing 9/7 DWT\n");
61 s.spatial_decomposition_type=0;
72 int level, orientation, x, y;
77 s.spatial_decomposition_count=3;
78 s.spatial_decomposition_type=0;
80 for(orientation=
level ? 1 : 0; orientation<4; orientation++){
87 if(orientation&1)
buf+=
w;
94 for(x=0; x<
width; x++){
107 printf(
"static int const visual_weight[][4]={\n");
110 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++){