public interface CameraCharacteristics
android.hardware.camera2.params.StreamConfigurationMap
, though
significantly simplified here.Modifier and Type | Interface and Description |
---|---|
static class |
CameraCharacteristics.CameraMode |
Modifier and Type | Method and Description |
---|---|
java.util.List<CameraCharacteristics.CameraMode> |
getAllCameraModes()
Returns all the combinatorial format, size, and fps camera modes supported.
|
int[] |
getAndroidFormats()
Get the image
format output formats in this camera |
Size |
getDefaultSize(int androidFormat)
Gets the device-recommended optimum size for the indicated format
|
int |
getMaxFramesPerSecond(int androidFormat,
Size size)
Returns the maximum fps rate supported for the given format.
|
long |
getMinFrameDuration(int androidFormat,
Size size)
Get the minimum frame duration for the format/size combination (in nanoseconds).
|
Size[] |
getSizes(int androidFormat)
Get a list of sizes compatible with the requested image
format . |
int[] getAndroidFormats()
format
output formats in this camera
All image formats returned by this function will be defined in either ImageFormat
or in PixelFormat
(and there is no possibility of collision).
ImageFormat
and PixelFormat
.ImageFormat
,
PixelFormat
Size[] getSizes(int androidFormat)
format
.
The format
should be a supported format (one of the formats returned by
getAndroidFormats()
).
androidFormat
- an image format from ImageFormat
or PixelFormat
null
if the format
is not a supported outputImageFormat
,
PixelFormat
,
getAndroidFormats()
Size getDefaultSize(int androidFormat)
long getMinFrameDuration(int androidFormat, Size size)
format
should be one of the ones returned by getAndroidFormats()
.
size
should be one of the ones returned by getSizes(int)
.
androidFormat
- an image format from ImageFormat
or PixelFormat
size
- an output-compatible size>
0 in nanoseconds, or
0 if the minimum frame duration is not available.java.lang.IllegalArgumentException
- if format
or size
was not supportedjava.lang.NullPointerException
- if size
was null
ImageFormat
,
PixelFormat
int getMaxFramesPerSecond(int androidFormat, Size size)
java.util.List<CameraCharacteristics.CameraMode> getAllCameraModes()