Revision b6f1e7ec libswscale/swscale-test.c

View differences:

libswscale/swscale-test.c
149 149
//    printf("test %X %X %X -> %X %X %X\n", (int)ref[0], (int)ref[1], (int)ref[2],
150 150
//        (int)src[0], (int)src[1], (int)src[2]);
151 151

  
152
    printf(" %s %dx%d -> %s %4dx%4d flags=%2d",
153
           av_pix_fmt_descriptors[srcFormat].name, srcW, srcH,
154
           av_pix_fmt_descriptors[dstFormat].name, dstW, dstH,
155
           flags);
156
    fflush(stdout);
157

  
152 158
    sws_scale(srcContext, ref, refStride, 0, h   , src, srcStride);
153 159
    sws_scale(dstContext, src, srcStride, 0, srcH, dst, dstStride);
154 160
    sws_scale(outContext, dst, dstStride, 0, dstH, out, refStride);
......
167 173
    ssdV/= w*h/4;
168 174
    ssdA/= w*h;
169 175

  
170
    printf(" %s %dx%d -> %s %4dx%4d flags=%2d SSD=%5"PRId64",%5"PRId64",%5"PRId64",%5"PRId64"\n",
171
           av_pix_fmt_descriptors[srcFormat].name, srcW, srcH,
172
           av_pix_fmt_descriptors[dstFormat].name, dstW, dstH,
173
           flags, ssdY, ssdU, ssdV, ssdA);
174
    fflush(stdout);
176
    printf(" SSD=%5"PRId64",%5"PRId64",%5"PRId64",%5"PRId64"\n",
177
           ssdY, ssdU, ssdV, ssdA);
175 178

  
176 179
end:
177 180

  

Also available in: Unified diff