Skip to content

Commit

Permalink
Add two simple pipeline stages and some tests for the pipeline.
Browse files Browse the repository at this point in the history
Also fixes multiple bugs in the pipeline implementation and adds various
utilities to `image`.
  • Loading branch information
veluca93 committed Oct 2, 2024
1 parent bc053d1 commit 3ecdba4
Show file tree
Hide file tree
Showing 10 changed files with 748 additions and 63 deletions.
94 changes: 94 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions jxl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jxl_macros = { path = "../jxl_macros" }

[dev-dependencies]
arbtest = "0.3.1"
rand = "0.8.5"
rand_xorshift = "0.3.0"
test-log = { version = "0.2.16", features = ["trace"] }

[features]
Expand Down
2 changes: 2 additions & 0 deletions jxl/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ pub enum Error {
PipelineShiftAfterExpand(String),
#[error("Channel {0} was not used in the render pipeline")]
PipelineChannelUnused(usize),
#[error("Trying to copy rects of different size, src: {0}x{1} dst {2}x{3}")]
CopyOfDifferentSize(usize, usize, usize, usize),
}

pub type Result<T, E = Error> = std::result::Result<T, E>;
Loading

0 comments on commit 3ecdba4

Please sign in to comment.