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: calc_sbr_envelope.h
21 Funtions:
22    get_dse
23
24------------------------------------------------------------------------------
25 REVISION HISTORY
26
27
28 Who:                                   Date: MM/DD/YYYY
29 Description:
30------------------------------------------------------------------------------
31SC 29 Software Copyright Licencing Disclaimer:
32
33This software module was originally developed by
34  Coding Technologies
35
36and edited by
37  -
38
39in the course of development of the ISO/IEC 13818-7 and ISO/IEC 14496-3
40standards for reference purposes and its performance may not have been
41optimized. This software module is an implementation of one or more tools as
42specified by the ISO/IEC 13818-7 and ISO/IEC 14496-3 standards.
43ISO/IEC gives users free license to this software module or modifications
44thereof for use in products claiming conformance to audiovisual and
45image-coding related ITU Recommendations and/or ISO/IEC International
46Standards. ISO/IEC gives users the same free license to this software module or
47modifications thereof for research purposes and further ISO/IEC standardisation.
48Those intending to use this software module in products are advised that its
49use may infringe existing patents. ISO/IEC have no liability for use of this
50software module or modifications thereof. Copyright is not released for
51products that do not conform to audiovisual and image-coding related ITU
52Recommendations and/or ISO/IEC International Standards.
53The original developer retains full right to modify and use the code for its
54own purpose, assign or donate the code to a third party and to inhibit third
55parties from using the code for products that do not conform to audiovisual and
56image-coding related ITU Recommendations and/or ISO/IEC International Standards.
57This copyright notice must be included in all copies or derivative works.
58Copyright (c) ISO/IEC 2002.
59
60 $Id: ct_envcalc.h,v 1.3 2002/11/29 16:11:49 kaehleof Exp $
61*/
62
63/*----------------------------------------------------------------------------
64; CONTINUE ONLY IF NOT ALREADY DEFINED
65----------------------------------------------------------------------------*/
66#ifndef CALCULATE_SBR_ENVELOPE_H
67#define CALCULATE_SBR_ENVELOPE_H
68
69
70/*----------------------------------------------------------------------------
71; INCLUDES
72----------------------------------------------------------------------------*/
73#include    "s_sbr_frame_data.h"
74#include    "sbr_generate_high_freq.h"
75/*----------------------------------------------------------------------------
76; MACROS
77; Define module specific macros here
78----------------------------------------------------------------------------*/
79#ifdef __cplusplus
80extern "C"
81{
82#endif
83
84    /*----------------------------------------------------------------------------
85    ; DEFINES
86    ; Include all pre-processor statements here.
87    ----------------------------------------------------------------------------*/
88
89    /*----------------------------------------------------------------------------
90    ; EXTERNAL VARIABLES REFERENCES
91    ; Declare variables used in this module but defined elsewhere
92    ----------------------------------------------------------------------------*/
93
94    /*----------------------------------------------------------------------------
95    ; SIMPLE TYPEDEF'S
96    ----------------------------------------------------------------------------*/
97    /*----------------------------------------------------------------------------
98    ; ENUMERATED TYPEDEF'S
99    ----------------------------------------------------------------------------*/
100
101    /*----------------------------------------------------------------------------
102    ; STRUCTURES TYPEDEF'S
103    ----------------------------------------------------------------------------*/
104
105    /*----------------------------------------------------------------------------
106    ; GLOBAL FUNCTION DEFINITIONS
107    ; Function Prototype declaration
108    ----------------------------------------------------------------------------*/
109
110    void calc_sbr_envelope(SBR_FRAME_DATA *frameData,
111    Int32 *aBufR,
112    Int32 *aBufI,
113    Int    freqBandTable1[2][MAX_FREQ_COEFFS + 1],
114    const Int32 *nSfb,
115    Int32   freqBandTable2[MAX_NOISE_COEFFS + 1],
116    Int32   nNBands,
117    Int32   reset,
118    Int32 *degreeAlias,
119    Int32 *harm_index,
120    Int32 *phase_index,
121    Int32 hFp[64],
122    Int32 *sUp,
123    Int32 limSbc[][13],
124    Int32 *gateMode,
125#ifdef HQ_SBR
126    Int32 *fBuf_man[64],
127    Int32 *fBuf_exp[64],
128    Int32 *fBufN_man[64],
129    Int32 *fBufN_exp[64],
130#endif
131    Int32 scratch_mem[][64],
132    struct PATCH Patch,
133    Int32  sqrt_cache[][4],
134    Int32  LC_flag);
135#ifdef __cplusplus
136}
137#endif
138
139/*----------------------------------------------------------------------------
140; END
141----------------------------------------------------------------------------*/
142#endif   /*  CALCULATE_SBR_ENVELOPE_H */
143
144
145