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

#include <videorender.h>

类 tee3::avd::IVideoRender 继承关系图:
Inheritance graph
[图例]
tee3::avd::IVideoRender 的协作图:
Collaboration graph
[图例]

Public 成员函数

virtual void SetSize (int width, int height)=0
 
virtual void RenderFrame (const IVideoFrame *frame)=0
 
virtual Result EnableCapture (bool enable)
 
virtual Result CaptureImage (const String &fileName, int quality)
 
virtual Result GetWindowId (WindowId &id) const
 
virtual Result GetSize (int &width, int &height) const
 
virtual Result SetAnnotation (tee3::avd::IMAnnotation *atn)
 
virtual Result GetAnnotation (tee3::avd::IMAnnotation **atn)
 
virtual Result setFirstFrameListener (IFirstFrameListener *listener)
 
virtual int32 SetRemoteCtrlModule (IRemoteCtrl *remote, std::string othersideuid)
 
virtual bool getIsGdiView ()
 
- Public 成员函数 继承自 tee3::avd::DestroyNotify
virtual Result AddDestroyNotify (IListener *pListener)
 
virtual Result RemoveDestroyNotify (IListener *pListener)
 
virtual ~DestroyNotify ()
 

静态 Public 成员函数

static Result Save2Image (const IVideoFrame *frame, const String &jpegorbmpFileName, int quality)
 

Protected 成员函数

virtual ~IVideoRender ()
 

额外继承的成员函数

- Public 类型 继承自 tee3::avd::DestroyNotify
typedef std::vector< IListener * > ListenersType
 
- Protected 属性 继承自 tee3::avd::DestroyNotify
ListenersType pListeners_
 

详细描述

视频渲染接口类

视频渲染定义了视频的渲染中涉及的视频参数变化、视频帧数据、视频抓图等相关接口。

构造及析构函数说明

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

成员函数说明

virtual Result tee3::avd::IVideoRender::CaptureImage ( const String fileName,
int  quality 
)
inlinevirtual

抓取图像

参数
[in]fileName图像保存地址,绝对地址, 支持".bmp和.jpg"。
[in]quality图像质量:0-100, 0最差,100最好。
返回
返回错误代码。
virtual Result tee3::avd::IVideoRender::EnableCapture ( bool  enable)
inlinevirtual

启停图像抓取功能

参数
[in]enable开启或者停止。
返回
返回错误代码。
注解
渲染的时候,正常情况下不缓存图像; 若需要capture才做缓存;因EnableCapture后,要下帧图像放到缓存中才能做Save2Image。 故若需要capture时,在attachRender后就直接EnableCapture较好。
virtual Result tee3::avd::IVideoRender::GetAnnotation ( tee3::avd::IMAnnotation **  atn)
inlinevirtual

获取注释接口

参数
[out]atn注释模块接口。
返回
返回错误代码。
virtual bool tee3::avd::IVideoRender::getIsGdiView ( )
inlinevirtual

获取该render是否用gdi模式创建的

virtual Result tee3::avd::IVideoRender::GetSize ( int &  width,
int &  height 
) const
inlinevirtual

获取图像大小

参数
[out]width图像宽度。
[out]height图像高度。
返回
返回错误代码。
virtual Result tee3::avd::IVideoRender::GetWindowId ( WindowId id) const
inlinevirtual

获取render所在的WindowId

参数
[in,out]id显示对象句柄。
返回
返回错误代码。
virtual void tee3::avd::IVideoRender::RenderFrame ( const IVideoFrame frame)
pure virtual

视频帧数据到达调用

参数
[in]frameIVideoFrame图像对象指针。
static Result tee3::avd::IVideoRender::Save2Image ( const IVideoFrame frame,
const String jpegorbmpFileName,
int  quality 
)
static

IVideoFrame图像保存为jpeg图像功能

参数
[in]frameIVideoFrame图像对象指针。
[in]jpegorbmpFileName图像保存地址,绝对地址, 支持".bmp和.jpg"。
[in]quality图像质量:0-100, 0最差,100最好。
返回
返回错误代码。
virtual Result tee3::avd::IVideoRender::SetAnnotation ( tee3::avd::IMAnnotation atn)
inlinevirtual

设置注释接口

参数
[out]atn注释模块接口。
返回
返回错误代码。
virtual Result tee3::avd::IVideoRender::setFirstFrameListener ( IFirstFrameListener listener)
inlinevirtual

设置首帧数据回调指针

参数
[in]listener首帧数据回调指针。
返回
返回错误代码。
注解
此函数设置后,VideoRender在首帧视频数据接收到时会回调onFirstFrameArrived; 注意:每次重新attachRender后需要重新设置此函数,即设置此函数后,只有一次回调,下次即使同一VideoRender需要再次获取首帧回调,需要重新设置。
virtual int32 tee3::avd::IVideoRender::SetRemoteCtrlModule ( IRemoteCtrl remote,
std::string  othersideuid 
)
inlinevirtual

设置远程控制模块,对方userid

virtual void tee3::avd::IVideoRender::SetSize ( int  width,
int  height 
)
pure virtual

视频宽高变化调用

参数
[in]width视频宽度。
[in]height视频高度。

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