From cb26fb92aedd7a43f48cf9b0ed56d6d8a1c2c167 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Wed, 4 Oct 2017 18:20:10 +0100 Subject: [PATCH] Fix SSIM of chroma samples --- lib/PlaYUVerFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PlaYUVerFrame.cpp b/lib/PlaYUVerFrame.cpp index 2dc4054..8f1c808 100644 --- a/lib/PlaYUVerFrame.cpp +++ b/lib/PlaYUVerFrame.cpp @@ -1440,7 +1440,7 @@ Double PlaYUVerFrame::getSSIM( PlaYUVerFrame* Org, Int component ) else { dSSIM = compute_ssim( d->m_pppcInputPel[component], Org->getPelBufferYUV()[component], - getChromaWidth(), getChromaHeight(), 4, 4, 255, 8 ); + getChromaWidth(), getChromaHeight(), 4, 4, 255, 4 ); } return dSSIM; }