[svn] / trunk / vfw / src / codec.c Repository:
ViewVC logotype

Diff of /trunk/vfw/src/codec.c

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

revision 858, Sun Feb 16 04:37:29 2003 UTC revision 1092, Thu Jul 17 10:37:44 2003 UTC
# Line 193  Line 193 
193    
194          if (lpbiOutput == NULL)          if (lpbiOutput == NULL)
195          {          {
196                  return sizeof(BITMAPV4HEADER);                  return sizeof(BITMAPINFOHEADER);
197          }          }
198    
199          memcpy(outhdr, inhdr, sizeof(BITMAPINFOHEADER));          memcpy(outhdr, inhdr, sizeof(BITMAPINFOHEADER));
# Line 388  Line 388 
388    
389          frame.general |= XVID_HQACPRED;          frame.general |= XVID_HQACPRED;
390    
391            frame.bframe_threshold = 255;
392    
393          if (codec->config.motion_search > 4)          if (codec->config.motion_search > 4)
394                  frame.general |= XVID_INTER4V;                  frame.general |= XVID_INTER4V;
395    
# Line 582  Line 584 
584          }          }
585    
586          frame.bquant = 0;          frame.bquant = 0;
587            frame.bframe_threshold = 0;
588    
589  //      OutputDebugString(" ");  //      OutputDebugString(" ");
590          switch (xvid_encore(codec->ehandle, XVID_ENC_ENCODE, &frame, &stats))          switch (xvid_encore(codec->ehandle, XVID_ENC_ENCODE, &frame, &stats))
# Line 605  Line 608 
608          {          {
609                  *icc->lpdwFlags = 0;                  *icc->lpdwFlags = 0;
610          }          }
611            if (frame.length == 0) { frame.length = 1; *((unsigned char*)frame.bitstream) = 0x7f; }
612    
613          outhdr->biSizeImage = frame.length;          outhdr->biSizeImage = frame.length;
614    

Legend:
Removed from v.858  
changed lines
  Added in v.1092

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