#include <StreamProfile.hpp>
|
| | StreamProfileList (ob_stream_profile_list_t *impl) |
| | ~StreamProfileList () noexcept |
| uint32_t | getCount () const |
| | Return the number of StreamProfile objects.
|
| std::shared_ptr< StreamProfile > | getProfile (uint32_t index) const |
| | Return the StreamProfile object at the specified index.
|
| std::shared_ptr< VideoStreamProfile > | getVideoStreamProfile (int width=OB_WIDTH_ANY, int height=OB_HEIGHT_ANY, OBFormat format=OB_FORMAT_ANY, int fps=OB_FPS_ANY) const |
| | Match the corresponding video stream profile based on the passed-in parameters. If multiple Match are found, the first one in the list is returned by default. Throws an exception if no matching profile is found.
|
| std::shared_ptr< VideoStreamProfile > | getVideoStreamProfile (OBHardwareDecimationConfig decimationConfig, OBFormat format=OB_FORMAT_ANY, int fps=OB_FPS_ANY) const |
| | Match the corresponding video stream profile according to the decimation configuration. If multiple profiles match, the first one in the list is returned. Throws an exception when no matching profile is found.
|
| std::shared_ptr< AccelStreamProfile > | getAccelStreamProfile (OBAccelFullScaleRange fullScaleRange, OBAccelSampleRate sampleRate) const |
| | Match the corresponding accelerometer stream profile based on the passed-in parameters. If multiple Match are found, the first one in the list is returned by default. Throws an exception if no matching profile is found.
|
| std::shared_ptr< GyroStreamProfile > | getGyroStreamProfile (OBGyroFullScaleRange fullScaleRange, OBGyroSampleRate sampleRate) const |
| | Match the corresponding gyroscope stream profile based on the passed-in parameters. If multiple Match are found, the first one in the list is returned by default. Throws an exception if no matching profile is found.
|
| std::shared_ptr< LiDARStreamProfile > | getLiDARStreamProfile (OBLiDARScanRate scanRate, OBFormat format) const |
| | Match the corresponding LiDAR stream profile based on the passed-in parameters. If multiple Match are found, the first one in the list is returned by default. Throws an exception if no matching profile is found.
|
| uint32_t | count () const |
|
| const ob_stream_profile_list_t * | impl_ |
Definition at line 473 of file StreamProfile.hpp.
◆ StreamProfileList()
| ob::StreamProfileList::StreamProfileList |
( |
ob_stream_profile_list_t * | impl | ) |
|
|
inlineexplicit |
◆ ~StreamProfileList()
| ob::StreamProfileList::~StreamProfileList |
( |
| ) |
|
|
inlinenoexcept |
◆ getCount()
| uint32_t ob::StreamProfileList::getCount |
( |
| ) |
const |
|
inline |
◆ getProfile()
| std::shared_ptr< StreamProfile > ob::StreamProfileList::getProfile |
( |
uint32_t | index | ) |
const |
|
inline |
Return the StreamProfile object at the specified index.
- Parameters
-
| [in] | index | The index of the StreamProfile object to be retrieved. Must be in the range [0, count-1]. Throws an exception if the index is out of range. |
- Returns
- std::shared_ptr<StreamProfile> Return the StreamProfile object.
Definition at line 505 of file StreamProfile.hpp.
◆ getVideoStreamProfile() [1/2]
Match the corresponding video stream profile based on the passed-in parameters. If multiple Match are found, the first one in the list is returned by default. Throws an exception if no matching profile is found.
- Parameters
-
| [in] | width | The width of the stream. Pass OB_WIDTH_ANY if no matching condition is required. |
| [in] | height | The height of the stream. Pass OB_HEIGHT_ANY if no matching condition is required. |
| [in] | format | The type of the stream. Pass OB_FORMAT_ANY if no matching condition is required. |
| [in] | fps | The frame rate of the stream. Pass OB_FPS_ANY if no matching condition is required. |
- Returns
- std::shared_ptr<VideoStreamProfile> Return the matching resolution.
Definition at line 523 of file StreamProfile.hpp.
◆ getVideoStreamProfile() [2/2]
Match the corresponding video stream profile according to the decimation configuration. If multiple profiles match, the first one in the list is returned. Throws an exception when no matching profile is found.
- Parameters
-
| [in] | decimationConfig | Decimation configuration. The actual resolution is computed fromthe original resolution and scale factor. |
| [in] | format | Stream format. Pass OB_FORMAT_ANY if no matching condition is required. |
| [in] | fps | Frame rate. Pass OB_FPS_ANY if no matching condition is required. |
- Returns
- std::shared_ptr<VideoStreamProfile> Return the matched video stream profile.
Definition at line 542 of file StreamProfile.hpp.
◆ getAccelStreamProfile()
Match the corresponding accelerometer stream profile based on the passed-in parameters. If multiple Match are found, the first one in the list is returned by default. Throws an exception if no matching profile is found.
- Parameters
-
| [in] | fullScaleRange | The full scale range. Pass 0 if no matching condition is required. |
| [in] | sampleRate | The sampling frequency. Pass 0 if no matching condition is required. |
Definition at line 558 of file StreamProfile.hpp.
◆ getGyroStreamProfile()
Match the corresponding gyroscope stream profile based on the passed-in parameters. If multiple Match are found, the first one in the list is returned by default. Throws an exception if no matching profile is found.
- Parameters
-
| [in] | fullScaleRange | The full scale range. Pass 0 if no matching condition is required. |
| [in] | sampleRate | The sampling frequency. Pass 0 if no matching condition is required. |
Definition at line 573 of file StreamProfile.hpp.
◆ getLiDARStreamProfile()
Match the corresponding LiDAR stream profile based on the passed-in parameters. If multiple Match are found, the first one in the list is returned by default. Throws an exception if no matching profile is found.
- Parameters
-
| [in] | scanRate | The scan rate of LiDAR. Pass OB_LIDAR_SCAN_ANY if no matching condition is required. |
| [in] | format | The type of the stream. Pass OB_FORMAT_ANY if no matching condition is required. |
Definition at line 588 of file StreamProfile.hpp.
◆ count()
| uint32_t ob::StreamProfileList::count |
( |
| ) |
const |
|
inline |
◆ impl_
| const ob_stream_profile_list_t* ob::StreamProfileList::impl_ |
|
protected |
The documentation for this class was generated from the following file: