camera3_capture_request Struct Reference
|const camera_metadata_t *
|const camera3_stream_buffer_t *
A single request for image capture/buffer reprocessing, sent to the Camera HAL device by the framework in process_capture_request().
The request contains the settings to be used for this capture, and the set of output buffers to write the resulting image data in. It may optionally contain an input buffer, in which case the request is for reprocessing that input buffer instead of capturing a new image with the camera sensor. The capture is identified by the frame_number.
In response, the camera HAL device must send a camera3_capture_result structure asynchronously to the framework, using the process_capture_result() callback.
The frame number is an incrementing integer set by the framework to uniquely identify this capture. It needs to be returned in the result call, and is also used to identify the request in asynchronous notifications sent to camera3_callback_ops_t.notify() .
|camera3_stream_buffer_t * input_buffer
The input stream buffer to use for this request, if any.
If input_buffer is NULL, then the request is for a new capture from the imager. If input_buffer is valid, the request is for reprocessing the image contained in input_buffer.
In the latter case, the HAL must set the release_fence of the input_buffer to a valid sync fence, or to -1 if the HAL does not support sync, before process_capture_request() returns.
The HAL is required to wait on the acquire sync fence of the input buffer before accessing it.
Any input buffer included here will have been registered with the HAL through register_stream_buffers() before its inclusion in a request.
The buffers will not have been pre-registered with the HAL. Subsequent requests may reuse buffers, or provide entirely new buffers.
|const camera3_stream_buffer_t * output_buffers
An array of num_output_buffers stream buffers, to be filled with image data from this capture/reprocess. The HAL must wait on the acquire fences of each stream buffer before writing to them.
The HAL takes ownership of the actual buffer_handle_t entries in output_buffers; the framework does not access them until they are returned in a camera3_capture_result_t.
All the buffers included here will have been registered with the HAL through register_stream_buffers() before their inclusion in a request.
Any or all of the buffers included here may be brand new in this request (having never before seen by the HAL).
|const camera_metadata_t * settings
The settings buffer contains the capture and processing parameters for the request. As a special case, a NULL settings buffer indicates that the settings are identical to the most-recently submitted capture request. A NULL buffer cannot be used as the first submitted request after a configure_streams() call.
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ camera3.h