[svn] / trunk / vfw / src / codec.c Repository:
ViewVC logotype

Diff of /trunk/vfw/src/codec.c

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

revision 102, Fri Apr 5 14:42:37 2002 UTC revision 109, Mon Apr 8 12:51:41 2002 UTC
# Line 254  Line 254 
254          case DLG_MODE_2PASS_2_INT :          case DLG_MODE_2PASS_2_INT :
255          case DLG_MODE_2PASS_2_EXT :          case DLG_MODE_2PASS_2_EXT :
256                  param.bitrate = 0;                  param.bitrate = 0;
257                    codec->twopass.max_framesize = (int)((double)codec->config.twopass_max_bitrate / 8.0 / ((double)codec->fbase / (double)codec->fincr));
258                  break;                  break;
259    
260          case DLG_MODE_NULL :          case DLG_MODE_NULL :
# Line 332  Line 333 
333                  }                  }
334    
335                  codec->ehandle = NULL;                  codec->ehandle = NULL;
336    
337                    codec_2pass_finish(codec);
338          }          }
339    
340          return ICERR_OK;          return ICERR_OK;
# Line 375  Line 378 
378                  frame.hint.rawhints = 0;                  frame.hint.rawhints = 0;
379                  frame.general |= XVID_HINTEDME_GET;                  frame.general |= XVID_HINTEDME_GET;
380          }          }
381          else if (codec->config.mode == DLG_MODE_2PASS_2_EXT || codec->config.mode == DLG_MODE_2PASS_2_INT)          else if (codec->config.hinted_me && (codec->config.mode == DLG_MODE_2PASS_2_EXT || codec->config.mode == DLG_MODE_2PASS_2_INT))
382          {          {
383                  DWORD read;                  DWORD read;
384                  DWORD blocksize;                  DWORD blocksize;
# Line 478  Line 481 
481          {          {
482                  frame.intra = 1;                  frame.intra = 1;
483          }          }
484          else if ((codec->keyspacing < codec->config.min_key_interval && codec->framenum) &&          else if (codec->keyspacing < codec->config.min_key_interval && codec->framenum)
                 (codec->config.mode == DLG_MODE_2PASS_1))  
485          {          {
486                  DEBUG("current frame forced to p-frame");                  DEBUG("current frame forced to p-frame");
487                  frame.intra = 0;                  frame.intra = 0;

Legend:
Removed from v.102  
changed lines
  Added in v.109

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