summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-04-27 23:51:44 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-05-01 12:24:07 +0200
commitd29c32135709b18f430b75b8f9fc2592a5915149 (patch)
tree1262532a102f9e596afc6db40d1058740d3d6abd /src/qcam/main_window.h
parent18cfea19dc593f47bf78f7abf108b0c6033ccf33 (diff)
qcam: Make use of StreamKeyValueParser
Use the StreamKeyValueParser helper to parse stream configuration from the command line. This extends qcam to accept role hints and pixel format in addition to a size. Currently only one viewfinder stream is supported, add a check to keep this behavior. Going forward this restriction will be lifted to support more then one stream. 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, 2 insertions, 2 deletions
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h
index 4ec37d40..aea1f1de 100644
--- a/src/qcam/main_window.h
+++ b/src/qcam/main_window.h
@@ -23,7 +23,7 @@
#include <libcamera/framebuffer_allocator.h>
#include <libcamera/stream.h>
-#include "../cam/options.h"
+#include "../cam/stream_options.h"
#include "viewfinder.h"
using namespace libcamera;
@@ -34,7 +34,7 @@ class QComboBox;
enum {
OptCamera = 'c',
OptHelp = 'h',
- OptSize = 's',
+ OptStream = 's',
};
class MainWindow : public QMainWindow