10 #include "../hdr-config.h" 24 float query()
const override;
42 float query()
const override;
61 void set(
float value)
override;
63 float query()
const override;
69 return "Enable/disable auto-exposure";
92 const std::map<float, std::string>& description_per_value);
94 void set(
float value)
override;
96 float query()
const override;
102 return "Auto-Exposure Mode";
120 void set(
float value)
override;
122 float query()
const override;
128 return "Auto-Exposure converge step";
142 const std::map<float, std::string>& description_per_value);
144 void set(
float value)
override;
146 float query()
const override;
152 return "Auto-Exposure anti-flicker";
168 virtual void set(
float value)
override;
169 virtual float query()
const override;
175 return "Number of meters represented by a single depth unit";
179 _record_action = record_action;
184 std::function<void(const option &)> _record_action = [](
const option&) {};
197 virtual void set(
float value)
override;
198 virtual float query()
const override;
201 virtual bool is_read_only()
const {
return _sensor && _sensor->is_opened(); }
206 _record_action = record_action;
209 std::function<void(const option &)> _record_action = [](
const option&) {};
221 virtual void set(
float value)
override;
222 virtual float query()
const override;
227 return "Emitter On/Off Mode: 0:disabled(default), 1:enabled(emitter toggles between on and off). Can only be set before streaming";
229 virtual void enable_recording(std::function<
void(
const option &)> record_action)
override {_record_action = record_action;}
232 std::function<void(const option &)> _record_action = [](
const option&) {};
243 virtual void set(
float value)
override;
244 virtual float query()
const override;
249 return "Alternating emitter pattern, toggled on/off on per-frame basis";
251 virtual void enable_recording(std::function<
void(
const option &)> record_action)
override { _record_action = record_action; }
254 std::function<void(const option &)> _record_action = [](
const option&) {};
266 virtual void set(
float value)
override;
267 virtual float query()
const override;
272 return "Emitter always on mode: 0:disabled(default), 1:enabled";
274 virtual void enable_recording(std::function<
void(
const option &)> record_action)
override { _record_action = record_action; }
277 std::function<void(const option &)> _record_action = [](
const option&) {};
287 : _hdr_cfg(hdr_cfg), _option(option), _range(range) {}
293 virtual void set(
float value)
override;
294 virtual float query()
const override;
298 virtual void enable_recording(std::function<
void(
const option&)> record_action)
override { _record_action = record_action; }
302 std::function<void(const option&)> _record_action = [](
const option&) {};
314 std::shared_ptr<option> uvc_option,
317 _uvc_option(uvc_option),
318 _hdr_option(hdr_option) {}
321 virtual void set(
float value)
override;
322 virtual float query()
const override;
326 virtual void enable_recording(std::function<
void(
const option&)> record_action)
override { _record_action = record_action; }
329 std::function<void(const option&)> _record_action = [](
const option&) {};
340 virtual void set(
float value)
override;
341 virtual float query()
const override;
344 virtual bool is_read_only()
const {
return _sensor && _sensor->is_opened(); }
347 return "Exposure limit is in microseconds. Default is 0 which means full exposure range. If the requested exposure limit is greater than frame time, it will be set to frame time at runtime. Setting will not take effect until next streaming session.";
349 virtual void enable_recording(std::function<
void(
const option&)> record_action)
override { _record_action = record_action; }
352 std::function<void(const option&)> _record_action = [](
const option&) {};
363 virtual void set(
float value)
override;
364 virtual float query()
const override;
367 virtual bool is_read_only()
const {
return _sensor && _sensor->is_opened(); }
370 return "Gain limits ranges from 16 to 248. Default is 0 which means full gain. If the requested gain limit is less than 16, it will be set to 16. If the requested gain limit is greater than 248, it will be set to 248. Setting will not take effect until next streaming session.";
372 virtual void enable_recording(std::function<
void(
const option&)> record_action)
override { _record_action = record_action; }
375 std::function<void(const option&)> _record_action = [](
const option&) {};
387 std::shared_ptr<option>
toggle);
389 void set(
float value)
override;
390 float query()
const override;
397 void create_snapshot(std::shared_ptr<option>& snapshot)
const override;
virtual bool is_enabled() const override
std::shared_ptr< auto_exposure_mechanism > _auto_exposure
virtual bool is_enabled() const override
virtual void enable_recording(std::function< void(const option &)> record_action) override
virtual const char * get_description() const override
hdr_option(std::shared_ptr< hdr_config > hdr_cfg, rs2_option option, option_range range)
hdr_option(std::shared_ptr< hdr_config > hdr_cfg, rs2_option option, option_range range, const std::map< float, std::string > &description_per_value)
virtual void enable_recording(std::function< void(const option &)> record_action) override
virtual const char * get_description() const override
virtual bool is_enabled() const override
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
lazy< option_range > _range
bool is_enabled() const override
option_range get_range() const override
virtual option_range get_range() const override
virtual const char * get_description() const override
std::shared_ptr< auto_exposure_mechanism > _auto_exposure
lazy< option_range > _range
std::shared_ptr< option > _thermal_toggle
option_range get_range() const override
const char * get_description() const override
virtual void create_snapshot(std::shared_ptr< option > &snapshot) const
lazy< option_range > _range
float query() const override
virtual const char * get_description() const override
GLsizei const GLchar *const * string
virtual bool is_read_only() const
const char * get_description() const override
virtual const char * get_description() const override
std::shared_ptr< auto_exposure_mechanism > _auto_exposure
std::shared_ptr< auto_exposure_state > _auto_exposure_state
virtual void enable_recording(std::function< void(const option &)> record_action) override
bool is_enabled() const override
virtual void enable_recording(std::function< void(const option &)> record_action) override
bool is_enabled() const override
virtual bool is_enabled() const override
virtual const char * get_description() const override
void enable_recording(std::function< void(const option &)> record_action) override
void enable_recording(std::function< void(const option &)> record_action) override
bool _is_fw_version_using_id
virtual bool is_enabled() const override
lazy< option_range > _range
std::shared_ptr< auto_exposure_mechanism > _auto_exposure
const char * get_description() const override
std::shared_ptr< auto_exposure_state > _auto_exposure_state
std::shared_ptr< hdr_config > _hdr_cfg
const char * get_value_description(float val) const override
void enable_recording(std::function< void(const option &)> record_action) override
const char * get_description() const override
const std::map< float, std::string > _description_per_value
std::shared_ptr< auto_exposure_state > _auto_exposure_state
lazy< option_range > _range
virtual bool is_read_only() const
const std::map< float, std::string > _description_per_value
auto_exposure_mechanism * get_auto_exposure()
virtual bool is_enabled() const override
virtual bool is_read_only() const
virtual void enable_recording(std::function< void(const option &)> record_action) override
emitter_option(uvc_sensor &ep)
virtual void enable_recording(std::function< void(const option &)> record_action) override
hdr_conditional_option(std::shared_ptr< hdr_config > hdr_cfg, std::shared_ptr< option > uvc_option, std::shared_ptr< option > hdr_option)
const std::map< float, std::string > _description_per_value
virtual bool is_enabled() const override
bool is_enabled() const override
std::shared_ptr< option > _hdr_option
virtual bool is_enabled() const override
std::function< void(const option &)> _recording_function
const char * get_description() const override
const std::map< float, std::string > _description_per_value
lazy< option_range > _range
lazy< option_range > _range
std::shared_ptr< auto_exposure_state > _auto_exposure_state
std::shared_ptr< hdr_config > _hdr_cfg
virtual void enable_recording(std::function< void(const option &)> record_action) override
bool is_enabled() const override
bool is_enabled() const override
std::shared_ptr< option > _uvc_option
std::shared_ptr< ds5_thermal_monitor > _thermal_monitor
const char * get_description() const override
std::atomic< bool > _to_add_frames