mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
removing todo!()
This commit is contained in:
@@ -92,8 +92,7 @@ impl FormatInformation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn MirrorBits(bits: u32) -> u32 {
|
pub fn MirrorBits(bits: u32) -> u32 {
|
||||||
todo!()
|
(bits.reverse_bits()) >> 17
|
||||||
// return BitHacks::Reverse(bits) >> 17;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn FindBestFormatInfo(mask: u32, lookup: [[u32; 2]; 32], bits: &[u32]) -> Self {
|
pub fn FindBestFormatInfo(mask: u32, lookup: [[u32; 2]; 32], bits: &[u32]) -> Self {
|
||||||
@@ -115,7 +114,8 @@ impl FormatInformation {
|
|||||||
// return fi;
|
// return fi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hamming distance of the 32 masked codes is 7, by construction, so <= 3 bits differing means we found a match
|
||||||
pub fn isValid(&self) -> bool {
|
pub fn isValid(&self) -> bool {
|
||||||
todo!()
|
self.hammingDistance <= 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ pub struct FastEdgeToEdgeCounter {
|
|||||||
// const uint8_t* p = nullptr;
|
// const uint8_t* p = nullptr;
|
||||||
// int stride = 0;
|
// int stride = 0;
|
||||||
// int stepsToBorder = 0;
|
// int stepsToBorder = 0;
|
||||||
|
p: usize,
|
||||||
|
stride: usize, // = 0;
|
||||||
|
stepsToBorder: usize, // = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FastEdgeToEdgeCounter {
|
impl FastEdgeToEdgeCounter {
|
||||||
|
|||||||
Reference in New Issue
Block a user