⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vq.h

📁 Melp Federal Vocoder 2.4 kbps low bit rate high qualitytexas instrument Melp encoder decoder c-code
💻 H
字号:
/*

2.4 kbps MELP Proposed Federal Standard speech coder

version 1.2

Copyright (c) 1996, Texas Instruments, Inc.  

Texas Instruments has intellectual property rights on the MELP
algorithm.  The Texas Instruments contact for licensing issues for
commercial and non-government use is William Gordon, Director,
Government Contracts, Texas Instruments Incorporated, Semiconductor
Group (phone 972 480 7442).


*/

/* 
   vq.h     VQ include file.
            (Search/decode/distortion/weighting functions for VQ)

   Copyright (c) 1995 by Texas Instruments Incorporated.  All rights reserved.
*/

#ifndef _vq_h_
#define _vq_h_

float vq_ms4(float *cb, float *u, float *u_est, int *levels, int ma, int stages, int p, float *w, float *u_hat, int *indices, int max_inner);
float *vq_msd2(float *cb, float *u, float *u_est, float *a, int *indices, 
       int *levels, int stages, int p, int conversion);
float *vq_lspw(float *w,float *lsp,float *a,int p);

/* Structure definition */
struct msvq_param {         /* Multistage VQ parameters */
    int num_stages;
    int *num_levels;
    int *num_bits;
    int dimension;
    int num_best;
    int *indices;
    char *fname_cb;
    float *cb;
};

/* External function definitions */

#define msvq_enc(u,w,u_hat,par)\
    vq_ms4(par.cb,u,(float*)NULL,par.num_levels,\
	  par.num_best,par.num_stages,par.dimension,w,u_hat,\
	  par.indices,MSVQ_MAXCNT)

#define fsvq_enc(u,u_hat,par)\
    vq_enc(par.cb,u,*(par.num_levels),\
	  par.dimension,u_hat,\
	  par.indices)

#define msvq_dec(u,par)\
    vq_msd2(par.cb,u,(float*)NULL,(float*)NULL,par.indices,par.num_levels,par.num_stages,par.dimension,0)

void msvq_init(struct msvq_param *par);

float vq_enc(float *cb, float *u, int levels, int p, float *u_hat, int *indices);

void vq_fsw(float *w_fs, int num_harm, float pitch);


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -