]> git.sesse.net Git - bmusb/commitdiff
Add a new planar pixel mode.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 22 May 2017 19:20:47 +0000 (21:20 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 22 May 2017 19:20:54 +0000 (21:20 +0200)
bmusb/bmusb.h

index 6d6f097413c43bb10b549bba0ba7e7c5296e39e8..a72ed8b04cc377ea57076ee309123a92cf34f85f 100644 (file)
@@ -156,7 +156,13 @@ enum PixelFormat {
 
        // 8-bit 4:4:4:4 BGRA (in that order). bmusb itself doesn't
        // produce this, but it is useful to represent e.g. synthetic inputs.
-       PixelFormat_8BitBGRA
+       PixelFormat_8BitBGRA,
+
+       // 8-bit 4:2:0, 4:2:2, 4:4:4 or really anything else, planar
+       // (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
 };
 
 typedef std::function<void(uint16_t timecode,