cn.tee3.avd_SDK-C++
2.1.0
|
视频流导入接口. 更多...
类 | |
class | Listener |
视频流导入回调接口. 更多... | |
Public 成员函数 | |
virtual bool | isRunning ()=0 |
判断Capturer是否正在运行 更多... | |
virtual Result | inputCapturedFrame (uint64 timestamp_ns, uint32 format, int w, int h, const uint8 *data, size_t len, int rotation, bool mirror)=0 |
给Capturer输入原始图像 更多... | |
virtual Result | inputEncodedFrame (uint64 timestamp_ns, int w, int h, const uint8 *sample, size_t sample_size)=0 |
给Capturer输入编码后的数据 更多... | |
virtual FourCC | format ()=0 |
静态 Public 成员函数 | |
static FakeVideoCapturer * | Create (FakeVideoCapturer::Listener *listener, bool isScreen=false) |
创建一个FOURCC_I420视频采集器对象 更多... | |
static FakeVideoCapturer * | Create (FakeVideoCapturer::Listener *listener, FourCC fourFormat, bool isScreen=false) |
创建一个视频采集器对象 更多... | |
static void | Destroy (FakeVideoCapturer *capturer) |
销毁一个视频采集器对象 更多... | |
Protected 成员函数 | |
virtual | ~FakeVideoCapturer () |
视频流导入接口.
视频导入相关功能接口。
|
protectedvirtual |
|
static |
创建一个FOURCC_I420视频采集器对象
[in] | *listener | 回调指针。 |
[in] | isScreen | 是否是桌面共享。 |
|
static |
创建一个视频采集器对象
[in] | *listener | 回调指针。 |
[in] | fourFormat | 将要传入的视频数据类型。 |
[in] | isScreen | 是否是桌面共享。 |
|
static |
销毁一个视频采集器对象
[in] | *capturer | 视频采集器对象指针。 |
|
pure virtual |
|
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 | 镜面图像,左右翻转 |
|
pure virtual |
给Capturer输入编码后的数据
[in] | timestamp_ns | 时间戳, nanos second |
[in] | w | 图像宽度 |
[in] | h | 图像高度 |
[in] | sample | 图像内容数据指针 |
[in] | sample_size | 图像内容大小 |
|
pure virtual |
判断Capturer是否正在运行