#include <StreamProfile.hpp>
|
std::unique_ptr< StreamProfileListImpl > | impl_ |
|
Definition at line 227 of file StreamProfile.hpp.
ob::StreamProfileList::StreamProfileList |
( |
std::unique_ptr< StreamProfileListImpl > |
impl | ) |
|
ob::StreamProfileList::~StreamProfileList |
( |
| ) |
|
|
noexcept |
uint32_t ob::StreamProfileList::count |
( |
| ) |
const |
Get stream profile count.
- Returns
- uint32_t returns the number of StreamProfile
const std::shared_ptr<StreamProfile> ob::StreamProfileList::getProfile |
( |
uint32_t |
index | ) |
|
Get StreamProfile by index number.
- Parameters
-
index | Device index to be created,the range is [0, count-1],if the index exceeds the range, an exception will be thrown |
- Returns
- std::shared_ptr<StreamProfile> returns StreamProfile object
Match the corresponding stream profile through the passed in parameters. If there are multiple matches, the first one in the list will be returned by default. If no matched profile found, will throw exception!
- Parameters
-
width | Width. If no matching condition is required, it can be passed to 0 |
height | Height. If no matching condition is required, it can be passed to 0 |
format | Type. If no matching condition is required, it can be passed to OB_FORMAT_UNKNOWN |
fps | Frame rate. If no matching condition is required, it can be passed to 0 |
- Returns
- std::shared_ptr<StreamProfile> Returns the matching resolution
std::unique_ptr<StreamProfileListImpl> ob::StreamProfileList::impl_ |
|
protected |
The documentation for this class was generated from the following file: