From 22b07838e7d83998bc9d46e219410d1431527687 Mon Sep 17 00:00:00 2001 From: gennyble Date: Mon, 11 Sep 2023 00:02:34 -0500 Subject: ahh --- prism/src/unpack.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'prism/src/unpack.rs') diff --git a/prism/src/unpack.rs b/prism/src/unpack.rs index 03e0018..bc761f3 100644 --- a/prism/src/unpack.rs +++ b/prism/src/unpack.rs @@ -3,11 +3,6 @@ const TEN_MASK: u64 = 1023; // ten bits pub fn tenbit(packd: &[u8], count: usize, upack: &mut [u16]) { let required_len_packd = (count as f32 * (10.0 / 8.0)).ceil() as usize; - println!( - "requires {required_len_packd} bytes | {} groups of 5", - count / 4 - ); - if count > upack.len() { panic!( "expected output buffer to be {count} bytes, got {} bytes", @@ -60,3 +55,7 @@ pub fn tenbit(packd: &[u8], count: usize, upack: &mut [u16]) { } } } + +//pub fn twelvebit(packed: &[u8]) { +// 3 bytes per 2 12-bits +//} -- cgit 1.4.1-3-g733a5