[cvs] / xvidcore / examples / xvid_encraw.c Repository:
ViewVC logotype

Diff of /xvidcore/examples/xvid_encraw.c

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

revision 1.13, Mon Mar 22 22:36:23 2004 UTC revision 1.15, Thu Jun 10 18:13:42 2004 UTC
# Line 729  Line 729 
729                  return (1);                  return (1);
730    
731          fscanf(handle, "%d %d %d", &xsize, &ysize, &depth);          fscanf(handle, "%d %d %d", &xsize, &ysize, &depth);
732          if ((xsize > 1440) || (ysize > 2880) || (depth != 255)) {          if ((xsize > 4096) || (ysize > 4096*3/2) || (depth != 255)) {
733                  fprintf(stderr, "%d %d %d\n", xsize, ysize, depth);                  fprintf(stderr, "%d %d %d\n", xsize, ysize, depth);
734                  return (2);                  return (2);
735          }          }
# Line 950  Line 950 
950                  rc2pass2.filename = ARG_PASS2;                  rc2pass2.filename = ARG_PASS2;
951                  rc2pass2.bitrate = ARG_BITRATE;                  rc2pass2.bitrate = ARG_BITRATE;
952    
953    /*              An example of activating VBV could look like this
954                    rc2pass2.vbv_size     =  3145728;
955                    rc2pass2.vbv_initial  =  2359296;
956                    rc2pass2.vbv_maxrate  =  4000000;
957                    rc2pass2.vbv_peakrate = 10000000;
958    */
959    
960                  plugins[xvid_enc_create.num_plugins].func = xvid_plugin_2pass2;                  plugins[xvid_enc_create.num_plugins].func = xvid_plugin_2pass2;
961                  plugins[xvid_enc_create.num_plugins].param = &rc2pass2;                  plugins[xvid_enc_create.num_plugins].param = &rc2pass2;
962                  xvid_enc_create.num_plugins++;                  xvid_enc_create.num_plugins++;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.15

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