[libcamera-devel] [PATCH v2 8/9] android: camera_device: Remove single buffer restriction.
Niklas Söderlund
niklas.soderlund at ragnatech.se
Fri Jul 3 01:33:53 CEST 2020
Hi Kieran,
Thanks for your work.
On 2020-07-02 22:36:53 +0100, Kieran Bingham wrote:
> A capture request is no longer limited to a single output buffer.
> Remove the limitation, but (for now) keep the check to ensure that
> at least one buffer is always provided.
>
> This 'should never happen' so could be a LOG(Fatal) or removed.
I would remove this last line from the commit message, with that fixed
Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
>
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
> src/android/camera_device.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
> index eea8c8c50352..4681fd8af90b 100644
> --- a/src/android/camera_device.cpp
> +++ b/src/android/camera_device.cpp
> @@ -1046,7 +1046,7 @@ static FrameBuffer *newFrameBuffer(const buffer_handle_t camera3buffer)
>
> int CameraDevice::processCaptureRequest(camera3_capture_request_t *camera3Request)
> {
> - if (camera3Request->num_output_buffers != 1) {
> + if (camera3Request->num_output_buffers < 1) {
> LOG(HAL, Error) << "Invalid number of output buffers: "
> << camera3Request->num_output_buffers;
> return -EINVAL;
> --
> 2.25.1
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
--
Regards,
Niklas Söderlund
More information about the libcamera-devel
mailing list