[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 837, Wed Feb 12 13:24:24 2003 UTC revision 838, Wed Feb 12 13:31:24 2003 UTC
# Line 386  Line 386 
386          frame.general |= XVID_HALFPEL;          frame.general |= XVID_HALFPEL;
387  //      frame.general |= XVID_ME_EPZS;  //      frame.general |= XVID_ME_EPZS;
388    
389            frame.general |= XVID_HQACPRED;
390    
391          if (codec->config.motion_search > 4)          if (codec->config.motion_search > 4)
392                  frame.general |= XVID_INTER4V;                  frame.general |= XVID_INTER4V;
393    
# Line 457  Line 459 
459    
460          frame.motion |= pmvfast_presets[codec->config.motion_search];          frame.motion |= pmvfast_presets[codec->config.motion_search];
461    
462            switch (codec->config.vhq_mode)
463            {
464            case VHQ_MODE_DECISION :
465                    frame.general |= XVID_MODEDECISION_BITS;
466                    break;
467    
468            case VHQ_LIMITED_SEARCH :
469                    frame.general |= XVID_MODEDECISION_BITS;
470                    frame.motion |= HALFPELREFINE16_BITS;
471                    frame.motion |= QUARTERPELREFINE16_BITS;
472                    break;
473    
474            case VHQ_MEDIUM_SEARCH :
475                    frame.general |= XVID_MODEDECISION_BITS;
476                    frame.motion |= HALFPELREFINE16_BITS;
477                    frame.motion |= HALFPELREFINE8_BITS;
478                    frame.motion |= QUARTERPELREFINE16_BITS;
479                    frame.motion |= QUARTERPELREFINE8_BITS;
480                    frame.motion |= CHECKPREDICTION_BITS;
481                    break;
482    
483            case VHQ_WIDE_SEARCH :
484                    frame.general |= XVID_MODEDECISION_BITS;
485                    frame.motion |= HALFPELREFINE16_BITS;
486                    frame.motion |= HALFPELREFINE8_BITS;
487                    frame.motion |= QUARTERPELREFINE16_BITS;
488                    frame.motion |= QUARTERPELREFINE8_BITS;
489                    frame.motion |= CHECKPREDICTION_BITS;
490                    frame.motion |= EXTSEARCH_BITS;
491                    break;
492    
493            default :
494                    break;
495            }
496    
497          frame.image = icc->lpInput;          frame.image = icc->lpInput;
498          frame.stride = (((icc->lpbiInput->biWidth * icc->lpbiInput->biBitCount) + 31) & ~31) >> 3;          frame.stride = (((icc->lpbiInput->biWidth * icc->lpbiInput->biBitCount) + 31) & ~31) >> 3;
499    

Legend:
Removed from v.837  
changed lines
  Added in v.838

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