Codec Engine Application Programming Interface (API)  ce-w08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sphenc1.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013 by Texas Instruments Incorporated.
3  *
4  */
5 
6 /*
7  * Copyright (c) 2013, Texas Instruments Incorporated
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * * Redistributions of source code must retain the above copyright
15  * notice, this list of conditions and the following disclaimer.
16  *
17  * * Redistributions in binary form must reproduce the above copyright
18  * notice, this list of conditions and the following disclaimer in the
19  * documentation and/or other materials provided with the distribution.
20  *
21  * * Neither the name of Texas Instruments Incorporated nor the names of
22  * its contributors may be used to endorse or promote products derived
23  * from this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
27  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
29  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
35  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  *
37  */
38 /*
39  * ======== sphenc1.h ========
40  */
56 #ifndef ti_sdo_ce_speech1_SPHENC1_
57 #define ti_sdo_ce_speech1_SPHENC1_
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 #include <ti/xdais/dm/xdm.h>
64 #include <ti/xdais/dm/isphenc1.h>
65 
66 #include <ti/sdo/ce/Engine.h>
67 #include <ti/sdo/ce/visa.h>
68 #include <ti/sdo/ce/skel.h>
69 
72 
73 #define SPHENC1_EOK ISPHENC1_EOK
74 #define SPHENC1_EFAIL ISPHENC1_EFAIL
77 #define SPHENC1_EUNSUPPORTED ISPHENC1_EUNSUPPORTED
78 
79 #define SPHENC1_ETIMEOUT VISA_ETIMEOUT
80 #define SPHENC1_FOREVER VISA_FOREVER
85 #define SPHENC1_VISATYPE "ti.sdo.ce.speech1.ISPHENC1"
86 
93 #define SPHENC1_STUBSNAME "SPHENC1_STUBS"
94 
95 
100 
101 /* The following are just wrapper typedefs */
102 
105 
108 
111 
114 
117 
120 
127 extern SKEL_Fxns SPHENC1_SKEL;
128 
132 extern ISPHENC1_Fxns SPHENC1_STUBS;
133 
137 /*
138  * ======== SPHENC1_control ========
139  */
167 extern Int32 SPHENC1_control(SPHENC1_Handle handle, SPHENC1_Cmd id,
168  SPHENC1_DynamicParams *params, SPHENC1_Status *status);
169 
170 
171 /*
172  * ======== SPHENC1_create ========
173  */
202 extern SPHENC1_Handle SPHENC1_create(Engine_Handle e, String name,
203  SPHENC1_Params *params);
204 
205 
206 /*
207  * ======== SPHENC1_delete ========
208  */
226 extern Void SPHENC1_delete(SPHENC1_Handle handle);
227 
228 
229 /*
230  * ======== SPHENC1_process ========
231  */
276 extern Int32 SPHENC1_process(SPHENC1_Handle handle,
277  XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
278  SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs);
279 
280 
281 /*
282  * ======== SPHENC1_processAsync ========
283  */
320 extern XDAS_Int32 SPHENC1_processAsync(SPHENC1_Handle handle,
321  XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
322  SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs);
323 
324 
325 /*
326  * ======== SPHENC1_processWait ========
327  */
370 extern XDAS_Int32 SPHENC1_processWait(SPHENC1_Handle handle,
371  XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
372  SPHENC1_InArgs *inArgs, SPHENC1_OutArgs *outArgs, UInt timeout);
373 
374 
377 #ifdef __cplusplus
378 }
379 #endif
380 
381 #endif
382 /*
383  * @(#) ti.sdo.ce.speech1; 1, 0, 1,3; 6-13-2013 00:17:22; /db/atree/library/trees/ce/ce-w08/src/ xlibrary
384 
385  */
386 
Copyright 2013, Texas Instruments Incorporated