Package com.digimarc.capture.camera
Enum Class CameraHelper.MeteringRegion
- All Implemented Interfaces:
Serializable
,Comparable<CameraHelper.MeteringRegion>
,Constable
- Enclosing class:
- CameraHelper
MeteringRegion flags are used by the
CameraHelper.setFocusRegion(DetectionRegion, int)
and
CameraHelper.setFocusPoint(float, float, int, int)
methods. For ease of use we suggest using
the AUTO_ values in this enum rather than the enum values themselves.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
Set Auto Focus, Auto Exposure and Auto White Balance.static int
Set the Auto Exposure region if this device supports it.static int
Set the Auto Focus region if this device supports it.static int
Set the Auto White Balance region if this device supports it. -
Method Summary
Modifier and TypeMethodDescriptionint
getMask()
static CameraHelper.MeteringRegion
Returns the enum constant of this class with the specified name.static CameraHelper.MeteringRegion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
af
-
ae
-
awb
-
-
Field Details
-
AUTO_FOCUS
public static int AUTO_FOCUSSet the Auto Focus region if this device supports it. -
AUTO_EXPOSURE
public static int AUTO_EXPOSURESet the Auto Exposure region if this device supports it. -
AUTO_WHITE_BALANCE
public static int AUTO_WHITE_BALANCESet the Auto White Balance region if this device supports it. -
AUTO_ALL
public static int AUTO_ALLSet Auto Focus, Auto Exposure and Auto White Balance. If any of these capabilities are not supported by the device they will be ignored.
-
-
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
-
getMask
public int getMask()
-