diff options
Diffstat (limited to 'video-opencv')
-rw-r--r-- | video-opencv/impl-camera.cpp | 4 | ||||
-rw-r--r-- | video-opencv/settings.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/video-opencv/impl-camera.cpp b/video-opencv/impl-camera.cpp index b11c5cd5..afd76310 100644 --- a/video-opencv/impl-camera.cpp +++ b/video-opencv/impl-camera.cpp @@ -33,7 +33,7 @@ bool cam::is_open() void cam::set_exposure(bool write) { - auto e = *s.exposure_preset; + auto e = *s.exposure; if (e != exposure) switch (e) { @@ -42,7 +42,7 @@ void cam::set_exposure(bool write) default: break; } - if (s.exposure_preset != exposure_preset::ignored) + if (s.exposure != exposure_preset::ignored) { constexpr struct { int prop, value; diff --git a/video-opencv/settings.hpp b/video-opencv/settings.hpp index 69fb5705..a4f70c25 100644 --- a/video-opencv/settings.hpp +++ b/video-opencv/settings.hpp @@ -9,5 +9,5 @@ enum class exposure_preset : int { struct dshow_camera_settings final { bundle b = make_bundle("video-camera"); - value<exposure_preset> exposure_preset{b, "exposure-preset", exposure_preset::near}; + value<exposure_preset> exposure{b, "exposure-preset", exposure_preset::near}; }; |