descampsa / yuv2rgb

C99 library for fast image conversion between yuv420p and rgb24
BSD 3-Clause "New" or "Revised" License
170 stars 62 forks source link

Add MSVC compiler support #14

Closed thiekus closed 2 years ago

thiekus commented 4 years ago

Hi, your conversion functions was good, but it can't be compiled under Microsoft Visual C++ compilers. Fortunately, the workarounds seems trivial and no codes other than macro and include declarations was changed.

At least, It works for me under MSVC 2015 although needs for more testing.

descampsa commented 2 years ago

Hey, Thanks for your pull request, i have commited a modified version (ee78934c8d542e8402bcb6eef7259217a6f859bc)

emmintrin.h should be portable for all platforms, so I have just included it. I did reuse your macro for SSE2 detection.

Untested with MSVC.