OrbbecSDK  1.5.7
OrbbecSDK: Software-Development-Kit for Orbbec 3D-Sensor devices
函数
StreamProfile.h 文件参考

流配置相关函数,用于获取流的宽、高、帧率及格式等信息 更多...

#include "ObTypes.h"

浏览源代码.

函数

ob_format ob_stream_profile_format (ob_stream_profile *profile, ob_error **error)
 获取流配置的格式 更多...
 
ob_stream_type ob_stream_profile_type (ob_stream_profile *profile, ob_error **error)
 获取流的类型 更多...
 
uint32_t ob_video_stream_profile_fps (ob_stream_profile *profile, ob_error **error)
 获取视频流配置的帧率 更多...
 
uint32_t ob_video_stream_profile_width (ob_stream_profile *profile, ob_error **error)
 获取视频流配置的宽 更多...
 
uint32_t ob_video_stream_profile_height (ob_stream_profile *profile, ob_error **error)
 获取视频流配置的高 更多...
 
ob_accel_full_scale_range ob_accel_stream_profile_full_scale_range (ob_stream_profile *profile, ob_error **error)
 获取加速度计流配置的量程范围 更多...
 
ob_accel_sample_rate ob_accel_stream_profile_sample_rate (ob_stream_profile *profile, ob_error **error)
 获取加速度计流配置的采样频率 更多...
 
ob_gyro_full_scale_range ob_gyro_stream_profile_full_scale_range (ob_stream_profile *profile, ob_error **error)
 获取陀螺仪流配置的量程范围 更多...
 
ob_gyro_sample_rate ob_gyro_stream_profile_sample_rate (ob_stream_profile *profile, ob_error **error)
 获取陀螺仪流配置的采样频率 更多...
 
ob_stream_profileob_stream_profile_list_get_video_stream_profile (ob_stream_profile_list *profile_list, int width, int height, ob_format format, int fps, ob_error **error)
 通过传入的参数进行匹配对应的ob_stream_profile。若有多个匹配项默认返回列表中的第一个, 若未找打匹配的项,则返回错误。 更多...
 
ob_stream_profileob_stream_profile_list_get_profile (ob_stream_profile_list *profile_list, int index, ob_error **error)
 通过下标获取对应的StreamProfile 更多...
 
uint32_t ob_stream_profile_list_count (ob_stream_profile_list *profile_list, ob_error **error)
 获取StreamProfile列表的数量 更多...
 
void ob_delete_stream_profile_list (ob_stream_profile_list *profile_list, ob_error **error)
 删除流配置列表 更多...
 
void ob_delete_stream_profile (ob_stream_profile *profile, ob_error **error)
 删除流配置 更多...
 

详细描述

流配置相关函数,用于获取流的宽、高、帧率及格式等信息

在文件 StreamProfile.h 中定义.

函数说明

ob_format ob_stream_profile_format ( ob_stream_profile profile,
ob_error **  error 
)

获取流配置的格式

参数
[in]profile流配置对象
[out]error记录错误信息
返回
ob_format 返回流的格式
ob_stream_type ob_stream_profile_type ( ob_stream_profile profile,
ob_error **  error 
)

获取流的类型

参数
[in]profile流配置对象
[out]error记录错误信息
返回
ob_stream_type 流的类型
uint32_t ob_video_stream_profile_fps ( ob_stream_profile profile,
ob_error **  error 
)

获取视频流配置的帧率

参数
[in]profile流配置对象, 如果该配置不是视频流配置,将会返错误
[out]error记录错误信息
返回
uint32_t 返回流的帧率
uint32_t ob_video_stream_profile_width ( ob_stream_profile profile,
ob_error **  error 
)

获取视频流配置的宽

参数
[in]profile流配置对象, 如果该配置不是视频流配置,将会返错误
[out]error记录错误信息
返回
uint32_t 返回流的宽
uint32_t ob_video_stream_profile_height ( ob_stream_profile profile,
ob_error **  error 
)

获取视频流配置的高

参数
[in]profile流配置对象, 如果该配置不是视频流配置,将会返错误
[out]error记录错误信息
返回
uint32_t 返回流的高
ob_accel_full_scale_range ob_accel_stream_profile_full_scale_range ( ob_stream_profile profile,
ob_error **  error 
)

获取加速度计流配置的量程范围

参数
[in]profile流配置对象, 如果该配置不是加速度计流配置,将会返错误
[out]error记录错误信息
返回
ob_accel_full_scale_range 量程范围
ob_accel_sample_rate ob_accel_stream_profile_sample_rate ( ob_stream_profile profile,
ob_error **  error 
)

获取加速度计流配置的采样频率

参数
[in]profile流配置对象, 如果该配置不是加速度计流配置,将会返错误
[out]error记录错误信息
返回
ob_accel_sample_rate 采样频率
ob_gyro_full_scale_range ob_gyro_stream_profile_full_scale_range ( ob_stream_profile profile,
ob_error **  error 
)

获取陀螺仪流配置的量程范围

参数
[in]profile流配置对象, 如果该配置不是陀螺仪流配置,将会返错误
[out]error记录错误信息
返回
ob_gyro_full_scale_range 量程范围
ob_gyro_sample_rate ob_gyro_stream_profile_sample_rate ( ob_stream_profile profile,
ob_error **  error 
)

获取陀螺仪流配置的采样频率

参数
[in]profile流配置对象, 如果该配置不是陀螺仪流配置,将会返错误
[out]error记录错误信息
返回
ob_gyro_sample_rate 采样频率
ob_stream_profile* ob_stream_profile_list_get_video_stream_profile ( ob_stream_profile_list profile_list,
int  width,
int  height,
ob_format  format,
int  fps,
ob_error **  error 
)

通过传入的参数进行匹配对应的ob_stream_profile。若有多个匹配项默认返回列表中的第一个, 若未找打匹配的项,则返回错误。

参数
profile_list分辨率列表
width宽度, 如不要求加入匹配条件,可传0
height高度, 如不要求加入匹配条件,可传0
format格式, 如不要求加入匹配条件,可传OB_FORMAT_UNKNOWN
fps帧率, 如不要求加入匹配条件,可传0
[out]error记录错误信息
返回
ob_stream_profile* 返回匹配的profile
ob_stream_profile* ob_stream_profile_list_get_profile ( ob_stream_profile_list profile_list,
int  index,
ob_error **  error 
)

通过下标获取对应的StreamProfile

参数
[in]profile_listStreamProfile列表
[in]index索引
[out]error记录错误信息
返回
ob_stream_profile* 返回匹配的profile
uint32_t ob_stream_profile_list_count ( ob_stream_profile_list profile_list,
ob_error **  error 
)

获取StreamProfile列表的数量

参数
[in]profile_listStreamProfile列表
[out]error记录错误信息
返回
uint32_t 返回StreamProfile列表的数量
void ob_delete_stream_profile_list ( ob_stream_profile_list profile_list,
ob_error **  error 
)

删除流配置列表

参数
[in]profiles流配置列表
[out]error记录错误信息
void ob_delete_stream_profile ( ob_stream_profile profile,
ob_error **  error 
)

删除流配置

参数
[in]profile流配置对象
[out]error记录错误信息