iimgdec1.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 
00047 #ifndef ti_xdais_dm_IIMGDEC1_
00048 #define ti_xdais_dm_IIMGDEC1_
00049 
00050 #include <ti/xdais/ialg.h>
00051 #include <ti/xdais/xdas.h>
00052 #include "xdm.h"
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 
00061 
00062 #define IIMGDEC1_EOK      XDM_EOK              
00063 #define IIMGDEC1_EFAIL    XDM_EFAIL            
00064 #define IIMGDEC1_EUNSUPPORTED XDM_EUNSUPPORTED 
00070 typedef struct IIMGDEC1_Obj {
00071     struct IIMGDEC1_Fxns *fxns;
00072 } IIMGDEC1_Obj;
00073 
00074 
00078 typedef struct IIMGDEC1_Obj  *IIMGDEC1_Handle;
00079 
00080 
00087 typedef struct IIMGDEC1_Params {
00088     XDAS_Int32 size;            
00089     XDAS_Int32 maxHeight;       
00090     XDAS_Int32 maxWidth;        
00091     XDAS_Int32 maxScans;        
00092     XDAS_Int32 dataEndianness;  
00096     XDAS_Int32 forceChromaFormat;
00100 } IIMGDEC1_Params;
00101 
00102 
00117 typedef struct IIMGDEC1_DynamicParams {
00118     XDAS_Int32 size;            
00119     XDAS_Int32 numAU;           
00123     XDAS_Int32 decodeHeader;    
00127     XDAS_Int32 displayWidth;    
00131 } IIMGDEC1_DynamicParams;
00132 
00133 
00142 typedef struct IIMGDEC1_InArgs {
00143     XDAS_Int32 size;            
00144     XDAS_Int32 numBytes;        
00147 } IIMGDEC1_InArgs;
00148 
00149 
00157 typedef struct IIMGDEC1_Status {
00158     XDAS_Int32 size;            
00159     XDAS_Int32 extendedError;   
00160     XDM1_SingleBufDesc data;    
00176     XDAS_Int32 outputHeight;    
00177     XDAS_Int32 outputWidth;     
00180     XDAS_Int32 imageWidth;      
00181     XDAS_Int32 outputChromaFormat; 
00185     XDAS_Int32 totalAU;         
00186     XDAS_Int32 totalScan;       
00187     XDM_AlgBufInfo  bufInfo;    
00191 } IIMGDEC1_Status;
00192 
00193 
00202 typedef struct IIMGDEC1_OutArgs {
00203     XDAS_Int32 size;            
00204     XDAS_Int32 extendedError;   
00205     XDAS_Int32 bytesConsumed;   
00208     XDAS_Int32 currentAU;       
00209     XDAS_Int32 currentScan;     
00210 } IIMGDEC1_OutArgs;
00211 
00212 
00223 typedef  IALG_Cmd IIMGDEC1_Cmd;
00224 
00225 
00229 typedef struct IIMGDEC1_Fxns{
00230     IALG_Fxns   ialg;             
00301     XDAS_Int32 (*process)(IIMGDEC1_Handle handle, XDM1_BufDesc *inBufs,
00302         XDM1_BufDesc *outBufs, IIMGDEC1_InArgs *inArgs,
00303         IIMGDEC1_OutArgs *outArgs);
00304 
00305 
00341     XDAS_Int32 (*control)(IIMGDEC1_Handle handle, IIMGDEC1_Cmd id,
00342         IIMGDEC1_DynamicParams *params, IIMGDEC1_Status *status);
00343 
00344 }IIMGDEC1_Fxns;
00345 
00346 
00349 #ifdef __cplusplus
00350 }
00351 #endif
00352 
00353 #endif  /* ti_xdais_dm_IIMGDEC1_ */
00354 /*
00355  *  @(#) ti.xdais.dm; 1, 0, 5,251; 9-18-2010 14:46:04; /db/wtree/library/trees/dais/dais-t03x/src/ xlibrary
00356 
00357  */
00358 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2010, Texas Instruments Incorporated