Function rs2_clone_video_stream_profile

Function Documentation

rs2_stream_profile *rs2_clone_video_stream_profile(const rs2_stream_profile *mode, rs2_stream stream, int index, rs2_format format, int width, int height, const rs2_intrinsics *intr, 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

  • width[in] new width for the profile

  • height[in] new height for the profile

  • intr[in] new intrinsics for 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