Mercurial > libavcodec.hg
comparison acelp_vectors.c @ 10698:608d19b30fa3 libavcodec
Add tables used by both AMR-NB and SIPR
author | vitor |
---|---|
date | Sat, 19 Dec 2009 14:05:31 +0000 |
parents | 8ee37f5571dc |
children | 3f66d1d80e03 |
comparison
equal
deleted
inserted
replaced
10697:7c0cc00cabc8 | 10698:608d19b30fa3 |
---|---|
101 31, 30, 28, 29, 24, 25, 27, 26, | 101 31, 30, 28, 29, 24, 25, 27, 26, |
102 16, 17, 19, 18, 23, 22, 20, 21 | 102 16, 17, 19, 18, 23, 22, 20, 21 |
103 }; | 103 }; |
104 #endif | 104 #endif |
105 | 105 |
106 const float ff_pow_0_7[10] = { | |
107 0.700000, 0.490000, 0.343000, 0.240100, 0.168070, | |
108 0.117649, 0.082354, 0.057648, 0.040354, 0.028248 | |
109 }; | |
110 | |
111 const float ff_pow_0_75[10] = { | |
112 0.750000, 0.562500, 0.421875, 0.316406, 0.237305, | |
113 0.177979, 0.133484, 0.100113, 0.075085, 0.056314 | |
114 }; | |
115 | |
116 const float ff_pow_0_55[10] = { | |
117 0.550000, 0.302500, 0.166375, 0.091506, 0.050328, | |
118 0.027681, 0.015224, 0.008373, 0.004605, 0.002533 | |
119 }; | |
120 | |
121 const float ff_b60_sinc[61] = { | |
122 0.898529 , 0.865051 , 0.769257 , 0.624054 , 0.448639 , 0.265289 , | |
123 0.0959167 , -0.0412598 , -0.134338 , -0.178986 , -0.178528 , -0.142609 , | |
124 -0.0849304 , -0.0205078 , 0.0369568 , 0.0773926 , 0.0955200 , 0.0912781 , | |
125 0.0689392 , 0.0357056 , 0. , -0.0305481 , -0.0504150 , -0.0570068 , | |
126 -0.0508423 , -0.0350037 , -0.0141602 , 0.00665283, 0.0230713 , 0.0323486 , | |
127 0.0335388 , 0.0275879 , 0.0167847 , 0.00411987, -0.00747681, -0.0156860 , | |
128 -0.0193481 , -0.0183716 , -0.0137634 , -0.00704956, 0. , 0.00582886 , | |
129 0.00939941, 0.0103760 , 0.00903320, 0.00604248, 0.00238037, -0.00109863 , | |
130 -0.00366211, -0.00497437, -0.00503540, -0.00402832, -0.00241089, -0.000579834, | |
131 0.00103760, 0.00222778, 0.00277710, 0.00271606, 0.00213623, 0.00115967 , | |
132 0. | |
133 }; | |
134 | |
106 void ff_acelp_fc_pulse_per_track( | 135 void ff_acelp_fc_pulse_per_track( |
107 int16_t* fc_v, | 136 int16_t* fc_v, |
108 const uint8_t *tab1, | 137 const uint8_t *tab1, |
109 const uint8_t *tab2, | 138 const uint8_t *tab2, |
110 int pulse_indexes, | 139 int pulse_indexes, |