keyfork-qrcode: default to rqrr, keyfork default

This commit is contained in:
Ryan Heywood 2024-02-11 19:46:06 -05:00
parent 38b73b670e
commit 4e2c4487e9
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ license = "MIT"
[features]
default = []
bin = ["decode-backend-zbar"]
bin = ["decode-backend-rqrr"]
decode-backend-rqrr = ["dep:rqrr"]
decode-backend-zbar = ["dep:keyfork-zbar"]

View File

@ -22,9 +22,9 @@ impl Image {
///
/// A FourCC code can be given in the format:
///
/// ```no_run
/// ```rust,ignore
/// self.set_format(b"Y800")
/// ````
/// ```
pub(crate) fn set_format(&mut self, fourcc: &[u8; 4]) {
let fourcc: u64 = fourcc[0] as u64
| ((fourcc[1] as u64) << 8)