LibYuvSharp is a library for .net framework and dotnet core that provides a basic calling interface into libyuv
libyuv is a highly efficient SIMD accelerated library for doing color space conversions on the CPU.
The precompiled Window's dll is included with the nuget package/repo. The
source used was from commit 53e014c99d6f59647c57b70b3fa65ad3dd59ce08
(2019-11-07).
Including the libraries for linux and mac os would be great if anyone would like to contribute them.
Begin with the official instructions
Fix a bug in src/BUILD.gn
if it's not yet fixed:
change:
if (!is_ios) {
defines += [ "HAVE_JPEG" ]
to:
if (!is_ios && !libyuv_disable_jpeg) {
defines += [ "HAVE_JPEG" ]
Change:
static_library("libyuv_internal") {
to
shared_library("libyuv_internal") {
Update the defines
declaration nested under shared_library("libyuv_internal")
to include LIBYUV_BUILDING_SHARED_LIBRARY:
defines = [ "LIBYUV_BUILDING_SHARED_LIBRARY" ]
Fix a bug in convert_from.h
if not yet fixed:
Inside src/
run: call gn gen out\Release "--args=is_debug=false libyuv_disable_jpeg=true target_cpu=\"x64\""