[cvs] / xvidcore / src / image / image.c Repository:
ViewVC logotype

Diff of /xvidcore/src/image/image.c

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

revision 1.20.2.13, Sun Dec 29 06:48:25 2002 UTC revision 1.20.2.16, Sat Jan 25 22:44:50 2003 UTC
# Line 938  Line 938 
938          return psnr_y;          return psnr_y;
939  }  }
940    
941    long plane_sse(uint8_t * orig,
942                       uint8_t * recon,
943                       uint16_t stride,
944                       uint16_t width,
945                       uint16_t height)
946    {
947            int diff, x, y;
948            long sse=0;
949    
950            for (y = 0; y < height; y++) {
951                    for (x = 0; x < width; x++) {
952                            diff = *(orig + x) - *(recon + x);
953                            sse += diff * diff;
954                    }
955                    orig += stride;
956                    recon += stride;
957            }
958            return sse;
959    }
960    
961  /*  /*
962    
963  #include <stdio.h>  #include <stdio.h>
# Line 1034  Line 1054 
1054  }  }
1055    
1056    
 #define ABS(X)    (((X)>0)?(X):-(X))  
1057  float  float
1058  image_mad(const IMAGE * img1,  image_mad(const IMAGE * img1,
1059                    const IMAGE * img2,                    const IMAGE * img2,
# Line 1200  Line 1219 
1219          }          }
1220    
1221  }  }
1222    

Legend:
Removed from v.1.20.2.13  
changed lines
  Added in v.1.20.2.16

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