public class Camera1Session extends java.lang.Object implements CameraSession
CameraSession.CreateSessionCallback, CameraSession.Events, CameraSession.FailureType
Modifier and Type | Method and Description |
---|---|
static void |
create(CameraSession.CreateSessionCallback callback,
CameraSession.Events events,
boolean captureToTexture,
android.content.Context applicationContext,
SurfaceTextureHelper surfaceTextureHelper,
int cameraId,
int width,
int height,
int framerate) |
android.hardware.Camera |
getCamera()
Get the camera object.
|
CameraEnumerationAndroid.CaptureFormat |
getCaptureFormat()
Get the current capture format.
|
static void |
initializeCallbackBuffer(CameraEnumerationAndroid.CaptureFormat captureFormat,
android.hardware.Camera camera)
Initialize the camera callback buffer.
|
void |
listenForBytebufferFrames()
Start listening for frames captured to a buffer.
|
void |
listenForTextureFrames()
Start listening for frames captured to a surface texture.
|
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, boolean captureToTexture, android.content.Context applicationContext, SurfaceTextureHelper surfaceTextureHelper, int cameraId, int width, int height, int framerate)
public static void initializeCallbackBuffer(CameraEnumerationAndroid.CaptureFormat captureFormat, android.hardware.Camera camera)
public void stop()
CameraSession
stop
in interface CameraSession
public android.hardware.Camera getCamera()
public CameraEnumerationAndroid.CaptureFormat getCaptureFormat()
public void listenForTextureFrames()
public void listenForBytebufferFrames()
7.0.0