rename lzw module to lzwgif to better reflect what it does

that it's not an implementation for LZW but the GIF-variant/specific
version of LZW
This commit is contained in:
Gered 2022-12-30 11:53:22 -05:00
parent cd9c44dab0
commit 6ffa742d84
3 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use thiserror::Error;
use crate::graphics::*;
use crate::utils::lzw::{lzw_decode, lzw_encode, LzwError};
use crate::utils::lzwgif::*;
const BITS_FOR_256_COLORS: u32 = 7; // formula is `2 ^ (bits + 1) = num_colors`

View file

@ -6,7 +6,7 @@ use rand::Rng;
pub mod bytes;
pub mod io;
pub mod lzw;
pub mod lzwgif;
pub mod packbits;
pub fn rnd_value<N: SampleUniform + PartialOrd>(low: N, high: N) -> N {