Meeting SDK for Windows API Reference
Loading...
Searching...
No Matches
rawdata_video_source_helper_interface.h
Go to the documentation of this file.
1
6#ifndef _RAWDATA_VIDEO_SOURCE_HELPER_INTERFACE_H_
7#define _RAWDATA_VIDEO_SOURCE_HELPER_INTERFACE_H_
8#include "zoom_sdk_def.h"
9
11
14{
15public:
17 virtual void onPreProcessRawData(YUVProcessDataI420* rawData) = 0;
18};
19
22{
23public:
25 virtual SDKError sendVideoFrame(char* frameBuffer, int width, int height, int frameLength, int rotation, FrameDataFormat format = FrameDataFormat_I420_FULL) = 0;
26};
27
29{
30 unsigned int width;
31 unsigned int height;
32 unsigned int frame;
33
35 {
36 Reset();
37 }
38
39 VideoSourceCapability(unsigned int w, unsigned int h, unsigned int f)
40 {
41 width = w;
42 height = h;
43 frame = f;
44 }
45
47 {
48 width = ins.width;
49 height = ins.height;
50 frame = ins.frame;
51 return *this;
52 }
53
55 {
56 *this = ins;
57 }
58
59 void Reset()
60 {
61 width = 0;
62 height = 0;
63 frame = 0;
64 }
65};
66
68{
69public:
71 virtual void onInitialize(IZoomSDKVideoSender* sender, IList<VideoSourceCapability >* support_cap_list, VideoSourceCapability& suggest_cap) = 0;
72 virtual void onPropertyChange(IList<VideoSourceCapability >* support_cap_list, VideoSourceCapability suggest_cap) = 0;
73 virtual void onStartSend() = 0;
74 virtual void onStopSend() = 0;
75 virtual void onUninitialized() = 0;
76};
77
94#endif
virtual void onPreProcessRawData(YUVProcessDataI420 *rawData)=0
virtual SDKError sendVideoFrame(char *frameBuffer, int width, int height, int frameLength, int rotation, FrameDataFormat format=FrameDataFormat_I420_FULL)=0
virtual SDKError setPreProcessor(IZoomSDKPreProcessor *processor)=0
Set a PreProcessor to edit the zoom camera video source before send to other.
virtual SDKError setExternalVideoSource(IZoomSDKVideoSource *source)=0
Set external video source for capture video by self.
virtual void onPropertyChange(IList< VideoSourceCapability > *support_cap_list, VideoSourceCapability suggest_cap)=0
virtual void onStopSend()=0
virtual void onUninitialized()=0
virtual void onStartSend()=0
virtual void onInitialize(IZoomSDKVideoSender *sender, IList< VideoSourceCapability > *support_cap_list, VideoSourceCapability &suggest_cap)=0
VideoSourceCapability(const VideoSourceCapability &ins)
VideoSourceCapability(unsigned int w, unsigned int h, unsigned int f)
VideoSourceCapability & operator=(const VideoSourceCapability &ins)
ZOOM windows SDK Common Definition File.
FrameDataFormat
Enumeration of video frame data format.
@ FrameDataFormat_I420_FULL
#define END_ZOOM_SDK_NAMESPACE
#define BEGIN_ZOOM_SDK_NAMESPACE
SDKError
Enumeration of common errors of SDK.