mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 04:42:35 +00:00
swap point_f and point functions
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
use std::hash::Hash;
|
||||
|
||||
use crate::{point, Point};
|
||||
use crate::{point_f, Point};
|
||||
|
||||
/**
|
||||
* Encapsulates an RSS barcode finder pattern, including its start/end position and row.
|
||||
@@ -34,8 +34,8 @@ impl FinderPattern {
|
||||
value,
|
||||
startEnd,
|
||||
resultPoints: vec![
|
||||
point(start as f32, rowNumber as f32),
|
||||
point(end as f32, rowNumber as f32),
|
||||
point_f(start as f32, rowNumber as f32),
|
||||
point_f(end as f32, rowNumber as f32),
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ use std::collections::HashMap;
|
||||
use crate::{
|
||||
common::{BitArray, Result},
|
||||
oned::{one_d_reader, OneDReader},
|
||||
point, BarcodeFormat, Binarizer, DecodeHintType, DecodeHintValue, DecodingHintDictionary,
|
||||
point_f, BarcodeFormat, Binarizer, DecodeHintType, DecodeHintValue, DecodingHintDictionary,
|
||||
Exceptions, RXingResult, RXingResultMetadataType, RXingResultMetadataValue, Reader,
|
||||
};
|
||||
|
||||
@@ -259,7 +259,7 @@ impl RSS14Reader {
|
||||
// row is actually reversed
|
||||
center = row.get_size() as f32 - 1.0 - center;
|
||||
}
|
||||
cb(point(center, rowNumber as f32));
|
||||
cb(point_f(center, rowNumber as f32));
|
||||
}
|
||||
|
||||
let outside = self.decodeDataCharacter(row, &pattern, true)?;
|
||||
|
||||
Reference in New Issue
Block a user