[FFmpeg-cvslog] tests/checkasm/sw_scale: use memset() to fill dither
James Almer
git at videolan.org
Fri Feb 19 21:22:26 EET 2021
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Feb 19 16:19:11 2021 -0300| [d52ceed9fd3655113657d9b572fc2c83b7f913cc] | committer: James Almer
tests/checkasm/sw_scale: use memset() to fill dither
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d52ceed9fd3655113657d9b572fc2c83b7f913cc
---
tests/checkasm/sw_scale.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c
index dee1af820c..a10118704b 100644
--- a/tests/checkasm/sw_scale.c
+++ b/tests/checkasm/sw_scale.c
@@ -86,6 +86,7 @@ static void check_yuv2yuvX(void)
uint16_t coeff[8];
} *vFilterData;
uint8_t d_val = rnd();
+ memset(dither, d_val, LARGEST_INPUT_SIZE);
randomize_buffers((uint8_t*)src_pixels, LARGEST_FILTER * LARGEST_INPUT_SIZE * sizeof(int16_t));
randomize_buffers((uint8_t*)filter_coeff, LARGEST_FILTER * sizeof(int16_t));
ctx = sws_alloc_context();
@@ -93,9 +94,6 @@ static void check_yuv2yuvX(void)
fail();
ff_getSwsFunc(ctx);
- for(i = 0; i < LARGEST_INPUT_SIZE; ++i){
- dither[i] = d_val;
- }
for(isi = 0; isi < INPUT_SIZES; ++isi){
dstW = input_sizes[isi];
for(osi = 0; osi < 64; osi += 16){
More information about the ffmpeg-cvslog
mailing list