ividdec2.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 
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 
00061 
00072 #define IVIDDEC2_MAX_IO_BUFFERS                IVIDEO2_MAX_IO_BUFFERS
00073 
00074 #define IVIDDEC2_EOK       XDM_EOK             
00075 #define IVIDDEC2_EFAIL     XDM_EFAIL           
00076 #define IVIDDEC2_EUNSUPPORTED XDM_EUNSUPPORTED 
00082 typedef struct IVIDDEC2_Obj {
00083     struct IVIDDEC2_Fxns *fxns;
00084 } IVIDDEC2_Obj;
00085 
00086 
00090 typedef struct IVIDDEC2_Obj  *IVIDDEC2_Handle;
00091 
00092 
00100 typedef enum {
00101     IVIDDEC2_DISPLAY_ORDER = 0, 
00117     IVIDDEC2_DECODE_ORDER = 1,  
00132     IVIDDEC2_FRAMEORDER_DEFAULT = IVIDDEC2_DISPLAY_ORDER
00133 } IVIDDEC2_FrameOrder;
00134 
00135 
00142 typedef struct IVIDDEC2_Params {
00143     XDAS_Int32 size;            
00144     XDAS_Int32 maxHeight;       
00145     XDAS_Int32 maxWidth;        
00146     XDAS_Int32 maxFrameRate;    
00151     XDAS_Int32 maxBitRate;      
00155     XDAS_Int32 dataEndianness;  
00159     XDAS_Int32 forceChromaFormat;
00163 } IVIDDEC2_Params;
00164 
00165 
00180 typedef struct IVIDDEC2_DynamicParams {
00181     XDAS_Int32 size;            
00182     XDAS_Int32 decodeHeader;    
00186     XDAS_Int32 displayWidth;    
00190     XDAS_Int32 frameSkipMode;   
00194     XDAS_Int32 frameOrder;      
00198     XDAS_Int32 newFrameFlag;    
00210     XDAS_Int32 mbDataFlag;      
00219 } IVIDDEC2_DynamicParams;
00220 
00221 
00230 typedef struct IVIDDEC2_InArgs {
00231     XDAS_Int32 size;            
00232     XDAS_Int32 numBytes;        
00235     XDAS_Int32 inputID;         
00254 } IVIDDEC2_InArgs;
00255 
00256 
00267 typedef struct IVIDDEC2_Status {
00268     XDAS_Int32 size;            
00269     XDAS_Int32 extendedError;   
00270     XDM1_SingleBufDesc data;    
00291     XDAS_Int32 maxNumDisplayBufs; 
00297     XDAS_Int32 outputHeight;    
00298     XDAS_Int32 outputWidth;     
00299     XDAS_Int32 frameRate;       
00304     XDAS_Int32 bitRate;         
00305     XDAS_Int32 contentType;     
00309     XDAS_Int32 outputChromaFormat; 
00313     XDM_AlgBufInfo bufInfo;     
00317 } IVIDDEC2_Status;
00318 
00319 
00328 typedef struct IVIDDEC2_OutArgs {
00329     XDAS_Int32 size;            
00330     XDAS_Int32 bytesConsumed;   
00334     XDAS_Int32 outputID[IVIDEO2_MAX_IO_BUFFERS]; 
00349     IVIDEO1_BufDesc decodedBufs; 
00364     IVIDEO1_BufDesc displayBufs[IVIDEO2_MAX_IO_BUFFERS]; 
00396     XDAS_Int32 outputMbDataID;  
00401     XDM1_SingleBufDesc mbDataBuf; 
00408     XDAS_Int32 freeBufID[IVIDEO2_MAX_IO_BUFFERS]; 
00445     XDAS_Int32 outBufsInUseFlag; 
00454 } IVIDDEC2_OutArgs;
00455 
00456 
00467 typedef  IALG_Cmd IVIDDEC2_Cmd;
00468 
00469 
00473 typedef struct IVIDDEC2_Fxns {
00474     IALG_Fxns ialg;               
00580     XDAS_Int32 (*process)(IVIDDEC2_Handle handle, XDM1_BufDesc *inBufs,
00581         XDM_BufDesc *outBufs, IVIDDEC2_InArgs *inArgs,
00582         IVIDDEC2_OutArgs *outArgs);
00583 
00584 
00620     XDAS_Int32 (*control)(IVIDDEC2_Handle handle, IVIDDEC2_Cmd id,
00621         IVIDDEC2_DynamicParams *params, IVIDDEC2_Status *status);
00622 
00623 } IVIDDEC2_Fxns;
00624 
00625 
00628 #ifdef __cplusplus
00629 }
00630 #endif
00631 
00632 #endif  /* ti_xdais_dm_IVIDDEC2_ */
00633 /*
00634  *  @(#) ti.xdais.dm; 1, 0, 7,1; 6-19-2012 17:57:46; /db/wtree/library/trees/dais/dais-w06/src/ xlibrary
00635 
00636  */
00637 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated