xref: /aosp_15_r20/external/libxaac/decoder/ixheaacd_definitions.h (revision 15dc779a375ca8b5125643b829a8aa4b70d7f451)
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_MAX_PREROLL_FRAMES (4)
38 #define IA_MAX_OUTPUT_PCM_SIZE (3)
39 #define IA_MAX_USAC_CH (2)
40 #define IA_MAX_OUT_SAMPLES_PER_FRAME (4096)
41 
42 #define IA_ENHAACPLUS_DEC_INP_BUF_SIZE (6144 / 8)
43 
44 #define IA_ENHAACPLUS_DEC_SAMPLES_PER_FRAME (1024)
45 
46 #define IA_ENHAACPLUS_DEC_OUT_BUF_SIZE                                     \
47   (IA_MAX_USAC_CH * IA_MAX_PREROLL_FRAMES * IA_MAX_OUT_SAMPLES_PER_FRAME * \
48    IA_MAX_OUTPUT_PCM_SIZE)
49 
50 #define IA_ENHAACPLUS_DEC_MAX_CHANNEL (2)
51 #define IA_ENHAACPLUS_DEC_FRAME_LENGTH (1024)
52 
53 #endif /* IXHEAACD_DEFINITIONS_H */
54