libcamera: framebuffer: Prevent modifying the number of metadata planes
The number of metadata planes should always match the number of frame buffer planes. Enforce this by making the vector private and providing accessor functions. As this changes the public API, update all in-tree users accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
This commit is contained in:
@@ -756,7 +756,7 @@ void MainWindow::processViewfinder(FrameBuffer *buffer)
|
||||
|
||||
qDebug().noquote()
|
||||
<< QString("seq: %1").arg(metadata.sequence, 6, 10, QLatin1Char('0'))
|
||||
<< "bytesused:" << metadata.planes[0].bytesused
|
||||
<< "bytesused:" << metadata.planes()[0].bytesused
|
||||
<< "timestamp:" << metadata.timestamp
|
||||
<< "fps:" << Qt::fixed << qSetRealNumberPrecision(2) << fps;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user