1 /****************************************************************************** 2 * 3 * Copyright 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) 31 extern const int16_t gas32CoeffFor4SBs[]; 32 extern const int16_t gas32CoeffFor8SBs[]; 33 #else 34 extern const int32_t gas32CoeffFor4SBs[]; 35 extern const int32_t gas32CoeffFor8SBs[]; 36 #endif 37 38 /* Global functions*/ 39 40 extern void sbc_enc_bit_alloc_mono(SBC_ENC_PARAMS* CodecParams); 41 extern void sbc_enc_bit_alloc_ste(SBC_ENC_PARAMS* CodecParams); 42 43 extern void SbcAnalysisInit(void); 44 45 extern void SbcAnalysisFilter4(SBC_ENC_PARAMS* strEncParams, int16_t* input); 46 extern void SbcAnalysisFilter8(SBC_ENC_PARAMS* strEncParams, int16_t* input); 47 48 extern void SBC_FastIDCT8(int32_t* pInVect, int32_t* pOutVect); 49 extern void SBC_FastIDCT4(int32_t* x0, int32_t* pOutVect); 50 51 extern uint32_t EncPacking(SBC_ENC_PARAMS* strEncParams, uint8_t* output); 52 extern void EncQuantizer(SBC_ENC_PARAMS*); 53 #if (SBC_DSP_OPT == TRUE) 54 int32_t SBC_Multiply_32_16_Simplified(int32_t s32In2Temp, int32_t s32In1Temp); 55 #endif 56 #endif 57