[][src]Function realsense_sys::rs2_pipeline_start_with_callback_cpp

pub unsafe extern "C" fn rs2_pipeline_start_with_callback_cpp(
    pipe: *mut rs2_pipeline,
    callback: *mut rs2_frame_callback,
    error: *mut *mut rs2_error
) -> *mut rs2_pipeline_profile

Start the pipeline streaming with its default configuration. The pipeline captures samples from the device, and delivers them to the through the provided frame callback. Starting the pipeline is possible only when it is not started. If the pipeline was started, an exception is raised. When starting the pipeline with a callback both \c wait_for_frames() or \c poll_for_frames() will throw exception.

\param[in] pipe A pointer to an instance of the pipeline \param[in] callback callback object created from c++ application. ownership over the callback object is moved into the relevant streaming lock \param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored \return The actual pipeline device and streams profile, which was successfully configured to the streaming device.