isphdec1.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 
00047 #ifndef ti_xdais_dm_ISPHDEC1_
00048 #define ti_xdais_dm_ISPHDEC1_
00049 
00050 #include <ti/xdais/ialg.h>
00051 #include <ti/xdais/xdas.h>
00052 #include "xdm.h"
00053 #include "ispeech1.h"
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 
00062 
00063 #define ISPHDEC1_EOK       XDM_EOK             
00064 #define ISPHDEC1_EFAIL     XDM_EFAIL           
00065 #define ISPHDEC1_EUNSUPPORTED XDM_EUNSUPPORTED 
00071 typedef struct ISPHDEC1_Obj {
00072     struct ISPHDEC1_Fxns *fxns;
00073 } ISPHDEC1_Obj;
00074 
00075 
00079 typedef struct ISPHDEC1_Obj  *ISPHDEC1_Handle;
00080 
00081 
00091 typedef struct ISPHDEC1_Params {
00092     XDAS_Int16 size;            
00093     XDAS_Int16 compandingLaw;   
00100     XDAS_Int16 packingType;     
00108     XDAS_Int16 codecSelection;  
00115     XDAS_Int16 bitRate;         
00124     XDAS_Int16 reserved;        
00125     XDAS_Int8  **tablesPtr;     
00128 } ISPHDEC1_Params;
00129 
00130 
00145 typedef struct ISPHDEC1_DynamicParams {
00146     XDAS_Int16 size;            
00147     XDAS_Int16 postFilter;      
00152 } ISPHDEC1_DynamicParams;
00153 
00154 
00162 typedef enum {
00163     ISPHDEC1_FTYPE_SPEECHGOOD = 0,  
00166     ISPHDEC1_FTYPE_SIDUPDATE = 1,   
00167     ISPHDEC1_FTYPE_NODATA = 2,      
00170     ISPHDEC1_FTYPE_SPEECHLOST = 3,  
00171     ISPHDEC1_FTYPE_DEGRADED = 4,    
00174     ISPHDEC1_FTYPE_BAD = 5,         
00175     ISPHDEC1_FTYPE_SIDFIRST = 6,    
00176     ISPHDEC1_FTYPE_SIDBAD = 7,      
00177     ISPHDEC1_FTYPE_ONSET = 8        
00180 } ISPHDEC1_FrameType;
00181 
00182 
00187 typedef struct ISPHDEC1_InArgs {
00188     XDAS_Int16 size;            
00190     XDAS_Int16 frameType;       
00194     XDM1_SingleBufDesc data;    
00197 } ISPHDEC1_InArgs;
00198 
00199 
00207 typedef struct ISPHDEC1_Status {
00208     XDAS_Int16 size;            
00209     XDAS_Int16 postFilter;      
00213     XDAS_Int32 extendedError;   
00214     XDM1_SingleBufDesc data;    
00235     XDAS_Int16 compandingLaw;   
00242     XDAS_Int16 packingType;     
00250     XDM_AlgBufInfo  bufInfo;    
00254     XDAS_Int16 codecSelection;  
00261     XDAS_Int16 bitRate;         
00270 } ISPHDEC1_Status;
00271 
00272 
00281 typedef struct ISPHDEC1_OutArgs {
00282     XDAS_Int16 size;            
00283     XDAS_Int16 dataSize;        
00284     XDAS_Int32 extendedError;   
00285 } ISPHDEC1_OutArgs;
00286 
00287 
00298 typedef  IALG_Cmd ISPHDEC1_Cmd;
00299 
00300 
00304 typedef struct ISPHDEC1_Fxns{
00305     IALG_Fxns   ialg;             
00382     XDAS_Int32 (*process)(ISPHDEC1_Handle handle,
00383         XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
00384         ISPHDEC1_InArgs *inArgs, ISPHDEC1_OutArgs *outArgs);
00385 
00386 
00422     XDAS_Int32 (*control)(ISPHDEC1_Handle handle, ISPHDEC1_Cmd id,
00423         ISPHDEC1_DynamicParams *params, ISPHDEC1_Status *status);
00424 
00425 } ISPHDEC1_Fxns;
00426 
00427 
00430 #ifdef __cplusplus
00431 }
00432 #endif
00433 
00434 #endif
00435 /*
00436  *  @(#) ti.xdais.dm; 1, 0, 5,194; 3-13-2009 12:27:49; /db/wtree/library/trees/dais/dais-o05x/src/
00437  */
00438 

Copyright 2009, Texas Instruments Incorporated