Change #240052
Category | ffmpeg |
Changed by | Niklas Haas <git | @haasn.dev>
Changed at | Fri 18 Jul 2025 10:47:31 |
Repository | https://git.ffmpeg.org/ffmpeg.git |
Project | ffmpeg |
Branch | master |
Revision | 75cd42c48a1d6f997af76a90298ee1c5d5780030 |
Comments
avfilter/vf_blackdetect: add AVX2 SIMD version Requested by a user. Even with autovectorization enabled, the compiler performs a quite poor job of optimizing this function, due to not being able to take advantage of the pmaxub + pcmpeqb trick for counting the number of pixels less than or equal-to a threshold. blackdetect8_c: 4625.0 ( 1.00x) blackdetect8_avx2: 155.1 (29.83x) blackdetect16_c: 2529.4 ( 1.00x) blackdetect16_avx2: 163.6 (15.46x)
Changed files
- libavfilter/vf_blackdetect.c
- libavfilter/vf_blackdetect.h
- libavfilter/x86/Makefile
- libavfilter/x86/vf_blackdetect.asm
- libavfilter/x86/vf_blackdetect_init.c