Mercurial > libavcodec.hg
comparison snow.c @ 4122:daae66c03857 libavcodec
Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com
author | diego |
---|---|
date | Wed, 01 Nov 2006 22:39:58 +0000 |
parents | 5bce97c30a69 |
children | 5c86acb39889 |
comparison
equal
deleted
inserted
replaced
4121:fb40acd09af3 | 4122:daae66c03857 |
---|---|
4614 ff_spatial_idwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); | 4614 ff_spatial_idwt(buffer[0], width, height, width, s.spatial_decomposition_type, s.spatial_decomposition_count); |
4615 for(y=0; y<height; y++){ | 4615 for(y=0; y<height; y++){ |
4616 for(x=0; x<width; x++){ | 4616 for(x=0; x<width; x++){ |
4617 int64_t d= buffer[0][x + y*width]; | 4617 int64_t d= buffer[0][x + y*width]; |
4618 error += d*d; | 4618 error += d*d; |
4619 if(FFABS(width/2-x)<9 && FFABS(height/2-y)<9 && level==2) printf("%8lld ", d); | 4619 if(FFABS(width/2-x)<9 && FFABS(height/2-y)<9 && level==2) printf("%8"PRId64" ", d); |
4620 } | 4620 } |
4621 if(FFABS(height/2-y)<9 && level==2) printf("\n"); | 4621 if(FFABS(height/2-y)<9 && level==2) printf("\n"); |
4622 } | 4622 } |
4623 error= (int)(sqrt(error)+0.5); | 4623 error= (int)(sqrt(error)+0.5); |
4624 errors[level][orientation]= error; | 4624 errors[level][orientation]= error; |
4628 } | 4628 } |
4629 printf("static int const visual_weight[][4]={\n"); | 4629 printf("static int const visual_weight[][4]={\n"); |
4630 for(level=0; level<s.spatial_decomposition_count; level++){ | 4630 for(level=0; level<s.spatial_decomposition_count; level++){ |
4631 printf(" {"); | 4631 printf(" {"); |
4632 for(orientation=0; orientation<4; orientation++){ | 4632 for(orientation=0; orientation<4; orientation++){ |
4633 printf("%8lld,", errors[level][orientation]/g); | 4633 printf("%8"PRId64",", errors[level][orientation]/g); |
4634 } | 4634 } |
4635 printf("},\n"); | 4635 printf("},\n"); |
4636 } | 4636 } |
4637 printf("};\n"); | 4637 printf("};\n"); |
4638 { | 4638 { |
4667 #endif | 4667 #endif |
4668 for(y=0; y<height; y++){ | 4668 for(y=0; y<height; y++){ |
4669 for(x=0; x<width; x++){ | 4669 for(x=0; x<width; x++){ |
4670 int64_t d= buffer[0][x + y*width]; | 4670 int64_t d= buffer[0][x + y*width]; |
4671 error += d*d; | 4671 error += d*d; |
4672 if(FFABS(width/2-x)<9 && FFABS(height/2-y)<9) printf("%8lld ", d); | 4672 if(FFABS(width/2-x)<9 && FFABS(height/2-y)<9) printf("%8"PRId64" ", d); |
4673 } | 4673 } |
4674 if(FFABS(height/2-y)<9) printf("\n"); | 4674 if(FFABS(height/2-y)<9) printf("\n"); |
4675 } | 4675 } |
4676 } | 4676 } |
4677 | 4677 |