Mercurial > libavcodec.hg
comparison qcelpdec.c @ 12024:fdafbcef52f5 libavcodec
Fix grammar errors in documentation
author | mru |
---|---|
date | Wed, 30 Jun 2010 15:38:06 +0000 |
parents | 8b6f3d3b55cb |
children | 3798d134f330 |
comparison
equal
deleted
inserted
replaced
12023:c7455450364d | 12024:fdafbcef52f5 |
---|---|
99 | 99 |
100 return 0; | 100 return 0; |
101 } | 101 } |
102 | 102 |
103 /** | 103 /** |
104 * Decodes the 10 quantized LSP frequencies from the LSPV/LSP | 104 * Decode the 10 quantized LSP frequencies from the LSPV/LSP |
105 * transmission codes of any bitrate and checks for badly received packets. | 105 * transmission codes of any bitrate and check for badly received packets. |
106 * | 106 * |
107 * @param q the context | 107 * @param q the context |
108 * @param lspf line spectral pair frequencies | 108 * @param lspf line spectral pair frequencies |
109 * | 109 * |
110 * @return 0 on success, -1 if the packet is badly received | 110 * @return 0 on success, -1 if the packet is badly received |
195 } | 195 } |
196 return 0; | 196 return 0; |
197 } | 197 } |
198 | 198 |
199 /** | 199 /** |
200 * Converts codebook transmission codes to GAIN and INDEX. | 200 * Convert codebook transmission codes to GAIN and INDEX. |
201 * | 201 * |
202 * @param q the context | 202 * @param q the context |
203 * @param gain array holding the decoded gain | 203 * @param gain array holding the decoded gain |
204 * | 204 * |
205 * TIA/EIA/IS-733 2.4.6.2 | 205 * TIA/EIA/IS-733 2.4.6.2 |
307 } | 307 } |
308 return 0; | 308 return 0; |
309 } | 309 } |
310 | 310 |
311 /** | 311 /** |
312 * Computes the scaled codebook vector Cdn From INDEX and GAIN | 312 * Compute the scaled codebook vector Cdn From INDEX and GAIN |
313 * for all rates. | 313 * for all rates. |
314 * | 314 * |
315 * The specification lacks some information here. | 315 * The specification lacks some information here. |
316 * | 316 * |
317 * TIA/EIA/IS-733 has an omission on the codebook index determination | 317 * TIA/EIA/IS-733 has an omission on the codebook index determination |
562 memset(q->pitch_lag, 0, sizeof(q->pitch_lag)); | 562 memset(q->pitch_lag, 0, sizeof(q->pitch_lag)); |
563 } | 563 } |
564 } | 564 } |
565 | 565 |
566 /** | 566 /** |
567 * Reconstructs LPC coefficients from the line spectral pair frequencies | 567 * Reconstruct LPC coefficients from the line spectral pair frequencies |
568 * and performs bandwidth expansion. | 568 * and perform bandwidth expansion. |
569 * | 569 * |
570 * @param lspf line spectral pair frequencies | 570 * @param lspf line spectral pair frequencies |
571 * @param lpc linear predictive coding coefficients | 571 * @param lpc linear predictive coding coefficients |
572 * | 572 * |
573 * @note: bandwidth_expansion_coeff could be precalculated into a table | 573 * @note: bandwidth_expansion_coeff could be precalculated into a table |
592 bandwidth_expansion_coeff *= QCELP_BANDWIDTH_EXPANSION_COEFF; | 592 bandwidth_expansion_coeff *= QCELP_BANDWIDTH_EXPANSION_COEFF; |
593 } | 593 } |
594 } | 594 } |
595 | 595 |
596 /** | 596 /** |
597 * Interpolates LSP frequencies and computes LPC coefficients | 597 * Interpolate LSP frequencies and computes LPC coefficients |
598 * for a given bitrate & pitch subframe. | 598 * for a given bitrate & pitch subframe. |
599 * | 599 * |
600 * TIA/EIA/IS-733 2.4.3.3.4, 2.4.8.7.2 | 600 * TIA/EIA/IS-733 2.4.3.3.4, 2.4.8.7.2 |
601 * | 601 * |
602 * @param q the context | 602 * @param q the context |