2023-12-31 01:20:44 +02:00
|
|
|
use thermaldecoder::decode_to_files;
|
2023-12-31 00:19:24 +02:00
|
|
|
|
|
|
|
use std::env;
|
|
|
|
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
|
|
let mut arg = env::args();
|
2023-12-31 01:20:44 +02:00
|
|
|
arg.next(); // skip executable
|
2023-12-31 00:19:24 +02:00
|
|
|
let filename = arg.next().ok_or(anyhow::anyhow!("unexpected"))?;
|
|
|
|
let frames = arg.next().unwrap_or("frames".into());
|
2023-12-31 01:20:44 +02:00
|
|
|
decode_to_files(&filename, &frames)?;
|
2023-12-31 00:19:24 +02:00
|
|
|
Ok(())
|
|
|
|
}
|