[svn] / branches / dev-api-4 / xvidcore / src / motion / motion_est.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/motion/motion_est.c

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

revision 992, Fri Apr 25 14:53:37 2003 UTC revision 1010, Tue May 6 23:41:29 2003 UTC
# Line 2178  Line 2178 
2178          }          }
2179  }  }
2180    
2181  #define INTRA_THRESH    2050  #define INTRA_THRESH    1800
2182  #define INTER_THRESH    1200  #define INTER_THRESH    1200
2183    
2184  int  int
# Line 2208  Line 2208 
2208          CheckCandidate = CheckCandidate32I;          CheckCandidate = CheckCandidate32I;
2209    
2210          if (intraCount != 0 && intraCount < 10) // we're right after an I frame          if (intraCount != 0 && intraCount < 10) // we're right after an I frame
2211                  IntraThresh += 8 * (intraCount - 10) * (intraCount - 10);                  IntraThresh += 15 * (intraCount - 10) * (intraCount - 10);
2212          else          else
2213                  if ( 5*(maxIntra - intraCount) < maxIntra) // we're close to maximum. 2 sec when max is 10 sec                  if ( 5*(maxIntra - intraCount) < maxIntra) // we're close to maximum. 2 sec when max is 10 sec
2214                          IntraThresh -= (IntraThresh * (maxIntra - 5*(maxIntra - intraCount)))/maxIntra;                          IntraThresh -= (IntraThresh * (maxIntra - 8*(maxIntra - intraCount)))/maxIntra;
2215    
2216          InterThresh -= (350 - 8*b_thresh) * bCount;          InterThresh -= (350 - 8*b_thresh) * bCount;
2217          if (InterThresh < 300 + 5*b_thresh) InterThresh = 300 + 5*b_thresh;          if (InterThresh < 300 + 5*b_thresh) InterThresh = 300 + 5*b_thresh;

Legend:
Removed from v.992  
changed lines
  Added in v.1010

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