From 8bd4f20193abafdd8bc25b9b0d37a0aced8aa2cb Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 23 Mar 2020 04:50:14 +0200 Subject: 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 Reviewed-by: Kieran Bingham --- src/qcam/viewfinder.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qcam/viewfinder.h') 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 #include +#include #include #include #include @@ -35,6 +36,8 @@ public: ViewFinder(QWidget *parent); ~ViewFinder(); + const QList &nativeFormats() const; + int setFormat(const libcamera::PixelFormat &format, const QSize &size); void render(libcamera::FrameBuffer *buffer, MappedBuffer *map); void stop(); -- cgit v1.2.1