Codec Engine Application Programming Interface (API)
ce-w08
Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
cetools
packages
ti
xdais
dm
isphenc1.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2006-2012, Texas Instruments Incorporated
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* * Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* * Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* * Neither the name of Texas Instruments Incorporated nor the names of
17
* its contributors may be used to endorse or promote products derived
18
* from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*
32
*/
33
47
#ifndef ti_xdais_dm_ISPHENC1_
48
#define ti_xdais_dm_ISPHENC1_
49
50
#include <
ti/xdais/ialg.h
>
51
#include <
ti/xdais/xdas.h
>
52
#include "
xdm.h
"
53
#include "
ispeech1.h
"
54
55
#ifdef __cplusplus
56
extern
"C"
{
57
#endif
58
61
62
#define ISPHENC1_EOK XDM_EOK
63
#define ISPHENC1_EFAIL XDM_EFAIL
64
#define ISPHENC1_EUNSUPPORTED XDM_EUNSUPPORTED
71
#define ISPHENC1_ENOOUTPUT 1
72
77
typedef
struct
ISPHENC1_Obj
{
78
struct
ISPHENC1_Fxns
*
fxns
;
79
}
ISPHENC1_Obj
;
80
81
85
typedef
struct
ISPHENC1_Obj
*
ISPHENC1_Handle
;
86
87
97
typedef
struct
ISPHENC1_Params
{
98
XDAS_Int16
size
;
99
XDAS_Int16
frameSize
;
102
XDAS_Int16
compandingLaw
;
109
XDAS_Int16
packingType
;
117
XDAS_Int16
vadSelection
;
125
XDAS_Int16
codecSelection
;
132
XDAS_Int16
bitRate
;
141
XDAS_Int16
reserved
;
142
XDAS_Int8
**
tablesPtr
;
154
}
ISPHENC1_Params
;
155
156
169
typedef
struct
ISPHENC1_DynamicParams
{
170
XDAS_Int16
size
;
171
XDAS_Int16
frameSize
;
174
XDAS_Int16
bitRate
;
182
XDAS_Int16
mode
;
189
XDAS_Int16
vadFlag
;
192
XDAS_Int16
noiseSuppressionMode
;
201
XDAS_Int16
ttyTddMode
;
208
XDAS_Int16
dtmfMode
;
214
XDAS_Int16
dataTransmit
;
220
XDAS_Int16
reserved
;
221
}
ISPHENC1_DynamicParams
;
222
223
230
typedef
struct
ISPHENC1_InArgs
{
231
XDAS_Int16
size
;
232
XDAS_Int16
nullTrafficChannel
;
248
XDM1_SingleBufDesc
data
;
251
}
ISPHENC1_InArgs
;
252
253
259
typedef
struct
ISPHENC1_Status
{
260
XDAS_Int16
size
;
261
XDAS_Int16
frameSize
;
264
XDAS_Int32
extendedError
;
265
XDM1_SingleBufDesc
data
;
286
XDAS_Int16
bitRate
;
294
XDAS_Int16
mode
;
301
XDAS_Int16
vadFlag
;
304
XDAS_Int16
noiseSuppressionMode
;
313
XDAS_Int16
ttyTddMode
;
320
XDAS_Int16
dataTransmit
;
326
XDAS_Int16
compandingLaw
;
333
XDAS_Int16
packingType
;
341
XDAS_Int16
vadSelection
;
349
XDAS_Int16
codecSelection
;
356
XDM_AlgBufInfo
bufInfo
;
359
}
ISPHENC1_Status
;
360
361
367
typedef
enum
{
368
ISPHENC1_FTYPE_SPEECH
= 0,
369
ISPHENC1_FTYPE_SIDFRAME
= 1,
370
ISPHENC1_FTYPE_NODATA
= 2
373
}
ISPHENC1_FrameType
;
374
375
384
typedef
struct
ISPHENC1_OutArgs
{
385
XDAS_Int16
size
;
386
XDAS_Int16
frameType
;
390
XDAS_Int32
extendedError
;
391
}
ISPHENC1_OutArgs
;
392
393
404
typedef
IALG_Cmd
ISPHENC1_Cmd
;
405
406
410
typedef
struct
ISPHENC1_Fxns
{
411
IALG_Fxns
ialg
;
490
XDAS_Int32
(*
process
)(ISPHENC1_Handle handle,
491
XDM1_SingleBufDesc
*inBuf,
XDM1_SingleBufDesc
*outBuf,
492
ISPHENC1_InArgs
*inArgs,
ISPHENC1_OutArgs
*outArgs);
493
494
530
XDAS_Int32
(*
control
)(ISPHENC1_Handle handle, ISPHENC1_Cmd id,
531
ISPHENC1_DynamicParams
*params,
ISPHENC1_Status
*status);
532
533
}
ISPHENC1_Fxns
;
534
535
538
#ifdef __cplusplus
539
}
540
#endif
541
542
#endif
Copyright 2013, Texas Instruments Incorporated