Codec Engine Application Programming Interface (API)  ce-w08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vidtranscode.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  * ======== vidtranscode.h ========
40  */
57 #ifndef ti_sdo_ce_vidtranscode_VIDTRANSCODE_
58 #define ti_sdo_ce_vidtranscode_VIDTRANSCODE_
59 
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63 
64 #include <ti/xdais/dm/xdm.h>
66 
67 #include <ti/sdo/ce/Engine.h>
68 #include <ti/sdo/ce/visa.h>
69 #include <ti/sdo/ce/skel.h>
70 
73 
75 #define VIDTRANSCODE_EOK IVIDTRANSCODE_EOK
76 
78 #define VIDTRANSCODE_EFAIL IVIDTRANSCODE_EFAIL
79 
81 #define VIDTRANSCODE_EUNSUPPORTED IVIDTRANSCODE_EUNSUPPORTED
82 
84 #define VIDTRANSCODE_ETIMEOUT VISA_ETIMEOUT
85 
87 #define VIDTRANSCODE_FOREVER VISA_FOREVER
88 
92 #define VIDTRANSCODE_VISATYPE "ti.sdo.ce.vidtranscode.IVIDTRANSCODE"
93 
100 #define VIDTRANSCODE_STUBSNAME "VIDTRANSCOD_STUBS"
101 
102 
107 
108 /* The following are just wrapper typedefs */
109 
112 
115 
118 
121 
124 
127 
134 extern SKEL_Fxns VIDTRANSCODE_SKEL;
135 
140 extern IVIDTRANSCODE_Fxns VIDTRANSCODE_STUBS;
141 
145 /*
146  * ======== VIDTRANSCODE_control ========
147  */
172 extern Int32 VIDTRANSCODE_control(VIDTRANSCODE_Handle handle,
173  VIDTRANSCODE_Cmd id, VIDTRANSCODE_DynamicParams *params,
174  VIDTRANSCODE_Status *status);
175 
176 
177 /*
178  * ======== VIDTRANSCODE_create ========
179  */
208 extern VIDTRANSCODE_Handle VIDTRANSCODE_create(Engine_Handle e, String name,
209  VIDTRANSCODE_Params *params);
210 
211 
212 /*
213  * ======== VIDTRANSCODE_delete ========
214  */
232 extern Void VIDTRANSCODE_delete(VIDTRANSCODE_Handle handle);
233 
234 
235 /*
236  * ======== VIDTRANSCODE_process ========
237  */
276 extern Int32 VIDTRANSCODE_process(VIDTRANSCODE_Handle handle,
277  XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs, VIDTRANSCODE_InArgs *inArgs,
278  VIDTRANSCODE_OutArgs *outArgs);
279 
280 /*
281  * ======== VIDTRANSCODE_processAsync ========
282  */
319 extern XDAS_Int32 VIDTRANSCODE_processAsync(VIDTRANSCODE_Handle handle,
320  XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs, IVIDTRANSCODE_InArgs *inArgs,
321  IVIDTRANSCODE_OutArgs *outArgs);
322 
323 /*
324  * ======== VIDTRANSCODE_processWait ========
325  */
369 extern XDAS_Int32 VIDTRANSCODE_processWait(VIDTRANSCODE_Handle handle,
370  XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs, IVIDTRANSCODE_InArgs *inArgs,
371  IVIDTRANSCODE_OutArgs *outArgs, UInt timeout);
372 
375 #ifdef __cplusplus
376 }
377 #endif
378 
379 #endif
380 /*
381  * @(#) ti.sdo.ce.vidtranscode; 1, 0, 1,3; 6-13-2013 00:21:10; /db/atree/library/trees/ce/ce-w08/src/ xlibrary
382 
383  */
384 
Copyright 2013, Texas Instruments Incorporated