Video SDK for Linux API Reference
Loading...
Searching...
No Matches
zoom_video_sdk_video_source_helper_interface.h
Go to the documentation of this file.
1
7#ifndef _ZOOM_VIDEO_SDK_VIDEO_SOURCE_HELPER_INTERFACE_H_
8#define _ZOOM_VIDEO_SDK_VIDEO_SOURCE_HELPER_INTERFACE_H_
11
24
29{
30public:
32
39 virtual void sendVideoFrame(char* frameBuffer, int width, int height, int frameLength, int rotation, FrameDataFormat format = FrameDataFormat_I420_FULL) = 0;
40};
41
48
53{
54 unsigned int width;
55 unsigned int height;
56 unsigned int frame;
58
60 {
61 Reset();
62 }
63
64 VideoSourceCapability(unsigned int w, unsigned int h, unsigned int f)
65 {
66 width = w;
67 height = h;
68 frame = f;
70 }
71
73 {
74 width = ins.width;
75 height = ins.height;
76 frame = ins.frame;
77 data_mode = ins.data_mode;
78 return *this;
79 }
80
82 {
83 *this = ins;
84 }
85
86 void Reset()
87 {
88 width = 0;
89 height = 0;
90 frame = 0;
92 }
93};
94
98{
99public:
101
107
112
114 virtual void onStartSend() = 0;
115
117 virtual void onStopSend() = 0;
118
120 virtual void onUninitialized() = 0;
121};
123#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
@ VideoSourceDataMode_Vertical
Special usage scenarios, each frame of video is two images organized up and down together.
@ VideoSourceDataMode_None
For general usage scenarios.
@ VideoSourceDataMode_Horizontal
Special usage scenarios, each frame of video is organized around two images.