Function rs2_clone_stream_profile

Function Documentation

rs2_stream_profile *rs2_clone_stream_profile(const rs2_stream_profile *mode, rs2_stream stream, int index, rs2_format format, rs2_error **error)

Creates a copy of stream profile, assigning new values to some of the fields

Parameters:
  • mode[in] input stream profile

  • stream[in] stream type for the profile

  • format[in] binary data format of the profile

  • index[in] stream index the profile in case there are multiple streams of the same type

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

Returns:

new stream profile, must be deleted by rs2_delete_stream_profile