diff mbox series

[FFmpeg-devel,v2,09/16] checkasm/sw_range_convert: indent after previous couple of commits

Message ID 20240927125241.15887-10-ramiro.polla@gmail.com
State New
Headers show
Series swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats | expand

Commit Message

Ramiro Polla Sept. 27, 2024, 12:52 p.m. UTC
---
 tests/checkasm/sw_range_convert.c | 48 +++++++++++++++----------------
 1 file changed, 24 insertions(+), 24 deletions(-)
diff mbox series

Patch

diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index e3e5096729..01c4549e53 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -83,19 +83,19 @@  static void check_lumConvertRange(int from)
         ctx->dstFormat = pix_fmt;
         ctx->dstBpc = bit_depth;
         ff_sws_init_scale(ctx);
-    for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) {
-        int width = input_sizes[dstWi];
-        if (check_func(ctx->lumConvertRange, "%s%d_%d", func_str, bit_depth, width)) {
-            randomize_buffers(dst0, dst1, bit_depth, width);
-            call_ref(dst0, width);
-            call_new(dst1, width);
-            if (memcmp(dst0, dst1, width * sample_size))
-                fail();
-            if (width == LARGEST_INPUT_SIZE && (bit_depth == 8 || bit_depth == 16))
-            bench_new(dst1, width);
+        for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) {
+            int width = input_sizes[dstWi];
+            if (check_func(ctx->lumConvertRange, "%s%d_%d", func_str, bit_depth, width)) {
+                randomize_buffers(dst0, dst1, bit_depth, width);
+                call_ref(dst0, width);
+                call_new(dst1, width);
+                if (memcmp(dst0, dst1, width * sample_size))
+                    fail();
+                if (width == LARGEST_INPUT_SIZE && (bit_depth == 8 || bit_depth == 16))
+                    bench_new(dst1, width);
+            }
         }
     }
-    }
 
     sws_freeContext(ctx);
 }
@@ -131,21 +131,21 @@  static void check_chrConvertRange(int from)
         ctx->dstFormat = pix_fmt;
         ctx->dstBpc = bit_depth;
         ff_sws_init_scale(ctx);
-    for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) {
-        int width = input_sizes[dstWi];
-        if (check_func(ctx->chrConvertRange, "%s%d_%d", func_str, bit_depth, width)) {
-            randomize_buffers(dstU0, dstU1, bit_depth, width);
-            randomize_buffers(dstV0, dstV1, bit_depth, width);
-            call_ref(dstU0, dstV0, width);
-            call_new(dstU1, dstV1, width);
-            if (memcmp(dstU0, dstU1, width * sample_size) ||
-                memcmp(dstV0, dstV1, width * sample_size))
-                fail();
-            if (width == LARGEST_INPUT_SIZE && (bit_depth == 8 || bit_depth == 16))
-            bench_new(dstU1, dstV1, width);
+        for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) {
+            int width = input_sizes[dstWi];
+            if (check_func(ctx->chrConvertRange, "%s%d_%d", func_str, bit_depth, width)) {
+                randomize_buffers(dstU0, dstU1, bit_depth, width);
+                randomize_buffers(dstV0, dstV1, bit_depth, width);
+                call_ref(dstU0, dstV0, width);
+                call_new(dstU1, dstV1, width);
+                if (memcmp(dstU0, dstU1, width * sample_size) ||
+                    memcmp(dstV0, dstV1, width * sample_size))
+                    fail();
+                if (width == LARGEST_INPUT_SIZE && (bit_depth == 8 || bit_depth == 16))
+                    bench_new(dstU1, dstV1, width);
+            }
         }
     }
-    }
 
     sws_freeContext(ctx);
 }