about summary refs log tree commit diff
path: root/prism/src/unpack.rs
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2023-09-11 00:02:34 -0500
committergennyble <gen@nyble.dev>2023-09-11 00:02:34 -0500
commit22b07838e7d83998bc9d46e219410d1431527687 (patch)
treea555d319221b9f6c2ab17808d2ea4b6f0244765a /prism/src/unpack.rs
parent33fcfd870447724f17f868da082a74ce9fcec7cd (diff)
downloadlri-rs-22b07838e7d83998bc9d46e219410d1431527687.tar.gz
lri-rs-22b07838e7d83998bc9d46e219410d1431527687.zip
ahh
Diffstat (limited to 'prism/src/unpack.rs')
-rw-r--r--prism/src/unpack.rs9
1 files changed, 4 insertions, 5 deletions
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
+//}