We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c1668 commit bc4a9b9Copy full SHA for bc4a9b9
src/idct.rs
@@ -139,7 +139,9 @@ fn dequantize_and_idct_block_8x8_inner<'a, I>(
139
// to encode as 0..255 by adding 128, so we'll add that before the shift
140
const X_SCALE: i32 = 65536 + (128 << 17);
141
142
- let [s0, rest @ ..] = chunk;
+ // TODO When the minimum rust version supports it
143
+ // let [s0, rest @ ..] = chunk;
144
+ let (s0, rest) = chunk.split_first().unwrap();
145
if *rest == [Wrapping(0); 7] {
146
let dcterm = stbi_clamp((stbi_fsh(*s0) + Wrapping(X_SCALE)) >> 17);
147
output_chunk[0] = dcterm;
0 commit comments