Commit 93fc92b2 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

patch from Sayantan Datta about softness parameter stayed constant

CCMAIL: kenzo.zombie@gmail.com
parent b91b8e5a
......@@ -469,8 +469,8 @@ void NREstimate::startAnalyse()
if (L > 9)
L = 9;
Cr = datasd[2] / 2;
Cb = datasd[1] / 2;
Cr = datasd[2] * 0.8;
Cb = datasd[1] * 0.8;
if (Cr > 7)
Cr = 7;
......@@ -481,6 +481,15 @@ void NREstimate::startAnalyse()
L = floorf(L * 100) / 100;
Cb = floorf(Cb * 100) / 100;
Cr = floorf(Cr * 100) / 100;
if ( L > 9 )
LSoft = CrSoft = CbSoft = 0.8;
else if ( L > 3)
LSoft = CrSoft = CbSoft = 0.7;
else
LSoft = CrSoft = CbSoft = 0.6;
}
d->prm.thresholds[0] = L;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment