android: camera_device: Report pipeline depth

Report the pipeline depth in the capture results if the pipeline
reports it.

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi 2020-12-09 17:51:57 +01:00
parent f5e80e609c
commit 3535e0c104
3 changed files with 22 additions and 7 deletions

View file

@ -25,6 +25,10 @@ public:
CaptureRequest(libcamera::Camera *camera, uint64_t cookie);
const std::vector<int> &fences() const { return acquireFences_; }
const libcamera::ControlList &metadata() const
{
return request_->metadata();
}
void addBuffer(libcamera::Stream *stream,
libcamera::FrameBuffer *buffer, int fence);