38 s.spatial_decomposition_count=6;
39 s.spatial_decomposition_type=1;
45 if (!
s.temp_dwt_buffer || !
s.temp_idwt_buffer) {
46 fprintf(stderr,
"Failed to allocate memory\n");
52 printf(
"testing 5/3 DWT\n");
67 printf(
"testing 9/7 DWT\n");
68 s.spatial_decomposition_type=0;
84 int level, orientation, x, y;
89 s.spatial_decomposition_count=3;
90 s.spatial_decomposition_type=0;
92 for(orientation=
level ? 1 : 0; orientation<4; orientation++){
99 if(orientation&1) buf+=
w;
100 if(orientation>1) buf+=
stride>>1;
106 for(x=0; x<
width; x++){
107 int64_t
d= obuffer[x + y*
width];
119 printf(
"static int const visual_weight[][4]={\n");
122 for(orientation=0; orientation<4; orientation++){
131 for(x=0; x<
width; x++){
132 int tab[4]={0,2,3,1};
138 for(x=0; x<
width; x++){