Function rs2_pipeline_profile_get_device

Function Documentation

rs2_device *rs2_pipeline_profile_get_device(rs2_pipeline_profile *profile, rs2_error **error)

Retrieve the device used by the pipeline. The device class provides the application access to control camera additional settings - get device information, sensor options information, options value query and set, sensor specific extensions. Since the pipeline controls the device streams configuration, activation state and frames reading, calling the device API functions, which execute those operations, results in unexpected behavior. The pipeline streaming device is selected during pipeline start(). Devices of profiles, which are not returned by pipeline start() or get_active_profile(), are not guaranteed to be used by the pipeline.

Parameters:
  • profile[in] A pointer to an instance of a pipeline profile

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

Returns:

rs2_device* The pipeline selected device