]> git.sesse.net Git - bmusb/commitdiff
Add some pixel formats for private use.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 7 Jul 2017 14:57:06 +0000 (16:57 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 7 Jul 2017 14:57:06 +0000 (16:57 +0200)
bmusb/bmusb.h

index a72ed8b04cc377ea57076ee309123a92cf34f85f..b1861efb6ddf045ae7d6a49a31d2c4667e314a25 100644 (file)
@@ -162,7 +162,13 @@ enum PixelFormat {
        // (ie., first all Y', then all Cb, then all Cr). bmusb doesn't
        // produce this, nor does it specify a mechanism to describe
        // the precise details of the format.
-       PixelFormat_8BitYCbCrPlanar
+       PixelFormat_8BitYCbCrPlanar,
+
+       // These exist only so that the type is guaranteed wide enough
+       // to contain values up to 127. CaptureInterface instances
+       // are free to use them as they see fit for private uses.
+       PixelFormat_Unused100 = 100,
+       PixelFormat_Unused127 = 127
 };
 
 typedef std::function<void(uint16_t timecode,