#image #header #frame #version #height #width #cbt

no-std libcbt

a library for the handling of cbt images

1 unstable release

0.0.1 Jul 16, 2022

#29 in #height

Apache-2.0

13KB
291 lines

libCBT

(the Compact emBedded multiple image animation file formaT)

have you ever wanted to use a GIF animation in something like a bootloader for an operating system that just so happens to be programmed in rust? have you been annoyed by the fact that the rust gif crate is not no-std compatible?

i love CBT

definition of a .cbt file

< HEADER > < u8 Red > < u8 Green > < u8 Blue > (for each pixel)

yep, pretty much just that.
here's the header:

CBTSEX < u8 Version > < u16le width > < u16le height > < u16 frame count > < u8 packed settings >

the settings are (in little endian):

bit 1 = enable alpha channel (a new u8 after each blue value)

No runtime deps