xref: /aosp_15_r20/external/libxaac/decoder/ixheaacd_windows.h (revision 15dc779a375ca8b5125643b829a8aa4b70d7f451)
1*15dc779aSAndroid Build Coastguard Worker /******************************************************************************
2*15dc779aSAndroid Build Coastguard Worker  *                                                                            *
3*15dc779aSAndroid Build Coastguard Worker  * Copyright (C) 2018 The Android Open Source Project
4*15dc779aSAndroid Build Coastguard Worker  *
5*15dc779aSAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
6*15dc779aSAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
7*15dc779aSAndroid Build Coastguard Worker  * You may obtain a copy of the License at:
8*15dc779aSAndroid Build Coastguard Worker  *
9*15dc779aSAndroid Build Coastguard Worker  * http://www.apache.org/licenses/LICENSE-2.0
10*15dc779aSAndroid Build Coastguard Worker  *
11*15dc779aSAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
12*15dc779aSAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
13*15dc779aSAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*15dc779aSAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
15*15dc779aSAndroid Build Coastguard Worker  * limitations under the License.
16*15dc779aSAndroid Build Coastguard Worker  *
17*15dc779aSAndroid Build Coastguard Worker  *****************************************************************************
18*15dc779aSAndroid Build Coastguard Worker  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19*15dc779aSAndroid Build Coastguard Worker */
20*15dc779aSAndroid Build Coastguard Worker #ifndef IXHEAACD_WINDOWS_H
21*15dc779aSAndroid Build Coastguard Worker #define IXHEAACD_WINDOWS_H
22*15dc779aSAndroid Build Coastguard Worker 
23*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_sine_win_128[128];
24*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_sine_win_1024[1024];
25*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_sine_win_64[64];
26*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_sine_win_768[768];
27*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_sine_win_192[192];
28*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_sine_win_96[96];
29*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_sine_win_256[256];
30*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win120[120];
31*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win128[128];
32*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win960[960];
33*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win1024[1024];
34*15dc779aSAndroid Build Coastguard Worker extern const WORD32 kbd_win256[256];
35*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win4[4];
36*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win16[16];
37*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win_64[64];
38*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win768[768];
39*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win192[192];
40*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win96[96];
41*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ixheaacd_kbd_win48[48];
42*15dc779aSAndroid Build Coastguard Worker 
43*15dc779aSAndroid Build Coastguard Worker extern const FLOAT32 ixheaacd_sine_window96[96];
44*15dc779aSAndroid Build Coastguard Worker extern const FLOAT32 ixheaacd_sine_window128[128];
45*15dc779aSAndroid Build Coastguard Worker extern const FLOAT32 ixheaacd_sine_window192[192];
46*15dc779aSAndroid Build Coastguard Worker extern const FLOAT32 ixheaacd__sine_window256[256];
47*15dc779aSAndroid Build Coastguard Worker 
48*15dc779aSAndroid Build Coastguard Worker WORD32 ixheaacd_calc_window(WORD32 **win, WORD32 len, WORD32 wfun_select, WORD32 ec_flag);
49*15dc779aSAndroid Build Coastguard Worker 
50*15dc779aSAndroid Build Coastguard Worker VOID ixheaacd_acelp_imdct(WORD32 *imdct_in, WORD32 npoints, WORD8 *qshift, WORD32 *scratch);
51*15dc779aSAndroid Build Coastguard Worker 
52*15dc779aSAndroid Build Coastguard Worker typedef struct {
53*15dc779aSAndroid Build Coastguard Worker   WORD32 lfac;
54*15dc779aSAndroid Build Coastguard Worker   WORD32 n_flat_ls;
55*15dc779aSAndroid Build Coastguard Worker   WORD32 n_trans_ls;
56*15dc779aSAndroid Build Coastguard Worker   WORD32 n_long;
57*15dc779aSAndroid Build Coastguard Worker   WORD32 n_short;
58*15dc779aSAndroid Build Coastguard Worker 
59*15dc779aSAndroid Build Coastguard Worker } offset_lengths;
60*15dc779aSAndroid Build Coastguard Worker 
61*15dc779aSAndroid Build Coastguard Worker #endif
62