non passing aztec decoder port

This commit is contained in:
Henry Schimke
2022-09-19 21:48:40 -05:00
parent 3cb5973be2
commit 1b3535c0df
13 changed files with 1131 additions and 894 deletions

View File

@@ -719,27 +719,17 @@ impl fmt::Display for BitArray {
*
* @author Sean Owen
*/
pub struct DetectorRXingResult {
bits: BitMatrix,
points: Vec<RXingResultPoint>,
pub trait DetectorRXingResult {
fn getBits(&self) -> &BitMatrix;
fn getPoints(&self) -> &Vec<RXingResultPoint>;
}
impl DetectorRXingResult {
pub fn new(bits: BitMatrix, points: Vec<RXingResultPoint>) -> Self {
Self {
bits: bits,
points: points,
}
}
pub fn getBits(&self) -> &BitMatrix {
return &self.bits;
}
pub fn getPoints(&self) -> &Vec<RXingResultPoint> {
return &self.points;
}
}
// pub struct DetectorRXingResult {
// bits: BitMatrix,
// points: Vec<RXingResultPoint>,
// }
/*
* Copyright 2007 ZXing authors