Codec Engine Application Programming Interface (API)  ce-w08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sphenc.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  * ======== sphenc.h ========
40  */
57 #ifndef ti_sdo_ce_speech_SPHENC_
58 #define ti_sdo_ce_speech_SPHENC_
59 
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63 
64 /*
65  * By definition, this interface is 0.9 XDM. Before including xdm.h,
66  * define XDM_INCLUDE_DOT9_SUPPORT
67  */
68 #ifndef XDM_INCLUDE_DOT9_SUPPORT
69 #define XDM_INCLUDE_DOT9_SUPPORT
70 #endif
71 #include <ti/xdais/dm/xdm.h>
72 #include <ti/xdais/dm/isphenc.h>
73 
74 #include <ti/sdo/ce/Engine.h>
75 #include <ti/sdo/ce/visa.h>
76 #include <ti/sdo/ce/skel.h>
77 
80 
83 #define SPHENC_EOK ISPHENC_EOK
84 #define SPHENC_EFAIL ISPHENC_EFAIL
85 #define SPHENC_ERUNTIME ISPHENC_ERUNTIME
86 #define SPHENC_ETIMEOUT VISA_ETIMEOUT
87 #define SPHENC_FOREVER VISA_FOREVER
92 #define SPHENC_VISATYPE "ti.sdo.ce.speech.ISPHENC"
93 
100 #define SPHENC_STUBSNAME "SPHENC_STUBS"
101 
102 
107 
113 
118 
123 
128 
133 
140 extern SKEL_Fxns SPHENC_SKEL;
141 
145 extern ISPHENC_Fxns SPHENC_STUBS;
146 
149 /*
150  * ======== SPHENC_create ========
151  */
176 extern SPHENC_Handle SPHENC_create(Engine_Handle e, String name,
177  SPHENC_Params *params);
178 
179 
180 /*
181  * ======== SPHENC_process ========
182  */
221 extern Int32 SPHENC_process(SPHENC_Handle handle,
222  XDM_BufDesc *inBufs, XDM_BufDesc *outBufs,
223  SPHENC_InArgs *inArgs, SPHENC_OutArgs *outArgs);
224 
225 
226 /*
227  * ======== SPHENC_control ========
228  */
252 extern Int32 SPHENC_control(SPHENC_Handle handle, SPHENC_Cmd id,
253  SPHENC_DynamicParams *params, SPHENC_Status *status);
254 
255 
256 /*
257  * ======== SPHENC_delete ========
258  */
276 extern Void SPHENC_delete(SPHENC_Handle handle);
277 
278 
279 /*
280  * ======== SPHENC_processAsync ========
281  */
318 extern XDAS_Int32 SPHENC_processAsync(SPHENC_Handle handle, XDM_BufDesc *inBufs,
319  XDM_BufDesc *outBufs, ISPHENC_InArgs *inArgs, ISPHENC_OutArgs *outArgs);
320 
321 
322 /*
323  * ======== SPHENC_processWait ========
324  */
367 extern XDAS_Int32 SPHENC_processWait(SPHENC_Handle handle, XDM_BufDesc *inBufs,
368  XDM_BufDesc *outBufs, ISPHENC_InArgs *inArgs, ISPHENC_OutArgs *outArgs,
369  UInt timeout);
370 
371 
374 #ifdef __cplusplus
375 }
376 #endif
377 
378 #endif
379 /*
380  * @(#) ti.sdo.ce.speech; 1, 0, 2,3; 6-13-2013 00:17:11; /db/atree/library/trees/ce/ce-w08/src/ xlibrary
381 
382  */
383 
Copyright 2013, Texas Instruments Incorporated