Skip to content

Commit 74e1d8a

Browse files
committed
fix: update buffer plane type in image conversion for improved compatibility
1 parent 608c7f5 commit 74e1d8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libcameracamera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ QImage LibCameraWorker::convertBufferToImage(
544544
unsigned int width = cfg.size.width;
545545
unsigned int height = cfg.size.height;
546546

547-
const std::vector<FrameBuffer::Plane> &planes = buffer->planes();
547+
Span< const FrameBuffer::Plane > planes = buffer->planes();
548548

549549
qDebug() << "[DEBUG] YUV420: width=" << width << "height=" << height
550550
<< "num_planes=" << planes.size();

0 commit comments

Comments
 (0)