Skip to content

Commit

Permalink
just NUM
Browse files Browse the repository at this point in the history
  • Loading branch information
mo271 committed Dec 22, 2024
1 parent 719b7ea commit 53e7445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jxl/src/features/patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub enum PatchContext {
}

impl PatchContext {
const NUM_PATCH_DICTIONARY_CONTEXTS: usize = 10;
const NUM: usize = 10;
}

/// Blend modes
Expand Down Expand Up @@ -136,7 +136,7 @@ impl PatchesDictionary {
let num_extra_channels = decoder_state.extra_channel_info().len();
let blendings_stride = num_extra_channels + 1;
let patches_histograms =
Histograms::decode(PatchContext::NUM_PATCH_DICTIONARY_CONTEXTS, br, true)?;
Histograms::decode(PatchContext::NUM, br, true)?;
let mut patches_reader = patches_histograms.make_reader(br)?;
let num_ref_patch = patches_reader.read(br, PatchContext::NumRefPatch as usize)? as usize;
let num_pixels = xsize * ysize;
Expand Down

0 comments on commit 53e7445

Please sign in to comment.