swscale/tests/sws_ops: only print actually compiled ops lists

We already have the unoptimized reference ops; printing each intermediate
stage here is just noise that makes this file harder to scroll through IMO.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-06-20 16:17:58 +02:00
committed by Niklas Haas
parent 17154619e5
commit 409b870bd6
2 changed files with 8 additions and 9 deletions

View File

@@ -34,20 +34,19 @@ static int pass_idx;
static int print_ops(SwsContext *ctx, const SwsOpList *ops, SwsCompiledOp *out)
{
if (pass_idx > 0)
av_log(NULL, AV_LOG_INFO, " Sub-pass #%d:\n", pass_idx);
ff_sws_op_list_print(NULL, AV_LOG_INFO, AV_LOG_INFO, ops);
SwsUOpList *uops = ff_sws_uop_list_alloc();
if (!uops)
return AVERROR(ENOMEM);
int ret = ff_sws_ops_translate(ctx, ops, 0, uops);
if (ret == AVERROR(ENOTSUP)) {
av_log(NULL, AV_LOG_INFO, " Retrying with split passes:\n");
if (ret == AVERROR(ENOTSUP))
goto fail;
} else if (ret < 0) {
if (pass_idx > 0)
av_log(NULL, AV_LOG_INFO, " Sub-pass #%d:\n", pass_idx);
ff_sws_op_list_print(NULL, AV_LOG_INFO, AV_LOG_INFO, ops);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Error translating ops: %s\n", av_err2str(ret));
goto fail;
}

View File

@@ -1 +1 @@
6e80d07a48c056bfbef85a25e4679693
f14d6b179843b86854e9f80b599b5d86