Codec Engine Application Programming Interface (API)  ce-w08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
imgdec.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  * ======== imgdec.h ========
40  */
56 #ifndef ti_sdo_ce_image_IMGDEC_
57 #define ti_sdo_ce_image_IMGDEC_
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 /*
64  * By definition, this interface is 0.9 XDM. Before including xdm.h,
65  * define XDM_INCLUDE_DOT9_SUPPORT
66  */
67 #ifndef XDM_INCLUDE_DOT9_SUPPORT
68 #define XDM_INCLUDE_DOT9_SUPPORT
69 #endif
70 #include <ti/xdais/dm/xdm.h>
71 #include <ti/xdais/dm/iimgdec.h>
72 
73 #include <ti/sdo/ce/Engine.h>
74 #include <ti/sdo/ce/visa.h>
75 #include <ti/sdo/ce/skel.h>
76 
79 
82 #define IMGDEC_EOK IIMGDEC_EOK
83 #define IMGDEC_EFAIL IIMGDEC_EFAIL
84 #define IMGDEC_ERUNTIME IIMGDEC_ERUNTIME
85 #define IMGDEC_ETIMEOUT VISA_ETIMEOUT
86 #define IMGDEC_FOREVER VISA_FOREVER
91 #define IMGDEC_VISATYPE "ti.sdo.ce.image.IIMGDEC"
92 
99 #define IMGDEC_STUBSNAME "IMGDEC_STUBS"
100 
101 
106 
112 
117 
122 
127 
132 
139 extern SKEL_Fxns IMGDEC_SKEL;
140 
144 extern IIMGDEC_Fxns IMGDEC_STUBS;
145 
153 typedef struct IIMGDEC_CodecClassConfig {
157 
158 /*
159  * ======== IMGDEC_create ========
160  */
189 extern IMGDEC_Handle IMGDEC_create(Engine_Handle e, String name,
190  IMGDEC_Params *params);
191 
192 
193 /*
194  * ======== IMGDEC_process ========
195  */
240 extern Int32 IMGDEC_process(IMGDEC_Handle handle,
241  XDM_BufDesc *inBufs, XDM_BufDesc *outBufs,
242  IMGDEC_InArgs *inArgs, IMGDEC_OutArgs *outArgs);
243 
244 
245 /*
246  * ======== IMGDEC_control ========
247  */
275 extern Int32 IMGDEC_control(IMGDEC_Handle handle, IMGDEC_Cmd id,
276  IMGDEC_DynamicParams *params, IMGDEC_Status *status);
277 
278 
279 /*
280  * ======== IMGDEC_delete ========
281  */
299 extern Void IMGDEC_delete(IMGDEC_Handle handle);
300 
301 
302 /*
303  * ======== IMGDEC_processAsync ========
304  */
341 extern XDAS_Int32 IMGDEC_processAsync(IMGDEC_Handle handle, XDM_BufDesc *inBufs,
342  XDM_BufDesc *outBufs, IMGDEC_InArgs *inArgs, IMGDEC_OutArgs *outArgs);
343 
344 
345 /*
346  * ======== IMGDEC_processWait ========
347  */
390 extern XDAS_Int32 IMGDEC_processWait(IMGDEC_Handle handle, XDM_BufDesc *inBufs,
391  XDM_BufDesc *outBufs, IMGDEC_InArgs *inArgs, IMGDEC_OutArgs *outArgs,
392  UInt timeout);
393 
394 
397 #ifdef __cplusplus
398 }
399 #endif
400 
401 #endif
402 /*
403  * @(#) ti.sdo.ce.image; 1, 0, 3,3; 6-13-2013 00:15:43; /db/atree/library/trees/ce/ce-w08/src/ xlibrary
404 
405  */
406 
Copyright 2013, Texas Instruments Incorporated