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

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

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

revision 669, Thu Nov 21 11:07:10 2002 UTC revision 670, Thu Nov 21 12:51:28 2002 UTC
# Line 223  Line 223 
223    
224  LRESULT compress_get_size(CODEC * codec, BITMAPINFO * lpbiInput, BITMAPINFO * lpbiOutput)  LRESULT compress_get_size(CODEC * codec, BITMAPINFO * lpbiInput, BITMAPINFO * lpbiOutput)
225  {  {
226          return          return 2 * lpbiOutput->bmiHeader.biWidth * lpbiOutput->bmiHeader.biHeight * 3;
 #ifdef BFRAMES  
          2 *  
 #endif  
         lpbiOutput->bmiHeader.biWidth * lpbiOutput->bmiHeader.biHeight * 3;  
227  }  }
228    
229    
# Line 302  Line 298 
298          param.num_threads = codec->config.num_threads;          param.num_threads = codec->config.num_threads;
299  #endif  #endif
300    
 #ifdef BFRAMES  
301          param.global = 0;          param.global = 0;
302          if (codec->config.packed) param.global |= XVID_GLOBAL_PACKED;          if (codec->config.packed) param.global |= XVID_GLOBAL_PACKED;
303          if (codec->config.dx50bvop) param.global |= XVID_GLOBAL_DX50BVOP;          if (codec->config.dx50bvop) param.global |= XVID_GLOBAL_DX50BVOP;
# Line 311  Line 306 
306          param.bquant_ratio = codec->config.bquant_ratio;          param.bquant_ratio = codec->config.bquant_ratio;
307          param.bquant_offset = codec->config.bquant_offset;          param.bquant_offset = codec->config.bquant_offset;
308          param.frame_drop_ratio = codec->config.frame_drop_ratio;          param.frame_drop_ratio = codec->config.frame_drop_ratio;
 #endif  
309    
310          switch(xvid_encore(0, XVID_ENC_CREATE, &param, NULL))          switch(xvid_encore(0, XVID_ENC_CREATE, &param, NULL))
311          {          {
# Line 544  Line 538 
538                  frame.intra = 0;                  frame.intra = 0;
539          }          }
540    
 #ifdef BFRAMES  
541          frame.bquant = 0;          frame.bquant = 0;
 #endif  
542    
543  //      OutputDebugString(" ");  //      OutputDebugString(" ");
544          switch (xvid_encore(codec->ehandle, XVID_ENC_ENCODE, &frame, &stats))          switch (xvid_encore(codec->ehandle, XVID_ENC_ENCODE, &frame, &stats))

Legend:
Removed from v.669  
changed lines
  Added in v.670

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