diff options
author | metamuffin <metamuffin@disroot.org> | 2023-03-09 18:16:05 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-03-09 18:16:05 +0100 |
commit | ac27a58c87bea9480f6603a731448f69c9c3b0fb (patch) | |
tree | b437fb947a5d650c88d8db743c521e832f79611f /lvc/src/lib.rs | |
parent | 4fbf4bb4310da4bede43c9428809ac9a8804982a (diff) | |
download | video-codec-experiments-ac27a58c87bea9480f6603a731448f69c9c3b0fb.tar video-codec-experiments-ac27a58c87bea9480f6603a731448f69c9c3b0fb.tar.bz2 video-codec-experiments-ac27a58c87bea9480f6603a731448f69c9c3b0fb.tar.zst |
rearrange files
Diffstat (limited to 'lvc/src/lib.rs')
-rw-r--r-- | lvc/src/lib.rs | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/lvc/src/lib.rs b/lvc/src/lib.rs deleted file mode 100644 index 5ebd91c..0000000 --- a/lvc/src/lib.rs +++ /dev/null @@ -1,51 +0,0 @@ -#![feature(portable_simd)] -#![feature(io_error_other)] -#![feature(box_syntax)] - -pub mod debug; -pub mod decode; -pub mod diff; -pub mod encode; -pub mod huff; -pub mod impls; -pub mod serialize; -pub mod split; - -pub type PixelValue = i16; - -#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] -pub struct Pixel { - pub r: PixelValue, - pub g: PixelValue, - pub b: PixelValue, -} - -#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] -pub struct P2 { - pub x: i32, - pub y: i32, -} - -pub struct Frame { - pub size: P2, - pub pixels: Vec<Pixel>, -} - -#[derive(Debug, Clone, Copy)] -pub struct View { - pub a: P2, - pub b: P2, -} - -#[derive(Debug, Clone)] -pub enum Block { - Split(Box<Block>, Box<Block>), - Lit(Vec<Pixel>), - Ref(Ref), -} - -#[derive(Debug, Clone, Copy, Default)] -pub struct Ref { - pub pos_off: P2, - pub color_off: Pixel, -} |