ividdec2.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (c) 2011, 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_IVIDDEC2_
00048 #define ti_xdais_dm_IVIDDEC2_
00049 
00050 #include <ti/xdais/ialg.h>
00051 #include <ti/xdais/xdas.h>
00052 #include "xdm.h"
00053 #include "ivideo.h"
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 
00062 
00073 #define IVIDDEC2_MAX_IO_BUFFERS                IVIDEO2_MAX_IO_BUFFERS
00074 
00075 #define IVIDDEC2_EOK       XDM_EOK             
00076 #define IVIDDEC2_EFAIL     XDM_EFAIL           
00077 #define IVIDDEC2_EUNSUPPORTED XDM_EUNSUPPORTED 
00083 typedef struct IVIDDEC2_Obj {
00084     struct IVIDDEC2_Fxns *fxns;
00085 } IVIDDEC2_Obj;
00086 
00087 
00091 typedef struct IVIDDEC2_Obj  *IVIDDEC2_Handle;
00092 
00093 
00101 typedef enum {
00102     IVIDDEC2_DISPLAY_ORDER = 0, 
00118     IVIDDEC2_DECODE_ORDER = 1,  
00133     IVIDDEC2_FRAMEORDER_DEFAULT = IVIDDEC2_DISPLAY_ORDER
00134 } IVIDDEC2_FrameOrder;
00135 
00136 
00143 typedef struct IVIDDEC2_Params {
00144     XDAS_Int32 size;            
00145     XDAS_Int32 maxHeight;       
00146     XDAS_Int32 maxWidth;        
00147     XDAS_Int32 maxFrameRate;    
00152     XDAS_Int32 maxBitRate;      
00156     XDAS_Int32 dataEndianness;  
00160     XDAS_Int32 forceChromaFormat;
00164 } IVIDDEC2_Params;
00165 
00166 
00181 typedef struct IVIDDEC2_DynamicParams {
00182     XDAS_Int32 size;            
00183     XDAS_Int32 decodeHeader;    
00187     XDAS_Int32 displayWidth;    
00191     XDAS_Int32 frameSkipMode;   
00195     XDAS_Int32 frameOrder;      
00199     XDAS_Int32 newFrameFlag;    
00211     XDAS_Int32 mbDataFlag;      
00220 } IVIDDEC2_DynamicParams;
00221 
00222 
00231 typedef struct IVIDDEC2_InArgs {
00232     XDAS_Int32 size;            
00233     XDAS_Int32 numBytes;        
00236     XDAS_Int32 inputID;         
00255 } IVIDDEC2_InArgs;
00256 
00257 
00268 typedef struct IVIDDEC2_Status {
00269     XDAS_Int32 size;            
00270     XDAS_Int32 extendedError;   
00271     XDM1_SingleBufDesc data;    
00292     XDAS_Int32 maxNumDisplayBufs; 
00298     XDAS_Int32 outputHeight;    
00299     XDAS_Int32 outputWidth;     
00300     XDAS_Int32 frameRate;       
00305     XDAS_Int32 bitRate;         
00306     XDAS_Int32 contentType;     
00310     XDAS_Int32 outputChromaFormat; 
00314     XDM_AlgBufInfo bufInfo;     
00318 } IVIDDEC2_Status;
00319 
00320 
00329 typedef struct IVIDDEC2_OutArgs {
00330     XDAS_Int32 size;            
00331     XDAS_Int32 bytesConsumed;   
00335     XDAS_Int32 outputID[IVIDEO2_MAX_IO_BUFFERS]; 
00350     IVIDEO1_BufDesc decodedBufs; 
00365     IVIDEO1_BufDesc displayBufs[IVIDEO2_MAX_IO_BUFFERS]; 
00388     XDAS_Int32 outputMbDataID;  
00393     XDM1_SingleBufDesc mbDataBuf; 
00400     XDAS_Int32 freeBufID[IVIDEO2_MAX_IO_BUFFERS]; 
00437     XDAS_Int32 outBufsInUseFlag; 
00446 } IVIDDEC2_OutArgs;
00447 
00448 
00459 typedef  IALG_Cmd IVIDDEC2_Cmd;
00460 
00461 
00465 typedef struct IVIDDEC2_Fxns {
00466     IALG_Fxns   ialg;             
00572     XDAS_Int32 (*process)(IVIDDEC2_Handle handle, XDM1_BufDesc *inBufs,
00573         XDM_BufDesc *outBufs, IVIDDEC2_InArgs *inArgs,
00574         IVIDDEC2_OutArgs *outArgs);
00575 
00576 
00612     XDAS_Int32 (*control)(IVIDDEC2_Handle handle, IVIDDEC2_Cmd id,
00613         IVIDDEC2_DynamicParams *params, IVIDDEC2_Status *status);
00614 
00615 } IVIDDEC2_Fxns;
00616 
00617 
00620 #ifdef __cplusplus
00621 }
00622 #endif
00623 
00624 #endif  /* ti_xdais_dm_IVIDDEC2_ */
00625 /*
00626  *  @(#) ti.xdais.dm; 1, 0, 7,7; 6-14-2011 10:34:31; /db/wtree/library/trees/dais/dais.git/src/ dais-u02
00627  */
00628 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2011, Texas Instruments Incorporated