mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
[cscore] Add BGRA support (#6365)
This commit is contained in:
@@ -21,7 +21,9 @@ public enum PixelFormat {
|
||||
/** Grayscale, 16 bpp. */
|
||||
kY16(6),
|
||||
/** YUV 4:2:2, 16 bpp. */
|
||||
kUYVY(7);
|
||||
kUYVY(7),
|
||||
/** BGRA 8-8-8-8. 32 bpp. */
|
||||
kBGRA(8);
|
||||
|
||||
private final int value;
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ enum WPI_PixelFormat {
|
||||
WPI_PIXFMT_GRAY, // Grayscale, 8 bpp
|
||||
WPI_PIXFMT_Y16, // Grayscale, 16 bpp
|
||||
WPI_PIXFMT_UYVY, // YUV 4:2:2, 16 bpp
|
||||
WPI_PIXFMT_BGRA, // BGRA 8-8-8-8-, 32 bpp
|
||||
};
|
||||
|
||||
// Returns nonzero if the frame data was allocated/reallocated
|
||||
|
||||
Reference in New Issue
Block a user