ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, VMX(Altivec) and VSX(Power7) for PowerPC, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.04k stars 407 forks source link

Test BgrToRgb crashed. #142

Closed teor292 closed 3 years ago

teor292 commented 3 years ago

Hi. I clone last Simd library and found that test crash after execution of BgrToRgb function. I think mistake is here:

FuncN call BgrToRgb function like this: func(src.data, src.stride, src.width, src.height, dst.data, dst.stride); But BgrToRgb has another header:

void BgrToRgb(const uint8_t * bgr, size_t width, size_t height, size_t bgrStride, uint8_t * rgb, size_t rgbStride)

So, I think it is nesseccary to change call to

func(src.data, src.width, src.height, src.stride, dst.data, dst.stride);

Thanks.

ermig1979 commented 3 years ago

It is my blame: I changed API of function BgrToRgb and forgot to update test. I fixed it. Thank you for bug report!