Package io.anyline2.camera
Enum CameraFeatures.OutputFormat
-
- All Implemented Interfaces:
public enum CameraFeatures.OutputFormatHelper enum to be able to get a string representation of the output format.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEPTH16DEPTH_POINT_CLOUDFLEX_RGB_888FLEX_RGBA_8888JPEGNV16NV21PRIVATERAW10RAW12RAW_SENSORRGB_565UNKNOWNYUV_420_888YUV_422_888YUV_444_888YUY2YV12
-
Method Summary
Modifier and Type Method Description static CameraFeatures.OutputFormatfromImageFormat(int format)StringtoString()inttoImageFormat()static Array<CameraFeatures.OutputFormat>values()Returns an array containing the constants of this enum type, in the order they're declared. static CameraFeatures.OutputFormatvalueOf(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
-
-
-
-