isphdec1.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_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 
00061 
00062 #define ISPHDEC1_EOK       XDM_EOK             
00063 #define ISPHDEC1_EFAIL     XDM_EFAIL           
00064 #define ISPHDEC1_EUNSUPPORTED XDM_EUNSUPPORTED 
00070 typedef struct ISPHDEC1_Obj {
00071     struct ISPHDEC1_Fxns *fxns;
00072 } ISPHDEC1_Obj;
00073 
00074 
00078 typedef struct ISPHDEC1_Obj  *ISPHDEC1_Handle;
00079 
00080 
00090 typedef struct ISPHDEC1_Params {
00091     XDAS_Int16 size;            
00092     XDAS_Int16 compandingLaw;   
00099     XDAS_Int16 packingType;     
00107     XDAS_Int16 codecSelection;  
00114     XDAS_Int16 bitRate;         
00123     XDAS_Int16 reserved;        
00124     XDAS_Int8  **tablesPtr;     
00127 } ISPHDEC1_Params;
00128 
00129 
00144 typedef struct ISPHDEC1_DynamicParams {
00145     XDAS_Int16 size;            
00146     XDAS_Int16 postFilter;      
00151 } ISPHDEC1_DynamicParams;
00152 
00153 
00161 typedef enum {
00162     ISPHDEC1_FTYPE_SPEECHGOOD = 0,  
00165     ISPHDEC1_FTYPE_SIDUPDATE = 1,   
00166     ISPHDEC1_FTYPE_NODATA = 2,      
00169     ISPHDEC1_FTYPE_SPEECHLOST = 3,  
00170     ISPHDEC1_FTYPE_DEGRADED = 4,    
00173     ISPHDEC1_FTYPE_BAD = 5,         
00174     ISPHDEC1_FTYPE_SIDFIRST = 6,    
00175     ISPHDEC1_FTYPE_SIDBAD = 7,      
00176     ISPHDEC1_FTYPE_ONSET = 8        
00179 } ISPHDEC1_FrameType;
00180 
00181 
00186 typedef struct ISPHDEC1_InArgs {
00187     XDAS_Int16 size;            
00189     XDAS_Int16 frameType;       
00193     XDM1_SingleBufDesc data;    
00196 } ISPHDEC1_InArgs;
00197 
00198 
00206 typedef struct ISPHDEC1_Status {
00207     XDAS_Int16 size;            
00208     XDAS_Int16 postFilter;      
00212     XDAS_Int32 extendedError;   
00213     XDM1_SingleBufDesc data;    
00234     XDAS_Int16 compandingLaw;   
00241     XDAS_Int16 packingType;     
00249     XDM_AlgBufInfo  bufInfo;    
00253     XDAS_Int16 codecSelection;  
00260     XDAS_Int16 bitRate;         
00269 } ISPHDEC1_Status;
00270 
00271 
00280 typedef struct ISPHDEC1_OutArgs {
00281     XDAS_Int16 size;            
00282     XDAS_Int16 dataSize;        
00283     XDAS_Int32 extendedError;   
00284 } ISPHDEC1_OutArgs;
00285 
00286 
00297 typedef  IALG_Cmd ISPHDEC1_Cmd;
00298 
00299 
00303 typedef struct ISPHDEC1_Fxns {
00304     IALG_Fxns   ialg;             
00381     XDAS_Int32 (*process)(ISPHDEC1_Handle handle,
00382         XDM1_SingleBufDesc *inBuf, XDM1_SingleBufDesc *outBuf,
00383         ISPHDEC1_InArgs *inArgs, ISPHDEC1_OutArgs *outArgs);
00384 
00385 
00421     XDAS_Int32 (*control)(ISPHDEC1_Handle handle, ISPHDEC1_Cmd id,
00422         ISPHDEC1_DynamicParams *params, ISPHDEC1_Status *status);
00423 
00424 } ISPHDEC1_Fxns;
00425 
00426 
00429 #ifdef __cplusplus
00430 }
00431 #endif
00432 
00433 #endif
00434 /*
00435  *  @(#) ti.xdais.dm; 1, 0, 7,1; 6-19-2012 17:57:46; /db/wtree/library/trees/dais/dais-w06/src/ xlibrary
00436 
00437  */
00438 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated