diff options
Diffstat (limited to 'evc/src/bin/decode.rs')
-rw-r--r-- | evc/src/bin/decode.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/evc/src/bin/decode.rs b/evc/src/bin/decode.rs index 0a00426..af6edc6 100644 --- a/evc/src/bin/decode.rs +++ b/evc/src/bin/decode.rs @@ -45,13 +45,7 @@ fn main() -> anyhow::Result<()> { fn blit_block(block: &Block, mut target: View<&mut Frame>, prev: View<&Frame>) { match &block.inner { - BlockInner::Literal(pixels) => { - for x in 0..block.size.0 { - for y in 0..block.size.1 { - target[(x, y)] = pixels[x + y * block.size.0] - } - } - } + BlockInner::Literal(pixels) => target.set_pixels(pixels), BlockInner::Split(box [a, b]) => { let [at, bt] = target.split_mut_unsafe(); let [ap, bp] = prev.split(); |