From 736ebd6102eb5df134acbda8aac94f034d5bebe4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 7 May 2025 15:10:30 +0200 Subject: test2 --- test2/src/main.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test2/src/main.rs (limited to 'test2/src/main.rs') diff --git a/test2/src/main.rs b/test2/src/main.rs new file mode 100644 index 0000000..1f10f76 --- /dev/null +++ b/test2/src/main.rs @@ -0,0 +1,17 @@ +pub mod decode; +pub mod encode; + +use decode::Dec; +use encode::Enc; +use framework::bitstream_filter_main; +use std::env::args; + +pub const BLOCK_SIZE: i32 = 8; + +fn main() -> Result<(), std::io::Error> { + match args().nth(1).unwrap().as_str() { + "enc" => bitstream_filter_main::(), + "dec" => bitstream_filter_main::(), + _ => panic!("unknown mode"), + } +} -- cgit v1.2.3-70-g09d2