diff options
author | metamuffin <metamuffin@disroot.org> | 2022-12-05 20:29:05 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-12-05 20:29:05 +0100 |
commit | 96e316ea16b7b915e02735457d5ac7495d3db305 (patch) | |
tree | e2ef2957009dd96c452fb8a80020ed83caa70993 /evc/spec.md | |
parent | 75b87762196c461069fa087f8aa3c978d7407549 (diff) | |
download | video-codec-experiments-96e316ea16b7b915e02735457d5ac7495d3db305.tar video-codec-experiments-96e316ea16b7b915e02735457d5ac7495d3db305.tar.bz2 video-codec-experiments-96e316ea16b7b915e02735457d5ac7495d3db305.tar.zst |
serialization
Diffstat (limited to 'evc/spec.md')
-rw-r--r-- | evc/spec.md | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/evc/spec.md b/evc/spec.md index 14fe748..b22fbb6 100644 --- a/evc/spec.md +++ b/evc/spec.md @@ -1,19 +1,21 @@ -# File format +# The Experimental Video Codec + +## File format - magic bytes: `5e b1 c3 08` - resolution: _`u16, u16`_ - frame count: _`u64`_ -- frames (repeated {frame count}-times) +- frames (repeated [frame count]-times) - block type - block - **I-Block** (literal contents) - pixels: _`[[u8; 3]]`_ - - **Split-Block** (delegated to 4 sub-blocks) - - sub-blocks: _`[block; 4]` (see above)_ + - **Split-Block** (delegated to 2 sub-blocks split on the longest axis) + - sub-blocks: _`[block; 2]` (see above)_ - **Reference-Block** - translation: _`i8, i8`_ -## Todo +### Todo - JPEG compress I-Blocks - Sub-pixel translation |