]> git.sesse.net Git - bmusb/commitdiff
Add some more fake input colors.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 14 Mar 2018 22:30:58 +0000 (23:30 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 14 Mar 2018 22:30:58 +0000 (23:30 +0100)
fake_capture.cpp

index 9740b645e4f67eb12e00063feeaf63f17d821671..c98e74cf3351f5063cad260001b236acc9870034 100644 (file)
 
 #define FRAME_SIZE (8 << 20)  // 8 MB.
 
-// Pure-color inputs: Red, green, blue, white.
-#define NUM_COLORS 4
-constexpr uint8_t ys[NUM_COLORS] = { 63, 173, 32, 235 };
-constexpr uint8_t cbs[NUM_COLORS] = { 102, 42, 240, 128 };
-constexpr uint8_t crs[NUM_COLORS] = { 240, 26, 118, 128 };
+// Pure-color inputs: Red, green, blue, white, two shades of gray.
+#define NUM_COLORS 6
+constexpr uint8_t ys[NUM_COLORS] = { 63, 173, 32, 235, 180, 128 };
+constexpr uint8_t cbs[NUM_COLORS] = { 102, 42, 240, 128, 128, 128 };
+constexpr uint8_t crs[NUM_COLORS] = { 240, 26, 118, 128, 128, 128 };
 
 using namespace std;
 using namespace std::chrono;