![]() |
![]() |
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_IAUDDEC1_ 00048 #define ti_xdais_dm_IAUDDEC1_ 00049 00050 #include <ti/xdais/ialg.h> 00051 #include <ti/xdais/xdas.h> 00052 #include "xdm.h" 00053 #include "iaudio.h" 00054 00055 #ifdef __cplusplus 00056 extern "C" { 00057 #endif 00058 00061 00062 #define IAUDDEC1_EOK XDM_EOK 00063 #define IAUDDEC1_EFAIL XDM_EFAIL 00064 #define IAUDDEC1_EUNSUPPORTED XDM_EUNSUPPORTED 00070 typedef struct IAUDDEC1_Obj { 00071 struct IAUDDEC1_Fxns *fxns; 00072 } IAUDDEC1_Obj; 00073 00074 00078 typedef struct IAUDDEC1_Obj *IAUDDEC1_Handle; 00079 00080 00087 typedef struct IAUDDEC1_Params { 00088 XDAS_Int32 size; 00089 XDAS_Int32 outputPCMWidth; 00090 XDAS_Int32 pcmFormat; 00094 XDAS_Int32 dataEndianness; 00098 } IAUDDEC1_Params; 00099 00100 00115 typedef struct IAUDDEC1_DynamicParams { 00116 XDAS_Int32 size; 00117 XDAS_Int32 downSampleSbrFlag; 00122 } IAUDDEC1_DynamicParams; 00123 00124 00133 typedef struct IAUDDEC1_InArgs { 00134 XDAS_Int32 size; 00135 XDAS_Int32 numBytes; 00138 XDAS_Int32 desiredChannelMode; 00142 XDAS_Int32 lfeFlag; 00148 } IAUDDEC1_InArgs; 00149 00150 00158 typedef struct IAUDDEC1_Status { 00159 XDAS_Int32 size; 00160 XDAS_Int32 extendedError; 00161 XDM1_SingleBufDesc data; 00177 XDAS_Int32 validFlag; 00200 XDAS_Int32 lfeFlag; 00208 XDAS_Int32 bitRate; 00209 XDAS_Int32 sampleRate; 00214 XDAS_Int32 channelMode; 00218 XDAS_Int32 pcmFormat; 00222 XDAS_Int32 numSamples; 00223 XDAS_Int32 outputBitsPerSample; 00228 XDM_AlgBufInfo bufInfo; 00232 XDAS_Int32 dualMonoMode; 00237 } IAUDDEC1_Status; 00238 00239 00248 typedef struct IAUDDEC1_OutArgs { 00249 XDAS_Int32 size; 00250 XDAS_Int32 extendedError; 00251 XDAS_Int32 bytesConsumed; 00254 XDAS_Int32 numSamples; 00255 XDAS_Int32 channelMode; 00259 XDAS_Int32 lfeFlag; 00267 XDAS_Int32 dualMonoMode; 00272 XDAS_Int32 sampleRate; 00277 } IAUDDEC1_OutArgs; 00278 00279 00290 typedef IALG_Cmd IAUDDEC1_Cmd; 00291 00292 00296 typedef struct IAUDDEC1_Fxns { 00297 IALG_Fxns ialg; 00368 XDAS_Int32 (*process)(IAUDDEC1_Handle handle, XDM1_BufDesc *inBufs, 00369 XDM1_BufDesc *outBufs, IAUDDEC1_InArgs *inArgs, 00370 IAUDDEC1_OutArgs *outArgs); 00371 00372 00408 XDAS_Int32 (*control)(IAUDDEC1_Handle handle, IAUDDEC1_Cmd id, 00409 IAUDDEC1_DynamicParams *params, IAUDDEC1_Status *status); 00410 00411 } IAUDDEC1_Fxns; 00412 00413 00416 #ifdef __cplusplus 00417 } 00418 #endif 00419 00420 #endif 00421 /* 00422 * @(#) ti.xdais.dm; 1, 0, 7,1; 6-19-2012 17:57:45; /db/wtree/library/trees/dais/dais-w06/src/ xlibrary 00423 00424 */ 00425