#include <videocapture.h>
|
virtual bool | isRunning ()=0 |
|
virtual Result | inputCapturedFrame (uint64 timestamp_ns, uint32 format, int w, int h, const uint8 *data, size_t len, int rotation, bool mirror)=0 |
|
virtual Result | inputEncodedFrame (uint64 timestamp_ns, int w, int h, const uint8 *sample, size_t sample_size)=0 |
|
virtual FourCC | format () const =0 |
|
virtual Result | resetFormat (FourCC cc)=0 |
|
virtual tee3::avd::FakeVideoCapturer::~FakeVideoCapturer |
( |
| ) |
|
|
inlineprotectedvirtual |
创建一个FOURCC_I420视频采集器对象
- 参数
-
[in] | *listener | 回调指针。 |
[in] | isScreen | 是否是桌面共享。 |
- 返回
- 视频采集器对象指针。
- 注解
- 接口默认创建的是FOURCC_I420 类型的视频采集器。
创建一个视频采集器对象
- 参数
-
[in] | *listener | 回调指针。 |
[in] | fourFormat | 将要传入的视频数据类型。 |
[in] | isScreen | 是否是桌面共享。 |
- 返回
- 视频采集器对象指针。
- 注解
- 除了FOURCC_H264和其他FourCC不能混淆;其他的FourCC可以混淆导入。
virtual FourCC tee3::avd::FakeVideoCapturer::format |
( |
| ) |
const |
|
pure virtual |
virtual Result tee3::avd::FakeVideoCapturer::inputCapturedFrame |
( |
uint64 |
timestamp_ns, |
|
|
uint32 |
format, |
|
|
int |
w, |
|
|
int |
h, |
|
|
const uint8 * |
data, |
|
|
size_t |
len, |
|
|
int |
rotation, |
|
|
bool |
mirror |
|
) |
| |
|
pure virtual |
给Capturer输入原始图像
- 参数
-
[in] | timestamp_ns | 时间戳, nanos second |
[in] | format | 原始图像格式,见FourCC枚举 |
[in] | w | 图像宽度 |
[in] | h | 图像高度 |
[in] | data | 图像内容数据指针 |
[in] | len | 图像内容大小 |
[in] | rotation | 图像需要旋转的角度,顺时针方向,取值:0,90,180,270 |
[in] | mirror | 镜面图像,左右翻转 |
- 返回
- 返回错误代码: AVD_OK 成功 RTC_ERR_VIDEO_CONVERT_FAILED 转换图像格式失败,有可能是内存分配失败,可考虑重启程序。 Err_Invalid_Arg 参数不合法,可忽略 Err_Wrong_Status 状态不对,可忽略
virtual Result tee3::avd::FakeVideoCapturer::inputEncodedFrame |
( |
uint64 |
timestamp_ns, |
|
|
int |
w, |
|
|
int |
h, |
|
|
const uint8 * |
sample, |
|
|
size_t |
sample_size |
|
) |
| |
|
pure virtual |
给Capturer输入编码后的数据
- 参数
-
[in] | timestamp_ns | 时间戳, nanos second |
[in] | w | 图像宽度 |
[in] | h | 图像高度 |
[in] | sample | 图像内容数据指针 |
[in] | sample_size | 图像内容大小 |
- 返回
- 返回错误代码: AVD_OK 成功 Err_Invalid_Arg 参数不合法,可忽略 Err_Wrong_Status 状态不对,可忽略
virtual bool tee3::avd::FakeVideoCapturer::isRunning |
( |
| ) |
|
|
pure virtual |
判断Capturer是否正在运行
- 返回
- 是否在运行。
virtual Result tee3::avd::FakeVideoCapturer::resetFormat |
( |
FourCC |
cc | ) |
|
|
pure virtual |
该类的文档由以下文件生成: