qr_code_multi_reader ported

This commit is contained in:
Henry Schimke
2022-12-01 11:17:23 -06:00
parent 5273136c96
commit 63a10db413
9 changed files with 223 additions and 173 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
use std::collections::HashMap;
use std::{collections::HashMap, rc::Rc};
/**
* <p>The main class which implements QR Code decoding -- as opposed to locating and extracting
@@ -115,7 +115,7 @@ pub fn decode_bitmatrix_with_hints(
let mut result = decode_bitmatrix_parser_with_hints(&mut parser, hints)?;
// Success! Notify the caller that the code was mirrored.
result.setOther(Box::new(QRCodeDecoderMetaData::new(true)));
result.setOther(Rc::new(QRCodeDecoderMetaData::new(true)));
Ok(result)
};