mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
rename bitmatrix test cases mod
This commit is contained in:
@@ -690,3 +690,19 @@ impl From<&BitMatrix> for image::DynamicImage {
|
||||
pixels.into()
|
||||
}
|
||||
}
|
||||
|
||||
// impl From<BitMatrix> for Vec<u8> {
|
||||
// fn from(value: BitMatrix) -> Self {
|
||||
// let mut output_vector = Vec::new();
|
||||
// for y in 0..value.getHeight() {
|
||||
// for col in (0..value.getWidth()).step_by(8) {
|
||||
// let mut byte = 0_u8;
|
||||
// for x in 0..8 {
|
||||
// byte |= u8::from(value.get(col+x, y)) << x
|
||||
// }
|
||||
// output_vector.push(byte);
|
||||
// }
|
||||
// }
|
||||
// output_vector
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -396,5 +396,3 @@ fn get_input(width: u32, height: u32) -> BitMatrix {
|
||||
}
|
||||
result
|
||||
}
|
||||
|
||||
// }
|
||||
@@ -10,7 +10,7 @@ mod StringUtilsTestCase;
|
||||
mod BitArrayTestCase;
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) mod BitMatrixTestCase;
|
||||
pub(crate) mod bit_matrix_test_case;
|
||||
|
||||
#[cfg(test)]
|
||||
mod BitSourceTestCase;
|
||||
|
||||
Reference in New Issue
Block a user