ividdec.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (c) 2009, 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_IVIDDEC_
00051 #define ti_xdais_dm_IVIDDEC_
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 #include "ivideo.h"
00065 
00066 #ifdef __cplusplus
00067 extern "C" {
00068 #endif
00069 
00070 
00073 
00074 #define IVIDDEC_CID      "ti.xdais.dm.IVIDDEC"  
00076 #define IVIDDEC_ERUNTIME  XDM_ERUNTIME          
00077 #define IVIDDEC_EOK       XDM_EOK               
00078 #define IVIDDEC_EFAIL     XDM_EFAIL             
00084 typedef struct IVIDDEC_Obj {
00085     struct IVIDDEC_Fxns *fxns;
00086 } IVIDDEC_Obj;
00087 
00088 
00092 typedef struct IVIDDEC_Obj  *IVIDDEC_Handle;
00093 
00094 
00108 typedef struct IVIDDEC_Params {
00109     XDAS_Int32 size;            
00114     XDAS_Int32 maxHeight;       
00115     XDAS_Int32 maxWidth;        
00116     XDAS_Int32 maxFrameRate;    
00117     XDAS_Int32 maxBitRate;      
00121     XDAS_Int32 dataEndianness;  
00125     XDAS_Int32 forceChromaFormat;
00129 } IVIDDEC_Params;
00130 
00131 
00146 typedef struct IVIDDEC_DynamicParams {
00147     XDAS_Int32 size;            
00148     XDAS_Int32 decodeHeader;    
00152     XDAS_Int32 displayWidth;    
00156     XDAS_Int32 frameSkipMode;   
00160 } IVIDDEC_DynamicParams;
00161 
00162 
00171 typedef struct IVIDDEC_InArgs {
00172     XDAS_Int32 size;            
00173     XDAS_Int32 numBytes;        
00176     XDAS_Int32 inputID;         
00195 } IVIDDEC_InArgs;
00196 
00197 
00205 typedef struct IVIDDEC_Status {
00206     XDAS_Int32 size;            
00207     XDAS_Int32 extendedError;   
00208     XDAS_Int32 outputHeight;    
00209     XDAS_Int32 outputWidth;     
00210     XDAS_Int32 frameRate;       
00211     XDAS_Int32 bitRate;         
00212     XDAS_Int32 contentType;     
00216     XDAS_Int32 outputChromaFormat; 
00220     XDM_AlgBufInfo  bufInfo;    
00224 } IVIDDEC_Status;
00225 
00226 
00235 typedef struct IVIDDEC_OutArgs {
00236     XDAS_Int32 size;            
00237     XDAS_Int32 extendedError;   
00238     XDAS_Int32 bytesConsumed;   
00239     XDAS_Int32 decodedFrameType;
00241     XDAS_Int32 outputID;        
00244     IVIDEO_BufDesc displayBufs; 
00252 } IVIDDEC_OutArgs;
00253 
00254 
00265 typedef  IALG_Cmd IVIDDEC_Cmd;
00266 
00267 
00271 typedef struct IVIDDEC_Fxns {
00272     IALG_Fxns   ialg;             
00312     XDAS_Int32 (*process)(IVIDDEC_Handle handle, XDM_BufDesc *inBufs,
00313         XDM_BufDesc *outBufs, IVIDDEC_InArgs *inArgs,
00314         IVIDDEC_OutArgs *outArgs);
00315 
00316 
00342     XDAS_Int32 (*control)(IVIDDEC_Handle handle, IVIDDEC_Cmd id,
00343         IVIDDEC_DynamicParams *params, IVIDDEC_Status *status);
00344 
00345 } IVIDDEC_Fxns;
00346 
00347 
00350 #ifdef __cplusplus
00351 }
00352 #endif
00353 
00354 #endif
00355 /*
00356  *  @(#) ti.xdais.dm; 1, 0, 5,194; 3-13-2009 12:27:49; /db/wtree/library/trees/dais/dais-o05x/src/
00357  */
00358 

Copyright 2009, Texas Instruments Incorporated