Function rs2_get_option_value

Function Documentation

rs2_option_value const *rs2_get_option_value(const rs2_options *options, rs2_option option_id, rs2_error **error)

read option value from the sensor

Parameters:
  • options[in] the options container

  • option_id[in] option id to be queried

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

pointer to the value structure of the option; use rs2_delete_option_value to clean up