• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *                                                                            *
3  * Copyright (C) 2018 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *****************************************************************************
18  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19 */
20 #ifndef IXHEAACD_VEC_BAISC_OPS_H
21 #define IXHEAACD_VEC_BAISC_OPS_H
22 
23 VOID ixheaacd_combine_fac(WORD32 *src1, WORD32 *src2, WORD32 *dest, WORD32 len,
24                           WORD8 shift1, WORD8 shift2);
25 
26 WORD8 ixheaacd_windowing_long1(WORD32 *src1, WORD32 *src2,
27                                const WORD32 *win_fwd, const WORD32 *win_rev,
28                                WORD32 *dest, WORD32 vlen, WORD8 shift1,
29                                WORD8 shift2);
30 
31 WORD8 ixheaacd_windowing_long2(WORD32 *src1, const WORD32 *win_fwd,
32                                WORD32 *fac_data_out, WORD32 *over_lap,
33                                WORD32 *p_out_buffer,
34                                offset_lengths *ixheaacd_drc_offset,
35                                WORD8 shift1, WORD8 shift2, WORD8 shift3);
36 
37 WORD8 ixheaacd_windowing_long3(WORD32 *src1, const WORD32 *win_fwd,
38                                WORD32 *over_lap, WORD32 *p_out_buffer,
39                                const WORD32 *win_rev,
40                                offset_lengths *ixheaacd_drc_offset,
41                                WORD8 shift1, WORD8 shift2);
42 
43 VOID ixheaacd_windowing_short1(WORD32 *src1, WORD32 *src2, WORD32 *fp,
44                                offset_lengths *ixheaacd_drc_offset,
45                                WORD8 shiftp, WORD8 shift_olap);
46 
47 VOID ixheaacd_windowing_short2(WORD32 *src1, WORD32 *win_fwd, WORD32 *fp,
48                                offset_lengths *ixheaacd_drc_offset,
49                                WORD8 shiftp, WORD8 shift_olap);
50 
51 WORD8 ixheaacd_windowing_short3(WORD32 *src1, WORD32 *win_rev, WORD32 *fp,
52                                 WORD32 nshort, WORD8 shiftp, WORD8 shift_olap);
53 
54 WORD8 ixheaacd_windowing_short4(WORD32 *src1, WORD32 *win_fwd, WORD32 *fp,
55                                 WORD32 *win_fwd1, WORD32 nshort, WORD32 flag,
56                                 WORD8 shiftp, WORD8 shift_olap, WORD8 output_q);
57 
58 VOID ixheaacd_scale_down(WORD32 *dest, WORD32 *src, WORD32 len, WORD8 shift1,
59                          WORD8 shift2);
60 
61 #endif
62