音视频通讯SDK API参考手册  Windows 1.6.0
tencent::av::AVCameraDevice类 参考

摄像头的封装类。 更多...

#include <av_device.h>

类 tencent::av::AVCameraDevice 继承关系图:
tencent::av::AVVideoDevice tencent::av::AVSupportVideoPreview tencent::av::AVSupportVideoPreTreatment tencent::av::AVDevice

额外继承的成员函数

- Public 类型 继承自 tencent::av::AVVideoDevice
typedef void(* FrameDataCallback) (VideoFrame *video_frame, void *custom_data)
 
- Public 类型 继承自 tencent::av::AVDevice
enum  DeviceOperation { DEVICE_OPERATION_UNKNOWN = 0, DEVICE_OPERATION_OPEN = 1, DEVICE_OPERATION_CLOSE = 2 }
 设备操作类型。 更多...
 
- Public 类型 继承自 tencent::av::AVSupportVideoPreview
typedef void(* PreviewCallback) (VideoFrame *video_frame, void *custom_data)
 SetPreviewCallback()的回调函数。 更多...
 
- Public 类型 继承自 tencent::av::AVSupportVideoPreTreatment
typedef void(* PreTreatmentFun) (VideoFrame *video_frame, void *custom_data)
 
- Public 成员函数 继承自 tencent::av::AVVideoDevice
virtual void SetFrameDataCallback (FrameDataCallback frame_callback, void *custom_data=NULL)=0
 设置采集回调函数,内部使用。 更多...
 
virtual FrameDataCallback GetFrameDataCallback ()=0
 获取采集回调函数,内部使用。 更多...
 
virtual void * GetFrameCustomData ()=0
 获取采集回调函数的自定义数据,内部使用。 更多...
 
- Public 成员函数 继承自 tencent::av::AVDevice
virtual const std::string & GetId () const =0
 获得当前设备Id。 更多...
 
virtual const std::string & GetType () const =0
 获得当前设备类型。 更多...
 
virtual const InfoGetInfo () const =0
 获取设备信息。 更多...
 
virtual void SetInfo (const Info &info)=0
 设置设备信息。 更多...
 
virtual bool IsSelected () const =0
 判断设备是否处于选中状态。 更多...
 
virtual void SetSelect (bool is_select=true)=0
 选中设备 更多...
 
- Public 成员函数 继承自 tencent::av::AVSupportVideoPreview
virtual void SetPreviewCallback (PreviewCallback frame_callback, void *custom_data=NULL)=0
 设置视频预览回调。 更多...
 
virtual int SetPreviewParam (std::string id, uint32 width, uint32 height, ColorFormat color_format)=0
 设置预览视频画面的参数。 更多...
 
virtual int ClearPreviewParam ()=0
 清空所有预览视频画面的参数。 更多...
 
virtual PreviewCallback GetPreviewCallback ()=0
 获取视频预览回调函数。 更多...
 
virtual void * GetPreviewCustomData ()=0
 获取视频预览回调自定义数据。 更多...
 
- Public 成员函数 继承自 tencent::av::AVSupportVideoPreTreatment
virtual void SetPreTreatmentFun (PreTreatmentFun pre_fun, void *custom_data=NULL)=0
 设置预处理函数指针。 更多...
 

详细描述

摄像头属于视频输入设备。

备注
iOS版本的SDK有特定的接口。