• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *                                                                            *
3  * Copyright (C) 2023 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_EC_DEFINES_H
21 #define IXHEAACD_EC_DEFINES_H
22 
23 #define NO_TRANSITION (0)
24 #define TRANS_SHORT_LONG (1)
25 
26 #define FRAME_OKAY (0)
27 #define FRAME_CONCEAL_SINGLE (1)
28 #define FRAME_FADE (2)
29 #define FRAME_MUTE (3)
30 #define MAX_FADE_FRAMES (8)
31 
32 #define MAX_SFB_EC (51)
33 #define MAX_SPEC_SCALE_LEN (8)
34 #define MAX_SPEC_SCALE_LEN_EC (128)
35 
36 #define BETA (0.25f)
37 #define ONE_BETA (0.75f)
38 #define BFI_FAC (0.90f)
39 #define ONE_BFI_FAC (0.10f)
40 
41 #define FRAME_OK (0)
42 #define FRAME_ERROR (1)
43 #define FRAME_ERROR_ALLSLOTS (2)
44 
45 #define CONCEAL_NOT_DEFINED ((UWORD8)-1)
46 
47 #endif /* IXHEAACD_EC_DEFINES_H */
48