XDAIS
dais-x04
Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
packages
ti
xdais
dm
iauddec1.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2006-2012, Texas Instruments Incorporated
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* * Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* * Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* * Neither the name of Texas Instruments Incorporated nor the names of
17
* its contributors may be used to endorse or promote products derived
18
* from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*
32
*/
33
47
#ifndef ti_xdais_dm_IAUDDEC1_
48
#define ti_xdais_dm_IAUDDEC1_
49
50
#include <
ti/xdais/ialg.h
>
51
#include <
ti/xdais/xdas.h
>
52
#include "
xdm.h
"
53
#include "
iaudio.h
"
54
55
#ifdef __cplusplus
56
extern
"C"
{
57
#endif
58
61
62
#define IAUDDEC1_EOK XDM_EOK
63
#define IAUDDEC1_EFAIL XDM_EFAIL
64
#define IAUDDEC1_EUNSUPPORTED XDM_EUNSUPPORTED
70
typedef struct IAUDDEC1_Obj {
71
struct
IAUDDEC1_Fxns
*
fxns
;
72
}
IAUDDEC1_Obj
;
73
74
78
typedef
struct
IAUDDEC1_Obj
*
IAUDDEC1_Handle
;
79
80
87
typedef
struct
IAUDDEC1_Params
{
88
XDAS_Int32
size
;
89
XDAS_Int32
outputPCMWidth
;
90
XDAS_Int32
pcmFormat
;
94
XDAS_Int32
dataEndianness
;
98
}
IAUDDEC1_Params
;
99
100
115
typedef
struct
IAUDDEC1_DynamicParams
{
116
XDAS_Int32
size
;
117
XDAS_Int32
downSampleSbrFlag
;
122
}
IAUDDEC1_DynamicParams
;
123
124
133
typedef
struct
IAUDDEC1_InArgs
{
134
XDAS_Int32
size
;
135
XDAS_Int32
numBytes
;
138
XDAS_Int32
desiredChannelMode
;
142
XDAS_Int32
lfeFlag
;
148
}
IAUDDEC1_InArgs
;
149
150
158
typedef
struct
IAUDDEC1_Status
{
159
XDAS_Int32
size
;
160
XDAS_Int32
extendedError
;
161
XDM1_SingleBufDesc
data
;
177
XDAS_Int32
validFlag
;
200
XDAS_Int32
lfeFlag
;
208
XDAS_Int32
bitRate
;
209
XDAS_Int32
sampleRate
;
214
XDAS_Int32
channelMode
;
218
XDAS_Int32
pcmFormat
;
222
XDAS_Int32
numSamples
;
223
XDAS_Int32
outputBitsPerSample
;
228
XDM_AlgBufInfo
bufInfo
;
232
XDAS_Int32
dualMonoMode
;
237
}
IAUDDEC1_Status
;
238
239
248
typedef
struct
IAUDDEC1_OutArgs
{
249
XDAS_Int32
size
;
250
XDAS_Int32
extendedError
;
251
XDAS_Int32
bytesConsumed
;
254
XDAS_Int32
numSamples
;
255
XDAS_Int32
channelMode
;
259
XDAS_Int32
lfeFlag
;
267
XDAS_Int32
dualMonoMode
;
272
XDAS_Int32
sampleRate
;
277
}
IAUDDEC1_OutArgs
;
278
279
290
typedef
IALG_Cmd
IAUDDEC1_Cmd
;
291
292
296
typedef
struct
IAUDDEC1_Fxns
{
297
IALG_Fxns
ialg
;
368
XDAS_Int32
(*
process
)(IAUDDEC1_Handle handle,
XDM1_BufDesc
*inBufs,
369
XDM1_BufDesc
*outBufs,
IAUDDEC1_InArgs
*inArgs,
370
IAUDDEC1_OutArgs
*outArgs);
371
372
408
XDAS_Int32
(*
control
)(IAUDDEC1_Handle handle,
IAUDDEC1_Cmd
id,
409
IAUDDEC1_DynamicParams
*params,
IAUDDEC1_Status
*status);
410
411
}
IAUDDEC1_Fxns
;
412
413
416
#ifdef __cplusplus
417
}
418
#endif
419
420
#endif
Copyright 2013, Texas Instruments Incorporated