about summary refs log tree commit diff
path: root/src/block/mod.rs
blob: e35224bcf7826fb9d0d84b9e7ed184f9e66128a3 (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),
}