Mercurial > libavcodec.hg
comparison snow.c @ 9197:ce32a456ce9a libavcodec
Align test program output columns.
author | diego |
---|---|
date | Fri, 20 Mar 2009 11:40:05 +0000 |
parents | d6bab465b82c |
children | ea0e5e9a520f |
comparison
equal
deleted
inserted
replaced
9196:460555ca9253 | 9197:ce32a456ce9a |
---|---|
4706 | 4706 |
4707 ff_spatial_dwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); | 4707 ff_spatial_dwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); |
4708 ff_spatial_idwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); | 4708 ff_spatial_idwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); |
4709 | 4709 |
4710 for(i=0; i<width*height; i++) | 4710 for(i=0; i<width*height; i++) |
4711 if(buffer[0][i]!= buffer[1][i]) printf("fsck: %d %d %d\n",i, buffer[0][i], buffer[1][i]); | 4711 if(buffer[0][i]!= buffer[1][i]) printf("fsck: %6d %12d %7d\n",i, buffer[0][i], buffer[1][i]); |
4712 | 4712 |
4713 printf("testing 9/7 DWT\n"); | 4713 printf("testing 9/7 DWT\n"); |
4714 s.spatial_decomposition_type=0; | 4714 s.spatial_decomposition_type=0; |
4715 for(i=0; i<width*height; i++) | 4715 for(i=0; i<width*height; i++) |
4716 buffer[0][i]= buffer[1][i]= random()%54321 - 12345; | 4716 buffer[0][i]= buffer[1][i]= random()%54321 - 12345; |
4717 | 4717 |
4718 ff_spatial_dwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); | 4718 ff_spatial_dwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); |
4719 ff_spatial_idwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); | 4719 ff_spatial_idwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); |
4720 | 4720 |
4721 for(i=0; i<width*height; i++) | 4721 for(i=0; i<width*height; i++) |
4722 if(FFABS(buffer[0][i] - buffer[1][i])>20) printf("fsck: %d %d %d\n",i, buffer[0][i], buffer[1][i]); | 4722 if(FFABS(buffer[0][i] - buffer[1][i])>20) printf("fsck: %6d %12d %7d\n",i, buffer[0][i], buffer[1][i]); |
4723 | 4723 |
4724 #if 0 | 4724 #if 0 |
4725 printf("testing AC coder\n"); | 4725 printf("testing AC coder\n"); |
4726 memset(s.header_state, 0, sizeof(s.header_state)); | 4726 memset(s.header_state, 0, sizeof(s.header_state)); |
4727 ff_init_range_encoder(&s.c, buffer[0], 256*256); | 4727 ff_init_range_encoder(&s.c, buffer[0], 256*256); |