viddec3.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (c) 2012, Texas Instruments Incorporated
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * *  Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer.
00011  *
00012  * *  Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in the
00014  *    documentation and/or other materials provided with the distribution.
00015  *
00016  * *  Neither the name of Texas Instruments Incorporated nor the names of
00017  *    its contributors may be used to endorse or promote products derived
00018  *    from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00021  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00022  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00023  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
00024  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00025  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00026  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00027  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00028  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00029  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
00030  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00031  * 
00032  */
00033 /*
00034  *  ======== viddec3.h ========
00035  */
00052 #ifndef ti_sdo_ce_video3_VIDDEC3_
00053 #define ti_sdo_ce_video3_VIDDEC3_
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 #include <ti/xdais/dm/xdm.h>
00060 #include <ti/xdais/dm/ividdec3.h>
00061 
00062 #include <ti/sdo/ce/Engine.h>
00063 #include <ti/sdo/ce/visa.h>
00064 #include <ti/sdo/ce/skel.h>
00065 
00068 
00069 #define VIDDEC3_EOK      IVIDDEC3_EOK         
00070 #define VIDDEC3_EFAIL    IVIDDEC3_EFAIL       
00073 #define VIDDEC3_EUNSUPPORTED IVIDDEC3_EUNSUPPORTED
00074 
00075 #define VIDDEC3_ETIMEOUT VISA_ETIMEOUT        
00076 #define VIDDEC3_FOREVER  VISA_FOREVER         
00081 #define VIDDEC3_VISATYPE "ti.sdo.ce.video3.IVIDDEC3"
00082 
00083 
00087 typedef VISA_Handle VIDDEC3_Handle;
00088 
00090 typedef struct IVIDDEC3_Params VIDDEC3_Params;
00091 
00093 typedef IVIDDEC3_InArgs VIDDEC3_InArgs;
00094 
00096 typedef IVIDDEC3_OutArgs VIDDEC3_OutArgs;
00097 
00099 typedef IVIDDEC3_Cmd VIDDEC3_Cmd;
00100 
00102 typedef IVIDDEC3_DynamicParams   VIDDEC3_DynamicParams;
00103 
00105 typedef IVIDDEC3_Status VIDDEC3_Status;
00106 
00107 
00114 extern SKEL_Fxns VIDDEC3_SKEL;
00115 
00119 extern IVIDDEC3_Fxns VIDDEC3_STUBS;
00120 
00128 typedef struct IVIDDEC3_CodecClassConfig {
00129     Bool manageInBufsCache     [ XDM_MAX_IO_BUFFERS ];
00130     Bool manageOutBufsCache    [ XDM_MAX_IO_BUFFERS ];
00131 } IVIDDEC3_CodecClassConfig;
00132 
00133 
00134 /*
00135  *  ======== VIDDEC3_control ========
00136  */
00164 extern Int32 VIDDEC3_control(VIDDEC3_Handle handle, VIDDEC3_Cmd id,
00165     VIDDEC3_DynamicParams *params, VIDDEC3_Status *status);
00166 
00167 
00168 /*
00169  *  ======== VIDDEC3_create ========
00170  */
00199 extern VIDDEC3_Handle VIDDEC3_create(Engine_Handle e, String name,
00200     VIDDEC3_Params *params);
00201 
00202 
00203 /*
00204  *  ======== VIDDEC3_delete ========
00205  */
00223 extern Void VIDDEC3_delete(VIDDEC3_Handle handle);
00224 
00225 
00226 /*
00227  *  ======== VIDDEC3_process ========
00228  */
00271 extern Int32 VIDDEC3_process(VIDDEC3_Handle handle, XDM2_BufDesc *inBufs,
00272     XDM2_BufDesc *outBufs, VIDDEC3_InArgs *inArgs, VIDDEC3_OutArgs *outArgs);
00273 
00274 
00275 #if 0 /* async not yet supported */
00276 
00277 /*
00278  *  ======== VIDDEC3_processAsync ========
00279  */
00316 extern XDAS_Int32 VIDDEC3_processAsync(VIDDEC3_Handle handle,
00317     XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs,
00318     VIDDEC3_InArgs *inArgs, VIDDEC3_OutArgs *outArgs);
00319 
00320 /*
00321  *  ======== VIDDEC3_processWait ========
00322  */
00365 extern XDAS_Int32 VIDDEC3_processWait(VIDDEC3_Handle handle,
00366     XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs,
00367     VIDDEC3_InArgs *inArgs, VIDDEC3_OutArgs *outArgs, UInt timeout);
00368 
00369 #endif
00370 
00371   /* ingroup */
00373 
00374 #ifdef __cplusplus
00375 }
00376 #endif
00377 
00378 #endif
00379 /*
00380  *  @(#) ti.sdo.ce.video3; 1, 0, 0,1; 1-17-2012 23:18:39; /db/atree/library/trees/ce/ce-t03/src/ xlibrary
00381 
00382  */
00383 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated