keyfork-qrcode: default to rqrr, keyfork default
This commit is contained in:
parent
38b73b670e
commit
4e2c4487e9
|
@ -9,7 +9,7 @@ license = "MIT"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
bin = ["decode-backend-zbar"]
|
bin = ["decode-backend-rqrr"]
|
||||||
decode-backend-rqrr = ["dep:rqrr"]
|
decode-backend-rqrr = ["dep:rqrr"]
|
||||||
decode-backend-zbar = ["dep:keyfork-zbar"]
|
decode-backend-zbar = ["dep:keyfork-zbar"]
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,9 @@ impl Image {
|
||||||
///
|
///
|
||||||
/// A FourCC code can be given in the format:
|
/// A FourCC code can be given in the format:
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```rust,ignore
|
||||||
/// self.set_format(b"Y800")
|
/// self.set_format(b"Y800")
|
||||||
/// ````
|
/// ```
|
||||||
pub(crate) fn set_format(&mut self, fourcc: &[u8; 4]) {
|
pub(crate) fn set_format(&mut self, fourcc: &[u8; 4]) {
|
||||||
let fourcc: u64 = fourcc[0] as u64
|
let fourcc: u64 = fourcc[0] as u64
|
||||||
| ((fourcc[1] as u64) << 8)
|
| ((fourcc[1] as u64) << 8)
|
||||||
|
|
Loading…
Reference in New Issue