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.03k stars 406 forks source link

YUV420P to YUV422 #210

Closed mikeversteeg closed 2 years ago

mikeversteeg commented 2 years ago

I need to convert planar 420 to interleaved 422 YUV but can't find a function for this, or in fact any efficient way to do this. Did I overlook something?

What I would really need is the opposite of SimdUyvy422ToYuv420p: SimdYuv420pToUyvy422.

ermig1979 commented 2 years ago

Hi! I added SimdYuv420pToUyvy422 (base implementation and tests). Optimizations will be later.

mikeversteeg commented 2 years ago

Built, tested and passed with flying colours. Thanks very much for the quick add!

ermig1979 commented 2 years ago

I added optimizations for all platform (x86, arm).