summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-04-29 16:59:15 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-05-02 14:46:20 +0200
commitb20eb8ffb5f91788a1412928058cbc9304b8144b (patch)
tree6e351a0ed5835773425ec3e9e5f20448feeab4b6 /src/qcam/main_window.h
parentdb7235b7141aa4e2922827b4678e25da4faa8c5d (diff)
qcam: Add RAW capture support
Add a toolbar button that captures RAW data to disk. The button is only enabled if the camera is configured to provide a raw stream to the application. Only when the capture action is triggered will a request with a raw buffer be queued to the camera. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/main_window.h')
-rw-r--r--src/qcam/main_window.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h
index 4856ecc1..295ecc53 100644
--- a/src/qcam/main_window.h
+++ b/src/qcam/main_window.h
@@ -55,6 +55,8 @@ private Q_SLOTS:
void toggleCapture(bool start);
void saveImageAs();
+ void captureRaw();
+ void processRaw(FrameBuffer *buffer);
void queueRequest(FrameBuffer *buffer);
@@ -75,6 +77,7 @@ private:
QToolBar *toolbar_;
QAction *startStopAction_;
QComboBox *cameraCombo_;
+ QAction *saveRaw_;
ViewFinder *viewfinder_;
QIcon iconPlay_;
@@ -96,6 +99,7 @@ private:
/* Capture state, buffers queue and statistics */
bool isCapturing_;
+ bool captureRaw_;
Stream *vfStream_;
Stream *rawStream_;
std::map<Stream *, QQueue<FrameBuffer *>> freeBuffers_;