|
RealSense Cross Platform API
RealSense Cross-platform API
|
Generic entry points shared by every composite (multi-field, atomically-exchanged) XU control. A separate identity space from rs2_option, keyed by rs2_composite_option_id. Each call below is exactly one UVC transaction: all fields of the option's payload travel together, atomically. More...
#include "rs_types.h"Go to the source code of this file.
Typedefs | |
| typedef enum rs2_composite_option_id | rs2_composite_option_id |
Enumerations | |
| enum | rs2_composite_option_id { RS2_COMPOSITE_OPTION_DECIMATION_FILTER_DPP, RS2_COMPOSITE_OPTION_TEMPORAL_FILTER_DPP, RS2_COMPOSITE_OPTION_HDRD_CONTROL, RS2_COMPOSITE_OPTION_COUNT } |
Generic entry points shared by every composite (multi-field, atomically-exchanged) XU control. A separate identity space from rs2_option, keyed by rs2_composite_option_id. Each call below is exactly one UVC transaction: all fields of the option's payload travel together, atomically.
| typedef enum rs2_composite_option_id rs2_composite_option_id |
Identifies a composite (multi-field, atomically-exchanged) control. Completely independent of rs2_option (see rs_option.h) - its own namespace and enumeration path, never mixed with scalar options.
Identifies a composite (multi-field, atomically-exchanged) control. Completely independent of rs2_option (see rs_option.h) - its own namespace and enumeration path, never mixed with scalar options.
| Enumerator | |
|---|---|
| RS2_COMPOSITE_OPTION_DECIMATION_FILTER_DPP | HKR Depth Post-Processing "Decimation Filter" - see rs_decimation_filter_dpp.h. |
| RS2_COMPOSITE_OPTION_TEMPORAL_FILTER_DPP | HKR Depth Post-Processing "Temporal Filter" - see rs_temporal_filter_dpp.h. |
| RS2_COMPOSITE_OPTION_HDRD_CONTROL | HKR/D5X5 Improved Close Range control - see rs_hdrd_control.h. |
| RS2_COMPOSITE_OPTION_COUNT | Number of enumeration values. Not a valid input: intended to be used in for-loops. |
| const char* rs2_composite_option_id_to_string | ( | rs2_composite_option_id | id | ) |
Returns the composite option id's name, or "UNKNOWN" otherwise - the composite-option analogue of rs2_option_to_string. Unlike rs2_option, there is no from_string() reverse lookup.
| [in] | id | the composite option identifier |
| void rs2_delete_composite_options_list | ( | rs2_composite_options_list * | list | ) |
Deletes a composite options list returned by rs2_get_composite_options_list.
| [in] | list | the list to delete |
| const rs2_raw_data_buffer* rs2_get_composite_option | ( | const rs2_options * | options, |
| rs2_composite_option_id | option, | ||
| rs2_error ** | error | ||
| ) |
rs2_get_composite_option - generic composite-option getter. Reads the current value in ONE atomic UVC transaction. The caller has no generic way to know the wire size in advance, so the SDK heap-allocates and returns it as an rs2_raw_data_buffer - read with rs2_get_raw_data_size/rs2_get_raw_data, free with rs2_delete_raw_data.
| [in] | options | Options container (sensor or embedded_filter) that exposes this composite option |
| [in] | option | Which composite option to read |
| [out] | error | If non-null, receives any error that occurs during this call, otherwise, errors are ignored |
| const char* rs2_get_composite_option_description | ( | const rs2_options * | options, |
| rs2_composite_option_id | option, | ||
| rs2_error ** | error | ||
| ) |
get a composite option's human-readable description - the composite-option analogue of rs2_get_option_description.
| [in] | options | Options container (sensor or embedded_filter) that exposes this composite option |
| [in] | option | composite option id to describe |
| [out] | error | If non-null, receives any error that occurs during this call, otherwise, errors are ignored |
| rs2_composite_option_id rs2_get_composite_option_from_list | ( | const rs2_composite_options_list * | list, |
| int | i, | ||
| rs2_error ** | error | ||
| ) |
Retrieve the i-th composite option id in a list returned by rs2_get_composite_options_list.
| [in] | list | the list of composite option ids |
| [in] | i | the index of the composite option id to retrieve |
| [out] | error | if non-null, receives any error that occurs during this call, otherwise, errors are ignored |
| const rs2_raw_data_buffer* rs2_get_composite_option_range | ( | const rs2_options * | options, |
| rs2_composite_option_id | option, | ||
| rs2_error ** | error | ||
| ) |
rs2_get_composite_option_range - generic composite-option range getter. Reads the option's supported {min, max, step, def} - one instance of the option's struct per bound - packed into a single SDK-allocated rs2_raw_data_buffer, the composite-option analogue of rs2_get_option_range.
| [in] | options | Options container (sensor or embedded_filter) that exposes this composite option |
| [in] | option | Which composite option's range to read |
| [out] | error | If non-null, receives any error that occurs during this call, otherwise, errors are ignored |
| rs2_composite_options_list* rs2_get_composite_options_list | ( | const rs2_options * | options, |
| rs2_error ** | error | ||
| ) |
rs2_get_composite_options_list - the composite-option analogue of rs2_get_options_list: the full set of composite ids this options container supports. Never contains a scalar rs2_option - composite and scalar options are enumerated completely separately.
| [in] | options | Options container (sensor or embedded_filter) |
| [out] | error | If non-null, receives any error that occurs during this call, otherwise, errors are ignored |
| int rs2_get_composite_options_list_size | ( | const rs2_composite_options_list * | list, |
| rs2_error ** | error | ||
| ) |
Return the number of composite option ids in a list returned by rs2_get_composite_options_list.
| [in] | list | the list of composite option ids |
| [out] | error | if non-null, receives any error that occurs during this call, otherwise, errors are ignored |
| int rs2_is_composite_option_read_only | ( | const rs2_options * | options, |
| rs2_composite_option_id | option, | ||
| rs2_error ** | error | ||
| ) |
check if a composite option is read-only - the composite-option analogue of rs2_is_option_read_only.
| [in] | options | Options container (sensor or embedded_filter) that exposes this composite option |
| [in] | option | composite option id to check |
| [out] | error | If non-null, receives any error that occurs during this call, otherwise, errors are ignored |
| void rs2_set_composite_option | ( | const rs2_options * | options, |
| rs2_composite_option_id | option, | ||
| const void * | data, | ||
| unsigned int | size, | ||
| rs2_error ** | error | ||
| ) |
rs2_set_composite_option - generic composite-option setter. Writes size bytes from data to the device in ONE atomic UVC control transaction. The caller is responsible for knowing the documented wire layout for option and passing a pointer to a matching struct + sizeof(...) as data/size. No ownership transfer, exactly like rs2_set_option.
| [in] | options | Options container (sensor or embedded_filter) that exposes this composite option |
| [in] | option | Which composite option to write |
| [in] | data | Pointer to the caller's struct matching the option's documented wire layout |
| [in] | size | sizeof(...) of the caller's struct |
| [out] | error | If non-null, receives any error that occurs during this call, otherwise, errors are ignored |
| int rs2_supports_composite_option | ( | const rs2_options * | options, |
| rs2_composite_option_id | option, | ||
| rs2_error ** | error | ||
| ) |
check if a particular composite option is supported (and currently enabled) by this options container - the composite-option analogue of rs2_supports_option.
| [in] | options | Options container (sensor or embedded_filter) |
| [in] | option | composite option id to check |
| [out] | error | If non-null, receives any error that occurs during this call, otherwise, errors are ignored |
1.8.14