imgenc1.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  *  ======== imgenc1.h ========
00035  */
00051 #ifndef ti_sdo_ce_image1_IMGENC1_
00052 #define ti_sdo_ce_image1_IMGENC1_
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 #include <ti/xdais/dm/xdm.h>
00059 #include <ti/xdais/dm/iimgenc1.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 
00069 #define IMGENC1_EOK IIMGENC1_EOK
00070 
00072 #define IMGENC1_EFAIL IIMGENC1_EFAIL
00073 
00075 #define IMGENC1_EUNSUPPORTED IIMGENC1_EUNSUPPORTED
00076 
00078 #define IMGENC1_ETIMEOUT VISA_ETIMEOUT
00079 
00081 #define IMGENC1_FOREVER VISA_FOREVER
00082 
00086 #define IMGENC1_VISATYPE "ti.sdo.ce.image1.IIMGENC1"
00087 
00088 
00092 typedef VISA_Handle IMGENC1_Handle;
00093 
00094 /* The following are just wrapper typedefs */
00095 
00097 typedef struct IIMGENC1_Params IMGENC1_Params;
00098 
00100 typedef IIMGENC1_InArgs  IMGENC1_InArgs;
00101 
00103 typedef IIMGENC1_OutArgs IMGENC1_OutArgs;
00104 
00106 typedef IIMGENC1_Cmd IMGENC1_Cmd;
00107 
00109 typedef IIMGENC1_DynamicParams IMGENC1_DynamicParams;
00110 
00112 typedef IIMGENC1_Status IMGENC1_Status;
00113 
00120 extern SKEL_Fxns IMGENC1_SKEL;
00121 
00125 extern IIMGENC1_Fxns IMGENC1_STUBS;
00126 
00132 typedef struct IIMGENC1_CodecClassConfig {
00133     Bool manageInBufsCache [ XDM_MAX_IO_BUFFERS ];
00134     Bool manageOutBufsCache[ XDM_MAX_IO_BUFFERS ];
00135 } IIMGENC1_CodecClassConfig;
00136 
00137 
00138 
00139 /*
00140  *  ======== IMGENC1_control ========
00141  */
00165 extern Int32 IMGENC1_control(IMGENC1_Handle handle, IMGENC1_Cmd id,
00166     IMGENC1_DynamicParams *params, IMGENC1_Status *status);
00167 
00168 
00169 /*
00170  *  ======== IMGENC1_create ========
00171  */
00200 extern IMGENC1_Handle IMGENC1_create(Engine_Handle e, String name,
00201     IMGENC1_Params *params);
00202 
00203 
00204 /*
00205  *  ======== IMGENC1_delete ========
00206  */
00224 extern Void IMGENC1_delete(IMGENC1_Handle handle);
00225 
00226 
00227 /*
00228  *  ======== IMGENC1_process ========
00229  */
00268 extern Int32 IMGENC1_process(IMGENC1_Handle handle, XDM1_BufDesc *inBufs,
00269     XDM1_BufDesc *outBufs, IMGENC1_InArgs *inArgs, IMGENC1_OutArgs *outArgs);
00270 
00271 
00272 /*
00273  *  ======== IMGENC1_processAsync ========
00274  */
00311 extern XDAS_Int32 IMGENC1_processAsync(IMGENC1_Handle handle,
00312     XDM1_BufDesc *inBufs, XDM1_BufDesc *outBufs,
00313     IIMGENC1_InArgs *inArgs, IIMGENC1_OutArgs *outArgs);
00314 
00315 
00316 /*
00317  *  ======== IMGENC1_processWait ========
00318  */
00361 extern XDAS_Int32 IMGENC1_processWait(IMGENC1_Handle handle,
00362     XDM1_BufDesc *inBufs, XDM1_BufDesc *outBufs,
00363     IIMGENC1_InArgs *inArgs, IIMGENC1_OutArgs *outArgs, UInt timeout);
00364 
00365 
00368 #ifdef __cplusplus
00369 }
00370 #endif
00371 
00372 #endif
00373 /*
00374  *  @(#) ti.sdo.ce.image1; 1, 0, 1,1; 1-17-2012 23:14:49; /db/atree/library/trees/ce/ce-t03/src/ xlibrary
00375 
00376  */
00377 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated