Add an image_config concept

This commit is contained in:
Nigel Tao committed 2018-02-09 14:46:37 +11:00
1 parent de9000cc70
commit d750ea7653
15 files changed
+600 -88

No files matched your search

+3 -2
View File
@@ -42,13 +42,14 @@ pub struct decoder?(
lzw lzw_decoder,
)
// TODO: dst should be an image_config, not a writer1.
pub func decoder.decode_config?(dst writer1, src reader1)() {
// TODO: should dst be an nptr instead of a ptr?
pub func decoder.decode_config?(dst ptr image_config, src reader1)() {
if this.call_sequence >= 1 {
return error "invalid call sequence"
}
this.decode_header?(src:in.src)
this.decode_lsd?(src:in.src)
// TODO: fill in dst.
this.call_sequence = 1
}