[][src]Function realsense_sys::rs2_pipeline_profile_get_device

pub unsafe extern "C" fn rs2_pipeline_profile_get_device(
    profile: *mut rs2_pipeline_profile,
    error: *mut *mut rs2_error
) -> *mut rs2_device

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 \c start(). Devices of profiles, which are not returned by pipeline \c start() or \c get_active_profile(), are not guaranteed to be used by the pipeline.

\param[in] profile A pointer to an instance of a pipeline profile \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored \return rs2_device* The pipeline selected device