Add pixel_format, image_buffer, etc. definitions

This commit is contained in:
Nigel Tao committed 2018-04-05 17:09:33 +10:00
1 parent e700bcd4f8
commit 82a48796c8
20 files changed
+4865 -446

No files matched your search

+5 -1
View File
@@ -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
}