Message ID | 20220527093440.953377-6-paul.elder@ideasonboard.com |
---|---|
State | Superseded |
Headers | show |
Series |
|
Related | show |
Hi Paul / Jacopo, Thank you for the patch. On 5/27/22 11:34, Paul Elder via libcamera-devel wrote: > From: Jacopo Mondi <jacopo@jmondi.org> > > When a request completes, a debug message is generated to help > identify the request and the number of streams it contains. > > The printed number of streams is however the number of output buffers > requested by the camera framework, not the number of streams generated > by libcamera. In facts, some output buffers are generated by > post-processing, and not directly from the camera. > > As the debug message prints the libcamera identifier for the Request, it > is more logical to print the number of streams generated by the camera > instead of the total number of streams. > > Reviewed-by: Hirokazu Honda <hiroh@chromium.org> > Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> > > --- > Changes in v2: > - fix typo in commit message > --- > 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 9ee34b93..dfff8ec4 100644 > --- a/src/android/camera_device.cpp > +++ b/src/android/camera_device.cpp > @@ -1194,7 +1194,7 @@ void CameraDevice::requestComplete(Request *request) > notifyShutter(descriptor->frameNumber_, sensorTimestamp); > > LOG(HAL, Debug) << "Request " << request->cookie() << " completed with " > - << descriptor->buffers_.size() << " streams"; > + << descriptor->request_->buffers().size() << " streams"; > > /* > * Generate the metadata associated with the captured buffers.
Hi Paul and Jacopo, Thank you for the patch. On Fri, May 27, 2022 at 06:34:40PM +0900, Paul Elder via libcamera-devel wrote: > From: Jacopo Mondi <jacopo@jmondi.org> > e When a request completes, a debug message is generated to help > identify the request and the number of streams it contains. > > The printed number of streams is however the number of output buffers > requested by the camera framework, not the number of streams generated > by libcamera. In facts, some output buffers are generated by > post-processing, and not directly from the camera. > > As the debug message prints the libcamera identifier for the Request, it > is more logical to print the number of streams generated by the camera > instead of the total number of streams. > > Reviewed-by: Hirokazu Honda <hiroh@chromium.org> > Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> > > --- > Changes in v2: > - fix typo in commit message > --- > 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 9ee34b93..dfff8ec4 100644 > --- a/src/android/camera_device.cpp > +++ b/src/android/camera_device.cpp > @@ -1194,7 +1194,7 @@ void CameraDevice::requestComplete(Request *request) > notifyShutter(descriptor->frameNumber_, sensorTimestamp); > > LOG(HAL, Debug) << "Request " << request->cookie() << " completed with " > - << descriptor->buffers_.size() << " streams"; > + << descriptor->request_->buffers().size() << " streams"; Would it make sense to instead print LOG(HAL, Debug) << *descriptor->request_ << " completed"; ? Either way, Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > /* > * Generate the metadata associated with the captured buffers.
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index 9ee34b93..dfff8ec4 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -1194,7 +1194,7 @@ void CameraDevice::requestComplete(Request *request) notifyShutter(descriptor->frameNumber_, sensorTimestamp); LOG(HAL, Debug) << "Request " << request->cookie() << " completed with " - << descriptor->buffers_.size() << " streams"; + << descriptor->request_->buffers().size() << " streams"; /* * Generate the metadata associated with the captured buffers.