Package edu.wpi.first.util
Enum Class PixelFormat
- All Implemented Interfaces:
Serializable
,Comparable<PixelFormat>
,Constable
Image pixel format.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PixelFormat
getFromInt
(int pixelFormat) Gets a PixelFormat enum value from its integer value.int
getValue()
Gets the integer value of the pixel format.static PixelFormat
Returns the enum constant of this class with the specified name.static PixelFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kUnknown
Unknown format. -
kMJPEG
Motion-JPEG (compressed image data). -
kYUYV
YUY 4:2:2, 16 bpp. -
kRGB565
RGB 5-6-5, 16 bpp. -
kBGR
BGR 8-8-8, 24 bpp. -
kGray
Grayscale, 8 bpp. -
kY16
Grayscale, 16 bpp. -
kUYVY
YUV 4:2:2, 16 bpp. -
kBGRA
BGRA 8-8-8-8. 32 bpp.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
Gets the integer value of the pixel format.- Returns:
- Integer value
-
getFromInt
Gets a PixelFormat enum value from its integer value.- Parameters:
pixelFormat
- integer value- Returns:
- Enum value
-