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 00050 #ifndef ti_xdais_dm_IIMGDEC_ 00051 #define ti_xdais_dm_IIMGDEC_ 00052 00053 #include <ti/xdais/ialg.h> 00054 #include <ti/xdais/xdas.h> 00055 00056 /* 00057 * By definition, this interface is 0.9 XDM. Before including xdm.h, 00058 * define XDM_INCLUDE_DOT9_SUPPORT 00059 */ 00060 #ifndef XDM_INCLUDE_DOT9_SUPPORT 00061 #define XDM_INCLUDE_DOT9_SUPPORT 00062 #endif 00063 #include "xdm.h" 00064 00065 #ifdef __cplusplus 00066 extern "C" { 00067 #endif 00068 00071 00072 #define IIMGDEC_CID "ti.xdais.dm.IIMGDEC" 00074 #define IIMGDEC_ERUNTIME XDM_ERUNTIME 00075 #define IIMGDEC_EOK XDM_EOK 00076 #define IIMGDEC_EFAIL XDM_EFAIL 00082 typedef struct IIMGDEC_Obj { 00083 struct IIMGDEC_Fxns *fxns; 00084 } IIMGDEC_Obj; 00085 00086 00090 typedef struct IIMGDEC_Obj *IIMGDEC_Handle; 00091 00092 00102 typedef struct IIMGDEC_Params { 00103 XDAS_Int32 size; 00104 XDAS_Int32 maxHeight; 00105 XDAS_Int32 maxWidth; 00106 XDAS_Int32 maxScans; 00107 XDAS_Int32 dataEndianness; 00111 XDAS_Int32 forceChromaFormat; 00115 }IIMGDEC_Params; 00116 00117 00132 typedef struct IIMGDEC_DynamicParams { 00133 XDAS_Int32 size; 00134 XDAS_Int32 numAU; 00138 XDAS_Int32 decodeHeader; 00142 XDAS_Int32 displayWidth; 00146 } IIMGDEC_DynamicParams; 00147 00148 00157 typedef struct IIMGDEC_InArgs { 00158 XDAS_Int32 size; 00159 XDAS_Int32 numBytes; 00162 } IIMGDEC_InArgs; 00163 00164 00172 typedef struct IIMGDEC_Status { 00173 XDAS_Int32 size; 00174 XDAS_Int32 extendedError; 00175 XDAS_Int32 outputHeight; 00176 XDAS_Int32 outputWidth; 00179 XDAS_Int32 imageWidth; 00180 XDAS_Int32 outChromaformat; 00184 XDAS_Int32 totalAU; 00185 XDAS_Int32 totalScan; 00186 XDM_AlgBufInfo bufInfo; 00190 } IIMGDEC_Status; 00191 00192 00201 typedef struct IIMGDEC_OutArgs { 00202 XDAS_Int32 size; 00203 XDAS_Int32 extendedError; 00204 XDAS_Int32 bytesconsumed; 00207 XDAS_Int32 currentAU; 00208 XDAS_Int32 currentScan; 00209 } IIMGDEC_OutArgs; 00210 00211 00222 typedef IALG_Cmd IIMGDEC_Cmd; 00223 00224 00228 typedef struct IIMGDEC_Fxns{ 00229 IALG_Fxns ialg; 00274 XDAS_Int32 (*process)(IIMGDEC_Handle handle, XDM_BufDesc *inBufs, 00275 XDM_BufDesc *outBufs, IIMGDEC_InArgs *inArgs, 00276 IIMGDEC_OutArgs *outArgs); 00277 00278 00300 XDAS_Int32 (*control)(IIMGDEC_Handle handle, IIMGDEC_Cmd id, 00301 IIMGDEC_DynamicParams *params, IIMGDEC_Status *status); 00302 00303 }IIMGDEC_Fxns; 00304 00305 00308 #ifdef __cplusplus 00309 } 00310 #endif 00311 00312 #endif 00313 /* 00314 * @(#) ti.xdais.dm; 1, 0, 5,245; 5-4-2010 08:44:03; /db/wtree/library/trees/dais/dais-q11x/src/ 00315 */ 00316