mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Add a (table T).linearize method
This commit is contained in:
1 parent
f6cd4b2af2
commit
85256c7a45
13 files changed
+120
-2
No files matched your search
@@ -376,7 +376,10 @@ pri func decoder.decode_id?(ib ptr base.image_buffer, dst base.io_writer, src ba
|
||||
// TODO: don't assume a packed pixel format.
|
||||
var tab table base.u8 = in.ib.plane(p:0)
|
||||
if tab.width() == tab.stride() {
|
||||
// TODO.
|
||||
var pixel_data slice base.u8 = tab.linearize()
|
||||
if pixel_data.length() == 0 {
|
||||
// TODO.
|
||||
}
|
||||
} else {
|
||||
// TODO.
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user