Meeting SDK for Windows API Reference
Loading...
Searching...
No Matches
zoom_sdk_raw_data_def.h
Go to the documentation of this file.
1
5#ifndef _ZOOM_SDK_RAW_DATA_DEF_H_
6#define _ZOOM_SDK_RAW_DATA_DEF_H_
11{
12public:
17 virtual bool CanAddRef() = 0;
18
23 virtual bool AddRef() = 0;
24
29 virtual int Release() = 0;
30
35 virtual char* GetBuffer() = 0;
36
41 virtual unsigned int GetBufferLen() = 0;
42
47 virtual unsigned int GetSampleRate() = 0;
48
53 virtual unsigned int GetChannelNum() = 0;
54
59 virtual unsigned long long GetTimeStamp() = 0;
60
61 virtual ~AudioRawData(){}
62};
63
68{
69public:
74 virtual bool CanAddRef() = 0;
75
83 virtual bool AddRef() = 0;
84
89 virtual int Release() = 0;
90
95 virtual char* GetYBuffer() = 0;
96
101 virtual char* GetUBuffer() = 0;
102
107 virtual char* GetVBuffer() = 0;
108
113 virtual char* GetAlphaBuffer() = 0;
114
120 virtual char* GetBuffer() = 0;
121
126 virtual unsigned int GetBufferLen() = 0;
127
132 virtual unsigned int GetAlphaBufferLen() = 0;
133
138 virtual bool IsLimitedI420() = 0;
139
144 virtual unsigned int GetStreamWidth() =0;
145
150 virtual unsigned int GetStreamHeight() = 0;
151
156 virtual unsigned int GetRotation() = 0;
157
162 virtual unsigned int GetSourceID() = 0;
163
168 virtual unsigned long long GetTimeStamp() = 0;
169
170 virtual ~YUVRawDataI420(){}
171};
172
174{
175public:
176 virtual unsigned int GetWidth() =0;
177 virtual unsigned int GetHeight() = 0;
178
179 virtual char* GetYBuffer(unsigned int lineNum = 0) = 0;
180 virtual char* GetUBuffer(unsigned int lineNum = 0) = 0;
181 virtual char* GetVBuffer(unsigned int lineNum = 0) = 0;
182
183 virtual unsigned int GetYStride() = 0;
184 virtual unsigned int GetUStride() = 0;
185 virtual unsigned int GetVStride() = 0;
186
187 virtual unsigned int GetRotation() = 0;
188 virtual bool IsLimitedI420() = 0;
190};
191
196{
197public:
203
210 virtual YUVRawDataI420* ConvertToYUVViaExternalBuffer(char* buffer_, int size_) = 0;
211
221 virtual void FillToPixelBuffer(char* ybuffer_, int ybuffer_pre_row_bytes, char* uvbuffer_, int uvbuffer_pre_row_bytes,int width, int height) = 0;
222
224};
225
226#endif
The audio raw data handler interface.
virtual unsigned int GetBufferLen()=0
Get the buffer length of the audio raw data.
virtual bool CanAddRef()=0
Determine if the reference count can be increased.
virtual bool AddRef()=0
Add one to the reference count.
virtual unsigned int GetChannelNum()=0
Get the channel number of the audio raw data.
virtual char * GetBuffer()=0
Get the audio raw data.
virtual unsigned long long GetTimeStamp()=0
Get the timestamp of the raw data.
virtual int Release()=0
Subtract one from the reference count.
virtual unsigned int GetSampleRate()=0
Get the sample rate of the audio raw data.
I420 YUV raw data converter interface.
virtual YUVRawDataI420 * ConvertToYUV()=0
Convert the intermediate YUV raw data to YUV raw data.
virtual void FillToPixelBuffer(char *ybuffer_, int ybuffer_pre_row_bytes, char *uvbuffer_, int uvbuffer_pre_row_bytes, int width, int height)=0
Fill data to the pixel buffer if expanding the size of the intermediate YUV raw data.
virtual YUVRawDataI420 * ConvertToYUVViaExternalBuffer(char *buffer_, int size_)=0
Convert the intermediate YUV raw data to YUV raw data via external buffer.
virtual unsigned int GetRotation()=0
virtual char * GetYBuffer(unsigned int lineNum=0)=0
virtual char * GetVBuffer(unsigned int lineNum=0)=0
virtual char * GetUBuffer(unsigned int lineNum=0)=0
virtual bool IsLimitedI420()=0
virtual unsigned int GetWidth()=0
virtual unsigned int GetHeight()=0
virtual unsigned int GetVStride()=0
virtual unsigned int GetYStride()=0
virtual unsigned int GetUStride()=0
The YUV raw data handler interface.
virtual unsigned int GetRotation()=0
Get the rotation angle of the local video device.
virtual unsigned int GetSourceID()=0
Get the source_id of the current YUV raw data.
virtual bool CanAddRef()=0
Determine if the reference count can be increased.
virtual bool AddRef()=0
Add one to the reference count.
virtual unsigned int GetBufferLen()=0
Get the buffer length of the YUV raw data.
virtual unsigned int GetStreamHeight()=0
Get the stream height.
virtual char * GetYBuffer()=0
Get the starting address of Y raw data.
virtual unsigned long long GetTimeStamp()=0
Get the timestamp of the raw data.
virtual char * GetAlphaBuffer()=0
Get the alpha mask data of YUV raw data.
virtual char * GetUBuffer()=0
Get the starting address of U raw data.
virtual char * GetVBuffer()=0
Get the starting address of V raw data.
virtual char * GetBuffer()=0
Get the starting address of YUV raw data.
virtual bool IsLimitedI420()=0
Determine if the YUV raw data is limited range mode.
virtual int Release()=0
Subtract one from the reference count.
virtual unsigned int GetStreamWidth()=0
Get the stream width.
virtual unsigned int GetAlphaBufferLen()=0
Get the alpha mask data length.