about summary refs log tree commit diff
path: root/src/block/mod.rs
blob: 645c11d47dd660df8c2938bb7375283889585d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mod colortable;
pub mod extension;
mod imagedescriptor;
mod indexedimage;
mod screendescriptor;
mod version;

pub use colortable::ColorTable;
pub use imagedescriptor::ImageDescriptor;
pub use indexedimage::CompressedImage;
pub use indexedimage::IndexedImage;
pub use screendescriptor::ScreenDescriptor;
pub use version::Version;

use crate::writer::ImageBuilder;

pub enum Block {
    IndexedImage(IndexedImage),
    Extension(extension::Extension),
}

enum WriteBlock {
    ImageBuilder(ImageBuilder),
    Block(Block),
}