Implement T.4 MH (Modified Huffman) encoder

- encoder/mh.rs: Full T.4 Group 3 MH encoding implementation
- Uses ITU-T T.4 standard Huffman tables for white/black runs
- Adds EOL codes and RTC (6 EOLs) at document end
- Class2Send now encodes pixels to MH before transmission
- CLI convert command shows MH encoded size

Test result: 467KB raw pixels → 14.6KB MH encoded (~32:1 compression)
This commit is contained in:
Warren
2026-07-01 18:12:57 +08:00
parent 4b6c89bee0
commit b102917644
5 changed files with 212 additions and 12 deletions
+3
View File
@@ -0,0 +1,3 @@
pub mod mh;
pub use mh::MhEncoder;