From: Steinar H. Gunderson Date: Sun, 9 Apr 2017 14:10:50 +0000 (+0200) Subject: Add an RGBA pixel type. X-Git-Tag: 0.7.0~9 X-Git-Url: https://git.sesse.net/?p=bmusb;a=commitdiff_plain;h=824260a0732a49b5a18f2e16e04b0373c37a3bea Add an RGBA pixel type. --- 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