mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-05-03 17:45:06 +02:00
swscale/tests/swscale: indent after previous commit
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
This commit is contained in:
@@ -302,32 +302,32 @@ static void print_results(const AVFrame *ref, const AVFrame *src, const AVFrame
|
||||
float expected_loss)
|
||||
{
|
||||
if (av_log_get_level() >= AV_LOG_INFO) {
|
||||
printf("%s %dx%d -> %s %3dx%3d, flags=0x%x dither=%u, ",
|
||||
av_get_pix_fmt_name(src->format), src->width, src->height,
|
||||
av_get_pix_fmt_name(dst->format), dst->width, dst->height,
|
||||
mode->flags, mode->dither);
|
||||
printf("%s %dx%d -> %s %3dx%3d, flags=0x%x dither=%u, ",
|
||||
av_get_pix_fmt_name(src->format), src->width, src->height,
|
||||
av_get_pix_fmt_name(dst->format), dst->width, dst->height,
|
||||
mode->flags, mode->dither);
|
||||
|
||||
printf("SSIM {Y=%f U=%f V=%f A=%f}",
|
||||
r->ssim[0], r->ssim[1], r->ssim[2], r->ssim[3]);
|
||||
printf("SSIM {Y=%f U=%f V=%f A=%f}",
|
||||
r->ssim[0], r->ssim[1], r->ssim[2], r->ssim[3]);
|
||||
|
||||
if (opts->bench && ref_r->time) {
|
||||
double ratio = (double) ref_r->time / r->time;
|
||||
if (FFMIN(r->time, ref_r->time) > 100 /* don't pollute stats with low precision */) {
|
||||
speedup_min = FFMIN(speedup_min, ratio);
|
||||
speedup_max = FFMAX(speedup_max, ratio);
|
||||
speedup_logavg += log(ratio);
|
||||
speedup_count++;
|
||||
}
|
||||
if (opts->bench && ref_r->time) {
|
||||
double ratio = (double) ref_r->time / r->time;
|
||||
if (FFMIN(r->time, ref_r->time) > 100 /* don't pollute stats with low precision */) {
|
||||
speedup_min = FFMIN(speedup_min, ratio);
|
||||
speedup_max = FFMAX(speedup_max, ratio);
|
||||
speedup_logavg += log(ratio);
|
||||
speedup_count++;
|
||||
}
|
||||
|
||||
printf(" time=%"PRId64" us, ref=%"PRId64" us, speedup=%.3fx %s%s\033[0m",
|
||||
r->time / opts->iters, ref_r->time / opts->iters, ratio,
|
||||
speedup_color(ratio), ratio >= 1.0 ? "faster" : "slower");
|
||||
} else if (opts->bench) {
|
||||
printf(" time=%"PRId64" us", r->time / opts->iters);
|
||||
}
|
||||
printf("\n");
|
||||
} else if (opts->bench) {
|
||||
printf(" time=%"PRId64" us", r->time / opts->iters);
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
fflush(stdout);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
if (r->loss - expected_loss > 1e-4 && dst_w >= ref->width && dst_h >= ref->height) {
|
||||
|
||||
Reference in New Issue
Block a user