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.

Home Page:http://ermig1979.github.io/Simd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SimdYuv420pSaveAsJpegToMemory

mikeversteeg opened this issue · comments

I'm very impressed by SimdYuv420pSaveAsJpegToMemory but there is a problem with the colour space conversion. If I go from YUV420P to JPEG and back, the images look washed. Is there a colour space mismatch or is this caused by JPEG compression?

Also please note when choosing SimdPixelFormatNone I get BGR, not YUV420P.

JPEG is image format with loss (except quality =100) so it can cause wash. As to color space see documetaion of function SimdYuv420pSaveAsJpegToMemory: http://ermig1979.github.io/Simd/help/group__image__io.html#gac0ee5c58a3d4de7540d52e7356d2dbab