videnc1.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  *  ======== videnc1.h ========
00035  */
00052 #ifndef ti_sdo_ce_video1_VIDENC1_
00053 #define ti_sdo_ce_video1_VIDENC1_
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 #include <ti/xdais/dm/xdm.h>
00060 #include <ti/xdais/dm/ividenc1.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 VIDENC1_EOK      IVIDENC1_EOK         
00070 #define VIDENC1_EFAIL    IVIDENC1_EFAIL       
00073 #define VIDENC1_EUNSUPPORTED IVIDENC1_EUNSUPPORTED
00074 
00075 #define VIDENC1_ETIMEOUT VISA_ETIMEOUT        
00076 #define VIDENC1_FOREVER  VISA_FOREVER         
00081 #define VIDENC1_VISATYPE "ti.sdo.ce.video1.IVIDENC1"
00082 
00089 #define VIDENC1_STUBSNAME "VIDENC1_STUBS"
00090 
00091 
00095 typedef VISA_Handle VIDENC1_Handle;
00096 
00097 /* The following are just wrapper typedefs */
00098 
00100 typedef struct IVIDENC1_Params VIDENC1_Params;
00101 
00103 typedef IVIDENC1_InArgs          VIDENC1_InArgs;
00104 
00106 typedef IVIDENC1_OutArgs         VIDENC1_OutArgs;
00107 
00109 typedef IVIDENC1_Cmd             VIDENC1_Cmd;
00110 
00112 typedef IVIDENC1_DynamicParams VIDENC1_DynamicParams;
00113 
00115 typedef IVIDENC1_Status VIDENC1_Status;
00116 
00123 extern SKEL_Fxns VIDENC1_SKEL;
00124 
00128 extern IVIDENC1_Fxns VIDENC1_STUBS;
00129 
00137 typedef struct IVIDENC1_CodecClassConfig {
00138     Bool manageInBufsCache     [ XDM_MAX_IO_BUFFERS ];
00139     Bool manageOutBufsCache    [ XDM_MAX_IO_BUFFERS ];
00140 } IVIDENC1_CodecClassConfig;
00141 
00142 /*
00143  *  ======== VIDENC1_control ========
00144  */
00175 extern Int32 VIDENC1_control(VIDENC1_Handle handle, VIDENC1_Cmd id,
00176     VIDENC1_DynamicParams *params, VIDENC1_Status *status);
00177 
00178 
00179 /*
00180  *  ======== VIDENC1_create ========
00181  */
00210 extern VIDENC1_Handle VIDENC1_create(Engine_Handle e, String name,
00211     VIDENC1_Params *params);
00212 
00213 
00214 /*
00215  *  ======== VIDENC1_delete ========
00216  */
00234 extern Void VIDENC1_delete(VIDENC1_Handle handle);
00235 
00236 
00237 /*
00238  *  ======== VIDENC1_process ========
00239  */
00285 extern Int32 VIDENC1_process(VIDENC1_Handle handle, IVIDEO1_BufDescIn *inBufs,
00286     XDM_BufDesc *outBufs, VIDENC1_InArgs *inArgs, VIDENC1_OutArgs *outArgs);
00287 
00288 
00289 /*
00290  *  ======== VIDENC1_processAsync ========
00291  */
00330 extern XDAS_Int32 VIDENC1_processAsync(VIDENC1_Handle handle,
00331     IVIDEO1_BufDescIn *inBufs, XDM_BufDesc *outBufs,
00332     IVIDENC1_InArgs *inArgs, IVIDENC1_OutArgs *outArgs);
00333 
00334 
00335 /*
00336  *  ======== VIDENC1_processWait ========
00337  */
00380 extern XDAS_Int32 VIDENC1_processWait(VIDENC1_Handle handle,
00381     IVIDEO1_BufDescIn *inBufs, XDM_BufDesc *outBufs,
00382     IVIDENC1_InArgs *inArgs, IVIDENC1_OutArgs *outArgs, UInt timeout);
00383 
00384 
00387 #ifdef __cplusplus
00388 }
00389 #endif
00390 
00391 #endif
00392 /*
00393  *  @(#) ti.sdo.ce.video1; 1, 0, 2,1; 8-14-2012 13:02:54; /db/atree/library/trees/ce/ce-u07/src/ xlibrary
00394 
00395  */
00396 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated