diff options
Diffstat (limited to 'framework/src/lib.rs')
-rw-r--r-- | framework/src/lib.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/framework/src/lib.rs b/framework/src/lib.rs index 89fcc10..230aedb 100644 --- a/framework/src/lib.rs +++ b/framework/src/lib.rs @@ -5,6 +5,7 @@ use std::{ }; use vector::{UVec2, Vec2}; +pub mod common; pub mod vector; #[derive(Clone)] @@ -56,10 +57,14 @@ impl Framework { } pub fn encode_done(&mut self, output: &[u8]) { let el = self.process_start.elapsed(); - eprintln!("size={}Kb t={el:?}", output.len() / 1000 * 8) + eprintln!( + "size={}KB ratio={:.02} t={el:?}", + output.len() / 1000, + (self.params.width * self.params.height * 3) / output.len() + ) } - pub fn next_chunk(&mut self, buffer: &mut Vec<u8>) -> bool { + pub fn next_chunk(&mut self, _buffer: &mut Vec<u8>) -> bool { true } pub fn decode_done(&mut self, output: &Frame) { |