[libcamera-devel] [PATCH v6 03/12] libcamera: pipeline: raspberrypi: Add some debug logging
Naushir Patuck
naush at raspberrypi.com
Tue Aug 4 11:58:41 CEST 2020
No functional changes, only added some more trace points.
Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Tested-by: David Plowman <david.plowman at raspberrypi.com>
---
src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index 8fb9df72..61925033 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -1159,6 +1159,11 @@ void RPiCameraData::ispInputDequeue(FrameBuffer *buffer)
if (state_ == State::Stopped)
return;
+ LOG(RPI, Debug) << "Stream ISP Input buffer complete"
+ << ", buffer id " << buffer->cookie()
+ << ", timestamp: " << buffer->metadata().timestamp;
+
+ /* The ISP input buffer gets re-queued into Unicam. */
handleStreamBuffer(buffer, &unicam_[Unicam::Image]);
handleState();
}
@@ -1461,7 +1466,7 @@ FrameBuffer *RPiCameraData::updateQueue(std::queue<FrameBuffer *> &q, uint64_t t
if (b->metadata().timestamp < timestamp) {
q.pop();
dev->queueBuffer(b);
- LOG(RPI, Error) << "Dropping input frame!";
+ LOG(RPI, Warning) << "Dropping input frame!";
} else if (b->metadata().timestamp == timestamp) {
/* The calling function will pop the item from the queue. */
return b;
--
2.25.1
More information about the libcamera-devel
mailing list