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

语音压缩

开发平台:

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.   dsp_sub.h: include file 
  25.   
  26. */
  27. #ifndef _dsp_sub_h
  28. #define _dsp_sub_h_
  29. /* External function definitions */
  30. void envelope(Shortword input[], Shortword prev_in, Shortword output[], 
  31.       Shortword npts);
  32. void fill(Shortword output[], Shortword fillval, Shortword npts);
  33. void interp_array(Shortword prev[],Shortword curr[],Shortword out[],
  34.   Shortword ifact,Shortword size);
  35. Shortword median(Shortword input[], Shortword npts);
  36. void pack_code(Shortword code,UShortword **p_ch_beg,Shortword *p_ch_bit, 
  37.        Shortword numbits,Shortword wsize);
  38. Shortword peakiness(Shortword input[], Shortword npts);
  39. void quant_u(Shortword *p_data, Shortword *p_index, Shortword qmin, 
  40.      Shortword qmax, Shortword nlev, Shortword nlev_q, 
  41.      Shortword double_flag, Shortword scale);
  42. void quant_u_dec(Shortword index, Shortword *p_data, Shortword qmin, 
  43.  Shortword qmax, Shortword nlev_q, Shortword scale);
  44. void rand_num(Shortword output[], Shortword amplitude, Shortword npts);
  45. Shortword readbl(Shortword input[], FILE *fp_in, Shortword size);
  46. Shortword unpack_code(UShortword **p_ch_beg, Shortword *p_ch_bit, 
  47.       Shortword *p_code, Shortword numbits, Shortword wsize, 
  48.       UShortword erase_mask);
  49. void window(Shortword input[], Shortword win_cof[], 
  50.     Shortword output[], Shortword npts);
  51. void window_Q(Shortword input[], Shortword win_cof[], 
  52.       Shortword output[], Shortword npts, Shortword Qin);
  53. void writebl(Shortword output[], FILE *fp_out, Shortword size);
  54. void zerflt(Shortword input[], Shortword coeff[], Shortword output[], 
  55.     Shortword order, Shortword npts);
  56. void zerflt_Q(Shortword input[], Shortword coeff[], Shortword output[], 
  57.       Shortword order, Shortword npts, Shortword Q_coeff);
  58. void iir_2nd_d(Shortword input[],Shortword den[],Shortword num[],
  59.        Shortword output[],Shortword delin[],Shortword delout_hi[],
  60.        Shortword delout_lo[],Shortword npts);
  61. void iir_2nd_s(Shortword input[],Shortword den[],Shortword num[],
  62.        Shortword output[],Shortword delin[],Shortword delout[],
  63.        Shortword npts);
  64. #endif