Skip to content

Commit

Permalink
Clean up new rayon code to separate mulitplexer code from lepton pars…
Browse files Browse the repository at this point in the history
…ing (#62)

* refactor threading logic into multiplexer away from lepton processing logic

* some cleanup

* move comment

* add comment

* add more comments
  • Loading branch information
mcroomp authored Apr 12, 2024
1 parent 6bbb0ef commit 1cad690
Show file tree
Hide file tree
Showing 4 changed files with 486 additions and 422 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ fn main_with_result() -> anyhow::Result<()> {

(block_image, _metrics) = lh
.decode_as_single_image(
&mut reader,
filelen,
&mut reader.take(filelen - 4), // last 4 bytes are the length of the file
num_threads as usize,
&enabled_features,
)
Expand Down
Loading

0 comments on commit 1cad690

Please sign in to comment.