#include <rs_frame.hpp>
◆ stream_profile() [1/2]
rs2::stream_profile::stream_profile |
( |
| ) |
|
|
inline |
Class to store the profile of stream
◆ stream_profile() [2/2]
◆ as()
template<class T >
T rs2::stream_profile::as |
( |
| ) |
const |
|
inline |
Template function, casting the instance as another class type
- Returns
- class instance - pointer or null.
◆ clone()
Clone the 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. |
- Returns
- stream_profile - return the cloned stream profile.
◆ format()
Return the stream format
- Returns
- rs2_format - stream format
◆ fps()
int rs2::stream_profile::fps |
( |
| ) |
const |
|
inline |
Return the stream frame per second
- Returns
- int - frame rate
◆ get()
Get back the internal stream profile instance
- Returns
- rs2_stream_profile* - internal implementation of the profile class
◆ get_extrinsics_to()
Operator implement, return the internal stream profile instance.
- Returns
- rs2_stream_profile* - internal instance to communicate with real implementation. Get the extrinsic transformation between two profiles (representing physical sensors)
- Parameters
-
[in] | stream_profile | to - the stream profile (another sensor) to be based to return the extrinsic |
- Returns
- rs2_stream_profile* - internal instance to communicate with real implementation.
◆ is()
template<class T >
bool rs2::stream_profile::is |
( |
| ) |
const |
|
inline |
Template function, checking if the instance belongs to specific class type
- Returns
- bool - true or false.
◆ is_cloned()
bool rs2::stream_profile::is_cloned |
( |
| ) |
|
|
inline |
◆ is_default()
bool rs2::stream_profile::is_default |
( |
| ) |
const |
|
inline |
Checks if stream profile is marked/assigned as default, meaning that the profile will be selected when the user requests stream configuration using wildcards (RS2_DEPTH, -1,-1,...
- Returns
- bool - true or false.
◆ operator bool()
rs2::stream_profile::operator bool |
( |
| ) |
const |
|
inline |
Checks if the profile is valid
- Returns
- bool - true or false.
◆ operator const rs2_stream_profile *()
◆ operator std::shared_ptr< rs2_stream_profile >()
◆ operator==()
Comparison operator, compare if two stream profiles are the same
- Parameters
-
[in] | rhs | - stream profile to compare with. |
- Returns
- bool - true or false.
◆ register_extrinsics_to()
Assign extrinsic transformation parameters to a specific profile (sensor). The extrinsic information is generally available as part of the camera calibration, and librealsense is responsible for retrieving and assigning these parameters where appropriate. This specific function is intended for synthetic/mock-up (software) devices for which the parameters are produced and injected by the user.
- Parameters
-
[in] | stream_profile | to - which stream profile to be registered with the extrinsic. |
[in] | rs2_extrinsics | extrinsics - the extrinsics to be registered. |
◆ stream_index()
int rs2::stream_profile::stream_index |
( |
| ) |
const |
|
inline |
Return the specific stream index
- Returns
- int - stream index
◆ stream_name()
std::string rs2::stream_profile::stream_name |
( |
| ) |
const |
|
inline |
Return the string of stream name
- Returns
- string - stream name.
◆ stream_type()
rs2_stream rs2::stream_profile::stream_type |
( |
| ) |
const |
|
inline |
Return the stream type
- Returns
- rs2_stream - stream type
◆ unique_id()
int rs2::stream_profile::unique_id |
( |
| ) |
const |
|
inline |
Return the assigned unique index when the stream was created
- Returns
- int - unique id
◆ rs2::frame
◆ rs2::pipeline_profile
◆ rs2::sensor
◆ rs2::video_stream_profile
◆ _clone
◆ _default
bool rs2::stream_profile::_default = false |
|
protected |
◆ _format
◆ _framerate
int rs2::stream_profile::_framerate = 0 |
|
protected |
◆ _index
int rs2::stream_profile::_index = 0 |
|
protected |
◆ _profile
◆ _type
◆ _uid
int rs2::stream_profile::_uid = 0 |
|
protected |
The documentation for this class was generated from the following file:
- C:/jenkins_sys_rsbuild/workspace/LRS_doxygen_pipeline/source/include/librealsense2/hpp/rs_frame.hpp