Parent Directory | Revision Log | Patch
revision 806, Sat Jan 25 06:55:12 2003 UTC | revision 807, 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> |
|
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |