videnc1.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (c) 2010, 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  *  ======== videnc1.h ========
00035  */
00051 #ifndef ti_sdo_ce_video1_VIDENC1_
00052 #define ti_sdo_ce_video1_VIDENC1_
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 #include <ti/xdais/dm/xdm.h>
00059 #include <ti/xdais/dm/ividenc1.h>
00060 
00061 #include <ti/sdo/ce/Engine.h>
00062 #include <ti/sdo/ce/visa.h>
00063 #include <ti/sdo/ce/skel.h>
00064 
00067 
00068 typedef IVIDENC1_Status VIDENC1_Status;       
00070 #define VIDENC1_EOK      IVIDENC1_EOK         
00071 #define VIDENC1_EFAIL    IVIDENC1_EFAIL       
00074 #define VIDENC1_EUNSUPPORTED IVIDENC1_EUNSUPPORTED
00075 
00076 #define VIDENC1_ETIMEOUT VISA_ETIMEOUT        
00077 #define VIDENC1_FOREVER  VISA_FOREVER         
00082 typedef VISA_Handle VIDENC1_Handle;
00083 
00088 typedef struct IVIDENC1_Params VIDENC1_Params;
00089 
00093 typedef IVIDENC1_InArgs          VIDENC1_InArgs;
00094 
00098 typedef IVIDENC1_OutArgs         VIDENC1_OutArgs;
00099 
00103 typedef IVIDENC1_Cmd             VIDENC1_Cmd;
00104 
00108 typedef IVIDENC1_DynamicParams   VIDENC1_DynamicParams;
00109 
00116 extern SKEL_Fxns VIDENC1_SKEL;
00117 
00121 extern IVIDENC1_Fxns VIDENC1_STUBS;
00122 
00126 typedef struct IVIDENC1_CodecClassConfig {
00127     Bool manageInBufsCache     [ XDM_MAX_IO_BUFFERS ];
00128     Bool manageOutBufsCache    [ XDM_MAX_IO_BUFFERS ];
00129 } IVIDENC1_CodecClassConfig;
00130 
00133 /*
00134  *  ======== VIDENC1_create ========
00135  */
00160 extern VIDENC1_Handle VIDENC1_create(Engine_Handle e, String name,
00161     VIDENC1_Params *params);
00162 
00163 
00164 /*
00165  *  ======== VIDENC1_process ========
00166  */
00204 extern Int32 VIDENC1_process(VIDENC1_Handle handle, IVIDEO1_BufDescIn *inBufs,
00205     XDM_BufDesc *outBufs, VIDENC1_InArgs *inArgs, VIDENC1_OutArgs *outArgs);
00206 
00207 
00208 /*
00209  *  ======== VIDENC1_control ========
00210  */
00238 extern Int32 VIDENC1_control(VIDENC1_Handle handle, VIDENC1_Cmd id,
00239     VIDENC1_DynamicParams *params, VIDENC1_Status *status);
00240 
00241 
00242 /*
00243  *  ======== VIDENC1_delete ========
00244  */
00262 extern Void VIDENC1_delete(VIDENC1_Handle handle);
00263 
00264 /*
00265  *  ======== VIDENC1_processAsync ========
00266  */
00303 extern XDAS_Int32 VIDENC1_processAsync(VIDENC1_Handle handle,
00304     IVIDEO1_BufDescIn *inBufs, XDM_BufDesc *outBufs,
00305     IVIDENC1_InArgs *inArgs, IVIDENC1_OutArgs *outArgs);
00306 
00307 /*
00308  *  ======== VIDENC1_processWait ========
00309  */
00352 extern XDAS_Int32 VIDENC1_processWait(VIDENC1_Handle handle,
00353     IVIDEO1_BufDescIn *inBufs, XDM_BufDesc *outBufs,
00354     IVIDENC1_InArgs *inArgs, IVIDENC1_OutArgs *outArgs, UInt timeout);
00355   /* ingroup */
00357 
00358 #ifdef __cplusplus
00359 }
00360 #endif
00361 
00362 #endif
00363 /*
00364  *  @(#) ti.sdo.ce.video1; 1, 0, 2,269; 12-2-2010 21:28:27; /db/atree/library/trees/ce/ce-r11x/src/ xlibrary
00365 
00366  */
00367 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2010, Texas Instruments Incorporated