mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-19 14:24:28 +00:00
fixed an issue preventing QR codes from being scanned
This commit is contained in:
parent
897526702f
commit
bbde505d8c
@ -19,9 +19,9 @@ namespace {
|
|||||||
const int D = int(U) - 128;
|
const int D = int(U) - 128;
|
||||||
const int E = int(V) - 128;
|
const int E = int(V) - 128;
|
||||||
return gray(
|
return gray(
|
||||||
qBound<uchar>(0, uchar((298 * C + 409 * E + 128) >> 8), 255),
|
qBound(0, ((298 * C + 409 * E + 128) >> 8), 255),
|
||||||
qBound<uchar>(0, uchar((298 * C - 100 * D - 208 * E + 128) >> 8), 255),
|
qBound(0, ((298 * C - 100 * D - 208 * E + 128) >> 8), 255),
|
||||||
qBound<uchar>(0, uchar((298 * C + 516 * D + 128) >> 8), 255)
|
qBound(0, ((298 * C + 516 * D + 128) >> 8), 255)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user