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_DEFINITIONS_H
21 #define IXHEAACD_DEFINITIONS_H
22 
23 #define LIBNAME "IA_XHEAAC_DEC"
24 #define LIBVERSION "1.0"
25 
26 #define LIB_APIVERSION_MAJOR 1
27 #define LIB_APIVERSION_MINOR 10
28 
29 #define LIB_APIVERSION \
30   IA_MAKE_VERSION_STR(LIB_APIVERSION_MAJOR, LIB_APIVERSION_MINOR)
31 
32 #define IA_ENHAACPLUS_DEC_PERSIST_IDX (0)
33 #define IA_ENHAACPLUS_DEC_SCRATCH_IDX (1)
34 #define IA_ENHAACPLUS_DEC_INPUT_IDX (2)
35 #define IA_ENHAACPLUS_DEC_OUTPUT_IDX (3)
36 
37 #define IA_MPS_DEC_PERSIST_IDX (0)
38 #define IA_MPS_DEC_SCRATCH_IDX (1)
39 #define IA_MPS_DEC_INPUT_IDX (2)
40 #define IA_MPS_DEC_MPS_INPUT_IDX (3)
41 #define IA_MPS_DEC_OUTPUT_IDX (4)
42 #define IA_MAX_PREROLL_FRAMES (4)
43 #define IA_MAX_OUTPUT_PCM_SIZE (3)
44 #define IA_MAX_USAC_CH (2)
45 #define IA_MAX_OUT_SAMPLES_PER_FRAME (4096)
46 
47 #define IA_ENHAACPLUS_DEC_INP_BUF_SIZE (6144 / 8)
48 
49 #define IA_ENHAACPLUS_DEC_SAMPLES_PER_FRAME (1024)
50 
51 #define IA_ENHAACPLUS_DEC_OUT_BUF_SIZE                                     \
52   (IA_MAX_USAC_CH * IA_MAX_PREROLL_FRAMES * IA_MAX_OUT_SAMPLES_PER_FRAME * \
53    IA_MAX_OUTPUT_PCM_SIZE)
54 
55 #define IA_MPS_DEC_INP_BUF_SIZE (0)
56 #define IA_MPS_DEC_OUT_BUF_SIZE (0)
57 
58 #define IA_ENHAACPLUS_DEC_MAX_CHANNEL (2)
59 #define IA_ENHAACPLUS_DEC_FRAME_LENGTH (1024)
60 
61 #endif /* __DEFINITIONS_H__ */
62