mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Add pixel_format, image_buffer, etc. definitions
This commit is contained in:
1 parent
e700bcd4f8
commit
82a48796c8
20 files changed
+4865
-446
No files matched your search
@@ -77,7 +77,11 @@ pub func decoder.decode_config?(dst ptr image_config, src reader1)() {
|
||||
}
|
||||
|
||||
// TODO: rename initialize to set?
|
||||
in.dst.initialize!(width:this.width, height:this.height, color_model:0)
|
||||
//
|
||||
// TODO: a Wuffs (not just C) name for the
|
||||
// WUFFS_BASE__PIXEL_FORMAT__BGRA_NONPREMUL_INDEXED magic pixfmt constant.
|
||||
in.dst.initialize!(pixfmt:0x22088888, pixsub:0,
|
||||
width:this.width, height:this.height, num_loops:this.num_loops)
|
||||
this.call_sequence = 1
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user