ividdec1.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 
00050 #ifndef ti_xdais_dm_IVIDDEC1_
00051 #define ti_xdais_dm_IVIDDEC1_
00052 
00053 #include <ti/xdais/ialg.h>
00054 #include <ti/xdais/xdas.h>
00055 #include "xdm.h"
00056 #include "ivideo.h"
00057 
00058 #ifdef __cplusplus
00059 extern "C" {
00060 #endif
00061 
00062 
00065 
00066 #define IVIDDEC1_EOK       XDM_EOK             
00067 #define IVIDDEC1_EFAIL     XDM_EFAIL           
00068 #define IVIDDEC1_EUNSUPPORTED XDM_EUNSUPPORTED 
00074 typedef struct IVIDDEC1_Obj {
00075     struct IVIDDEC1_Fxns *fxns;
00076 } IVIDDEC1_Obj;
00077 
00078 
00082 typedef struct IVIDDEC1_Obj  *IVIDDEC1_Handle;
00083 
00084 
00092 typedef enum {
00093     IVIDDEC_DISPLAY_ORDER = 0,  
00109     IVIDDEC_DECODE_ORDER = 1,   
00124     IVIDDEC_FRAMEORDER_DEFAULT = IVIDDEC_DISPLAY_ORDER
00125 } IVIDDEC1_FrameOrder;
00126 
00127 
00134 typedef struct IVIDDEC1_Params {
00135     XDAS_Int32 size;            
00136     XDAS_Int32 maxHeight;       
00137     XDAS_Int32 maxWidth;        
00138     XDAS_Int32 maxFrameRate;    
00143     XDAS_Int32 maxBitRate;      
00147     XDAS_Int32 dataEndianness;  
00151     XDAS_Int32 forceChromaFormat;
00155 } IVIDDEC1_Params;
00156 
00157 
00172 typedef struct IVIDDEC1_DynamicParams {
00173     XDAS_Int32 size;            
00174     XDAS_Int32 decodeHeader;    
00178     XDAS_Int32 displayWidth;    
00182     XDAS_Int32 frameSkipMode;   
00186     XDAS_Int32 frameOrder;      
00190     XDAS_Int32 newFrameFlag;    
00202     XDAS_Int32 mbDataFlag;      
00211 } IVIDDEC1_DynamicParams;
00212 
00213 
00222 typedef struct IVIDDEC1_InArgs {
00223     XDAS_Int32 size;            
00224     XDAS_Int32 numBytes;        
00227     XDAS_Int32 inputID;         
00246 } IVIDDEC1_InArgs;
00247 
00248 
00259 typedef struct IVIDDEC1_Status {
00260     XDAS_Int32 size;            
00261     XDAS_Int32 extendedError;   
00262     XDM1_SingleBufDesc data;    
00283     XDAS_Int32 outputHeight;    
00284     XDAS_Int32 outputWidth;     
00285     XDAS_Int32 frameRate;       
00290     XDAS_Int32 bitRate;         
00291     XDAS_Int32 contentType;     
00295     XDAS_Int32 outputChromaFormat; 
00299     XDM_AlgBufInfo bufInfo;     
00303 } IVIDDEC1_Status;
00304 
00305 
00306 #define IVIDDEC1_FREE_BUFF_SIZE 16 
00319 typedef struct IVIDDEC1_OutArgs {
00320     XDAS_Int32 size;            
00321     XDAS_Int32 bytesConsumed;   
00324     XDAS_Int32 outputID[XDM_MAX_IO_BUFFERS]; 
00339     IVIDEO1_BufDesc decodedBufs; 
00354     IVIDEO1_BufDesc displayBufs[XDM_MAX_IO_BUFFERS]; 
00377     XDAS_Int32 outputMbDataID;  
00382     XDM1_SingleBufDesc mbDataBuf; 
00389     XDAS_Int32 freeBufID[IVIDDEC1_FREE_BUFF_SIZE]; 
00426     XDAS_Int32 outBufsInUseFlag; 
00435 } IVIDDEC1_OutArgs;
00436 
00437 
00448 typedef  IALG_Cmd IVIDDEC1_Cmd;
00449 
00450 
00454 typedef struct IVIDDEC1_Fxns {
00455     IALG_Fxns   ialg;             
00542     XDAS_Int32 (*process)(IVIDDEC1_Handle handle, XDM1_BufDesc *inBufs,
00543         XDM_BufDesc *outBufs, IVIDDEC1_InArgs *inArgs,
00544         IVIDDEC1_OutArgs *outArgs);
00545 
00546 
00582     XDAS_Int32 (*control)(IVIDDEC1_Handle handle, IVIDDEC1_Cmd id,
00583         IVIDDEC1_DynamicParams *params, IVIDDEC1_Status *status);
00584 
00585 } IVIDDEC1_Fxns;
00586 
00587 
00590 #ifdef __cplusplus
00591 }
00592 #endif
00593 
00594 #endif
00595 /*
00596  *  @(#) ti.xdais.dm; 1, 0, 7,7; 6-14-2011 10:34:31; /db/wtree/library/trees/dais/dais.git/src/ dais-u02
00597  */
00598 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2011, Texas Instruments Incorporated