/* ================================================================== */
/* */
/* 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_cb.c */
/* */
/* Description: quantization codebook for 1200bps */
/* */
/*------------------------------------------------------------------*/
#include "sc1200.h"
/* bp_index_map[] maps 0, 8, 12 and 15 onto 0, 1, 2 and 3. */
/* inv_bp_index_map[] reverses this mapping. The declared dimension 16 is */
/* 2^(NUM_BANDS - 1). */
Shortword bp_index_map[16] = {
0, 0, 0, 0, 0, 0, 0, 3, 1, 1, 1, 3, 2, 3, 3, 3
};
Shortword inv_bp_index_map[4] = {
0, 8, 12, 15
};
Shortword vvv_index_map[4] = {
3, 5, 6, 7
};
Shortword pitch_uvflag_map[9] = {
0, /* UUU (1) */
1, /* UUV (99) */
100, /* UVU (99) */
199, /* UVV (512) */
711, /* VUU (99) */
810, /* VUV (512) */
1322, /* VVU (512) */
1834, /* VVV (2048) */
3882 /* end of CB */
};
Shortword pitch_vq_cb_vvv[PITCH_VQ_LEVEL_VVV * NF] = { /* Q12 */
5764, 5782, 6975, 6370, 5389,
7926, 6939, 7332, 8027, 8468,
8136, 7304, 5473, 5487, 5569,
8054, 5886, 5968, 8167, 6127,
7818, 9020, 8174, 7243, 6260,
7072, 6500, 8099, 8188, 7129,
5901, 8835, 5793, 9027, 8095,
7354, 5380, 5413, 6957, 8050,
8070, 6025, 6628, 6834, 7289,
8688, 7934, 8119, 6408, 6441,
6607, 7197, 6480, 8341, 6074,
7327, 7248, 8618, 8648, 8600,
5890, 6010, 5888, 8671, 6819,
6906, 7758, 7683, 7329, 8933,
9025, 8834, 6408, 6710, 6839,
7763, 8039, 7604, 6367, 8896,
6399, 8508, 8474, 8304, 6414,
5385, 6376, 7752, 7782, 6139,
7049, 7111, 6799, 7023, 7931,
8461, 6369, 6442, 6518, 6084,
6168, 7707, 6949, 8054, 6954,
8158, 7855, 8309, 6042, 6021,
6030, 7425, 6429, 6464, 7434,
7128, 6988, 8396, 8356, 7416,
6816, 6821, 6825, 7573, 7641,
7493, 7262, 7985, 6909, 8978,
7010, 7941, 6413, 6344, 6265,
7823, 7755, 6956, 6991, 7023,
7055, 6991, 7460, 8499, 6409,
7134, 7225, 6534, 6628, 8520,
7218, 8312, 8036, 8726, 7711,
8061, 6167, 6210, 6204, 6948,
6691, 6997, 7184, 7236, 7367,
8186, 7974, 8640, 6948, 6937,
6865, 8062, 7422, 7810, 7797,
8846, 7465, 8992, 6655, 8323,
6257, 6326, 5826, 7864, 7584,
7559, 7062, 7191, 7304, 6951,
7680, 9010, 5484, 5571, 7651,
6278, 5406, 8858, 6468, 7519,
8136, 8143, 7637, 8036, 5389,
5393, 5729, 8138, 5436, 6703,
7975, 5445, 8768, 9022, 7825,
8712, 7122, 6446, 6485, 8422,
7773, 7810, 6635, 7982, 6240,
9018, 7369, 7459, 5980, 6103,
7190, 8420, 7004, 7543, 7132,
7143, 7783, 7745, 6989, 8977,
6106, 6322, 6491, 6790, 6829,
8228, 5434, 7680, 7972, 7903,
8163, 8279, 5794, 5778, 6363,
8180, 6426, 7559, 7263, 7348,
8083, 8465, 8495, 8761, 6717,
6812, 6696, 7868, 7932, 7685,
7155, 9010, 7039, 9024, 7745,
8293, 6109, 6137, 6191, 7173,
7983, 6266, 6966, 7294, 7270,
7057, 8358, 8410, 6167, 6427,
6679, 5420, 6985, 8415, 6565,
8912, 7916, 7734, 8982, 8333,
5605, 5673, 6005, 7449, 6282,
6237, 7342, 6996, 8614, 8944,
8370, 8476, 6720, 6794, 6881,
7678, 7994, 7657, 6698, 8063,
6923, 9018, 7577, 7913, 6678,
6393, 6463, 8320, 7812, 6958,
7028, 7096, 7224, 7346, 7718,
9011, 5807, 5868, 7774, 7004,
6672, 8970, 5992, 7762, 9027,
8274, 8036, 8014, 5894, 5984,
6155, 7186, 6741, 7098, 7128,
6973, 7590, 8778, 7921, 9016,
6932, 6926, 7015, 7430, 7733,
8218, 7528, 8979, 8033, 9024,
7116, 9023, 6389, 6543, 6368,
6904, 7630, 7206, 7081, 7248,
7402, 7087, 8538, 9024, 5775,
5999, 7405, 5977, 6121, 8673,
7303, 7589, 7953, 7868, 8023,
7964, 5478, 5526, 5671, 7783,
6272, 6301, 8051, 6241, 8021,
9024, 8798, 7592, 6685, 6351,
6675, 7878, 7784, 7534, 6311,
8114, 6461, 8855, 7515, 6948,
5689, 5700, 7003, 8770, 7468,
6479, 7199, 6957, 7320, 8230,
7380, 9021, 6503, 6590, 6835,
7567, 6956, 7842, 6782, 7646,
7900, 8036, 8081, 8092, 5916,
6280, 5957, 8038, 7180, 7171,
7235, 7480, 7403, 8552, 8965,
8916, 6969, 6968, 6969, 7826,
7845, 7870, 7175, 8792, 7163,
8807, 7841, 7716, 6894, 6522,
6912, 7993, 7437, 6954, 7265,
7263, 7289, 6979, 8294, 9012,
6336, 6368, 6536, 6135, 6357,
8199, 6761, 8580, 7587, 7840,
8163, 8106, 5870, 5856, 5942,
7313, 6644, 6569, 7820, 6979,
7963, 9022, 9025, 7726, 6690,
6657, 6642, 7372, 7463, 7593,
6835, 7612, 6906, 9025, 6295,
7848, 6606, 6462, 6385, 7758,
8256, 6979, 7151, 7147, 7181,
7949, 7785, 8612, 5766, 6383,
6493, 6658, 6862, 8549, 6604,
7931, 8402, 7878, 7961, 8129,
6024, 6064, 6116, 7049, 6962,
6919, 7370, 7257, 7713, 8264,
8972, 8087, 7019, 6982, 6957,
7723, 7765, 7804, 7506, 8075,
7830, 8084, 6955, 8164, 6945,
6944, 5381, 7747, 7504, 6921,
7302, 7354, 7395, 6966, 7933,
9000, 5742, 6295, 6600, 5630,
5634, 8863, 7002, 8154, 7647,
7666, 7928, 7862, 5583, 5638,
5731, 7561, 5600, 7031, 7381,
5983, 7951, 8355, 8523, 7855,
6756, 6421, 6339, 7926, 7441,
7372, 5908, 8003, 5923, 8687,
7185, 7175, 6341, 5556, 5565,
8997, 6611, 6536, 6985, 6890,
6899, 7959, 6956, 8398, 6378,
6529, 6675, 7031, 6736, 7726,
6662, 7803, 7836, 7936, 7951,
7952, 5728, 5735, 5795, 8161,
6561, 7041, 7327, 7736, 7694,
8190, 9027, 9026, 6805, 6578,
6418, 7887, 7965, 7473, 7447,
9006, 7075, 8853, 7884, 7911,
6428, 5701, 5679, 7038, 8169,
5871, 7222, 7514, 6969, 6228,
8777, 9028, 5750, 6206, 6611,
6079, 6109, 8834, 6064, 8887,
7860, 7726, 8007, 7944, 5656,
5741, 5901, 7437, 6620, 6643,
6701, 7209, 7761, 8532, 8811,
8518, 6662, 6717, 6661, 7690,
7895, 7511, 6174, 7998, 6867,
9000, 6945, 8015, 6121, 6227,
6125, 8052, 8377, 6713, 6895,
7004, 7084, 7535, 8063, 8997,
5463, 6972, 7289, 6921
- 1
- 2
- 3
- 4
前往页