mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
Add a decoder.decode_lsd skeleton.
This commit is contained in:
1 parent
2543999c61
commit
8d1bf15d70
5 files changed
+35
-7
No files matched your search
@@ -11,9 +11,12 @@ pub struct decoder?(
|
||||
|
||||
pub func decoder.decode?(dst ptr buf1, src ptr buf1)() {
|
||||
this.decode_header?(src:in.src)
|
||||
this.decode_lsd?(src:in.src)
|
||||
}
|
||||
|
||||
// decode_header reads either "GIF87a" or "GIF89a".
|
||||
//
|
||||
// See the spec section 17 "Header" on page 7.
|
||||
pri func decoder.decode_header?(src ptr buf1)() {
|
||||
var c[6] u8
|
||||
var i u8
|
||||
@@ -26,3 +29,9 @@ pri func decoder.decode_header?(src ptr buf1)() {
|
||||
return error "bad GIF header"
|
||||
}
|
||||
}
|
||||
|
||||
// decode_lsd reads the Logical Screen Descriptor.
|
||||
//
|
||||
// See the spec section 18 "Logical Screen Descriptor" on page 8.
|
||||
pri func decoder.decode_lsd?(src ptr buf1)() {
|
||||
}
|
||||
Reference in new issue
Block a user