comparison alacenc.c @ 12139:e59926e2c50c libavcodec

Add AVCodecContext.lpc_type and Add AVCodecContext.lpc_passes fields. Add AVLPCType enum. Deprecate AVCodecContext.use_lpc.
author jbr
date Sun, 11 Jul 2010 16:56:20 +0000
parents 01fe2ac0c8ac
children dde20597f15e
comparison
equal deleted inserted replaced
12138:41f078d6869d 12139:e59926e2c50c
143 } else { 143 } else {
144 opt_order = ff_lpc_calc_coefs(&s->dspctx, s->sample_buf[ch], 144 opt_order = ff_lpc_calc_coefs(&s->dspctx, s->sample_buf[ch],
145 s->avctx->frame_size, 145 s->avctx->frame_size,
146 s->min_prediction_order, 146 s->min_prediction_order,
147 s->max_prediction_order, 147 s->max_prediction_order,
148 ALAC_MAX_LPC_PRECISION, coefs, shift, 1, 148 ALAC_MAX_LPC_PRECISION, coefs, shift,
149 AV_LPC_TYPE_LEVINSON, 0,
149 ORDER_METHOD_EST, ALAC_MAX_LPC_SHIFT, 1); 150 ORDER_METHOD_EST, ALAC_MAX_LPC_SHIFT, 1);
150 151
151 s->lpc[ch].lpc_order = opt_order; 152 s->lpc[ch].lpc_order = opt_order;
152 s->lpc[ch].lpc_quant = shift[opt_order-1]; 153 s->lpc[ch].lpc_quant = shift[opt_order-1];
153 memcpy(s->lpc[ch].lpc_coeff, coefs[opt_order-1], opt_order*sizeof(int)); 154 memcpy(s->lpc[ch].lpc_coeff, coefs[opt_order-1], opt_order*sizeof(int));