OrbbecSDK  1.5.7
OrbbecSDK: Software-Development-Kit for Orbbec 3D-Sensor devices
Public 成员函数 | Protected 属性 | 所有成员列表
ob::StreamProfileList类 参考

#include <StreamProfile.hpp>

Public 成员函数

 StreamProfileList (std::unique_ptr< StreamProfileListImpl > impl)
 
 ~StreamProfileList () noexcept
 
uint32_t count () const
 获取StreamProfile数量 更多...
 
const std::shared_ptr< StreamProfilegetProfile (uint32_t index)
 通过索引号获取StreamProfile 更多...
 
const std::shared_ptr< VideoStreamProfilegetVideoStreamProfile (int width=0, int height=0, OBFormat format=OB_FORMAT_UNKNOWN, int fps=0)
 通过传入的参数进行匹配对应的StreamProfile。若有多个匹配项默认返回列表中的第一个, 若没有找到匹配的项,则抛异常 更多...
 

Protected 属性

std::unique_ptr< StreamProfileListImpl > impl_
 

详细描述

在文件 StreamProfile.hpp227 行定义.

构造及析构函数说明

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对象
const std::shared_ptr<VideoStreamProfile> ob::StreamProfileList::getVideoStreamProfile ( int  width = 0,
int  height = 0,
OBFormat  format = OB_FORMAT_UNKNOWN,
int  fps = 0 
)

通过传入的参数进行匹配对应的StreamProfile。若有多个匹配项默认返回列表中的第一个, 若没有找到匹配的项,则抛异常

参数
width宽度,如不要求加入匹配条件,可传0
height高度,如不要求加入匹配条件,可传0
format类型,如不要求加入匹配条件,可传OB_FORMAT_UNKNOWN
fps帧率,如不要求加入匹配条件,可传0
返回
std::shared_ptr<StreamProfile> 返回匹配的分辨率

类成员变量说明

std::unique_ptr<StreamProfileListImpl> ob::StreamProfileList::impl_
protected

在文件 StreamProfile.hpp229 行定义.


该类的文档由以下文件生成: