Skip to content

Commit

Permalink
Update encoder.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 authored Nov 17, 2023
1 parent 42cb4ed commit 9ff57c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codecs/tga/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ impl<W: Write> TgaEncoder<W> {
let bytes_per_pixel = color_type.bytes_per_pixel();
let capacity_in_bytes = usize::from(MAX_RUN_LENGTH) * usize::from(bytes_per_pixel);

// Buffer to temporarily store
// pixels that cannot be run-length encoded
// Buffer to temporarily store pixels
// so we can choose whether to use RLE or not when we need to
let mut buf = Vec::with_capacity(capacity_in_bytes);

let mut counter = 0;
Expand Down

0 comments on commit 9ff57c4

Please sign in to comment.