qcam: Print bytesused for all planes
Fix the debug message that prints frame metadata to print the number of bytes used for each plane, not just the first one. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <QInputDialog>
|
||||
#include <QMutexLocker>
|
||||
#include <QStandardPaths>
|
||||
#include <QStringList>
|
||||
#include <QTimer>
|
||||
#include <QToolBar>
|
||||
#include <QToolButton>
|
||||
@@ -754,10 +755,14 @@ void MainWindow::processViewfinder(FrameBuffer *buffer)
|
||||
fps = lastBufferTime_ && fps ? 1000000000.0 / fps : 0.0;
|
||||
lastBufferTime_ = metadata.timestamp;
|
||||
|
||||
QStringList bytesused;
|
||||
for (const FrameMetadata::Plane &plane : metadata.planes())
|
||||
bytesused << QString::number(plane.bytesused);
|
||||
|
||||
qDebug().noquote()
|
||||
<< QString("seq: %1").arg(metadata.sequence, 6, 10, QLatin1Char('0'))
|
||||
<< "bytesused:" << metadata.planes()[0].bytesused
|
||||
<< "timestamp:" << metadata.timestamp
|
||||
<< "bytesused: {" << bytesused.join(", ")
|
||||
<< "} timestamp:" << metadata.timestamp
|
||||
<< "fps:" << Qt::fixed << qSetRealNumberPrecision(2) << fps;
|
||||
|
||||
/* Render the frame on the viewfinder. */
|
||||
|
||||
Reference in New Issue
Block a user