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

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

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

revision 926, Sun Mar 16 12:05:09 2003 UTC revision 982, Thu Apr 10 13:05:54 2003 UTC
# Line 1019  Line 1019 
1019    
1020          for (y = 0; y < height; y++)          for (y = 0; y < height; y++)
1021                  for (x = 0; x < width; x++)                  for (x = 0; x < width; x++)
1022                          sum += ABS(img1->y[x + y * stride] - img2->y[x + y * stride]);                          sum += abs(img1->y[x + y * stride] - img2->y[x + y * stride]);
1023    
1024          for (y = 0; y < height2; y++)          for (y = 0; y < height2; y++)
1025                  for (x = 0; x < width2; x++)                  for (x = 0; x < width2; x++)
1026                          sum += ABS(img1->u[x + y * stride2] - img2->u[x + y * stride2]);                          sum += abs(img1->u[x + y * stride2] - img2->u[x + y * stride2]);
1027    
1028          for (y = 0; y < height2; y++)          for (y = 0; y < height2; y++)
1029                  for (x = 0; x < width2; x++)                  for (x = 0; x < width2; x++)
1030                          sum += ABS(img1->v[x + y * stride2] - img2->v[x + y * stride2]);                          sum += abs(img1->v[x + y * stride2] - img2->v[x + y * stride2]);
1031    
1032          return (float) sum / (width * height * 3 / 2);          return (float) sum / (width * height * 3 / 2);
1033  }  }

Legend:
Removed from v.926  
changed lines
  Added in v.982

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