Function rs2_get_frame_stream_profile

Function Documentation

const rs2_stream_profile *rs2_get_frame_stream_profile(const rs2_frame *frame, rs2_error **error)

Returns the stream profile that was used to start the stream of this frame

Parameters:
  • frame[in] frame reference, owned by the user

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

Returns:

Pointer to the stream profile object, lifetime is managed elsewhere