1/******************************************************************************
2 *
3 *  Copyright (C) 1999-2012 Broadcom Corporation
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
19/******************************************************************************
20 *
21 *  Function declarations.
22 *
23 ******************************************************************************/
24
25#ifndef SBC_FUNCDECLARE_H
26#define SBC_FUNCDECLARE_H
27
28#include "sbc_encoder.h"
29/* Global data */
30#if (SBC_IS_64_MULT_IN_WINDOW_ACCU == FALSE)
31extern const int16_t gas32CoeffFor4SBs[];
32extern const int16_t gas32CoeffFor8SBs[];
33#else
34extern const int32_t gas32CoeffFor4SBs[];
35extern const int32_t gas32CoeffFor8SBs[];
36#endif
37
38/* Global functions*/
39
40extern void sbc_enc_bit_alloc_mono(SBC_ENC_PARAMS* CodecParams);
41extern void sbc_enc_bit_alloc_ste(SBC_ENC_PARAMS* CodecParams);
42
43extern void SbcAnalysisInit(void);
44
45extern void SbcAnalysisFilter4(SBC_ENC_PARAMS* strEncParams, int16_t* input);
46extern void SbcAnalysisFilter8(SBC_ENC_PARAMS* strEncParams, int16_t* input);
47
48extern void SBC_FastIDCT8(int32_t* pInVect, int32_t* pOutVect);
49extern void SBC_FastIDCT4(int32_t* x0, int32_t* pOutVect);
50
51extern uint32_t EncPacking(SBC_ENC_PARAMS* strEncParams, uint8_t* output);
52extern void EncQuantizer(SBC_ENC_PARAMS*);
53#if (SBC_DSP_OPT == TRUE)
54int32_t SBC_Multiply_32_16_Simplified(int32_t s32In2Temp, int32_t s32In1Temp);
55#endif
56#endif
57