ACameraCaptureSession_stateCallbacks
#include <NdkCameraCaptureSession.h>
Capture session state callbacks used in ACameraDevice_createCaptureSession and ACameraDevice_createCaptureSessionWithSessionParameters.
Summary
Public attributes |
|
---|---|
context
|
void *
optional application context.
|
onActive
|
This callback is called when the session starts actively processing capture requests.
|
onClosed
|
This callback is called when the session is closed and deleted from memory.
|
onReady
|
This callback is called every time the session has no more capture requests to process.
|
Public attributes
context
void * ACameraCaptureSession_stateCallbacks::context
optional application context.
onActive
ACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onActive
This callback is called when the session starts actively processing capture requests.
If the session runs out of capture requests to process and calls onReady, then this callback will be invoked again once new requests are submitted for capture.
onClosed
ACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onClosed
This callback is called when the session is closed and deleted from memory.
A session is closed when ACameraCaptureSession_close is called, a new session is created by the parent camera device, or when the parent camera device is closed (either by the user closing the device, or due to a camera device disconnection or fatal error).
Once this callback is called, all access to this ACameraCaptureSession object will cause a crash.
onReady
ACameraCaptureSession_stateCallback ACameraCaptureSession_stateCallbacks::onReady
This callback is called every time the session has no more capture requests to process.
This callback will be invoked any time the session finishes processing all of its active capture requests, and no repeating request or burst is set up.