Function rs2_start

Function Documentation

void rs2_start(const rs2_sensor *sensor, rs2_frame_callback_ptr on_frame, void *user, rs2_error **error)

start streaming from specified configured sensor

Parameters:
  • sensor[in] RealSense device

  • on_frame[in] function pointer to register as per-frame callback

  • user[in] auxiliary data the user wishes to receive together with every frame callback

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