Stay organized with collections
Save and categorize content based on your preferences.
ACameraCaptureFailure
Struct to describe a capture failure.
Summary
Public attributes
|
frameNumber
|
int64_t
The frame number associated with this failed capture.
|
reason
|
int
Determine why the request was dropped, whether due to an error or to a user action.
|
sequenceId
|
int
|
wasImageCaptured
|
bool
Determine if the image was captured from the camera.
|
Public attributes
Declared in camera/NdkCameraCaptureSession.h
int64_t ACameraCaptureFailure::frameNumber
The frame number associated with this failed capture.
Whenever a request has been processed, regardless of failed capture or success, it gets a unique frame number assigned to its future result/failed capture.
This value monotonically increments, starting with 0, for every new result or failure; and the scope is the lifetime of the ACameraDevice.
reason
Declared in camera/NdkCameraCaptureSession.h
int ACameraCaptureFailure::reason
sequenceId
Declared in camera/NdkCameraCaptureSession.h
int ACameraCaptureFailure::sequenceId
wasImageCaptured
Declared in camera/NdkCameraCaptureSession.h
bool ACameraCaptureFailure::wasImageCaptured
Determine if the image was captured from the camera.
If the image was not captured, no image buffers will be available. If the image was captured, then image buffers may be available.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[],null,["# ACameraCaptureFailure Struct Reference\n\nACameraCaptureFailure\n=====================\n\nStruct to describe a capture failure.\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [frameNumber](#struct_a_camera_capture_failure_1a623625a965f611af49a830355722052a) | `int64_t` The frame number associated with this failed capture. |\n| [reason](#struct_a_camera_capture_failure_1a1c11c85d88c5d864498db54a7205385c) | `int` Determine why the request was dropped, whether due to an error or to a user action. |\n| [sequenceId](#struct_a_camera_capture_failure_1a0e4f89e9a324e6c92eb702c06cac14ec) | `int` The sequence ID for this failed capture that was returned by the [ACameraCaptureSession_capture](/ndk/reference/group/camera#group___camera_1ga6099baf4316e44db1d5f133cdf02c838) or [ACameraCaptureSession_setRepeatingRequest](/ndk/reference/group/camera#group___camera_1ga07aa2f8bb53c7c0d88c59c33848bb2d6). |\n| [wasImageCaptured](#struct_a_camera_capture_failure_1a3bc5fdd751c20aacae215d4573cfde92) | `bool` Determine if the image was captured from the camera. |\n\nPublic attributes\n-----------------\n\n### frameNumber\n\nDeclared in `camera/NdkCameraCaptureSession.h` \n\n```scdoc\nint64_t ACameraCaptureFailure::frameNumber\n``` \nThe frame number associated with this failed capture.\n\nWhenever a request has been processed, regardless of failed capture or success, it gets a unique frame number assigned to its future result/failed capture.\n\nThis value monotonically increments, starting with 0, for every new result or failure; and the scope is the lifetime of the [ACameraDevice](/ndk/reference/group/camera#group___camera_1ga871f69c48314f6194b8ee6b8c4952862). \n\n### reason\n\nDeclared in `camera/NdkCameraCaptureSession.h` \n\n```text\nint ACameraCaptureFailure::reason\n``` \nDetermine why the request was dropped, whether due to an error or to a user action.\n\n\n**See also:**\n[CAPTURE_FAILURE_REASON_ERROR](/ndk/reference/group/camera#group___camera_1gga7646ae03981912f97626c39dfe9318daa3fcd937d8b3cb3d52eb60e13d546838a)\n**See also:**\n[CAPTURE_FAILURE_REASON_FLUSHED](/ndk/reference/group/camera#group___camera_1gga7646ae03981912f97626c39dfe9318daa30c56bc245f6ca2982be28fb23cdbef3) \n\n### sequenceId\n\nDeclared in `camera/NdkCameraCaptureSession.h` \n\n```text\nint ACameraCaptureFailure::sequenceId\n``` \nThe sequence ID for this failed capture that was returned by the [ACameraCaptureSession_capture](/ndk/reference/group/camera#group___camera_1ga6099baf4316e44db1d5f133cdf02c838) or [ACameraCaptureSession_setRepeatingRequest](/ndk/reference/group/camera#group___camera_1ga07aa2f8bb53c7c0d88c59c33848bb2d6).\n\nThe sequence ID is a unique monotonically increasing value starting from 0, incremented every time a new group of requests is submitted to the ACameraDevice. \n\n### wasImageCaptured\n\nDeclared in `camera/NdkCameraCaptureSession.h` \n\n```text\nbool ACameraCaptureFailure::wasImageCaptured\n``` \nDetermine if the image was captured from the camera.\n\nIf the image was not captured, no image buffers will be available. If the image was captured, then image buffers may be available."]]