You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
682 B
42 lines
682 B
package com.otaliastudios.cameraview;
|
|
|
|
|
|
/**
|
|
* Hdr values indicate whether to use high dynamic range techniques when capturing pictures.
|
|
*
|
|
* @see CameraView#setHdr(Hdr)
|
|
*/
|
|
public enum Hdr {
|
|
|
|
/**
|
|
* No HDR.
|
|
*/
|
|
OFF(0),
|
|
|
|
/**
|
|
* Using HDR.
|
|
*/
|
|
ON(1);
|
|
|
|
final static Hdr DEFAULT = OFF;
|
|
|
|
private int value;
|
|
|
|
Hdr(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
int value() {
|
|
return value;
|
|
}
|
|
|
|
static Hdr fromValue(int value) {
|
|
Hdr[] list = Hdr.values();
|
|
for (Hdr action : list) {
|
|
if (action.value() == value) {
|
|
return action;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
|