vidtranscode.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  *  ======== vidtranscode.h ========
00035  */
00052 #ifndef ti_sdo_ce_vidtranscode_VIDTRANSCODE_
00053 #define ti_sdo_ce_vidtranscode_VIDTRANSCODE_
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 #include <ti/xdais/dm/xdm.h>
00060 #include <ti/xdais/dm/ividtranscode.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 
00070 #define VIDTRANSCODE_EOK            IVIDTRANSCODE_EOK
00071 
00073 #define VIDTRANSCODE_EFAIL          IVIDTRANSCODE_EFAIL
00074 
00076 #define VIDTRANSCODE_EUNSUPPORTED   IVIDTRANSCODE_EUNSUPPORTED
00077 
00079 #define VIDTRANSCODE_ETIMEOUT VISA_ETIMEOUT
00080 
00082 #define VIDTRANSCODE_FOREVER  VISA_FOREVER
00083 
00087 #define VIDTRANSCODE_VISATYPE "ti.sdo.ce.vidtranscode.IVIDTRANSCODE"
00088 
00095 #define VIDTRANSCODE_STUBSNAME "VIDTRANSCOD_STUBS"
00096 
00097 
00101 typedef VISA_Handle VIDTRANSCODE_Handle;
00102 
00103 /* The following are just wrapper typedefs */
00104 
00106 typedef struct IVIDTRANSCODE_Params VIDTRANSCODE_Params;
00107 
00109 typedef IVIDTRANSCODE_InArgs VIDTRANSCODE_InArgs;
00110 
00112 typedef IVIDTRANSCODE_OutArgs VIDTRANSCODE_OutArgs;
00113 
00115 typedef IVIDTRANSCODE_Cmd VIDTRANSCODE_Cmd;
00116 
00118 typedef IVIDTRANSCODE_DynamicParams VIDTRANSCODE_DynamicParams;
00119 
00121 typedef IVIDTRANSCODE_Status VIDTRANSCODE_Status;
00122 
00129 extern SKEL_Fxns VIDTRANSCODE_SKEL;
00130 
00135 extern IVIDTRANSCODE_Fxns VIDTRANSCODE_STUBS;
00136 
00140 /*
00141  *  ======== VIDTRANSCODE_control ========
00142  */
00167 extern Int32 VIDTRANSCODE_control(VIDTRANSCODE_Handle handle,
00168     VIDTRANSCODE_Cmd id, VIDTRANSCODE_DynamicParams *params,
00169     VIDTRANSCODE_Status *status);
00170 
00171 
00172 /*
00173  *  ======== VIDTRANSCODE_create ========
00174  */
00203 extern VIDTRANSCODE_Handle VIDTRANSCODE_create(Engine_Handle e, String name,
00204     VIDTRANSCODE_Params *params);
00205 
00206 
00207 /*
00208  *  ======== VIDTRANSCODE_delete ========
00209  */
00227 extern Void VIDTRANSCODE_delete(VIDTRANSCODE_Handle handle);
00228 
00229 
00230 /*
00231  *  ======== VIDTRANSCODE_process ========
00232  */
00271 extern Int32 VIDTRANSCODE_process(VIDTRANSCODE_Handle handle,
00272     XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs, VIDTRANSCODE_InArgs *inArgs,
00273     VIDTRANSCODE_OutArgs *outArgs);
00274 
00275 /*
00276  *  ======== VIDTRANSCODE_processAsync ========
00277  */
00314 extern XDAS_Int32 VIDTRANSCODE_processAsync(VIDTRANSCODE_Handle handle,
00315     XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs, IVIDTRANSCODE_InArgs *inArgs,
00316     IVIDTRANSCODE_OutArgs *outArgs);
00317 
00318 /*
00319  *  ======== VIDTRANSCODE_processWait ========
00320  */
00364 extern XDAS_Int32 VIDTRANSCODE_processWait(VIDTRANSCODE_Handle handle,
00365     XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs, IVIDTRANSCODE_InArgs *inArgs,
00366     IVIDTRANSCODE_OutArgs *outArgs, UInt timeout);
00367 
00370 #ifdef __cplusplus
00371 }
00372 #endif
00373 
00374 #endif
00375 /*
00376  *  @(#) ti.sdo.ce.vidtranscode; 1, 0, 1,1; 8-14-2012 13:03:06; /db/atree/library/trees/ce/ce-u07/src/ xlibrary
00377 
00378  */
00379 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated