[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 1052, Mon Jun 2 11:47:30 2003 UTC revision 1053, Mon Jun 9 01:25:19 2003 UTC
# Line 243  Line 243 
243    
244  LRESULT compress_frames_info(CODEC * codec, ICCOMPRESSFRAMES * icf)  LRESULT compress_frames_info(CODEC * codec, ICCOMPRESSFRAMES * icf)
245  {  {
246      //DPRINTF("%i %i", icf->lStartFrame, icf->lFrameCount);  #if 0
247        DPRINTF("%i %i", icf->lStartFrame, icf->lFrameCount);
248    #endif
249          codec->fincr = icf->dwScale;          codec->fincr = icf->dwScale;
250          codec->fbase = icf->dwRate;          codec->fbase = icf->dwRate;
251          return ICERR_OK;          return ICERR_OK;
# Line 316  Line 318 
318          memset(&create, 0, sizeof(create));          memset(&create, 0, sizeof(create));
319          create.version = XVID_VERSION;          create.version = XVID_VERSION;
320    
321      // zones      /* zones */
322      create.zones = malloc(sizeof(xvid_enc_zone_t) * codec->config.num_zones);      create.zones = malloc(sizeof(xvid_enc_zone_t) * codec->config.num_zones);
323      create.num_zones = codec->config.num_zones;      create.num_zones = codec->config.num_zones;
324      for (i=0; i < create.num_zones; i++) {      for (i=0; i < create.num_zones; i++) {
# Line 331  Line 333 
333          create.zones[i].base = 100;          create.zones[i].base = 100;
334      }      }
335    
336      // plugins      /* plugins */
337          create.plugins = plugins;          create.plugins = plugins;
338          switch (codec->config.mode)          switch (codec->config.mode)
339          {          {
# Line 725  Line 727 
727    
728          if (get_colorspace(inhdr) != XVID_CSP_NULL) {          if (get_colorspace(inhdr) != XVID_CSP_NULL) {
729                  memcpy(outhdr, inhdr, sizeof(BITMAPINFOHEADER));                  memcpy(outhdr, inhdr, sizeof(BITMAPINFOHEADER));
730                  // XXX: should we set outhdr->biSize ??                  /* XXX: should we set outhdr->biSize ?? */
731                  return ICERR_OK;                  return ICERR_OK;
732          }          }
733          /* --- yv12 --- */          /* --- yv12 --- */

Legend:
Removed from v.1052  
changed lines
  Added in v.1053

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