mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
basic support for maxicode detection
This commit is contained in:
@@ -45,12 +45,12 @@ static RS_DECODER: Lazy<ReedSolomonDecoder> = Lazy::new(|| {
|
||||
))
|
||||
});
|
||||
|
||||
pub fn decode(bits: BitMatrix) -> Result<DecoderRXingResult, Exceptions> {
|
||||
pub fn decode(bits: &BitMatrix) -> Result<DecoderRXingResult, Exceptions> {
|
||||
decode_with_hints(bits, &HashMap::new())
|
||||
}
|
||||
|
||||
pub fn decode_with_hints(
|
||||
bits: BitMatrix,
|
||||
bits: &BitMatrix,
|
||||
_hints: &DecodingHintDictionary,
|
||||
) -> Result<DecoderRXingResult, Exceptions> {
|
||||
let parser = BitMatrixParser::new(bits);
|
||||
|
||||
Reference in New Issue
Block a user