mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
swap point_f and point functions
This commit is contained in:
@@ -18,7 +18,7 @@ use std::collections::HashMap;
|
||||
|
||||
use crate::{
|
||||
common::{BitMatrix, DecoderRXingResult, DetectorRXingResult, Result},
|
||||
point, BarcodeFormat, Binarizer, DecodeHintType, DecodeHintValue, Exceptions, Point,
|
||||
point_f, BarcodeFormat, Binarizer, DecodeHintType, DecodeHintValue, Exceptions, Point,
|
||||
RXingResult, RXingResultMetadataType, RXingResultMetadataValue, Reader,
|
||||
};
|
||||
|
||||
@@ -237,7 +237,7 @@ impl QRCodeReader {
|
||||
let mut inBlack = true;
|
||||
let mut transitions = 0;
|
||||
while x < width && y < height {
|
||||
if inBlack != image.get_point(point(x, y)) {
|
||||
if inBlack != image.get_point(point_f(x, y)) {
|
||||
transitions += 1;
|
||||
if transitions == 5 {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user