summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-23 04:50:14 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-24 14:49:52 +0200
commit8bd4f20193abafdd8bc25b9b0d37a0aced8aa2cb (patch)
tree62627fbb05ba36ba841474978317c970712b8346 /src/qcam/viewfinder.h
parent798b7ac9692746ea9df15923f3b00b622c7f2ed4 (diff)
qcam: viewfinder: Report the natively supported pixel formats
Expose the pixel formats natively supported by the viewfinder, to allow selection of stream formats that would minimize usage of software conversion. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/qcam/viewfinder.h')
-rw-r--r--src/qcam/viewfinder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcam/viewfinder.h b/src/qcam/viewfinder.h
index 1a27f99e..b3f1d25d 100644
--- a/src/qcam/viewfinder.h
+++ b/src/qcam/viewfinder.h
@@ -10,6 +10,7 @@
#include <stddef.h>
#include <QIcon>
+#include <QList>
#include <QImage>
#include <QMutex>
#include <QSize>
@@ -35,6 +36,8 @@ public:
ViewFinder(QWidget *parent);
~ViewFinder();
+ const QList<libcamera::PixelFormat> &nativeFormats() const;
+
int setFormat(const libcamera::PixelFormat &format, const QSize &size);
void render(libcamera::FrameBuffer *buffer, MappedBuffer *map);
void stop();