mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-24 08:48:37 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
6e80d07a48c056bfbef85a25e4679693
|
||||
f14d6b179843b86854e9f80b599b5d86
|
||||
|
||||
Reference in New Issue
Block a user