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

Diff of /branches/dev-api-4/xvidcore/vfw/src/codec.c

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

revision 1028, Fri May 16 17:15:26 2003 UTC revision 1032, Sat May 17 13:37:49 2003 UTC
# Line 310  Line 310 
310      memset(&init, 0, sizeof(init));      memset(&init, 0, sizeof(init));
311          init.version = XVID_VERSION;          init.version = XVID_VERSION;
312          init.cpu_flags = codec->config.cpu;          init.cpu_flags = codec->config.cpu;
313        init.debug = codec->config.debug;
314          xvid_global(0, XVID_GBL_INIT, &init, NULL);          xvid_global(0, XVID_GBL_INIT, &init, NULL);
315    
316          memset(&create, 0, sizeof(create));          memset(&create, 0, sizeof(create));
# Line 320  Line 321 
321      create.num_zones = codec->config.num_zones;      create.num_zones = codec->config.num_zones;
322      for (i=0; i < create.num_zones; i++) {      for (i=0; i < create.num_zones; i++) {
323          create.zones[i].frame = codec->config.zones[i].frame;          create.zones[i].frame = codec->config.zones[i].frame;
324          if (create.zones[i].mode = RC_ZONE_QUANT) {          if (codec->config.zones[i].mode == RC_ZONE_QUANT) {
325              create.zones[i].mode = XVID_ZONE_QUANT;              create.zones[i].mode = XVID_ZONE_QUANT;
326              create.zones[i].increment = codec->config.zones[i].quant;              create.zones[i].increment = codec->config.zones[i].quant;
327          }else{          }else{
# Line 337  Line 338 
338          case RC_MODE_1PASS :          case RC_MODE_1PASS :
339          memset(&single, 0, sizeof(single));          memset(&single, 0, sizeof(single));
340              single.version = XVID_VERSION;              single.version = XVID_VERSION;
341          single.bitrate = codec->config.bitrate;          single.bitrate = codec->config.bitrate * CONFIG_KBPS;
342          single.reaction_delay_factor = codec->config.rc_reaction_delay_factor;          single.reaction_delay_factor = codec->config.rc_reaction_delay_factor;
343                  single.averaging_period = codec->config.rc_averaging_period;                  single.averaging_period = codec->config.rc_averaging_period;
344                  single.buffer = codec->config.rc_buffer;                  single.buffer = codec->config.rc_buffer;
345          plugins[create.num_plugins].func = xvid_plugin_single;          plugins[create.num_plugins].func = xvid_plugin_single;
346          plugins[create.num_plugins].param = &single;          plugins[create.num_plugins].param = &single;
347          create.num_plugins++;          create.num_plugins++;
348            break;
349    
350          case RC_MODE_2PASS1 :          case RC_MODE_2PASS1 :
351          memset(&pass1, 0, sizeof(pass1));          memset(&pass1, 0, sizeof(pass1));
# Line 358  Line 360 
360          case RC_MODE_2PASS2 :          case RC_MODE_2PASS2 :
361          memset(&pass2, 0, sizeof(pass2));          memset(&pass2, 0, sizeof(pass2));
362              pass2.version = XVID_VERSION;              pass2.version = XVID_VERSION;
363          pass2.bitrate = codec->config.bitrate;          pass2.bitrate = codec->config.bitrate * CONFIG_KBPS;
364                  pass2.filename = codec->config.stats;                  pass2.filename = codec->config.stats;
365    
366          plugins[create.num_plugins].func = xvid_plugin_2pass2;          plugins[create.num_plugins].func = xvid_plugin_2pass2;
# Line 523  Line 525 
525          frame.vop_flags |= XVID_VOP_HALFPEL;          frame.vop_flags |= XVID_VOP_HALFPEL;
526          frame.vop_flags |= XVID_VOP_HQACPRED;          frame.vop_flags |= XVID_VOP_HQACPRED;
527    
528          if (codec->config.debug)          if (codec->config.vop_debug)
529                  frame.vop_flags |= XVID_VOP_DEBUG;                  frame.vop_flags |= XVID_VOP_DEBUG;
530    
531      if (codec->config.trellis_quant) {      if (codec->config.trellis_quant) {

Legend:
Removed from v.1028  
changed lines
  Added in v.1032

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