port writer and tests, but does not pass

This commit is contained in:
Henry Schimke
2022-11-27 12:00:35 -06:00
parent 6ccac83027
commit 07769fe154
8 changed files with 471 additions and 330 deletions

View File

@@ -89,12 +89,14 @@ impl Reader for AztecReader {
// }
// }
if let Some(rpcb) = hints.get(&DecodeHintType::NEED_RESULT_POINT_CALLBACK) {
if let DecodeHintValue::NeedResultPointCallback(cb) = rpcb {
for point in points {
cb(point);
}
if let Some(DecodeHintValue::NeedResultPointCallback(cb)) =
hints.get(&DecodeHintType::NEED_RESULT_POINT_CALLBACK)
{
// if let DecodeHintValue::NeedResultPointCallback(cb) = rpcb {
for point in points {
cb(point);
}
// }
}
let mut result = RXingResult::new_complex(