mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
Add a base.pixel_swizzler type
This commit is contained in:
1 parent
86b8408223
commit
6c9dca47ee
11 files changed
+317
-35
No files matched your search
@@ -71,6 +71,7 @@ var Types = []string{
|
||||
"image_config",
|
||||
"pixel_buffer",
|
||||
"pixel_config",
|
||||
"pixel_swizzler",
|
||||
|
||||
"decode_frame_options",
|
||||
}
|
||||
@@ -303,7 +304,13 @@ var Funcs = []string{
|
||||
// ---- pixel_buffer
|
||||
|
||||
"pixel_buffer.palette() slice u8",
|
||||
"pixel_buffer.pixel_format() u32",
|
||||
"pixel_buffer.plane(p u32[..3]) table u8",
|
||||
|
||||
// ---- pixel_swizzler
|
||||
|
||||
"pixel_swizzler.initialize!(dst_pixfmt u32, src_pixfmt u32)",
|
||||
"pixel_swizzler.swizzle_packed!(dst slice u8, src slice u8) u64",
|
||||
}
|
||||
|
||||
// The "T1" and "T2" types here are placeholders for generic "slice T" or
|
||||
|
||||
Reference in new issue
Block a user