blob: 42ff3555efcb69e21ad155dd1b35ed06a362d7d5 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#include "audip_exp.h"
2#include "awb_exp.h"
3#include "bli_exp.h"
4#include "cvsd_codec_exp.h"
5#include "dtmf_exp.h"
6#include "g_series_exp.h"
7#include "g_series_union.h"
8#include "g711_exp.h"
9#include "g711plc_exp.h"
10#include "g722_exp.h"
11#include "g726_exp.h"
12#include "g729_exp.h"
13#include "g7231_exp.h"
14#include "msbc_codec_exp.h"
15int AWB_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
16int AWB_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
17
18void BLI_GetMemSize(unsigned int inSR, /* Input, input sampling rate of the conversion */
19 unsigned int inChannel, /* Input, input channel number of the conversion */
20 unsigned int outSR, /* Input, output sampling rate of the conversion */
21 unsigned int outChannel, /* Input, output channel number of the conversion */
22 unsigned int *workBufSize){return ;} /* Output, the required working buffer size in byte */
23
24/*----------------------------------------------------------------------*/
25/* Get the BLI Software SRC handler. */
26/* Return: the handle of current BLI Software SRC */
27/*----------------------------------------------------------------------*/
28BLI_HANDLE *BLI_Open(unsigned int inSR, /* Input, input sampling rate of the conversion */
29 unsigned int inChannel, /* Input, input channel number of the conversion */
30 unsigned int outSR, /* Input, output sampling rate of the conversion */
31 unsigned int outChannel, /* Input, output channel number of the conversion */
32 signed char* buffer, /* Input, pointer to the working buffer */
33 void *(*custom_alloc)(unsigned int)){return 0;}
34unsigned int BLI_Convert(void *hdl, /* Input, handle of this conversion */
35 short *inBuf, /* Input, pointer to input buffer */
36 unsigned int *inLength, /* Input, length(byte) of input buffer */
37 /* Output, length(byte) left in the input buffer after conversion */
38 short *outBuf, /* Input, pointer to output buffer */
39 unsigned int *outLength){return 0;}
40
41/*----------------------------------------------------------------------*/
42/* Close the process */
43/*----------------------------------------------------------------------*/
44void BLI_Close( void *hdl,
45 void (*custom_free) (void *)){return ;}
46
47
48/*----------------------------------------------------------------------*/
49/* Change the input sampling rate during the process */
50/* Return: error code, 0 represents "everything is OK" */
51/*----------------------------------------------------------------------*/
52int BLI_SetSamplingRate(void *hdl,
53 unsigned int inSR){return 0;} /* Input, input sampling rate of the conversion */
54
55/*----------------------------------------------------------------------*/
56/* Clear the internal status for the discontinuous input buffer */
57/*----------------------------------------------------------------------*/
58int BLI_Reset(void *hdl){return 0;}
59void CVSD_DEC_Process(
60 void *pHandle, //handle
61 char *pInBuf, //input CVSD packet
62 int *pInLen, //input length (Byte)
63 short *pOutBuf, //output Sample
64 int *pOutLen //output length (Word)
65){return;}
66
67void CVSD_ENC_Process(
68 void *pHandle, //handle
69 short *pInBuf, //input Samples
70 int *pInLen, //input length (word)
71 char *pOutBuf, //CVSD packet
72 int *pOutLen //output Length (byte)
73){return;}
74int CVSD_DEC_GetBufferSize( void ){return 0;}
75int CVSD_ENC_GetBufferSize( void ){return 0;}
76void *CVSD_DEC_Init(char *pBuffer ){return 0;}
77void *CVSD_ENC_Init(char *pBuffer ){return 0;}
78DTMF_STATUS DTMF_GetBufferSize( unsigned int *InterBufSize,
79 unsigned int *PcmBufSize,
80 DTMF_SR samplerate,
81 DTMF_CHANNEL channel
82 ){return 0;}
83
84/*****************************************************************************
85 * FUNCTION
86 * DTMF_Init
87 *
88 * DESCRIPTION
89 * This function initializes DTMF Generator.
90 *
91 * PARAMETERS
92 * InterBuf Internal buffer
93 * channel Output channels, DTMF_MONO --> mono, DTMF_STEREO --> stereo
94 *
95 * RETURNS
96 * DTMF_Status
97 *****************************************************************************
98 */
99void* DTMF_Init( void *InterBuf,
100 DTMF_MODE mode,
101 DTMF_SR samplerate,
102 DTMF_CHANNEL channel
103 ){return 0;}
104
105/*****************************************************************************
106 * FUNCTION
107 * DTMF_Gen
108 *
109 * DESCRIPTION
110 * This function generates PCM data of DTMF tones.
111 *
112 * PARAMETERS
113 * PcmBuf Output PCM buffer
114 *
115 * RETURNS
116 * DTMF_Status
117 *****************************************************************************
118 */
119DTMF_STATUS DTMF_Gen( void *hdl,
120 void *PcmBuf
121 ){return 0;}
122
123/*****************************************************************************
124 * FUNCTION
125 * DTMF_Tone
126 *
127 * DESCRIPTION
128 * This function is used to turn on/off DTMF tones
129 *
130 * PARAMETERS
131 * key Specify a key
132 * dtmfswitch 1 --> press the key, 0 --> release the key
133 *
134 * RETURNS
135 * DTMF_Status
136 *****************************************************************************
137 */
138DTMF_STATUS DTMF_Tone( void *hdl,
139 DTMF_KEY key,
140 int dtmfswitch
141 ){return 0;}
142
143/*****************************************************************************
144 * FUNCTION
145 * DTMF_SetDuration
146 *
147 * DESCRIPTION
148 * This function specifies the DTMF duration of each tone on FIXDURATION mode.
149 *
150 * PARAMETERS
151 * duration To specify the frame counts
152 *
153 * RETURNS
154 * DTMF_Status
155 *****************************************************************************
156 */
157DTMF_STATUS DTMF_SetDuration( void *hdl,
158 unsigned int duration
159 ){return 0;}
160
161/*****************************************************************************
162 * FUNCTION
163 * DTMF_GetKey
164 *
165 * DESCRIPTION
166 * This function is used to get the frequency of specified key.
167 *
168 * PARAMETERS
169 * key Specify a key
170 * freq1 Frequency of the first tone
171 * freq2 Frequency of the second tone
172 *
173 * RETURNS
174 * DTMF_Status
175 *****************************************************************************
176 */
177DTMF_STATUS DTMF_GetKey( void *hdl,
178 DTMF_KEY key,
179 int *freq1,
180 int *freq2
181 ){return 0;}
182
183/*****************************************************************************
184 * FUNCTION
185 * DTMF_SetKey
186 *
187 * DESCRIPTION
188 * This function is used to define the frequency of DTMF tone.
189 *
190 * PARAMETERS
191 * key Specify a key
192 * freq1 Frequency of the first tone
193 * freq2 Frequency of the second tone
194 *
195 * RETURNS
196 * DTMF_Status
197 *****************************************************************************
198 */
199DTMF_STATUS DTMF_SetKey( void *hdl,
200 DTMF_KEY key,
201 int freq1,
202 int freq2
203 ){return 0;}
204
205/*****************************************************************************
206 * FUNCTION
207 * DTMF_SetGain
208 *
209 * DESCRIPTION
210 * This function is used to set the digital gain of each DTMF tone.
211 *
212 * PARAMETERS
213 * gain Digital gain, ranges from 0~0x3FFF
214 *
215 * RETURNS
216 * DTMF_Status
217 *****************************************************************************
218 */
219DTMF_STATUS DTMF_SetGain( void *hdl,
220 int gain
221 ){return 0;}
222int G711PLC_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
223int G711_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
224int G711_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
225void G711PLC_AddToHistory(G_Series_Handle *p_handle, short *pcm_buffer){return ;}
226void G711PLC_DoPLC(G_Series_Handle *p_handle, short *pcm_buffer){return ;}
227int G722_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
228int G722_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
229int G7231_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
230int G7231_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
231int G726_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
232int G726_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
233int G729_Enc_Set_Handle(G_Series_Handle *p_handle){return 0;}
234int G729_Dec_Set_Handle(G_Series_Handle *p_handle){return 0;}
235int G729B_Get_VAD(G_Series_Handle *p_handle, void *p_temp_buffer, short *speech_in){return 0;}
236int MSBC_DEC_Process(
237 void *pHandle, //handle
238 char *pInBuf, //input MSBC packet
239 int *pInLen, //input length (Byte)
240 short *pOutBuf, //output Sample
241 int *pOutLen //output length (Word)
242){return 0;}
243
244int MSBC_ENC_Process(
245 void *pHandle, //handle
246 short *pInBuf, //input Samples
247 int *pInLen, //input length (word)
248 char *pOutBuf, //MSBC packet
249 int *pOutLen //output Length (byte)
250){return 0;}
251int MSBC_DEC_GetBufferSize( void ){return 0;}
252int MSBC_ENC_GetBufferSize( void ){return 0;}
253void *MSBC_DEC_Init(char *pBuffer ){return 0;}
254void *MSBC_ENC_Init(char *pBuffer ){return 0;}
255
256void g711plc_addtohistory_v2(void *lc, short *s, unsigned int dwBtEv3HalfBad){return ;}
257void g711plc_dofe_v2(void *lc, short *s, unsigned int dwBtEv3HalfBad){return ;}
258int g711plc_GetMemorySize_v2(){return 0;}
259int g711plc_construct_v2(void *lc, unsigned int dwFs){return 0;}
260
261void CVSD_DownSample_Process(void *pHandle, short *pInSample, short *pOutSample, short *pTempBuffer, int iSourceSamples){return ;}
262int CVSD_DownSample_GetMemory(void){return 0;}
263void *CVSD_DownSample_Init(char *pBuffer){return 0;}
264void CVSD_UpSample_Process(void *pHandle, short *pInSample, short *pOutSample, short *pTempBuffer, int iSourceSamples){return ;}
265int CVSD_UpSample_GetMemory(void){return 0;}
266void *CVSD_UpSample_Init(char *pBuffer){return 0;}