Slide 81
Slide 81 text
Sbud: a f ile format renderer
elements: [
{ section: 'Header' }, [
[6, 'Magic', 'GIF87a', { nohex: {} }], [
[2, 'Width', 25],
[2, 'Height', 7],
[1, 'Flags', 0x80, { hint: '|G|lobal|C|olor|P|alette' }],
[1, 'BgColor', 1],
[1, 'AspectRatio', 0],
],
],
{ section: 'Palette', depth: 1 }, [
[1, 'Red', '00'],
[1, 'Green', '00'],
[1, 'Blue', '00'],
[],
[1, 'Red', 'FF'],
[1, 'Green', 'FF'],
[1, 'Blue', 'FF'],
],
{ section: 'Image Data', depth: 1 }, [
[1, 'Marker', ',', { nohex: {}, hint: 'Image Descriptor' }], [
[2, 'Left', 0],
[2, 'Top', 0],
[2, 'Width', 25],
[2, 'Height', 7],
[1, 'Flags', 0, { hint: 'BitDepth=1' }],
[1, 'CodeSize', 2], [
[1, 'Length', 0x21], [
[0x21, 'LZW Data', '8C 8F...D3 05'],
],
[1, 'Length', '0', { hint: 'End' }], [],
],
],
],
{ section: 'Trailer' }, [
[1, 'Trailer', ';', { nohex: {} }],
],
]