|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CameraControl
controls the features of the camera device.
A Player
that plays captured stream from a camera
may provide a CameraControl
via its
getControl
and getControls
methods.
Field Summary | |
static int |
ROTATE_LEFT
Counter-clockwise rotation by 90 degrees. |
static int |
ROTATE_NONE
No rotation. |
static int |
ROTATE_RIGHT
Clockwise rotation by 90 degrees. |
static int |
UNKNOWN
Unknown value. |
Method Summary | |
void |
enableShutterFeedback(boolean enable)
Toggles the native shutter sound and visual shutter feedback on and off. |
int |
getCameraRotation()
Returns the rotation of the camera device. |
java.lang.String |
getExposureMode()
Returns the current exposure mode of the camera device. |
int |
getStillResolution()
Gets the current still image resolution. |
java.lang.String[] |
getSupportedExposureModes()
Returns a list of exposure modes supported by the camera device. |
int[] |
getSupportedStillResolutions()
Returns supported still image resolutions. |
int[] |
getSupportedVideoResolutions()
Returns supported video resolutions. |
int |
getVideoResolution()
Gets the current video resolution. |
boolean |
isShutterFeedbackEnabled()
Gets the setting of the native shutter feedback. |
void |
setExposureMode(java.lang.String mode)
Sets the exposure mode of the camera device. |
void |
setStillResolution(int index)
Sets the still image resolution. |
void |
setVideoResolution(int index)
Sets the video resolution. |
Field Detail |
public static final int ROTATE_LEFT
public static final int ROTATE_RIGHT
public static final int ROTATE_NONE
public static final int UNKNOWN
Method Detail |
public int getCameraRotation()
public void enableShutterFeedback(boolean enable) throws javax.microedition.media.MediaException
enable
- true
to enable the shutter feedback,
false
to disable it
javax.microedition.media.MediaException
- if setting of the shutter feedback is not
possible
java.lang.SecurityException
- if setting of the shutter feedback is not
allowedpublic boolean isShutterFeedbackEnabled()
true
if the shutter feedback is enabled,
false
if the shutter feedback is disabledpublic java.lang.String[] getSupportedExposureModes()
auto
(full automatic exposure setting)landscape
(daylight landscape)snow
(high light situation)beach
(high light situation)sunset
night
fireworks
portrait
(human face in the center is the target)backlight
(target in center is essentially darker than the background)spotlight
(target in center is essentially brighter than the background)sports
(fast moving targets)text
(for copying texts and drawings, and for bar code reading)
ExposureControl
public void setExposureMode(java.lang.String mode)
A more fine-grained control of the exposure might be available
via ExposureControl
.
In that case, setting the preset exposure mode
here will propably cause a change in
the settings of the ExposureControl.
mode
- new exposure mode
java.lang.IllegalArgumentException
- if the mode
is not
among the supported exposure modesgetSupportedExposureModes()
,
ExposureControl
public java.lang.String getExposureMode()
public int[] getSupportedVideoResolutions()
public int[] getSupportedStillResolutions()
public void setVideoResolution(int index)
index
- the index of the video resolution to be set.
Index 0 refers to the first pair returned by
getSupportedVideoResolutions()
and index 1
refers to the second pair and so on.
java.lang.IllegalArgumentException
- if the given resolution is
not supported.public void setStillResolution(int index)
index
- the index of the video resolution to be set.
Index 0 refers to the first pair returned by
getSupportedStillResolutions()
and index 1
refers to the second pair and so on.
java.lang.IllegalArgumentException
- if the given resolution is
not supportedpublic int getVideoResolution()
getSupportedVideoResolutions()
and index 1 refers to the second
pair and so on. Returns -1 if no video resolutions are supported.public int getStillResolution()
getSupportedStillResolutions()
and index 1 refers to the second
pair and so on. Returns -1 if no still resolutions are supported.
|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |