[svn] / trunk / xvidcore / src / motion / estimation_rd_based_bvop.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/motion/estimation_rd_based_bvop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1659, Fri Dec 9 04:39:49 2005 UTC revision 1660, Fri Dec 9 04:45:35 2005 UTC
# Line 19  Line 19 
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    
# Line 503  Line 503 
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;

Legend:
Removed from v.1659  
changed lines
  Added in v.1660

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4