From: Steinar H. Gunderson Date: Mon, 22 May 2017 19:20:47 +0000 (+0200) Subject: Add a new planar pixel mode. X-Git-Tag: 0.7.0~1 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b18056fe32dd46134d7f12165bfa083378f2d9bb;p=bmusb Add a new planar pixel mode. --- diff --git a/bmusb/bmusb.h b/bmusb/bmusb.h index 6d6f097..a72ed8b 100644 --- a/bmusb/bmusb.h +++ b/bmusb/bmusb.h @@ -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