aboutsummaryrefslogtreecommitdiff
path: root/test2/src/decode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test2/src/decode.rs')
-rw-r--r--test2/src/decode.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/test2/src/decode.rs b/test2/src/decode.rs
index da0538b..016a9d1 100644
--- a/test2/src/decode.rs
+++ b/test2/src/decode.rs
@@ -1,4 +1,4 @@
-use crate::{BLOCK_SIZE, Frame};
+use crate::{BLOCK_SIZE, Frame, huffman::decode_huff};
use framework::BitstreamFilter;
use glam::{IVec2, ivec2};
@@ -19,7 +19,8 @@ impl BitstreamFilter for Dec {
}
fn process_block(&mut self, a: Vec<u8>) -> Vec<u8> {
- let mut buf = a.as_slice();
+ let buf = decode_huff(a);
+ let mut buf = buf.as_slice();
let mut frame = Frame::new(self.res);
for by in 0..frame.res.y / BLOCK_SIZE {
for bx in 0..frame.res.x / BLOCK_SIZE {