Video SDK for Windows API Reference
Loading...
Searching...
No Matches
zoom_video_sdk_video_source_helper_interface.h
Go to the documentation of this file.
1
6#ifndef _ZOOM_VIDEO_SDK_VIDEO_SOURCE_HELPER_INTERFACE_H_
7#define _ZOOM_VIDEO_SDK_VIDEO_SOURCE_HELPER_INTERFACE_H_
10
26
27
33{
34public:
44 virtual void sendVideoFrame(char* frameBuffer, int width, int height, int frameLength, int rotation, FrameDataFormat format = FrameDataFormat_I420_FULL) = 0;
45};
46
56
61{
62 unsigned int width;
63 unsigned int height;
64 unsigned int frame;
66
68 {
69 Reset();
70 }
71
72 VideoSourceCapability(unsigned int w, unsigned int h, unsigned int f)
73 {
74 width = w;
75 height = h;
76 frame = f;
78 }
79
81 {
82 width = ins.width;
83 height = ins.height;
84 frame = ins.frame;
85 data_mode = ins.data_mode;
86 return *this;
87 }
88
90 {
91 *this = ins;
92 }
93
94 void Reset()
95 {
96 width = 0;
97 height = 0;
98 frame = 0;
100 }
101};
107{
108public:
117
124
128 virtual void onStartSend() = 0;
129
133 virtual void onStopSend() = 0;
134
138 virtual void onUninitialized() = 0;
139};
141#endif
SDK defined vector interface.
virtual void sendVideoFrame(char *frameBuffer, int width, int height, int frameLength, int rotation, FrameDataFormat format=FrameDataFormat_I420_FULL)=0
Send one frame data.
virtual void onPropertyChange(IVideoSDKVector< VideoSourceCapability > *support_cap_list, VideoSourceCapability suggest_cap)=0
Callback for video size or fps changed.
virtual void onStopSend()=0
Callback for video source stop send raw data.
virtual void onStartSend()=0
Callback for video source can start send raw data.
virtual void onUninitialized()=0
Callback for video source uninitialized.
virtual void onInitialize(IZoomVideoSDKVideoSender *sender, IVideoSDKVector< VideoSourceCapability > *support_cap_list, VideoSourceCapability &suggest_cap)=0
Callback for video source prepare.
virtual void onPreProcessRawData(YUVProcessDataI420 *rawData)=0
Callback on device capture video frame.
Video source capability information.
VideoSourceCapability(const VideoSourceCapability &ins)
VideoSourceCapability(unsigned int w, unsigned int h, unsigned int f)
VideoSourceCapability & operator=(const VideoSourceCapability &ins)
Zoom Video SDK Common Definition File.
FrameDataFormat
Enumeration of specifying the format of frame data.
@ FrameDataFormat_I420_FULL
I420 format with full (PC) range. Provides full-range color values, typically used in computer graphi...
#define BEGIN_ZOOM_VIDEO_SDK_NAMESPACE
#define END_ZOOM_VIDEO_SDK_NAMESPACE