Class video_stream_profile

Inheritance Relationships

Base Type

Class Documentation

class video_stream_profile : public rs2::stream_profile

Public Functions

inline video_stream_profile()
inline explicit video_stream_profile(const stream_profile &sp)

Stream profile instance which contains additional video attributes

Parameters:

stream_profile – sp - assign exisiting stream_profile to this instance.

inline int width() const
inline int height() const
inline rs2_intrinsics get_intrinsics() const

Get stream profile instrinsics attributes

Returns:

rs2_intrinsics - stream intrinsics.

inline bool operator==(const video_stream_profile &other) const
inline stream_profile clone(rs2_stream type, int index, rs2_format format, int width, int height, const rs2_intrinsics &intr) const

Clone current profile and change the type, index and format to input parameters

Parameters:
  • type[in] - will change the stream type from the cloned profile.

  • index[in] - will change the stream index from the cloned profile.

  • format[in] - will change the stream format from the cloned profile.

  • width[in] - will change the width of the profile

  • height[in] - will change the height of the profile

  • intr[in] - will change the intrinsics of the profile

Returns:

stream_profile - return the cloned stream profile.

inline stream_profile clone(rs2_stream type, int index, rs2_format format) const

Clone the current profile and change the type, index and format to input parameters

Parameters:
  • type[in] - will change the stream type from the cloned profile.

  • index[in] - will change the stream index from the cloned profile.

  • format[in] - will change the stream format from the cloned profile.

Returns:

stream_profile - return the cloned stream profile.