From 2f5860bcb0a90ed9ae888d0eb79979df033c674d Mon Sep 17 00:00:00 2001 From: Tiny Date: Wed, 19 Dec 2018 18:14:05 +0800 Subject: [PATCH] add a config dialog. --- src/mynteye/uvc/macosx/uvc-vvuvckit.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mynteye/uvc/macosx/uvc-vvuvckit.cc b/src/mynteye/uvc/macosx/uvc-vvuvckit.cc index 86de080..6deb392 100644 --- a/src/mynteye/uvc/macosx/uvc-vvuvckit.cc +++ b/src/mynteye/uvc/macosx/uvc-vvuvckit.cc @@ -252,7 +252,7 @@ struct device : public AVfoundationCamera{ return _product_id; } std::string get_video_name() const { - return std::string("video name is not supported on osx."); + return std::string("[video name is not supported on osx]"); } void setup_camera() { @@ -302,6 +302,7 @@ struct device : public AVfoundationCamera{ return; } start_capture(); + showSettingsDialog(false); thread = std::thread([this]() { while (!stop) poll(); @@ -317,6 +318,13 @@ struct device : public AVfoundationCamera{ stop_capture(); } } + + // void reset_options_to_default() { + // setCameraSetting(BRIGHTNESS, 120); + // setCameraSetting(CONTRAST, 127); + // setCameraSetting(GAIN, 24); + // setCameraSetting(SATURATION, 192); + // } }; std::vector device::s_devices;