[svn] / branches / dev-api-4 / xvidcore / src / plugins / plugin_2pass2.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/plugins/plugin_2pass2.c

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

revision 1063, Tue Jun 10 10:12:24 2003 UTC revision 1064, Tue Jun 10 20:47:29 2003 UTC
# Line 25  Line 25 
25   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
26   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27   *   *
28   * $Id: plugin_2pass2.c,v 1.1.2.21 2003-06-10 10:12:24 suxen_drol Exp $   * $Id: plugin_2pass2.c,v 1.1.2.22 2003-06-10 20:47:29 edgomez Exp $
29   *   *
30   *****************************************************************************/   *****************************************************************************/
31    
# Line 96  Line 96 
96          double movie_curve;          double movie_curve;
97    
98          /* dynamic */          /* dynamic */
   
99          int * keyframe_locations;          int * keyframe_locations;
100          stat_t * stats;          stat_t * stats;
101    
# Line 245  Line 244 
244    
245          /* Compute the target filesize */          /* Compute the target filesize */
246      if (rc->param.bitrate<0) {      if (rc->param.bitrate<0) {
247          /* if negative, bitrate equals the target (int kbytes) */                  /* if negative, bitrate equals the target (in kbytes) */
248          rc->target = (-rc->param.bitrate) * 1024;          rc->target = (-rc->param.bitrate) * 1024;
   
249      }else if (rc->num_frames  < create->fbase/create->fincr) {      }else if (rc->num_frames  < create->fbase/create->fincr) {
250                  /* Source sequence is less than 1s long, we do as if it was 1s long */                  /* Source sequence is less than 1s long, we do as if it was 1s long */
251                  rc->target = rc->param.bitrate / 8;                  rc->target = rc->param.bitrate / 8;
# Line 413  Line 411 
411                  rc->curve_comp_error += dbytes - (int)dbytes;                  rc->curve_comp_error += dbytes - (int)dbytes;
412          }          }
413    
   
414          /*          /*
415           * We can't do bigger frames than first pass, this would be stupid as first           * We can't do bigger frames than first pass, this would be stupid as first
416           * pass is quant=2 and that reaching quant=1 is not worth it. We would lose           * pass is quant=2 and that reaching quant=1 is not worth it. We would lose

Legend:
Removed from v.1063  
changed lines
  Added in v.1064

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