From 824260a0732a49b5a18f2e16e04b0373c37a3bea Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 9 Apr 2017 16:10:50 +0200 Subject: [PATCH] Add an RGBA pixel type. --- bmusb/bmusb.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bmusb/bmusb.h b/bmusb/bmusb.h index 83677af..0ea7c36 100644 --- a/bmusb/bmusb.h +++ b/bmusb/bmusb.h @@ -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