git clone https://garage44.eu/jeroen/pinnacle.git.. /media/src/lib.rs
//! Pinnacle's own codecs for calls, and pictures shown from files. //! //! **Video** (`video`): frames in YCbCr 4:2:0, cut into 16×16 macroblocks. //! A macroblock the same as last frame's (within a threshold) costs one //! byte; the others are coded as 8×8 DCTs of their difference from it (or //! from grey in a key frame), quantised and run-length coded. Encoder and //! decoder keep the same reconstruction, and macroblocks travel in packets //! that fit a datagram and decode on their own: a lost packet leaves its //! macroblocks as they were until they change again or the next key frame. //! //! **Audio** (`adpcm`): IMA ADPCM, 4 bits a sample, 20 ms frames that each //! carry their own decoder state, so a lost frame costs only itself. //! //! **Pictures** (`picture`): a file told to be a picture by its first //! bytes, decoded by Wil, and fitted into the box it is shown in. #![no_std] extern crate alloc; pub mod adpcm; pub mod picture; pub mod video; #[cfg(test)] mod tests;