comparison ra144enc.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 fdafbcef52f5
children 34beb0af8204
comparison
equal deleted inserted replaced
12138:41f078d6869d 12139:e59926e2c50c
450 } 450 }
451 energy = ff_energy_tab[quantize(ff_t_sqrt(energy >> 5) >> 10, ff_energy_tab, 451 energy = ff_energy_tab[quantize(ff_t_sqrt(energy >> 5) >> 10, ff_energy_tab,
452 32)]; 452 32)];
453 453
454 ff_lpc_calc_coefs(&ractx->dsp, lpc_data, NBLOCKS * BLOCKSIZE, LPC_ORDER, 454 ff_lpc_calc_coefs(&ractx->dsp, lpc_data, NBLOCKS * BLOCKSIZE, LPC_ORDER,
455 LPC_ORDER, 16, lpc_coefs, shift, 1, ORDER_METHOD_EST, 12, 455 LPC_ORDER, 16, lpc_coefs, shift, AV_LPC_TYPE_LEVINSON,
456 0); 456 0, ORDER_METHOD_EST, 12, 0);
457 for (i = 0; i < LPC_ORDER; i++) 457 for (i = 0; i < LPC_ORDER; i++)
458 block_coefs[NBLOCKS - 1][i] = -(lpc_coefs[LPC_ORDER - 1][i] << 458 block_coefs[NBLOCKS - 1][i] = -(lpc_coefs[LPC_ORDER - 1][i] <<
459 (12 - shift[LPC_ORDER - 1])); 459 (12 - shift[LPC_ORDER - 1]));
460 460
461 /** 461 /**