mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Add an image_config concept
This commit is contained in:
1 parent
de9000cc70
commit
d750ea7653
15 files changed
+600
-88
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user