| ... | ... |
@@ -58,15 +58,11 @@ static uint64_t getSSD(uint8_t *src1, uint8_t *src2, int stride1, int stride2, i |
| 58 | 58 |
int x,y; |
| 59 | 59 |
uint64_t ssd=0; |
| 60 | 60 |
|
| 61 |
-//printf("%d %d\n", w, h);
|
|
| 62 |
- |
|
| 63 | 61 |
for (y=0; y<h; y++) {
|
| 64 | 62 |
for (x=0; x<w; x++) {
|
| 65 | 63 |
int d= src1[x + y*stride1] - src2[x + y*stride2]; |
| 66 | 64 |
ssd+= d*d; |
| 67 |
-//printf("%d", abs(src1[x + y*stride1] - src2[x + y*stride2])/26 );
|
|
| 68 | 65 |
} |
| 69 |
-//printf("\n");
|
|
| 70 | 66 |
} |
| 71 | 67 |
return ssd; |
| 72 | 68 |
} |
| ... | ... |
@@ -162,8 +158,6 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, |
| 162 | 162 |
|
| 163 | 163 |
goto end; |
| 164 | 164 |
} |
| 165 |
-// printf("test %X %X %X -> %X %X %X\n", (int)ref[0], (int)ref[1], (int)ref[2],
|
|
| 166 |
-// (int)src[0], (int)src[1], (int)src[2]); |
|
| 167 | 165 |
|
| 168 | 166 |
printf(" %s %dx%d -> %s %3dx%3d flags=%2d",
|
| 169 | 167 |
av_pix_fmt_descriptors[srcFormat].name, srcW, srcH, |
| ... | ... |
@@ -352,9 +352,7 @@ static inline void hScale_c(int16_t *dst, int dstW, const uint8_t *src, |
| 352 | 352 |
int j; |
| 353 | 353 |
int srcPos= filterPos[i]; |
| 354 | 354 |
int val=0; |
| 355 |
- //printf("filterPos: %d\n", filterPos[i]);
|
|
| 356 | 355 |
for (j=0; j<filterSize; j++) {
|
| 357 |
- //printf("filter: %d, src: %d\n", filter[i], src[srcPos + j]);
|
|
| 358 | 356 |
val += ((int)src[srcPos + j])*filter[filterSize*i + j]; |
| 359 | 357 |
} |
| 360 | 358 |
//filter += hFilterSize; |
| ... | ... |
@@ -175,7 +175,6 @@ const char *sws_format_name(enum PixelFormat format) |
| 175 | 175 |
|
| 176 | 176 |
static double getSplineCoeff(double a, double b, double c, double d, double dist) |
| 177 | 177 |
{
|
| 178 |
-// printf("%f %f %f %f %f\n", a,b,c,d,dist);
|
|
| 179 | 178 |
if (dist<=1.0) return ((d*dist + c)*dist + b)*dist +a; |
| 180 | 179 |
else return getSplineCoeff( 0.0, |
| 181 | 180 |
b+ 2.0*c + 3.0*d, |
| ... | ... |
@@ -2190,7 +2190,6 @@ static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst, |
| 2190 | 2190 |
#endif |
| 2191 | 2191 |
); |
| 2192 | 2192 |
for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) {
|
| 2193 |
- //printf("%d %d %d\n", dstWidth, i, srcW);
|
|
| 2194 | 2193 |
dst[i] = src1[srcW-1]*128; |
| 2195 | 2194 |
dst[i+VOFW] = src2[srcW-1]*128; |
| 2196 | 2195 |
} |