Package io.anyline2.camera
Enum CameraFeatures.OutputFormat
-
- All Implemented Interfaces:
public enum CameraFeatures.OutputFormat
Helper enum to be able to get a string representation of the output format.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEPTH16
DEPTH_POINT_CLOUD
FLEX_RGB_888
FLEX_RGBA_8888
JPEG
NV16
NV21
PRIVATE
RAW10
RAW12
RAW_SENSOR
RGB_565
UNKNOWN
YUV_420_888
YUV_422_888
YUV_444_888
YUY2
YV12
-
Method Summary
Modifier and Type Method Description static CameraFeatures.OutputFormat
fromImageFormat(int format)
String
toString()
int
toImageFormat()
static Array<CameraFeatures.OutputFormat>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static CameraFeatures.OutputFormat
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
fromImageFormat
static CameraFeatures.OutputFormat fromImageFormat(int format)
- Parameters:
format
- the int constant of the image format- Returns:
matching enum from the integer image format (a constant from ImageFormat)
-
toImageFormat
int toImageFormat()
-
values
static Array<CameraFeatures.OutputFormat> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static CameraFeatures.OutputFormat valueOf(String name)
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.)
- Returns:
the enum constant with the specified name
-
-
-
-