Video 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
72struct FaceROI
73{
74 float left;
75 float top;
76 float right;
77 float bottom;
78};
79
102{
103public:
115 virtual unsigned int GetFaceCount() = 0;
116
128 virtual const FaceROI* GetFaceROIByIndex(unsigned int index) = 0;
129
130 virtual ~IFaceROIInfo() {}
131};
132
137{
138public:
143 virtual bool CanAddRef() = 0;
144
152 virtual bool AddRef() = 0;
153
158 virtual int Release() = 0;
159
164 virtual char* GetYBuffer() = 0;
165
170 virtual char* GetUBuffer() = 0;
171
176 virtual char* GetVBuffer() = 0;
177
182 virtual char* GetAlphaBuffer() = 0;
183
188
189 virtual char* GetBuffer() = 0;
190
195 virtual unsigned int GetBufferLen() = 0;
196
201 virtual unsigned int GetAlphaBufferLen() = 0;
202
207 virtual bool IsLimitedI420() = 0;
208
213 virtual unsigned int GetStreamWidth() =0;
214
219 virtual unsigned int GetStreamHeight() = 0;
220
225 virtual unsigned int GetRotation() = 0;
226
231 virtual unsigned int GetSourceID() = 0;
232
237 virtual unsigned long long GetTimeStamp() = 0;
238
251
252 virtual ~YUVRawDataI420(){}
253};
254
256{
257public:
258 virtual unsigned int GetWidth() =0;
259 virtual unsigned int GetHeight() = 0;
260
261 virtual char* GetYBuffer(unsigned int lineNum = 0) = 0;
262 virtual char* GetUBuffer(unsigned int lineNum = 0) = 0;
263 virtual char* GetVBuffer(unsigned int lineNum = 0) = 0;
264
265 virtual unsigned int GetYStride() = 0;
266 virtual unsigned int GetUStride() = 0;
267 virtual unsigned int GetVStride() = 0;
268
269 virtual unsigned int GetRotation() = 0;
270 virtual bool IsLimitedI420() = 0;
272};
273
278{
279public:
285
292 virtual YUVRawDataI420* ConvertToYUVViaExternalBuffer(char* buffer_, int size_) = 0;
293
303 virtual void FillToPixelBuffer(char* ybuffer_, int ybuffer_pre_row_bytes, char* uvbuffer_, int uvbuffer_pre_row_bytes,int width, int height) = 0;
304
306};
307
308#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.
Per-frame face ROI metadata accessor.
virtual unsigned int GetFaceCount()=0
Number of valid face ROIs available for the current frame.
virtual const FaceROI * GetFaceROIByIndex(unsigned int index)=0
Get a face ROI by zero-based index.
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 IFaceROIInfo * GetFaceROIInfo()=0
Get the face ROI metadata associated with this frame.
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.
Face region of interest reported alongside a decoded frame.
float right
Normalized right edge, [0.0, 1.0], > left.
float bottom
Normalized bottom edge, [0.0, 1.0], > top.
float left
Normalized left edge, [0.0, 1.0].
float top
Normalized top edge, [0.0, 1.0].