Skip to content

Commit

Permalink
set value, not row
Browse files Browse the repository at this point in the history
  • Loading branch information
mo271 committed Nov 22, 2024
1 parent e0ebab2 commit 028737b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jxl/src/render/stages/upsample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ impl Upsample2x {
}
Upsample2x { kernel, channel }
}

}

impl std::fmt::Display for Upsample2x {
Expand Down Expand Up @@ -122,10 +121,7 @@ mod test {
fn test_upsample2() -> Result<()> {
let mut input = Image::new((7, 7))?;
// Put a single "1.0" in the middle of the image.
input
.as_rect_mut()
.row(3)
.copy_from_slice(&[0.0f32, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0]);
input.as_rect_mut().row(3)[3] = 1.0;
let ups_factors = CustomTransformData::default();
let stage = Upsample2x::new(&ups_factors, 0);
let output: Vec<Image<f32>> =
Expand Down

0 comments on commit 028737b

Please sign in to comment.