ffmpeg/tests/checkasm
Jun Zhao eef9672b02 checkasm/hevc_pel: rename loop variable 'size' to 'idx' to avoid confusion
The variable 'size' is used as a loop index for the 'sizes' array.
This naming similarity is error-prone and recently led to a typo where
'size[sizes]' was written instead of 'sizes[size]'.

Rename the loop index variable from 'size' to 'idx' across all 10 test
functions to make the code more readable and prevent similar typos.

Additionally, replace the hardcoded loop upper bound '10' with
'FF_ARRAY_ELEMS(sizes)' for better maintainability.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2026-02-03 22:57:20 +08:00
..
aarch64 checkasm: aarch64: Check for stack overflows 2020-05-15 21:22:36 +03:00
arm checkasm: arm: Check for stack overflows 2020-05-15 21:22:34 +03:00
riscv checkasm/riscv: preserve T1 whilst calling... 2024-08-01 18:44:01 +03:00
x86 x86: replace explicit REP_RETs with RETs 2023-02-01 04:23:55 +01:00
.gitignore
aacencdsp.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
aacpsdsp.c lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h 2021-01-01 14:11:01 +01:00
ac3dsp.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
aes.c checkasm: add tests for AES 2025-04-06 11:02:10 -03:00
af_afir.c checkasm: test for dcmul_add 2023-11-27 17:55:24 +02:00
alacdsp.c lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h 2021-01-01 14:11:01 +01:00
apv_dsp.c lavc/apv: AVX2 transquant for x86-64 2025-04-27 15:52:30 +01:00
audiodsp.c checkasm/audiodsp: Be strict about MMX 2022-10-11 14:18:54 +02:00
av_tx.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
blockdsp.c checkasm/blockdsp: use smallest allowed aligned buffers for fill_block_tab tests 2024-05-08 21:13:23 -03:00
bswapdsp.c lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h 2021-01-01 14:11:01 +01:00
checkasm.c tests/checkasm: add check for vf_colordetect 2025-07-21 18:10:26 +02:00
checkasm.h checkasm/h264dsp: Fix stack-buffer-overflow, effective-type violations 2025-07-28 19:29:51 +02:00
diracdsp.c tests/checkasm/diracdsp: fix alignment for src and ombc_weight buffers 2024-11-19 12:32:49 -03:00
exrdsp.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
fdctdsp.c checkasm: add test for fdct 2024-05-11 10:28:59 +02:00
fixed_dsp.c configure: Remove av_restrict 2024-03-15 12:51:15 +01:00
flacdsp.c checkasm/flacdsp: add a test for lpc33 2024-05-24 09:23:00 -03:00
float_dsp.c checkasm/float_dsp: add double-precision scalar product 2024-05-31 22:22:43 +03:00
fmtconvert.c avcodec/fmtconvert: Remove unused AVCodecContext parameter 2022-09-21 20:26:40 +02:00
g722dsp.c checkasm: add a g722dsp test 2017-07-13 17:00:19 -03:00
h263dsp.c checkasm: add h263dsp.{h,v}_loop_filter 2024-05-27 22:42:07 +03:00
h264chroma.c checkasm: Fix h264chroma test name 2024-05-11 11:36:20 +03:00
h264dsp.c checkasm/h264dsp: Fix stack-buffer-overflow, effective-type violations 2025-07-28 19:29:51 +02:00
h264pred.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
h264qpel.c lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h 2021-01-01 14:11:01 +01:00
hevc_add_res.c lavc/hevc*: move to hevc/ subdir 2024-06-04 11:46:27 +02:00
hevc_deblock.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
hevc_idct.c lavc/hevc*: move to hevc/ subdir 2024-06-04 11:46:27 +02:00
hevc_pel.c checkasm/hevc_pel: rename loop variable 'size' to 'idx' to avoid confusion 2026-02-03 22:57:20 +08:00
hevc_sao.c checkasm: hevc sao, use checkasm_check_padded 2025-05-14 20:55:39 +08:00
huffyuvdsp.c tests/checkasm/huffyuvdsp: Use correct function pointer type 2024-05-17 13:29:34 +02:00
idctdsp.c avcodec/idctdsp: Avoid inclusion of avcodec.h 2023-09-11 00:26:34 +02:00
jpeg2000dsp.c lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h 2021-01-01 14:11:01 +01:00
llauddsp.c tests/checkasm/llauddsp: Avoid UB integer overflow 2024-05-17 13:16:58 +02:00
lls.c checkasm: lls: Use relative tolerances rather than absolute ones 2024-10-09 15:52:56 +03:00
llviddsp.c tests/checkasm: Fix build error when enable linux perf on Android 2024-06-11 01:11:46 +08:00
llviddspenc.c tests/checkasm/llvidencdsp: Don't use declare_func_emms 2023-09-04 11:04:45 +02:00
lpc.c checkasm/lpc: use fixed length to bench apply_welch_window 2024-05-31 17:06:08 -03:00
Makefile tests/checkasm: add check for vf_colordetect 2025-07-21 18:10:26 +02:00
motion.c avcodec/mpegvideoenc: Add MPVEncContext 2025-03-26 04:08:33 +01:00
mpegvideoencdsp.c avcodec/mpegvideoencdsp: convert stride parameters from int to ptrdiff_t 2024-09-01 13:42:30 +02:00
opusdsp.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
pixblockdsp.c avcodec/pixblockdsp: Pass bits_per_raw_sample directly 2025-05-31 01:27:09 +02:00
rv34dsp.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
rv40dsp.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
sbrdsp.c checkasm: test the noise case of sbrdsp.hf_apply_noise 2023-11-13 18:34:29 +02:00
scene_sad.c tests/checkasm: add scene_sad checkasm test 2025-07-17 12:26:05 +02:00
svq1enc.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
sw_gbrp.c swscale: eliminate redundant SwsInternal accesses 2024-11-25 10:59:52 +01:00
sw_range_convert.c swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats 2024-12-05 21:10:29 +01:00
sw_rgb.c checkasm/swscale: fix function prototypes 2025-07-17 00:28:21 +02:00
sw_scale.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
sw_yuv2rgb.c checkasm/swscale: fix function prototypes 2025-07-17 00:28:21 +02:00
sw_yuv2yuv.c checkasm/swscale: fix function prototypes 2025-07-17 00:28:21 +02:00
synth_filter.c dca_core: convert to lavu/tx 2022-11-06 14:39:36 +01:00
takdsp.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
utvideodsp.c tests/checkasm: Improve included headers 2024-03-02 02:54:12 +01:00
v210dec.c checkasm/v210dec: add extra space to the destination arrays 2022-12-21 00:36:49 +01:00
v210enc.c checkasm/v210enc.c: Use checkasm_check() 2025-04-01 18:31:58 +03:00
vc1dsp.c checkasm: vc1dsp: Align buffers sufficiently for the mspel tests 2024-04-30 23:13:47 +03:00
vf_blackdetect.c tests/checkasm: add test for vf_blackdetect 2025-07-18 10:47:31 +02:00
vf_blend.c tests/checkasm/vf_blend: Update function type 2024-05-17 13:35:33 +02:00
vf_bwdif.c tests/checkasm/vf_bwdif: Use correct function pointer type 2024-05-17 13:31:37 +02:00
vf_colordetect.c tests/checkasm: add check for vf_colordetect 2025-07-21 18:10:26 +02:00
vf_colorspace.c tests/checkasm/vf_colorspace: Use correct function pointer type 2024-05-17 13:31:23 +02:00
vf_convolution.c libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI 2022-11-14 10:04:16 +08:00
vf_eq.c lavu: move LOCAL_ALIGNED from internal.h to mem_internal.h 2021-01-01 14:11:01 +01:00
vf_gblur.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
vf_hflip.c avfilter/vf_hflip: Move ff_hflip_init into a header 2022-05-06 05:19:50 +02:00
vf_nlmeans.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
vf_threshold.c avfilter/vf_threshold: Move ff_threshold_init into a header 2022-05-06 05:19:50 +02:00
videodsp.c tests/checkasm/videodsp: Don't use declare_func_emms 2025-03-22 03:45:03 +01:00
vorbisdsp.c configure: Remove av_restrict 2024-03-15 12:51:15 +01:00
vp8dsp.c checkasm: vp8dsp: Use checkasm_check_padded in check_mc 2025-04-01 18:34:53 +03:00
vp9dsp.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
vvc_alf.c checkasm: vvc: Use checkasm_check for printing failing output 2024-12-10 11:26:09 +02:00
vvc_mc.c checkasm: add vvc_bdof test 2024-08-31 14:08:54 +08:00
vvc_sao.c build: fix windows build issue introduced by 45bea45 2025-05-16 20:30:46 +08:00