Meeting SDK for Windows API Reference
Loading...
Searching...
No Matches
zoom_sdk_raw_data_def.h
Go to the documentation of this file.
1#ifndef _ZOOM_SDK_RAW_DATA_DEF_H_
2#define _ZOOM_SDK_RAW_DATA_DEF_H_
5{
6public:
9 virtual bool CanAddRef() = 0;
10
13 virtual bool AddRef() = 0;
14
17 virtual int Release() = 0;
18
21 virtual char* GetBuffer() = 0;
22
25 virtual unsigned int GetBufferLen() = 0;
26
29 virtual unsigned int GetSampleRate() = 0;
30
33 virtual unsigned int GetChannelNum() = 0;
34
37 virtual unsigned long long GetTimeStamp() = 0;
38
39 virtual ~AudioRawData(){}
40};
41
44{
45public:
48 virtual bool CanAddRef() = 0;
49
55 virtual bool AddRef() = 0;
56
59 virtual int Release() = 0;
60
63 virtual char* GetYBuffer() = 0;
64
67 virtual char* GetUBuffer() = 0;
68
71 virtual char* GetVBuffer() = 0;
72
75 virtual char* GetAlphaBuffer() = 0;
76
79 virtual char* GetBuffer() = 0;
80
83 virtual unsigned int GetBufferLen() = 0;
84
87 virtual unsigned int GetAlphaBufferLen() = 0;
88
91 virtual bool IsLimitedI420() = 0;
92
95 virtual unsigned int GetStreamWidth() =0;
96
99 virtual unsigned int GetStreamHeight() = 0;
100
103 virtual unsigned int GetRotation() = 0;
104
107 virtual unsigned int GetSourceID() = 0;
108
111 virtual unsigned long long GetTimeStamp() = 0;
112
113 virtual ~YUVRawDataI420(){}
114};
115
117{
118public:
119 virtual unsigned int GetWidth() =0;
120 virtual unsigned int GetHeight() = 0;
121
122 virtual char* GetYBuffer(unsigned int lineNum = 0) = 0;
123 virtual char* GetUBuffer(unsigned int lineNum = 0) = 0;
124 virtual char* GetVBuffer(unsigned int lineNum = 0) = 0;
125
126 virtual unsigned int GetYStride() = 0;
127 virtual unsigned int GetUStride() = 0;
128 virtual unsigned int GetVStride() = 0;
129
130 virtual unsigned int GetRotation() = 0;
131 virtual bool IsLimitedI420() = 0;
133};
134
137{
138public:
142
147 virtual YUVRawDataI420* ConvertToYUVViaExternalBuffer(char* buffer_, int size_) = 0;
148
156 virtual void FillToPixelBuffer(char* ybuffer_, int ybuffer_pre_row_bytes, char* uvbuffer_, int uvbuffer_pre_row_bytes,int width, int height) = 0;
157
159};
160
161#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.