Mercurial > libavcodec.hg
comparison lpc.c @ 8824:9f929379bbca libavcodec
lpc: Document the use_lpc parameter to ff_lpc_calc_coefs().
Patch by Patrik Kullman (patrik A yes D nu).
author | jbr |
---|---|
date | Fri, 13 Feb 2009 22:01:46 +0000 |
parents | ffd4b1364b62 |
children | 51274aff81fe |
comparison
equal
deleted
inserted
replaced
8823:70ea65c17597 | 8824:9f929379bbca |
---|---|
92 return est; | 92 return est; |
93 } | 93 } |
94 | 94 |
95 /** | 95 /** |
96 * Calculate LPC coefficients for multiple orders | 96 * Calculate LPC coefficients for multiple orders |
97 * | |
98 * @param use_lpc LPC method for determining coefficients | |
99 * 0 = LPC with fixed pre-defined coeffs | |
100 * 1 = LPC with coeffs determined by Levinson-Durbin recursion | |
101 * 2+ = LPC with coeffs determined by Cholesky factorization using (use_lpc-1) passes. | |
97 */ | 102 */ |
98 int ff_lpc_calc_coefs(DSPContext *s, | 103 int ff_lpc_calc_coefs(DSPContext *s, |
99 const int32_t *samples, int blocksize, int min_order, | 104 const int32_t *samples, int blocksize, int min_order, |
100 int max_order, int precision, | 105 int max_order, int precision, |
101 int32_t coefs[][MAX_LPC_ORDER], int *shift, int use_lpc, | 106 int32_t coefs[][MAX_LPC_ORDER], int *shift, int use_lpc, |