cn.tee3.avd_SDK-C++  2.1.0
| Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 所有成员列表
tee3::avd::FakeVideoCapturer类 参考abstract

视频流导入接口. 更多...

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 FakeVideoCapturerCreate (FakeVideoCapturer::Listener *listener, bool isScreen=false)
 创建一个FOURCC_I420视频采集器对象 更多...
 
static FakeVideoCapturerCreate (FakeVideoCapturer::Listener *listener, FourCC fourFormat, bool isScreen=false)
 创建一个视频采集器对象 更多...
 
static void Destroy (FakeVideoCapturer *capturer)
 销毁一个视频采集器对象 更多...
 

Protected 成员函数

virtual ~FakeVideoCapturer ()
 

详细描述

视频流导入接口.

视频导入相关功能接口。

构造及析构函数说明

◆ ~FakeVideoCapturer()

virtual tee3::avd::FakeVideoCapturer::~FakeVideoCapturer ( )
protectedvirtual

成员函数说明

◆ Create() [1/2]

static FakeVideoCapturer* tee3::avd::FakeVideoCapturer::Create ( FakeVideoCapturer::Listener listener,
bool  isScreen = false 
)
static

创建一个FOURCC_I420视频采集器对象

参数
[in]*listener回调指针。
[in]isScreen是否是桌面共享。
返回
视频采集器对象指针。
注解
接口默认创建的是FOURCC_I420 类型的视频采集器。

◆ Create() [2/2]

static FakeVideoCapturer* tee3::avd::FakeVideoCapturer::Create ( FakeVideoCapturer::Listener listener,
FourCC  fourFormat,
bool  isScreen = false 
)
static

创建一个视频采集器对象

参数
[in]*listener回调指针。
[in]fourFormat将要传入的视频数据类型。
[in]isScreen是否是桌面共享。
返回
视频采集器对象指针。
注解
除了FOURCC_H264和其他FourCC不能混淆;其他的FourCC可以混淆导入。

◆ Destroy()

static void tee3::avd::FakeVideoCapturer::Destroy ( FakeVideoCapturer capturer)
static

销毁一个视频采集器对象

参数
[in]*capturer视频采集器对象指针。

◆ format()

virtual FourCC tee3::avd::FakeVideoCapturer::format ( )
pure virtual

◆ inputCapturedFrame()

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 状态不对,可忽略

◆ inputEncodedFrame()

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 状态不对,可忽略

◆ isRunning()

virtual bool tee3::avd::FakeVideoCapturer::isRunning ( )
pure virtual

判断Capturer是否正在运行

返回
是否在运行。

该类的文档由以下文件生成: