Function rs2_get_frame_sensor

Function Documentation

rs2_sensor *rs2_get_frame_sensor(const rs2_frame *frame, rs2_error **error)

retrieve frame parent sensor from frame handle

Parameters:
  • frame[in] handle returned from a callback

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

Returns:

the parent sensor of the frame