Enum FrameFormat
- All Implemented Interfaces:
Comparable<FrameFormat>
Pixel format requested for CameraFrame data delivered to a FrameListener.
JPEG is the default and is useful when an application needs a portable
encoded image. Built-in vision analyzers also accept raw NV21 and
RGBA8888 frames directly; select a raw format for live analysis to avoid
a JPEG encode/decode round-trip.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FrameFormatReturns the enum constant of this type with the specified name.static FrameFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
JPEG
JPEG-encoded bytes available viaCameraFrame#getJpegBytes(). Always available regardless of the requested format. -
NV21
YUV 4:2:0 NV21 layout available viaCameraFrame#getRawBytes(). Useful for low-level pixel work on Android-style pipelines. -
RGBA8888
32-bit RGBA available viaCameraFrame#getRawBytes(). Width * height * 4 bytes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-