diff options
Diffstat (limited to 'evc/src/bin')
-rw-r--r-- | evc/src/bin/encode.rs | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/evc/src/bin/encode.rs b/evc/src/bin/encode.rs index 4b7e26c..135a0e8 100644 --- a/evc/src/bin/encode.rs +++ b/evc/src/bin/encode.rs @@ -24,6 +24,13 @@ pub struct EncodeArgs { #[arg(short, long)] mode: EncodeMode, + #[arg(long)] + no_linear_transform: bool, + #[arg(long)] + no_value_scale: bool, + #[arg(long)] + no_translate: bool, + #[arg(short, long, default_value = "8")] jobs: usize, @@ -48,8 +55,9 @@ fn main() -> anyhow::Result<()> { max_diff_area: 10_000, min_block_size: args.min_block_size, max_threads: args.jobs, - do_matrix_transform: false, - do_value_scale: false, + do_translate: !args.no_translate, + do_linear_transform: !args.no_linear_transform, + do_value_scale: !args.no_value_scale, }; let size = Vec2 { @@ -73,13 +81,13 @@ fn main() -> anyhow::Result<()> { let (error, mut root) = encode_block(v1, v2, &config); - compress_block( - &mut root, - Vec2 { - x: size.x as usize, - y: size.y as usize, - }, - ); + // compress_block( + // &mut root, + // Vec2 { + // x: size.x as usize, + // y: size.y as usize, + // }, + // ); root.write(&mut output, size) .context("writing encoded frame")?; |