C++SDK  1.0.0
| Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 所有成员列表
tee3::avd::FakeVideoCapturer类 参考abstract

#include <videocapture.h>

class  Listener
 

Public 成员函数

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
 

静态 Public 成员函数

static FakeVideoCapturerCreate (FakeVideoCapturer::Listener *listener, bool isScreen=false)
 
static FakeVideoCapturerCreate (FakeVideoCapturer::Listener *listener, FourCC fourFormat, bool isScreen=false)
 
static void Destroy (FakeVideoCapturer *capturer)
 

Protected 成员函数

virtual ~FakeVideoCapturer ()
 

详细描述

视频流导入接口.

视频导入相关功能接口。

构造及析构函数说明

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

成员函数说明

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

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

参数
[in]*listener回调指针。
[in]isScreen是否是桌面共享。
返回
视频采集器对象指针。
注解
接口默认创建的是FOURCC_I420 类型的视频采集器。
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可以混淆导入。
static void tee3::avd::FakeVideoCapturer::Destroy ( FakeVideoCapturer capturer)
static

销毁一个视频采集器对象

参数
[in]*capturer视频采集器对象指针。
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

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