List of usage examples for android.hardware.camera2 CaptureRequest SENSOR_FRAME_DURATION
Key SENSOR_FRAME_DURATION
To view the source code for android.hardware.camera2 CaptureRequest SENSOR_FRAME_DURATION.
Click Source Link
Duration from start of frame exposure to start of next frame exposure.
The maximum frame rate that can be supported by a camera subsystem is a function of many factors:
Since these factors can vary greatly between different ISPs and sensors, the camera abstraction tries to represent the bandwidth restrictions with as simple a model as possible.
The model presented has the following characteristics:
From source file:com.example.android.hdrviewfinder.HdrViewfinderActivity.java
/** * Start running an HDR burst on a configured camera session *//*from w w w .j a v a 2 s .c o m*/ public void setHdrBurst() { mHdrBuilder.set(CaptureRequest.SENSOR_SENSITIVITY, 1600); mHdrBuilder.set(CaptureRequest.SENSOR_FRAME_DURATION, ONE_SECOND / 30); mHdrBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, mEvenExposure); mHdrBuilder.setTag(mEvenExposureTag); mHdrRequests.set(0, mHdrBuilder.build()); mHdrBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, mOddExposure); mHdrBuilder.setTag(mOddExposureTag); mHdrRequests.set(1, mHdrBuilder.build()); mCameraOps.setRepeatingBurst(mHdrRequests, mCaptureCallback, mUiHandler); }