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

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

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

revision 1123, Mon Aug 18 19:02:50 2003 UTC revision 1124, Fri Aug 22 15:20:41 2003 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: sad.c,v 1.13.2.4 2003-06-09 13:54:46 edgomez Exp $   * $Id: sad.c,v 1.13.2.5 2003-08-22 15:20:41 edgomez Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 228  Line 228 
228                             int32_t *sad)                             int32_t *sad)
229  {  {
230          sad[0] = sad16(cur, ref, stride, 256*4096);          sad[0] = sad16(cur, ref, stride, 256*4096);
231          sad[1] = sad16(cur + 8, ref + 8, stride, 256*4096);          sad[1] = sad16(cur + 16, ref + 16, stride, 256*4096);
232          sad[2] = sad16(cur + 8*stride, ref + 8*stride, stride, 256*4096);          sad[2] = sad16(cur + 16*stride, ref + 16*stride, stride, 256*4096);
233          sad[3] = sad16(cur + 8*stride + 8, ref + 8*stride + 8, stride, 256*4096);          sad[3] = sad16(cur + 16*stride + 16, ref + 16*stride + 16, stride, 256*4096);
234    
235          return sad[0]+sad[1]+sad[2]+sad[3];          return sad[0]+sad[1]+sad[2]+sad[3];
236  }  }
# Line 278  Line 278 
278          return MRSAD16_CORRFACTOR * sad;          return MRSAD16_CORRFACTOR * sad;
279    
280  }  }
   
   

Legend:
Removed from v.1123  
changed lines
  Added in v.1124

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