]> git.sesse.net Git - bmusb/commitdiff
Add an RGBA pixel type.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Apr 2017 14:10:50 +0000 (16:10 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Apr 2017 14:10:50 +0000 (16:10 +0200)
bmusb/bmusb.h

index 83677afdbdeb69fb0f606db17f7811cc7ccacd09..0ea7c369fb86e04398d41f019617c0e6f8e5eb74 100644 (file)
@@ -151,7 +151,11 @@ enum PixelFormat {
        // Note that unlike true v210, there is no guarantee about
        // 128-byte line alignment (or lack thereof); you should check
        // the stride member of VideoFormat.
-       PixelFormat_10BitYCbCr
+       PixelFormat_10BitYCbCr,
+
+       // 8-bit 4:4:4:4 RGBA (in that order). bmusb itself doesn't
+       // produce this, but it is useful to represent e.g. synthetic inputs.
+       PixelFormat_8BitRGBA
 };
 
 typedef std::function<void(uint16_t timecode,