We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0c3ee6 commit 81f85baCopy full SHA for 81f85ba
1 file changed
src/libcameracamera.cpp
@@ -8,6 +8,7 @@
8
#include <libcamera/framebuffer_allocator.h>
9
#include <qvideoframe.h>
10
#include <sys/mman.h>
11
+#include <QColorSpace>
12
13
using namespace libcamera;
14
@@ -494,6 +495,7 @@ QImage LibCameraWorker::convertBufferToImage(
494
495
cfg.size.height,
496
cfg.stride,
497
QImage::Format_RGB888);
498
+ temp.setColorSpace(QColorSpace::SRgb);
499
image = temp.copy();
500
} else if (cfg.pixelFormat == libcamera::formats::BGR888) {
501
QImage temp(static_cast<const uchar *>(memory),
0 commit comments