#include <StreamProfile.hpp>
|
std::unique_ptr< StreamProfileListImpl > | impl_ |
|
ob::StreamProfileList::StreamProfileList |
( |
std::unique_ptr< StreamProfileListImpl > |
impl | ) |
|
ob::StreamProfileList::~StreamProfileList |
( |
| ) |
|
|
noexcept |
uint32_t ob::StreamProfileList::count |
( |
| ) |
const |
获取StreamProfile数量
- 返回
- uint32_t 返回StreamProfile的数量
const std::shared_ptr<StreamProfile> ob::StreamProfileList::getProfile |
( |
uint32_t |
index | ) |
|
通过索引号获取StreamProfile
- 参数
-
index | 要创建设备的索,范围 [0, count-1],如果index超出范围将抛异常 |
- 返回
- std::shared_ptr<StreamProfile> 返回StreamProfile对象
通过传入的参数进行匹配对应的StreamProfile。若有多个匹配项默认返回列表中的第一个, 若没有找到匹配的项,则抛异常
- 参数
-
width | 宽度,如不要求加入匹配条件,可传0 |
height | 高度,如不要求加入匹配条件,可传0 |
format | 类型,如不要求加入匹配条件,可传OB_FORMAT_UNKNOWN |
fps | 帧率,如不要求加入匹配条件,可传0 |
- 返回
- std::shared_ptr<StreamProfile> 返回匹配的分辨率
std::unique_ptr<StreamProfileListImpl> ob::StreamProfileList::impl_ |
|
protected |
该类的文档由以下文件生成: