lpc.h
上传用户:cxx_68
上传日期:2021-02-21
资源大小:161k
文件大小:2k
源码类别:

语音压缩

开发平台:

Visual C++

  1. /*
  2. 2.4 kbps MELP Proposed Federal Standard speech coder
  3. Fixed-point C code, version 1.0
  4. Copyright (c) 1998, Texas Instruments, Inc.  
  5. Texas Instruments has intellectual property rights on the MELP
  6. algorithm.  The Texas Instruments contact for licensing issues for
  7. commercial and non-government use is William Gordon, Director,
  8. Government Contracts, Texas Instruments Incorporated, Semiconductor
  9. Group (phone 972 480 7442).
  10. The fixed-point version of the voice codec Mixed Excitation Linear
  11. Prediction (MELP) is based on specifications on the C-language software
  12. simulation contained in GSM 06.06 which is protected by copyright and
  13. is the property of the European Telecommunications Standards Institute
  14. (ETSI). This standard is available from the ETSI publication office
  15. tel. +33 (0)4 92 94 42 58. ETSI has granted a license to United States
  16. Department of Defense to use the C-language software simulation contained
  17. in GSM 06.06 for the purposes of the development of a fixed-point
  18. version of the voice codec Mixed Excitation Linear Prediction (MELP).
  19. Requests for authorization to make other use of the GSM 06.06 or
  20. otherwise distribute or modify them need to be addressed to the ETSI
  21. Secretariat fax: +33 493 65 47 16.
  22. */
  23. /* 
  24.    lpc.h     LPC include file.
  25. */
  26. #ifndef _lpc_h
  27. #define _lpc_h_
  28. /* better names */
  29. #define lpc_autocorr               lpc_acor
  30. #define lpc_bw_expand              lpc_bwex
  31. #define lpc_lag_window             lpc_lagw
  32. #define lpc_schur                  lpc_schr
  33. #define lpc_clamp                  lpc_clmp
  34. #define lpc_synthesis              lpc_syn
  35. #define LPC_WINDOW_EXPONENTIAL 0
  36. #define LPC_WINDOW_GAUSSIAN    1
  37. /* autocorrelation routine */
  38. void lpc_acor(Shortword input[],Shortword win_cof[],
  39.    Shortword r[],Shortword hf_correction,
  40.    Shortword lag_win,Shortword order,Shortword npts);
  41. Longword lpc_aejw(Shortword *a,Shortword w, Shortword p);
  42. Shortword lpc_bwex(Shortword *a, Shortword *aw, Shortword gamma, Shortword p);
  43. Shortword lpc_clmp(Shortword *w, Shortword delta, Shortword p);
  44. Shortword lpc_schr(Shortword *r, Shortword *a, Shortword *k_tmp, 
  45.    Shortword p);
  46. Shortword lpc_refl2pred(Shortword *k,Shortword *a,Shortword p);
  47. Shortword lpc_pred2lsp(Shortword *a,Shortword *w,Shortword p);
  48. Shortword lpc_pred2refl(Shortword *a,Shortword *k,Shortword p);
  49. Shortword lpc_lsp2pred(Shortword *w,Shortword *a,Shortword p);
  50. Shortword lpc_syn(Shortword *x,Shortword *y,Shortword *a,Shortword p,
  51.   Shortword n);
  52. #endif