sbc_enc_func_declare.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. * Function declarations.
  21. *
  22. ******************************************************************************/
  23. #ifndef SBC_FUNCDECLARE_H
  24. #define SBC_FUNCDECLARE_H
  25. /*#include "sbc_encoder.h"*/
  26. /* Global data */
  27. #if (SBC_IS_64_MULT_IN_WINDOW_ACCU == FALSE)
  28. extern const SINT16 gas32CoeffFor4SBs[];
  29. extern const SINT16 gas32CoeffFor8SBs[];
  30. #else
  31. extern const SINT32 gas32CoeffFor4SBs[];
  32. extern const SINT32 gas32CoeffFor8SBs[];
  33. #endif
  34. /* Global functions*/
  35. extern void sbc_enc_bit_alloc_mono(SBC_ENC_PARAMS *CodecParams);
  36. extern void sbc_enc_bit_alloc_ste(SBC_ENC_PARAMS *CodecParams);
  37. extern void SbcAnalysisInit (void);
  38. extern void SbcAnalysisFilter4(SBC_ENC_PARAMS *strEncParams);
  39. extern void SbcAnalysisFilter8(SBC_ENC_PARAMS *strEncParams);
  40. extern void SBC_FastIDCT8 (SINT32 *pInVect, SINT32 *pOutVect);
  41. extern void SBC_FastIDCT4 (SINT32 *x0, SINT32 *pOutVect);
  42. extern void EncPacking(SBC_ENC_PARAMS *strEncParams);
  43. extern void EncQuantizer(SBC_ENC_PARAMS *);
  44. #if (SBC_DSP_OPT==TRUE)
  45. SINT32 SBC_Multiply_32_16_Simplified(SINT32 s32In2Temp,SINT32 s32In1Temp);
  46. #endif
  47. #endif