diff options
author | metamuffin <metamuffin@disroot.org> | 2023-03-07 21:52:04 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-03-07 21:52:04 +0100 |
commit | 755325d6c8faa897ee686452831cb544d6c72d75 (patch) | |
tree | 7682fe2f18889fe95674f3de7242c5c1601b266d /lvc/src/lib.rs | |
parent | da39ed55e1440fba61122c5fa2262ab9b0a9dd21 (diff) | |
download | video-codec-experiments-755325d6c8faa897ee686452831cb544d6c72d75.tar video-codec-experiments-755325d6c8faa897ee686452831cb544d6c72d75.tar.bz2 video-codec-experiments-755325d6c8faa897ee686452831cb544d6c72d75.tar.zst |
more magic
Diffstat (limited to 'lvc/src/lib.rs')
-rw-r--r-- | lvc/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lvc/src/lib.rs b/lvc/src/lib.rs index 33a8cfb..94a432d 100644 --- a/lvc/src/lib.rs +++ b/lvc/src/lib.rs @@ -13,14 +13,14 @@ pub mod split; pub type PixelValue = i16; -#[derive(Debug, Clone, Copy, Default, Encode, Decode)] +#[derive(Debug, Clone, Copy, Default, Encode, Decode, PartialEq, Eq)] pub struct Pixel { pub r: PixelValue, pub g: PixelValue, pub b: PixelValue, } -#[derive(Debug, Clone, Copy, Default, Encode, Decode)] +#[derive(Debug, Clone, Copy, Default, Encode, Decode, PartialEq, Eq)] pub struct P2 { pub x: i32, pub y: i32, @@ -40,7 +40,7 @@ pub struct View { #[derive(Debug, Clone, Encode, Decode)] pub enum Block { Lit(Vec<Pixel>), - Split(Box<Block>,Box<Block>), + Split(Box<Block>, Box<Block>), Ref(Ref), } |