|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ExposureControl
controls the exposure settings of
the camera device. Exposure is based on three components:
aperture, shutter speed (also known as exposure time), and sensitivity.
Additionally, for automatic exposure setting, this interface offers
multiple light metering modes.
A Player
that plays captured stream from a camera
may provide an ExposureControl
via its
getControl
and getControls
methods.
CameraControl.setExposureMode(java.lang.String)
Method Summary | |
int |
getExposureCompensation()
Gets the current exposure compensation. |
int |
getExposureTime()
Gets the current shutter speed. |
int |
getExposureValue()
Returns the amount of light received by the sensor due to current settings for aperture, shutter speed and sensitivity. |
int |
getFStop()
Returns the current aperture. |
int |
getISO()
Gets the current sensitivity. |
java.lang.String |
getLightMetering()
Returns the current light metering mode of the camera device. |
int |
getMaxExposureTime()
Gets the maximum supported exposure time or 0 if only automatic exposure is supported. |
int |
getMinExposureTime()
Gets the minimum supported exposure time. |
int[] |
getSupportedExposureCompensations()
Gets the supported exposure compensation values. |
int[] |
getSupportedFStops()
Returns supported apertures. |
int[] |
getSupportedISOs()
Returns supported sensitivities. |
java.lang.String[] |
getSupportedLightMeterings()
Returns a list of light meterings for automatic exposure settings supported by the camera device. |
void |
setExposureCompensation(int ec)
Sets the exposure compensation. |
int |
setExposureTime(int time)
Sets the shutter speed. |
void |
setFStop(int aperture)
Sets the aperture. |
void |
setISO(int iso)
Sets the sensitivity. |
void |
setLightMetering(java.lang.String metering)
Sets the metering mode for the automatic exposure of the camera device. |
Method Detail |
public int[] getSupportedFStops()
public int getFStop()
public void setFStop(int aperture) throws javax.microedition.media.MediaException
aperture
- aperture as an F-Stop number multiplied by 100 or 0 for automatic aperture.
For example, returned value 280 would mean an F-Stop number f/2.8.
javax.microedition.media.MediaException
- if the given value is not supportedpublic int getMinExposureTime()
public int getMaxExposureTime()
public int getExposureTime()
public int setExposureTime(int time) throws javax.microedition.media.MediaException
time
- exposure time in microseconds or 0 for automatic exposure time
javax.microedition.media.MediaException
- if the given value is not supportedpublic int[] getSupportedISOs()
public int getISO()
public void setISO(int iso) throws javax.microedition.media.MediaException
iso
- sensitivity as an ISO value.
For example, value 200 means ISO 200.
0 means automatic sensitivity.
javax.microedition.media.MediaException
- if the given value is not supported.public int[] getSupportedExposureCompensations()
public int getExposureCompensation()
public void setExposureCompensation(int ec) throws javax.microedition.media.MediaException
ec
- the wanted exposure compensation value multiplied by 100.
For example, a value 100 means 1.0 (that means doubling the light exposure).
javax.microedition.media.MediaException
- if the given value is not supportedpublic int getExposureValue()
public java.lang.String[] getSupportedLightMeterings()
matrix
(the scene is split into a matrix and each zone is measured and has a weighted algorithm.)center-weighted
(the metering weighs the center of the image
highest (this is the typical normal setting))spot
(the metering uses just the center and all the rest is ignored).
public void setLightMetering(java.lang.String metering)
metering
- the new metering mode
java.lang.IllegalArgumentException
- if the given metering
is not
among the supported metering modespublic java.lang.String getLightMetering()
|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |