|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
4 #ifndef LIBREALSENSE_RS2_OPTIONS_HPP
5 #define LIBREALSENSE_RS2_OPTIONS_HPP
121 std::vector<rs2_option> res;
123 std::shared_ptr<rs2_options_list> options_list(
136 _options = other._options;
159 #endif // LIBREALSENSE_RS2_OIPTIONS_HPP
virtual ~options()=default
option_range get_option_range(rs2_option option) const
retrieve the available range of values of a supported option
std::vector< rs2_option > get_supported_options()
rs2_option rs2_get_option_from_list(const rs2_options_list *options, int i, rs2_error **error)
get the specific option from options list
rs2_options_list * rs2_get_options_list(const rs2_options *options, rs2_error **error)
get the list of supported options of options container
options(const options &other)
const char * get_option_name(rs2_option option) const
get option name
void set_option(rs2_option option, float value) const
write new value to the option
int rs2_supports_option(const rs2_options *options, rs2_option option, rs2_error **error)
check if particular option is supported by a subdevice
const char * rs2_get_option_description(const rs2_options *options, rs2_option option, rs2_error **error)
get option description
bool supports(rs2_option option) const
check if particular option is supported
struct rs2_options rs2_options
const char * rs2_get_option_name(const rs2_options *options, rs2_option option, rs2_error **error)
get option name
const char * get_option_value_description(rs2_option option, float val) const
get option value description (in case specific option value hold special meaning)
options(rs2_options *o=nullptr)
const char * rs2_get_option_value_description(const rs2_options *options, rs2_option option, float value, rs2_error **error)
get option value description (in case specific option value hold special meaning)
void rs2_delete_options_list(rs2_options_list *list)
Deletes options list.
void rs2_get_option_range(const rs2_options *sensor, rs2_option option, float *min, float *max, float *step, float *def, rs2_error **error)
retrieve the available range of values of a supported option
options & operator=(const options &other)
const char * get_option_description(rs2_option option) const
get option description
rs2_option
Defines general configuration controls.
int rs2_is_option_read_only(const rs2_options *options, rs2_option option, rs2_error **error)
check if an option is read-only
options & operator=(const T &dev)
int rs2_get_options_list_size(const rs2_options_list *options, rs2_error **error)
get the size of options list
void rs2_set_option(const rs2_options *options, rs2_option option, float value, rs2_error **error)
write new value to sensor option
static void handle(rs2_error *e)
float rs2_get_option(const rs2_options *options, rs2_option option, rs2_error **error)
read option value from the sensor
bool is_option_read_only(rs2_option option) const
check if particular option is read-only
float get_option(rs2_option option) const
read option's value
struct rs2_error rs2_error