[svn] / branches / Isibaar / xvidcore / src / motion / motion_est.c Repository:
ViewVC logotype

Diff of /branches/Isibaar/xvidcore/src/motion/motion_est.c

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

revision 1002, Sat May 3 10:05:56 2003 UTC revision 1004, Sat May 3 23:26:55 2003 UTC
# Line 966  Line 966 
966          pMB->sad16 = pMB->sad8[0] = pMB->sad8[1] = pMB->sad8[2] = pMB->sad8[3] = sad;          pMB->sad16 = pMB->sad8[0] = pMB->sad8[1] = pMB->sad8[2] = pMB->sad8[3] = sad;
967  }  }
968    
969    static __inline void
970    ZeroMacroblockP(MACROBLOCK *pMB, const int32_t sad)
971    {
972            pMB->mode = MODE_INTER;
973            pMB->mvs[0] = pMB->mvs[1] = pMB->mvs[2] = pMB->mvs[3] = zeroMV;
974            pMB->qmvs[0] = pMB->qmvs[1] = pMB->qmvs[2] = pMB->qmvs[3] = zeroMV;
975            pMB->sad16 = pMB->sad8[0] = pMB->sad8[1] = pMB->sad8[2] = pMB->sad8[3] = sad;
976    }
977    
978  bool  bool
979  MotionEstimation(MBParam * const pParam,  MotionEstimation(MBParam * const pParam,
980                                  FRAMEINFO * const current,                                  FRAMEINFO * const current,
# Line 1065  Line 1074 
1074                                          }                                          }
1075                          }                          }
1076    
1077                            if ((current->global_flags & XVID_CARTOON_MODE) &&
1078                                    (sad00 < pMB->quant * 4 * skip_thresh)) { /* favorize (0,0) vector for cartoons */
1079                                    ZeroMacroblockP(pMB, sad00);
1080                                    continue;
1081                            }
1082    
1083                          SearchP(pRef, pRefH->y, pRefV->y, pRefHV->y, pCurrent, x,                          SearchP(pRef, pRefH->y, pRefV->y, pRefHV->y, pCurrent, x,
1084                                                  y, MotionFlags, current->global_flags, pMB->quant,                                                  y, MotionFlags, current->global_flags, pMB->quant,
1085                                                  &Data, pParam, pMBs, reference->mbs,                                                  &Data, pParam, pMBs, reference->mbs,

Legend:
Removed from v.1002  
changed lines
  Added in v.1004

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