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

Diff of /xvidcore/src/encoder.c

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

revision 1.95.2.17, Sun Mar 30 00:36:53 2003 UTC revision 1.95.2.19, Sun Apr 27 21:18:49 2003 UTC
# Line 151  Line 151 
151      if (pEnc->mbParam.fincr>0)      if (pEnc->mbParam.fincr>0)
152              simplify_time(&pEnc->mbParam.fincr, &pEnc->mbParam.fbase);              simplify_time(&pEnc->mbParam.fincr, &pEnc->mbParam.fbase);
153    
154      /* plugin */      /* plugins */
155        if(create->num_plugins > 0) {
156      pEnc->num_plugins = create->num_plugins;      pEnc->num_plugins = create->num_plugins;
157      pEnc->plugins = xvid_malloc(sizeof(xvid_enc_plugin_t) * pEnc->num_plugins, CACHE_LINE);      pEnc->plugins = xvid_malloc(sizeof(xvid_enc_plugin_t) * pEnc->num_plugins, CACHE_LINE);
158      if (pEnc->plugins == NULL)      if (pEnc->plugins == NULL)
159          goto xvid_err_memory0;          goto xvid_err_memory0;
160            } else {
161                    pEnc->num_plugins = 0;
162                    pEnc->plugins = NULL;
163            }
164    
165      for (n=0; n<pEnc->num_plugins;n++) {      for (n=0; n<pEnc->num_plugins;n++) {
166          xvid_plg_create_t pcreate;          xvid_plg_create_t pcreate;
# Line 202  Line 207 
207          pEnc->mbParam.frame_drop_ratio = MAX(create->frame_drop_ratio, 0);          pEnc->mbParam.frame_drop_ratio = MAX(create->frame_drop_ratio, 0);
208    
209      /* max keyframe interval */      /* max keyframe interval */
210      pEnc->mbParam.iMaxKeyInterval = create->max_key_interval <=0 ? 250 : create->max_key_interval;      pEnc->mbParam.iMaxKeyInterval = create->max_key_interval <= 0 ?
211      /*XXX: replace 250 hard code with "10seconds * framerate" */                  10 * pEnc->mbParam.fbase / pEnc->mbParam.fincr : create->max_key_interval;
212    
213          /* Bitrate allocator defaults          /* Bitrate allocator defaults
214    
# Line 598  Line 603 
603      }      }
604    
605    
606      if (pEnc->num_plugins>0)      if (pEnc->num_plugins>0) {
     {  
607          xvid_plg_destroy_t pdestroy;          xvid_plg_destroy_t pdestroy;
608          memset(&pdestroy, 0, sizeof(xvid_plg_destroy_t));          memset(&pdestroy, 0, sizeof(xvid_plg_destroy_t));
609    

Legend:
Removed from v.1.95.2.17  
changed lines
  Added in v.1.95.2.19

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