[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 889, Sat Feb 22 08:24:01 2003 UTC revision 926, Sun Mar 16 12:05:09 2003 UTC
# Line 241  Line 241 
241          xvid_gbl_init_t init;          xvid_gbl_init_t init;
242          xvid_enc_create_t create;          xvid_enc_create_t create;
243          xvid_enc_rc_t rc;          xvid_enc_rc_t rc;
244        xvid_enc_plugin_t plugins[1];
245    
246          memset(&rc, 0, sizeof(rc));          memset(&rc, 0, sizeof(rc));
247          rc.version = XVID_VERSION;          rc.version = XVID_VERSION;
# Line 305  Line 306 
306          create.fincr = codec->fincr;          create.fincr = codec->fincr;
307          create.fbase = codec->fbase;          create.fbase = codec->fbase;
308    
309        create.plugins = plugins;
310        create.num_plugins = 0;
311            if (codec->config.lum_masking) {
312            plugins[create.num_plugins].func = xvid_plugin_lumimasking;
313            plugins[create.num_plugins].param = NULL;
314            create.num_plugins++;
315        }
316    
317      if (codec->config.packed)      if (codec->config.packed)
318          create.global |= XVID_PACKED;          create.global |= XVID_PACKED;
319          if (codec->config.dx50bvop)          if (codec->config.dx50bvop)
# Line 448  Line 457 
457          if (codec->config.motion_search > 4)          if (codec->config.motion_search > 4)
458                  frame.vop_flags |= XVID_INTER4V;                  frame.vop_flags |= XVID_INTER4V;
459    
         if (codec->config.lum_masking)  
                 frame.vop_flags |= XVID_LUMIMASKING;  
   
460          if (codec->config.chromame)          if (codec->config.chromame)
461                  frame.vop_flags |= PMV_CHROMA16 + PMV_CHROMA8;                  frame.vop_flags |= PMV_CHROMA16 + PMV_CHROMA8;
462    
# Line 600  Line 606 
606                  frame.type = XVID_TYPE_PVOP;                  frame.type = XVID_TYPE_PVOP;
607          }          }
608    
         frame.bquant = 0;  
   
609          memset(&stats, 0, sizeof(stats));          memset(&stats, 0, sizeof(stats));
610          stats.version = XVID_VERSION;          stats.version = XVID_VERSION;
611    

Legend:
Removed from v.889  
changed lines
  Added in v.926

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