Android Hardware Abstraction Layer
|int(*||request_count )(const struct camera2_request_queue_src_ops *q)|
|int(*||dequeue_request )(const struct camera2_request_queue_src_ops *q, camera_metadata_t **buffer)|
|int(*||free_request )(const struct camera2_request_queue_src_ops *q, camera_metadata_t *old_buffer)|
Request input queue protocol:
The framework holds the queue and its contents. At start, the queue is empty.
Get a metadata buffer from the framework. Returns OK if there is no error. If the queue is empty, returns NULL in buffer. In that case, the device must wait for a notify_request_queue_not_empty() message before attempting to dequeue again. Buffers obtained in this way must be returned to the framework with free_request().
|int(* request_count)(const struct camera2_request_queue_src_ops *q)|
Get the count of request buffers pending in the queue. May return CAMERA2_REQUEST_QUEUE_IS_BOTTOMLESS if a repeating request (stream request) is currently configured. Calling this method has no effect on whether the notify_request_queue_not_empty() method will be called by the framework.