ZOOM Windows SDK  5.2.42037.1112
zoom_sdk_raw_data_def.h
1 #ifndef _ZOOM_SDK_RAW_DATA_DEF_H_
2 #define _ZOOM_SDK_RAW_DATA_DEF_H_
3 
6 {
7 public:
10  virtual bool CanAddRef() = 0;
11 
14  virtual bool AddRef() = 0;
15 
18  virtual int Release() = 0;
19 
22  virtual char* GetBuffer() = 0;
23 
26  virtual unsigned int GetBufferLen() = 0;
27 
30  virtual unsigned int GetSampleRate() = 0;
31 
34  virtual unsigned int GetChannelNum() = 0;
35  virtual ~AudioRawData(){}
36 };
37 
40 {
41 public:
44  virtual bool CanAddRef() = 0;
45 
48  virtual bool AddRef() = 0;
49 
52  virtual int Release() = 0;
53 
56  virtual char* GetYBuffer() = 0;
57 
60  virtual char* GetUBuffer() = 0;
61 
64  virtual char* GetVBuffer() = 0;
65 
68  virtual char* GetBuffer() = 0;
69 
72  virtual unsigned int GetBufferLen() = 0;
73 
76  virtual bool IsLimitedI420() = 0;
77 
80  virtual unsigned int GetStreamWidth() =0;
81 
84  virtual unsigned int GetStreamHeight() = 0;
85 
88  virtual unsigned int GetRotation() = 0;
89 
92  virtual unsigned int GetSourceID() = 0;
93  virtual ~YUVRawDataI420(){}
94 };
95 
97 {
98 public:
99  virtual unsigned int GetWidth() =0;
100  virtual unsigned int GetHeight() = 0;
101 
102  virtual char* GetYBuffer(unsigned int lineNum = 0) = 0;
103  virtual char* GetUBuffer(unsigned int lineNum = 0) = 0;
104  virtual char* GetVBuffer(unsigned int lineNum = 0) = 0;
105 
106  virtual unsigned int GetYStride() = 0;
107  virtual unsigned int GetUStride() = 0;
108  virtual unsigned int GetVStride() = 0;
109 
110  virtual unsigned int GetRotation() = 0;
111  virtual bool IsLimitedI420() = 0;
112  virtual ~YUVProcessDataI420(){}
113 };
114 
117 {
118 public:
121  virtual YUVRawDataI420* ConvertToYUV() = 0;
122 
127  virtual YUVRawDataI420* ConvertToYUVViaExternalBuffer(char* buffer_, int size_) = 0;
128 
136  virtual void FillToPixelBuffer(char* ybuffer_, int ybuffer_pre_row_bytes, char* uvbuffer_, int uvbuffer_pre_row_bytes,int width, int height) = 0;
137 
138  virtual ~IYUVRawDataI420Converter(){}
139 };
140 
141 #endif
virtual unsigned int GetSampleRate()=0
Get the sample rate of the audio raw data.
The audio raw data handler interface.
Definition: zoom_sdk_raw_data_def.h:5
virtual char * GetVBuffer()=0
Get the v-data of the YUV raw data.
virtual int Release()=0
Subtract one from the reference count.
virtual unsigned int GetStreamHeight()=0
Get the stream height.
virtual unsigned int GetChannelNum()=0
Get the channel number of the audio raw data.
virtual char * GetBuffer()=0
Get the YUV raw data.
virtual YUVRawDataI420 * ConvertToYUV()=0
Convert the intermediate YUV raw data to YUV raw data.
I420 YUV raw data converter interface.
Definition: zoom_sdk_raw_data_def.h:116
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 char * GetYBuffer()=0
Get the y-data of the YUV raw data.
virtual char * GetUBuffer()=0
Get the u-data of the YUV raw data.
virtual bool AddRef()=0
Add one to the reference count.
virtual unsigned int GetRotation()=0
Get the rotation angle of the local video device.
virtual unsigned int GetStreamWidth()=0
Get the stream width.
virtual unsigned int GetBufferLen()=0
Get the buffer length of the audio raw data.
virtual bool AddRef()=0
Add one to the reference count.
virtual char * GetBuffer()=0
Get the audio raw data.
Definition: zoom_sdk_raw_data_def.h:96
virtual bool CanAddRef()=0
Determine if the reference count can be increased.
virtual unsigned int GetSourceID()=0
Get the source_id of the current YUV raw data.
virtual unsigned int GetBufferLen()=0
Get the buffer length of the YUV raw data.
virtual bool IsLimitedI420()=0
Determine if the YUV raw data is limited range mode.
The YUV raw data handler interface.
Definition: zoom_sdk_raw_data_def.h:39
virtual int Release()=0
Subtract one from the reference count.
virtual YUVRawDataI420 * ConvertToYUVViaExternalBuffer(char *buffer_, int size_)=0
Convert the intermediate YUV raw data to YUV raw data via external buffer.
virtual bool CanAddRef()=0
Determine if the reference count can be increased.