mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-18 16:54:33 +00:00
zbar: Consistent fourcc across architectures
This commit is contained in:
parent
87b8d13a89
commit
d26d25186d
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ QString QrCodeUtils::scanImage(const QImage &img) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
zbar::Image scanImg = zImg.convert(*(long*)"Y800");
|
zbar::Image scanImg = zImg.convert(zbar_fourcc('Y', '8', '0', '0'));
|
||||||
scanner.scan(scanImg);
|
scanner.scan(scanImg);
|
||||||
|
|
||||||
QString result;
|
QString result;
|
||||||
|
|
|
@ -26,7 +26,7 @@ void QrScanThread::image_callback(zbar::Image &image)
|
||||||
void QrScanThread::processZImage(zbar::Image &image)
|
void QrScanThread::processZImage(zbar::Image &image)
|
||||||
{
|
{
|
||||||
m_scanner.recycle_image(image);
|
m_scanner.recycle_image(image);
|
||||||
zbar::Image tmp = image.convert(*(long*)"Y800");
|
zbar::Image tmp = image.convert(zbar_fourcc('Y', '8', '0', '0'));
|
||||||
m_scanner.scan(tmp);
|
m_scanner.scan(tmp);
|
||||||
image.set_symbols(tmp.get_symbols());
|
image.set_symbols(tmp.get_symbols());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue