Merge pull request #130 from spompelio/downcast_revert

fixed an issue preventing QR codes from being scanned
This commit is contained in:
Nikolaos Ftylitakis 2019-08-14 12:05:41 +03:00 committed by GitHub
commit 8b7528143d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ namespace {
const int D = int(U) - 128;
const int E = int(V) - 128;
return gray(
qBound<uchar>(0, uchar((298 * C + 409 * E + 128) >> 8), 255),
qBound<uchar>(0, uchar((298 * C - 100 * D - 208 * E + 128) >> 8), 255),
qBound<uchar>(0, uchar((298 * C + 516 * D + 128) >> 8), 255)
qBound(0, ((298 * C + 409 * E + 128) >> 8), 255),
qBound(0, ((298 * C - 100 * D - 208 * E + 128) >> 8), 255),
qBound(0, ((298 * C + 516 * D + 128) >> 8), 255)
);
}