mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
multiformat reader and writer (no test)
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
//package com.google.zxing;
|
||||
|
||||
use std::rc::Rc;
|
||||
|
||||
use crate::{
|
||||
common::{BitArray, BitMatrix},
|
||||
Exceptions, LuminanceSource,
|
||||
@@ -70,7 +72,7 @@ pub trait Binarizer {
|
||||
* @param source The LuminanceSource this Binarizer will operate on.
|
||||
* @return A new concrete Binarizer implementation object.
|
||||
*/
|
||||
fn createBinarizer(&self, source: Box<dyn LuminanceSource>) -> Box<dyn Binarizer>;
|
||||
fn createBinarizer(&self, source: Box<dyn LuminanceSource>) -> Rc<dyn Binarizer>;
|
||||
|
||||
fn getWidth(&self) -> usize;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user