[cvs] / xvidcore / src / plugins / plugin_2pass2.c Repository:
ViewVC logotype

Diff of /xvidcore/src/plugins/plugin_2pass2.c

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

revision 1.10, Tue Nov 16 14:42:07 2010 UTC revision 1.10.2.1, Tue Dec 28 19:19:57 2010 UTC
# Line 467  Line 467 
467    
468          /* vbv_size==0 switches VBV check off */          /* vbv_size==0 switches VBV check off */
469          if (rc->param.vbv_size > 0)  {          if (rc->param.vbv_size > 0)  {
470                  const double fps = (double)create->fbase/(double)create->fincr;                  const float fps = (float)((double)create->fbase/(double)create->fincr);
471                  int status = check_curve_for_vbv_compliancy(rc, fps);                  int status = check_curve_for_vbv_compliancy(rc, fps);
472    
473                  if (status) {                  if (status) {
# Line 1361  Line 1361 
1361                  if (rc->count[i] == 0 || rc->pb_iboost_tax_ratio == 0) {                  if (rc->count[i] == 0 || rc->pb_iboost_tax_ratio == 0) {
1362                          rc->avg_length[i] = 1;                          rc->avg_length[i] = 1;
1363                  } else {                  } else {
1364                          rc->avg_length[i] = rc->tot_scaled_length[i];                          rc->avg_length[i] = (double)rc->tot_scaled_length[i];
1365    
1366                          if (i == (XVID_TYPE_IVOP-1)) {                          if (i == (XVID_TYPE_IVOP-1)) {
1367                                  /* I Frames total has to be added the boost total */                                  /* I Frames total has to be added the boost total */
# Line 1544  Line 1544 
1544          const float vbv_size = (float)rc->param.vbv_size/8.f;          const float vbv_size = (float)rc->param.vbv_size/8.f;
1545          const float vbv_initial = (float)rc->param.vbv_initial/8.f;          const float vbv_initial = (float)rc->param.vbv_initial/8.f;
1546    
1547          const float maxrate = 0.9*rc->param.vbv_maxrate;          const float maxrate = 0.9f*rc->param.vbv_maxrate;
1548          const float vbv_low = 0.10f*vbv_size;          const float vbv_low = 0.10f*vbv_size;
1549          const float r0 = (int)(maxrate/fps+0.5)/8.f;          const float r0 = (int)(maxrate/fps+0.5)/8.f;
1550    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.10.2.1

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