dsp_sub.h
上传用户:luckfish
上传日期:2021-12-16
资源大小:77k
文件大小:2k
源码类别:

语音压缩

开发平台:

Visual C++

  1. /*
  2. 2.4 kbps MELP Proposed Federal Standard speech coder
  3. version 1.2
  4. Copyright (c) 1996, 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. */
  11. /*
  12.   dsp_sub.h: include file 
  13.   
  14. */
  15. /* External function definitions */
  16. void autocorr(float input[], float r[], int order, int npts);
  17. void envelope(float input[], float prev_in, float output[], int npts);
  18. void fill(float output[], float fillval, int npts);
  19. void interp_array(float prev[],float curr[],float out[],float ifact,int size);
  20. float median(float input[], int npts);
  21. void  pack_code(int code,unsigned int **p_ch_beg,int *p_ch_bit,int numbits,int size);
  22. float peakiness(float input[], int npts);
  23. void polflt(float input[], float coeff[], float output[], int order,int npts);
  24. void quant_u(float *p_data, int *p_index, float qmin, float qmax, int nlev);
  25. void quant_u_dec(int index, float *p_data,float qmin, float qmax, int nlev);
  26. void rand_num(float output[],float amplitude, int npts);
  27. int unpack_code(unsigned int **p_ch_beg,int *p_ch_bit,int *p_code,int numbits,int wsize,unsigned int erase_mask);
  28. void window(float input[], float win_cof[], float output[], int npts);
  29. void zerflt(float input[], float coeff[], float output[], int order,int npts);
  30. int readbl(float input[], FILE *fp_in, int size);
  31. void writebl(float output[], FILE *fp_out, int size);