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   PacketVideo Corp.
21   MP3 Decoder Library
22
23   Filename: pvmp3_stereo_proc.h
24
25   Date: 09/21/2007
26
27------------------------------------------------------------------------------
28 REVISION HISTORY
29
30 Description:
31
32------------------------------------------------------------------------------
33 INCLUDE DESCRIPTION
34
35------------------------------------------------------------------------------
36*/
37
38/*----------------------------------------------------------------------------
39; CONTINUE ONLY IF NOT ALREADY DEFINED
40----------------------------------------------------------------------------*/
41#ifndef PVMP3_STEREO_PROC_H
42#define PVMP3_STEREO_PROC_H
43
44/*----------------------------------------------------------------------------
45; INCLUDES
46----------------------------------------------------------------------------*/
47
48#include "pvmp3_dec_defs.h"
49#include "pvmp3_audio_type_defs.h"
50
51/*----------------------------------------------------------------------------
52; MACROS
53; Define module specific macros here
54----------------------------------------------------------------------------*/
55
56/*----------------------------------------------------------------------------
57; DEFINES
58; Include all pre-processor statements here.
59----------------------------------------------------------------------------*/
60
61/*----------------------------------------------------------------------------
62; EXTERNAL VARIABLES REFERENCES
63; Declare variables used in this module but defined elsewhere
64----------------------------------------------------------------------------*/
65
66/*----------------------------------------------------------------------------
67; SIMPLE TYPEDEF'S
68----------------------------------------------------------------------------*/
69
70/*----------------------------------------------------------------------------
71; ENUMERATED TYPEDEF'S
72----------------------------------------------------------------------------*/
73
74/*----------------------------------------------------------------------------
75; STRUCTURES TYPEDEF'S
76----------------------------------------------------------------------------*/
77
78/*----------------------------------------------------------------------------
79; GLOBAL FUNCTION DEFINITIONS
80; Function Prototype declaration
81----------------------------------------------------------------------------*/
82
83#ifdef __cplusplus
84extern "C"
85{
86#endif
87
88
89    void pvmp3_stereo_proc(int32 xr[SUBBANDS_NUMBER*FILTERBANK_BANDS],
90    int32 xl[SUBBANDS_NUMBER*FILTERBANK_BANDS],
91    mp3ScaleFactors *scalefac,
92    granuleInfo *gr_info,
93    int32 used_freq_lines,
94    mp3Header *info);
95
96    void pvmp3_st_intensity(int32 xr[SUBBANDS_NUMBER*FILTERBANK_BANDS],
97                            int32 xl[SUBBANDS_NUMBER*FILTERBANK_BANDS],
98                            int32 is_pos,
99                            int32 Start,
100                            int32 Number);
101
102    void pvmp3_st_mid_side(int32 xr[SUBBANDS_NUMBER*FILTERBANK_BANDS],
103                           int32 xl[SUBBANDS_NUMBER*FILTERBANK_BANDS],
104                           int32 Start,
105                           int32 Number);
106#ifdef __cplusplus
107}
108#endif
109
110/*----------------------------------------------------------------------------
111; END
112----------------------------------------------------------------------------*/
113#endif
114
115