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
59
64{
65 unsigned int width;
66 unsigned int height;
67 unsigned int frame;
69
71 {
72 Reset();
73 }
74
75 VideoSourceCapability(unsigned int w, unsigned int h, unsigned int f)
76 {
77 width = w;
78 height = h;
79 frame = f;
81 }
82
84 {
85 width = ins.width;
86 height = ins.height;
87 frame = ins.frame;
88 data_mode = ins.data_mode;
89 return *this;
90 }
91
93 {
94 *this = ins;
95 }
96
97 void Reset()
98 {
99 width = 0;
100 height = 0;
101 frame = 0;
103 }
104};
110{
111public:
120
127
131 virtual void onStartSend() = 0;
132
136 virtual void onStopSend() = 0;
137
141 virtual void onUninitialized() = 0;
142};
144#endif
SDK-defined vector interface for managing collections of items.
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
Vector container interface.
VideoSourceDataMode
Enumeration of video source data modes.