|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExposureControl
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.
Method Summary | ||
---|---|---|
int |
getExposureCompensation()
Gets the current exposure compensation. |
|
int |
getExposureTime()
Gets the current shutter speed. |
|
int |
getExposureValue()
|
|
int |
getFStop()
|
|
int |
getISO()
Gets the current sensitivity. |
|
String |
getLightMetering()
|
|
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()
|
|
int[] |
getSupportedISOs()
|
|
String[] |
getSupportedLightMeterings()
|
|
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(String metering)
Sets the metering mode for the automatic exposure of the camera device. |
Method Detail |
---|
int[] getSupportedFStops()
the supported F-Stop numbers multiplied by 100. For example, returned value 280 would mean an F-Stop number f/2.8. Value 0 means automatic aperture.
int getFStop()
the current aperture as an F-Stop number multiplied by 100. For example, returned value 280 would mean an F-Stop number f/2.8.
void setFStop(int aperture) throws 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.
MediaException
- if the given value is not supportedint getMinExposureTime()
int getMaxExposureTime()
int getExposureTime()
int setExposureTime(int time) throws MediaException
time
- @return exposure time that was actually set
exposure time in microseconds or 0 for automatic exposure time
MediaException
- if time
is greater than the maximum supported exposure time (getMaxExposureTime) or
is less than the minimum supported exposure time (getMinExposureTime).int[] getSupportedISOs()
the supported sensitivities as ISO values. For example, returned value 200 would mean an ISO 200. 0 means automatic sensitivity.
int getISO()
void setISO(int iso) throws MediaException
iso
- sensitivity as an ISO value.
For example, value 200 means ISO 200.
0 means automatic sensitivity.
MediaException
- if the given value is not supported.int[] getSupportedExposureCompensations()
int getExposureCompensation()
void setExposureCompensation(int ec) throws MediaException
ec
- the wanted exposure compensation value multiplied by 100.
For example, a value 100 means 1.0 (that means doubling the light exposure).
MediaException
- if the given value is not supportedint getExposureValue()
the current exposure value (EV)
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).the supported meterings
void setLightMetering(String metering)
metering
- the new metering mode
IllegalArgumentException
- if the given metering
is not
among the supported metering modesString getLightMetering()
the current light metering mode of the camera device
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal