19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: estimation_rd_based_bvop.c,v 1.9 2005-11-22 10:23:01 suxen_drol Exp $ |
* $Id: estimation_rd_based_bvop.c,v 1.10 2005-12-09 04:45:35 syskin Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
503 |
f_rd = b_rd = i_rd = d_rd = best_rd = 256*4096; |
f_rd = b_rd = i_rd = d_rd = best_rd = 256*4096; |
504 |
|
|
505 |
for (i = 0; i < 6; i++) { |
for (i = 0; i < 6; i++) { |
506 |
int lam = (LAMBDA*iQuant*iQuant)/(ref_quant*(ref_quant+1)); /* re-calculate as if it was p-frame's quant +.5 */ |
/* re-calculate as if it was p-frame's quant +.5 */ |
507 |
|
int lam = (pMB->lambda[i]*LAMBDA*iQuant*iQuant)/(ref_quant*(ref_quant+1)); |
508 |
|
lam >>= LAMBDA_EXP; |
509 |
Data_d->lambda[i] = lam; |
Data_d->lambda[i] = lam; |
510 |
Data_b->lambda[i] = lam; |
Data_b->lambda[i] = lam; |
511 |
Data_f->lambda[i] = lam; |
Data_f->lambda[i] = lam; |