Closed s-trinh closed 2 years ago
Hi! I added fix for Error in SSE4.1, AVX2, AVX-512BW optimizations of function BgraToRgba. Also I reproduced bug in function BgraToBgr. The fix will be later.
I fixed Error in SSE4.1, AVX2 optimizations of function BgraToBgr. And similar bug in function BgraToRgb. I would be greate to independent check of it.
Thanks for the quick fix :+1: CI tests are now ok.
Hi,
We have hit some memory issues with color conversion, see: https://github.com/lagadic/visp/pull/990
Following changes https://github.com/lagadic/visp/pull/990/commits/ad646569c79e7bc645cb71347410cfaf2540d3ef should fix some issues.
But there are some other issues.
https://github.com/ermig1979/Simd/blob/dae44100d7313cf7c0c2adabe30a06135d403601/src/Simd/SimdSse41BgraToBgr.cpp#L32-L38
With
bgra
of size17
(soalign
is false), we should have rather something like that:Otherwise there are some faulty memory write:
But unfortunately this fix does not work with
bgra
of size32
(soalign
is true). Same issues withAVX2
code path.