basic support for maxicode detection

This commit is contained in:
Henry Schimke
2023-01-23 17:14:01 -06:00
parent 8a52d47959
commit f5abe86922
7 changed files with 1018 additions and 14 deletions

View File

@@ -155,14 +155,14 @@ const BITNR: [[i16; 30]; 33] = [
* @author mike32767
* @author Manuel Kasten
*/
pub struct BitMatrixParser(BitMatrix);
pub struct BitMatrixParser<'a>(&'a BitMatrix);
impl BitMatrixParser {
impl<'a> BitMatrixParser<'_> {
/**
* @param bitMatrix {@link BitMatrix} to parse
*/
pub fn new(bitMatrix: BitMatrix) -> Self {
Self(bitMatrix)
pub fn new(bitMatrix: &'a BitMatrix) -> BitMatrixParser<'a> {
BitMatrixParser(bitMatrix)
}
pub fn readCodewords(&self) -> [u8; 144] {