videnc2.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  *  ======== videnc2.h ========
00035  */
00052 #ifndef ti_sdo_ce_video2_VIDENC2_
00053 #define ti_sdo_ce_video2_VIDENC2_
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 #include <ti/xdais/dm/xdm.h>
00060 #include <ti/xdais/dm/ividenc2.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 VIDENC2_EOK      IVIDENC2_EOK         
00070 #define VIDENC2_EFAIL    IVIDENC2_EFAIL       
00073 #define VIDENC2_EUNSUPPORTED IVIDENC2_EUNSUPPORTED
00074 
00075 #define VIDENC2_ETIMEOUT VISA_ETIMEOUT       
00076 #define VIDENC2_FOREVER  VISA_FOREVER        
00082 #define VIDENC2_VISATYPE "ti.sdo.ce.video2.IVIDENC2"
00083 
00090 #define VIDENC2_STUBSNAME "VIDENC2_STUBS"
00091 
00092 
00096 typedef VISA_Handle VIDENC2_Handle;
00097 
00098 /* The following are just wrapper typedefs */
00099 
00101 typedef struct IVIDENC2_Params VIDENC2_Params;
00102 
00104 typedef IVIDENC2_InArgs VIDENC2_InArgs;
00105 
00107 typedef IVIDENC2_OutArgs VIDENC2_OutArgs;
00108 
00110 typedef IVIDENC2_Cmd VIDENC2_Cmd;
00111 
00113 typedef IVIDENC2_DynamicParams VIDENC2_DynamicParams;
00114 
00116 typedef IVIDENC2_Status VIDENC2_Status;
00117 
00124 extern SKEL_Fxns VIDENC2_SKEL;
00125 
00129 extern IVIDENC2_Fxns VIDENC2_STUBS;
00130 
00138 typedef struct IVIDENC2_CodecClassConfig {
00139     Bool manageInBufsPlaneDescCache[IVIDEO_MAX_NUM_PLANES];
00140     Bool manageInBufsMetaPlaneDescCache[IVIDEO_MAX_NUM_METADATA_PLANES];
00141     Bool manageOutBufsCache[XDM_MAX_IO_BUFFERS];
00142 } IVIDENC2_CodecClassConfig;
00143 
00144 
00145 /*
00146  *  ======== VIDENC2_control ========
00147  */
00176 extern Int32 VIDENC2_control(VIDENC2_Handle handle, VIDENC2_Cmd id,
00177         VIDENC2_DynamicParams *params, VIDENC2_Status *status);
00178 
00179 
00180 /*
00181  *  ======== VIDENC2_create ========
00182  */
00211 extern VIDENC2_Handle VIDENC2_create(Engine_Handle e, String name,
00212     VIDENC2_Params *params);
00213 
00214 
00215 /*
00216  *  ======== VIDENC2_delete ========
00217  */
00235 extern Void VIDENC2_delete(VIDENC2_Handle handle);
00236 
00237 
00238 /*
00239  *  ======== VIDENC2_process ========
00240  */
00286 extern Int32 VIDENC2_process(VIDENC2_Handle handle, IVIDEO2_BufDesc *inBufs,
00287         XDM2_BufDesc *outBufs, VIDENC2_InArgs *inArgs,
00288         VIDENC2_OutArgs *outArgs);
00289 
00290 
00291 /*
00292  *  ======== VIDENC2_processAsync ========
00293  */
00330 extern XDAS_Int32 VIDENC2_processAsync(VIDENC2_Handle handle,
00331         IVIDEO2_BufDesc *inBufs, XDM2_BufDesc *outBufs,
00332         IVIDENC2_InArgs *inArgs, IVIDENC2_OutArgs *outArgs);
00333 
00334 
00335 /*
00336  *  ======== VIDENC2_processWait ========
00337  */
00380 extern XDAS_Int32 VIDENC2_processWait(VIDENC2_Handle handle,
00381         IVIDEO2_BufDesc *inBufs, XDM2_BufDesc *outBufs, IVIDENC2_InArgs *inArgs,
00382         IVIDENC2_OutArgs *outArgs, UInt timeout);
00383 
00384 
00387 #ifdef __cplusplus
00388 }
00389 #endif
00390 
00391 #endif
00392 /*
00393  *  @(#) ti.sdo.ce.video2; 1, 0, 3,1; 8-14-2012 13:02:57; /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