Fast open source format conversion

Can anyone advise me on an open source format conversion library? Optimized for SSE, SSE2.

Formats for conversion: I420, YUY2, RGB (16-bit, 32-bit).

I found only the VirtualDub Kasumi library.

+4
source share
2 answers

Take a look at the FFmpeg libswscale library , which is licensed under the terms of the LGPL.

I'm not sure that libswscale will compile using MSVC (it probably won't), but you can always use MSYS / MingW to compile libswscale into a shared library and use it in your MSVC project.

+4
source

libyuv is an open source project that includes YUV scaling and conversion features.

Scale YUV to prepare content for compression, with a point, bilinear, or box filter.
Convert to YUV from webcam formats.
Convert from YUV to formats for rendering / effects.
Rotate 90/180/270 degrees for settings for mobile devices in portrait mode.

Optimized for SSE2 / SSSE3 / AVX2 on x86 / x64.
Optimized for neon on the arm.
Optimized for DSP R2 on Mips.

0
source

Source: https://habr.com/ru/post/1312712/


All Articles