流配置相关函数,用于获取流的宽、高、帧率及格式等信息
更多...
浏览源代码.
流配置相关函数,用于获取流的宽、高、帧率及格式等信息
在文件 StreamProfile.h 中定义.
| void ob_delete_stream_profile |
( |
ob_stream_profile * |
profile, |
|
|
ob_error ** |
error |
|
) |
| |
删除流配置
- 参数
-
| [in] | profile | 流配置对象 |
| [out] | error | 记录错误信息 |
| void ob_delete_stream_profiles |
( |
ob_stream_profile ** |
profiles, |
|
|
uint32_t |
count, |
|
|
ob_error ** |
error |
|
) |
| |
删除流配置列表
- 参数
-
| [in] | profiles | 流配置列表 |
| [in] | count | 流配置数量 |
| [out] | error | 记录错误信息 |
| ob_format ob_stream_profile_format |
( |
ob_stream_profile * |
profile, |
|
|
ob_error ** |
error |
|
) |
| |
获取流配置的格式
- 参数
-
| [in] | profile | 流配置对象 |
| [out] | error | 记录错误信息 |
- 返回
- ob_format 返回流的格式
| uint32_t ob_stream_profile_fps |
( |
ob_stream_profile * |
profile, |
|
|
ob_error ** |
error |
|
) |
| |
获取流配置的帧率
- 参数
-
| [in] | profile | 流配置对象 |
| [out] | error | 记录错误信息 |
- 返回
- uint32_t 返回流的帧率
| uint32_t ob_stream_profile_height |
( |
ob_stream_profile * |
profile, |
|
|
ob_error ** |
error |
|
) |
| |
获取流配置的高
- 参数
-
| [in] | profile | 流配置对象 |
| [out] | error | 记录错误信息 |
- 返回
- uint32_t 返回流的高
获取流的类型
- 参数
-
| [in] | profile | 流配置对象 |
| [out] | error | 记录错误信息 |
- 返回
- ob_stream_type 流的类型
| uint32_t ob_stream_profile_width |
( |
ob_stream_profile * |
profile, |
|
|
ob_error ** |
error |
|
) |
| |
获取流配置的宽
- 参数
-
| [in] | profile | 流配置对象 |
| [out] | error | 记录错误信息 |
- 返回
- uint32_t 返回流的宽