Skip to content

Instantly share code, notes, and snippets.

Avatar

Gustavo Alvarez sl1pkn07

  • burgos (Spain)
View GitHub Profile
View gist:b1ccc27c73753a8821b5476a12c7283f
==> xcodebuild -project MoltenVKPackaging.xcodeproj -scheme MoltenVK Package (macOS only) -derivedDataPath /private/tmp/moltenvk-20201227-93071-1b4erxt/build SYMROOT=/private/tmp/moltenvk-20201227-93071-1b4erxt/build OBJROOT=/private/tmp/moltenvk-20201227-93071-1b4erxt/build build
User defaults from command line:
IDEDerivedDataPathOverride = /private/tmp/moltenvk-20201227-93071-1b4erxt/build
Build settings from command line:
OBJROOT = /private/tmp/moltenvk-20201227-93071-1b4erxt/build
SYMROOT = /private/tmp/moltenvk-20201227-93071-1b4erxt/build
note: Using new build system
note: Planning build
View gist:859235f9726ccb6100ecfe1bbf391a42
g++ -c -fPIC -march=native -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -I. -I/usr/include/vapoursynth -fpermissive -o vcm.o vcm.cpp
In file included from vcm.cpp:57:
colorconverter.h: In function 'void BGRtoYUV(const unsigned char*, unsigned char*)':
colorconverter.h:34:11: error: expected primary-expression before 'unsigned'
34 | yuv[0] = unsigned char(0.299 * bgr[2] + 0.587 * bgr[1] + 0.114 * bgr[0]);
| ^~~~~~~~
colorconverter.h:35:11: error: expected primary-expression before 'unsigned'
35 | yuv[1] = unsigned char (- 0.169 * bgr[2] - 0.332 * bgr[1] + 0.5 * bgr[0] + 128);
| ^~~~~~~~
colorconverter.h:36:11: error: expected primary-expression before 'unsigned'
You can’t perform that action at this time.