mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
Add wuffs_base__pixel_blend type
This commit is contained in:
1 parent
8562951be6
commit
1a791217de
12 files changed
+118
-53
No files matched your search
@@ -87,6 +87,7 @@ var Types = []string{
|
||||
|
||||
"frame_config",
|
||||
"image_config",
|
||||
"pixel_blend",
|
||||
"pixel_buffer",
|
||||
"pixel_config",
|
||||
"pixel_format",
|
||||
@@ -339,7 +340,7 @@ var Funcs = []string{
|
||||
|
||||
"pixel_swizzler.prepare!(" +
|
||||
"dst_pixfmt: pixel_format, dst_palette: slice u8, " +
|
||||
"src_pixfmt: pixel_format, src_palette: slice u8) status",
|
||||
"src_pixfmt: pixel_format, src_palette: slice u8, blend: pixel_blend) status",
|
||||
"pixel_swizzler.swizzle_interleaved!(" +
|
||||
"dst: slice u8, dst_palette: slice u8, src: slice u8) u64",
|
||||
}
|
||||
@@ -365,8 +366,8 @@ var InterfaceFuncs = []string{
|
||||
|
||||
"image_decoder.ack_metadata_chunk?(src: io_reader)",
|
||||
"image_decoder.decode_frame?(" +
|
||||
"dst: ptr pixel_buffer, src: io_reader, workbuf: slice u8," +
|
||||
"opts: nptr decode_frame_options)",
|
||||
"dst: ptr pixel_buffer, src: io_reader, blend: pixel_blend," +
|
||||
"workbuf: slice u8, opts: nptr decode_frame_options)",
|
||||
"image_decoder.decode_frame_config?(dst: nptr frame_config, src: io_reader)",
|
||||
"image_decoder.decode_image_config?(dst: nptr image_config, src: io_reader)",
|
||||
"image_decoder.frame_dirty_rect() rect_ie_u32",
|
||||
|
||||
@@ -60,6 +60,7 @@ var (
|
||||
|
||||
typeExprFrameConfig = a.NewTypeExpr(0, t.IDBase, t.IDFrameConfig, nil, nil, nil)
|
||||
typeExprImageConfig = a.NewTypeExpr(0, t.IDBase, t.IDImageConfig, nil, nil, nil)
|
||||
typeExprPixelBlend = a.NewTypeExpr(0, t.IDBase, t.IDPixelBlend, nil, nil, nil)
|
||||
typeExprPixelBuffer = a.NewTypeExpr(0, t.IDBase, t.IDPixelBuffer, nil, nil, nil)
|
||||
typeExprPixelConfig = a.NewTypeExpr(0, t.IDBase, t.IDPixelConfig, nil, nil, nil)
|
||||
typeExprPixelFormat = a.NewTypeExpr(0, t.IDBase, t.IDPixelFormat, nil, nil, nil)
|
||||
@@ -102,6 +103,7 @@ var builtInTypeMap = typeMap{
|
||||
|
||||
t.IDFrameConfig: typeExprFrameConfig,
|
||||
t.IDImageConfig: typeExprImageConfig,
|
||||
t.IDPixelBlend: typeExprPixelBlend,
|
||||
t.IDPixelBuffer: typeExprPixelBuffer,
|
||||
t.IDPixelConfig: typeExprPixelConfig,
|
||||
t.IDPixelFormat: typeExprPixelFormat,
|
||||
|
||||
+6
-4
@@ -478,10 +478,11 @@ const (
|
||||
|
||||
IDFrameConfig = ID(0x150)
|
||||
IDImageConfig = ID(0x151)
|
||||
IDPixelBuffer = ID(0x152)
|
||||
IDPixelConfig = ID(0x153)
|
||||
IDPixelFormat = ID(0x154)
|
||||
IDPixelSwizzler = ID(0x155)
|
||||
IDPixelBlend = ID(0x152)
|
||||
IDPixelBuffer = ID(0x153)
|
||||
IDPixelConfig = ID(0x154)
|
||||
IDPixelFormat = ID(0x155)
|
||||
IDPixelSwizzler = ID(0x156)
|
||||
|
||||
IDDecodeFrameOptions = ID(0x158)
|
||||
|
||||
@@ -819,6 +820,7 @@ var builtInsByID = [nBuiltInIDs]string{
|
||||
|
||||
IDFrameConfig: "frame_config",
|
||||
IDImageConfig: "image_config",
|
||||
IDPixelBlend: "pixel_blend",
|
||||
IDPixelBuffer: "pixel_buffer",
|
||||
IDPixelConfig: "pixel_config",
|
||||
IDPixelFormat: "pixel_format",
|
||||
|
||||
Reference in new issue
Block a user