comparison snow.c @ 8611:a637db9f59b1 libavcodec

export gcd function as av_gcd()
author aurel
date Sat, 17 Jan 2009 11:13:33 +0000
parents 7a463923ecd1
children d6bab465b82c
comparison
equal deleted inserted replaced
8610:2ca51be7dad8 8611:a637db9f59b1
4771 } 4771 }
4772 if(FFABS(height/2-y)<9 && level==2) printf("\n"); 4772 if(FFABS(height/2-y)<9 && level==2) printf("\n");
4773 } 4773 }
4774 error= (int)(sqrt(error)+0.5); 4774 error= (int)(sqrt(error)+0.5);
4775 errors[level][orientation]= error; 4775 errors[level][orientation]= error;
4776 if(g) g=ff_gcd(g, error); 4776 if(g) g=av_gcd(g, error);
4777 else g= error; 4777 else g= error;
4778 } 4778 }
4779 } 4779 }
4780 printf("static int const visual_weight[][4]={\n"); 4780 printf("static int const visual_weight[][4]={\n");
4781 for(level=0; level<s.spatial_decomposition_count; level++){ 4781 for(level=0; level<s.spatial_decomposition_count; level++){