Public Member Functions | Private Attributes | List of all members
rs2::video_stream_profile Class Reference

#include <rs_frame.hpp>

Inheritance diagram for rs2::video_stream_profile:
Inheritance graph
[legend]

Public Member Functions

stream_profile clone (rs2_stream type, int index, rs2_format format, int width, int height, const rs2_intrinsics &intr) const
 
rs2_intrinsics get_intrinsics () const
 
int height () const
 
bool operator== (const video_stream_profile &other) const
 
 video_stream_profile (const stream_profile &sp)
 
int width () const
 
- Public Member Functions inherited from rs2::stream_profile
template<class T >
as () const
 
stream_profile clone (rs2_stream type, int index, rs2_format format) const
 
rs2_format format () const
 
int fps () const
 
const rs2_stream_profileget () const
 
rs2_extrinsics get_extrinsics_to (const stream_profile &to) const
 
template<class T >
bool is () const
 
bool is_cloned ()
 
bool is_default () const
 
 operator bool () const
 
 operator const rs2_stream_profile * ()
 
 operator std::shared_ptr< rs2_stream_profile > ()
 
bool operator== (const stream_profile &rhs)
 
void register_extrinsics_to (const stream_profile &to, rs2_extrinsics extrinsics)
 
int stream_index () const
 
std::string stream_name () const
 
 stream_profile ()
 
 stream_profile (const rs2_stream_profile *profile)
 
rs2_stream stream_type () const
 
int unique_id () const
 

Private Attributes

int _height = 0
 
int _width = 0
 

Additional Inherited Members

- Protected Attributes inherited from rs2::stream_profile
std::shared_ptr< rs2_stream_profile_clone
 
bool _default = false
 
rs2_format _format = RS2_FORMAT_ANY
 
int _framerate = 0
 
int _index = 0
 
const rs2_stream_profile_profile
 
rs2_stream _type = RS2_STREAM_ANY
 
int _uid = 0
 

Detailed Description

Definition at line 201 of file rs_frame.hpp.

Constructor & Destructor Documentation

rs2::video_stream_profile::video_stream_profile ( const stream_profile sp)
inlineexplicit

Stream profile instance which contains additional video attributes

Parameters
[in]stream_profilesp - assign exisiting stream_profile to this instance.

Definition at line 208 of file rs_frame.hpp.

Member Function Documentation

stream_profile rs2::video_stream_profile::clone ( rs2_stream  type,
int  index,
rs2_format  format,
int  width,
int  height,
const rs2_intrinsics intr 
) const
inline

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

Parameters
[in]type- will change the stream type from the cloned profile.
[in]index- will change the stream index from the cloned profile.
[in]format- will change the stream format from the cloned profile.
[in]width- will change the width of the profile
[in]height- will change the height of the profile
[in]intr- will change the intrinsics of the profile
Returns
stream_profile - return the cloned stream profile.

Definition at line 266 of file rs_frame.hpp.

rs2_intrinsics rs2::video_stream_profile::get_intrinsics ( ) const
inline

Get stream profile instrinsics attributes

Returns
rs2_intrinsics - stream intrinsics.

Definition at line 238 of file rs_frame.hpp.

int rs2::video_stream_profile::height ( ) const
inline

Definition at line 230 of file rs_frame.hpp.

bool rs2::video_stream_profile::operator== ( const video_stream_profile other) const
inline

Definition at line 247 of file rs_frame.hpp.

int rs2::video_stream_profile::width ( ) const
inline

Definition at line 225 of file rs_frame.hpp.

Member Data Documentation

int rs2::video_stream_profile::_height = 0
private

Definition at line 278 of file rs_frame.hpp.

int rs2::video_stream_profile::_width = 0
private

Definition at line 277 of file rs_frame.hpp.


The documentation for this class was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41