Meeting SDK for Linux API Reference
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 virtual ~AudioRawData(){}
35};
36
39{
40public:
43 virtual bool CanAddRef() = 0;
44
47 virtual bool AddRef() = 0;
48
51 virtual int Release() = 0;
52
55 virtual char* GetYBuffer() = 0;
56
59 virtual char* GetUBuffer() = 0;
60
63 virtual char* GetVBuffer() = 0;
64
67 virtual char* GetAlphaBuffer() = 0;
68
71 virtual char* GetBuffer() = 0;
72
75 virtual unsigned int GetBufferLen() = 0;
76
79 virtual unsigned int GetAlphaBufferLen() = 0;
80
83 virtual bool IsLimitedI420() = 0;
84
87 virtual unsigned int GetStreamWidth() =0;
88
91 virtual unsigned int GetStreamHeight() = 0;
92
95 virtual unsigned int GetRotation() = 0;
96
99 virtual unsigned int GetSourceID() = 0;
100 virtual ~YUVRawDataI420(){}
101};
102
104{
105public:
106 virtual unsigned int GetWidth() =0;
107 virtual unsigned int GetHeight() = 0;
108
109 virtual char* GetYBuffer(unsigned int lineNum = 0) = 0;
110 virtual char* GetUBuffer(unsigned int lineNum = 0) = 0;
111 virtual char* GetVBuffer(unsigned int lineNum = 0) = 0;
112
113 virtual unsigned int GetYStride() = 0;
114 virtual unsigned int GetUStride() = 0;
115 virtual unsigned int GetVStride() = 0;
116
117 virtual unsigned int GetRotation() = 0;
118 virtual bool IsLimitedI420() = 0;
120};
121
124{
125public:
129
134 virtual YUVRawDataI420* ConvertToYUVViaExternalBuffer(char* buffer_, int size_) = 0;
135
143 virtual void FillToPixelBuffer(char* ybuffer_, int ybuffer_pre_row_bytes, char* uvbuffer_, int uvbuffer_pre_row_bytes,int width, int height) = 0;
144
146};
147
148#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 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 y-data of the YUV raw data.
virtual char * GetAlphaBuffer()=0
Get the alpha mask data of YUV raw data.
virtual char * GetUBuffer()=0
Get the u-data of the YUV raw data.
virtual char * GetVBuffer()=0
Get the v-data of the YUV raw data.
virtual char * GetBuffer()=0
Get the 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.