ref: 1d0ae2e63c29969ac710e202391498be7f861dda
parent: c5be54eef37365dca6da20bb8f98398178975d12
parent: 44f349df62e105860e8faeb29c5e3a6b9e61615e
author: Ronald S. Bultje <[email protected]>
date: Tue Jun 25 09:51:04 EDT 2013
Merge "Don't skip right/bottom border pixels in SSIM calculations."
--- a/vp9/encoder/vp9_ssim.c
+++ b/vp9/encoder/vp9_ssim.c
@@ -88,8 +88,9 @@
double ssim_total = 0;
// sample point start with each 4x4 location
- for (i = 0; i < height - 8; i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) {
- for (j = 0; j < width - 8; j += 4) {
+ for (i = 0; i <= height - 8;
+ i += 4, img1 += stride_img1 * 4, img2 += stride_img2 * 4) {
+ for (j = 0; j <= width - 8; j += 4) {
double v = ssim_8x8(img1 + j, stride_img1, img2 + j, stride_img2);
ssim_total += v;
samples++;