|
cn.tee3.avd_SDK-C++
3.2.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 Result | inputYUVFrame (uint64 timestamp_ns, uint32 format, int w, int h, int stride, const uint8 *data, size_t len, int rotation, bool mirror)=0 |
| 给Capturer输入原始图像 更多... | |
| virtual Result | inputCapturedBmpFrame (const uint8 *pBmpBuf, uint32 len)=0 |
| 给Capturer输入bmp图数据 更多... | |
| virtual Result | inputYUVFrame (uint64 timestamp_ns, uint32 format, int w, int h, int stride, const uint8 *src_y, const uint8 *src_uv, int rotation, bool mirror)=0 |
| virtual FourCC | format () const =0 |
| virtual Result | resetFormat (FourCC cc)=0 |
| virtual void | enableLandscape (bool enable)=0 |
| virtual bool | landscape ()=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 |
|
pure virtual |
给Capturer输入bmp图数据
| [in] | bmp图的数据 | |
| [in] | bmp图数据长度 |
|
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输入原始图像
| [in] | timestamp_ns | 时间戳, nanos second |
| [in] | format | 原始图像格式,见FourCC枚举 |
| [in] | w | 有效数据图像宽度 |
| [in] | h | 有效数据图像高度 |
| [in] | stride | 图像数据步长,IOS或者其他系统上为了16位对齐,stride会是16的整数倍。比如1280*720的图像,1280*768。 |
| [in] | data | 图像内容数据指针 |
| [in] | len | 图像内容大小 |
| [in] | rotation | 图像需要旋转的角度,顺时针方向,取值:0,90,180,270 |
| [in] | mirror | 镜面图像,左右翻转 |
|
pure virtual |
|
pure virtual |
判断Capturer是否正在运行
|
pure virtual |
1.8.15