#include <StreamProfile.hpp>
|
std::unique_ptr< StreamProfileListImpl > | impl_ |
|
Definition at line 212 of file StreamProfile.hpp.
◆ StreamProfileList()
ob::StreamProfileList::StreamProfileList |
( |
std::unique_ptr< StreamProfileListImpl > |
impl | ) |
|
|
explicit |
◆ ~StreamProfileList()
ob::StreamProfileList::~StreamProfileList |
( |
| ) |
|
|
noexcept |
◆ count()
uint32_t ob::StreamProfileList::count |
( |
| ) |
const |
◆ getProfile()
const std::shared_ptr< StreamProfile > ob::StreamProfileList::getProfile |
( |
uint32_t |
index | ) |
|
Return the StreamProfile object at the specified index.
- Parameters
-
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.
◆ getVideoStreamProfile()
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
-
width | The width of the stream. Pass OB_WIDTH_ANY if no matching condition is required. |
height | The height of the stream. Pass OB_HEIGHT_ANY if no matching condition is required. |
format | The type of the stream. Pass OB_FORMAT_ANY if no matching condition is required. |
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.
◆ 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
-
fullScaleRange | The full scale range. Pass 0 if no matching condition is required. |
sampleRate | The sampling frequency. Pass 0 if no matching condition is required. |
◆ 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
-
fullScaleRange | The full scale range. Pass 0 if no matching condition is required. |
sampleRate | The sampling frequency. Pass 0 if no matching condition is required. |
◆ impl_
std::unique_ptr<StreamProfileListImpl> ob::StreamProfileList::impl_ |
|
protected |
The documentation for this class was generated from the following file:
- E:/Projects/Jenkins/workspace/OrbbecSDK/libobsensor/include/libobsensor/hpp/StreamProfile.hpp