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 55a4a9a commit 5338cd7Copy full SHA for 5338cd7
src/idct.rs
@@ -145,6 +145,9 @@ fn dequantize_and_idct_block_8x8_inner<'a, I>(
145
// to encode as 0..255 by adding 128, so we'll add that before the shift
146
const X_SCALE: i32 = 65536 + (128 << 17);
147
148
+ // eliminate downstream bounds checks
149
+ let output_chunk = &mut output_chunk[..8];
150
+
151
// TODO When the minimum rust version supports it
152
// let [s0, rest @ ..] = chunk;
153
let (s0, rest) = chunk.split_first().unwrap();
0 commit comments