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

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

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

revision 704, Wed Dec 11 10:32:29 2002 UTC revision 709, Thu Dec 12 12:42:31 2002 UTC
# Line 2216  Line 2216 
2216                                                            pParam->edged_width);                                                            pParam->edged_width);
2217                                  if (dev + IntraThresh < sad) {                                  if (dev + IntraThresh < sad) {
2218                                          pMB->mode = MODE_INTRA;                                          pMB->mode = MODE_INTRA;
2219                                          if (++intra > (pParam->mb_height-2)*(pParam->mb_width-2)/2) return 2;  // I frame                                          if (++intra > (pParam->mb_height-2)*(pParam->mb_width-2)/2) return I_VOP;
2220                                  }                                  }
2221                          }                          }
2222                          sSAD += sad;                          sSAD += sad;
2223                  }                  }
2224          }          }
2225          sSAD /= (pParam->mb_height-2)*(pParam->mb_width-2);          sSAD /= (pParam->mb_height-2)*(pParam->mb_width-2);
2226          if (sSAD > InterThresh ) return 1; //P frame          if (sSAD > InterThresh ) return P_VOP;
2227          emms();          emms();
2228          return 0; // B frame          return B_VOP;
   
2229  }  }
2230    
2231  static void  static void

Legend:
Removed from v.704  
changed lines
  Added in v.709

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