forked from osherbakov/MELPe_fxp
/
qnt12.h
44 lines (29 loc) · 1.5 KB
/
qnt12.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* ================================================================== */
/* */
/* Microsoft Speech coder ANSI-C Source Code */
/* SC1200 1200 bps speech coder */
/* Fixed Point Implementation Version 7.0 */
/* Copyright (C) 2000, Microsoft Corp. */
/* All rights reserved. */
/* */
/* ================================================================== */
/*------------------------------------------------------------------*/
/* */
/* File: qnt12.c */
/* */
/* Description: quantization for 1200bps */
/* */
/*------------------------------------------------------------------*/
#ifndef _QNT12_H_
#define _QNT12_H_
void pitch_vq(struct melp_param *par);
void gain_vq(struct melp_param *par);
void quant_bp(struct melp_param *par, int16_t num_frames);
BOOLEAN lspStable(int16_t lsp[], int16_t order);
void lspSort(int16_t lsp[], int16_t order);
void lsf_vq(struct melp_param *par);
void deqnt_msvq(int16_t qout[], const int16_t codebook[], int16_t tos,
const int16_t cb_size[], int16_t *index, int16_t dim);
void quant_jitter(struct melp_param *par);
void quant_fsmag(struct melp_param *par);
#endif