public class Camera2Session extends java.lang.Object implements CameraSession
CameraSession.CreateSessionCallback, CameraSession.Events, CameraSession.FailureType
Modifier and Type | Method and Description |
---|---|
android.hardware.camera2.CaptureRequest.Builder |
configureCaptureRequestBuilder()
Configures a CaptureRequest.Builder with optimal settings for capturing video frames.
|
static void |
create(CameraSession.CreateSessionCallback callback,
CameraSession.Events events,
android.content.Context applicationContext,
android.hardware.camera2.CameraManager cameraManager,
SurfaceTextureHelper surfaceTextureHelper,
java.lang.String cameraId,
int width,
int height,
int framerate) |
boolean |
setSessionRepeatingRequest(android.hardware.camera2.CaptureRequest.Builder captureRequestBuilder)
Set the current capture session repeating request.
|
void |
stop()
Stops the capture.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTextureBufferWithModifiedTransformMatrix, getDeviceOrientation
public static void create(CameraSession.CreateSessionCallback callback, CameraSession.Events events, android.content.Context applicationContext, android.hardware.camera2.CameraManager cameraManager, SurfaceTextureHelper surfaceTextureHelper, java.lang.String cameraId, int width, int height, int framerate)
public void stop()
CameraSession
stop
in interface CameraSession
public boolean setSessionRepeatingRequest(@Nullable android.hardware.camera2.CaptureRequest.Builder captureRequestBuilder)
captureRequestBuilder
- the capture request builder that will be applied to the current
capture session.@Nullable public android.hardware.camera2.CaptureRequest.Builder configureCaptureRequestBuilder()
6.0.0