aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2024-09-23 14:03:43 +0200
committerRamiro Polla <ramiro.polla@gmail.com>2024-10-27 13:20:56 +0100
commit562524587ea80c1b5f6a91b86b53e06d799e5667 (patch)
tree3becc58b7545108520585d995760cbbca3bee2be
parent031d98790ee06d8acd6182738e6f9c8d3c760d66 (diff)
downloadffmpeg-562524587ea80c1b5f6a91b86b53e06d799e5667.tar.gz
checkasm/sw_range_convert: indent after previous couple of commits
-rw-r--r--tests/checkasm/sw_range_convert.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index 7c39f71660..f8167a411e 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -85,19 +85,19 @@ static void check_lumConvertRange(int from)
c->dstFormat = pix_fmt;
c->dstBpc = bit_depth;
ff_sws_init_scale(c);
- for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) {
- int width = input_sizes[dstWi];
- if (check_func(c->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(c->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(sws);
}
@@ -135,21 +135,21 @@ static void check_chrConvertRange(int from)
c->dstFormat = pix_fmt;
c->dstBpc = bit_depth;
ff_sws_init_scale(c);
- for (int dstWi = 0; dstWi < FF_ARRAY_ELEMS(input_sizes); dstWi++) {
- int width = input_sizes[dstWi];
- if (check_func(c->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(c->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(sws);
}