1/* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 * express or implied.
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
17 */
18/*
19
20 Filename: s_sbr_channel.h
21 Funtions:
22
23------------------------------------------------------------------------------
24 REVISION HISTORY
25
26
27 Who:                                   Date: MM/DD/YYYY
28 Description:
29------------------------------------------------------------------------------
30
31
32----------------------------------------------------------------------------
33; CONTINUE ONLY IF NOT ALREADY DEFINED
34----------------------------------------------------------------------------*/
35#ifndef S_SBR_CHANNEL_H
36#define S_SBR_CHANNEL_H
37
38/*----------------------------------------------------------------------------
39; INCLUDES
40----------------------------------------------------------------------------*/
41
42#include    "s_sbr_frame_data.h"
43#include    "e_sbr_sync_state.h"
44
45#ifdef PARAMETRICSTEREO
46#include "s_ps_dec.h"
47
48#endif
49/*----------------------------------------------------------------------------
50; MACROS
51; Define module specific macros here
52----------------------------------------------------------------------------*/
53
54/*----------------------------------------------------------------------------
55; DEFINES
56; Include all pre-processor statements here.
57----------------------------------------------------------------------------*/
58#define MAXNRELEMENTS 1
59#define MAXNRSBRCHANNELS (MAXNRELEMENTS*2)
60
61#ifdef PARAMETRICSTEREO
62#define MAXNRQMFCHANNELS MAXNRSBRCHANNELS
63#else
64#define MAXNRQMFCHANNELS MAXNRSBRCHANNELS
65#endif
66
67
68/*----------------------------------------------------------------------------
69; EXTERNAL VARIABLES REFERENCES
70; Declare variables used in this module but defined elsewhere
71----------------------------------------------------------------------------*/
72
73/*----------------------------------------------------------------------------
74; SIMPLE TYPEDEF'S
75----------------------------------------------------------------------------*/
76
77/*----------------------------------------------------------------------------
78; ENUMERATED TYPEDEF'S
79----------------------------------------------------------------------------*/
80
81/*----------------------------------------------------------------------------
82; STRUCTURES TYPEDEF'S
83----------------------------------------------------------------------------*/
84typedef struct
85{
86    Int32 outFrameSize;
87    SBR_SYNC_STATE syncState;
88    SBR_FRAME_DATA frameData;
89
90} SBR_CHANNEL;
91
92typedef struct
93{
94    SBR_CHANNEL SbrChannel[MAXNRSBRCHANNELS];
95    Int32 setStreamType;
96#ifdef PARAMETRICSTEREO
97    HANDLE_PS_DEC hParametricStereoDec;
98    STRUCT_PS_DEC ParametricStereoDec;
99#endif
100
101} SBRDECODER_DATA;
102
103
104/*----------------------------------------------------------------------------
105; GLOBAL FUNCTION DEFINITIONS
106; Function Prototype declaration
107----------------------------------------------------------------------------*/
108
109
110/*----------------------------------------------------------------------------
111; END
112----------------------------------------------------------------------------*/
113#endif
114
115
116