mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
Add a decode_frame_options type
This commit is contained in:
1 parent
8b1e023e6a
commit
555a72d7a9
10 files changed
+90
-43
No files matched your search
@@ -74,6 +74,8 @@ var Types = []string{
|
||||
"image_config",
|
||||
"pixel_buffer",
|
||||
"pixel_config",
|
||||
|
||||
"decode_frame_options",
|
||||
}
|
||||
|
||||
var Funcs = []string{
|
||||
|
||||
@@ -66,6 +66,8 @@ var (
|
||||
typeExprPixelBuffer = a.NewTypeExpr(0, t.IDBase, t.IDPixelBuffer, nil, nil, nil)
|
||||
typeExprPixelConfig = a.NewTypeExpr(0, t.IDBase, t.IDPixelConfig, nil, nil, nil)
|
||||
|
||||
typeExprDecodeFrameOptions = a.NewTypeExpr(0, t.IDBase, t.IDDecodeFrameOptions, nil, nil, nil)
|
||||
|
||||
typeExprSliceU8 = a.NewTypeExpr(t.IDSlice, 0, 0, nil, nil, typeExprU8)
|
||||
typeExprTableU8 = a.NewTypeExpr(t.IDTable, 0, 0, nil, nil, typeExprU8)
|
||||
)
|
||||
@@ -103,6 +105,8 @@ var builtInTypeMap = typeMap{
|
||||
t.IDImageConfig: typeExprImageConfig,
|
||||
t.IDPixelBuffer: typeExprPixelBuffer,
|
||||
t.IDPixelConfig: typeExprPixelConfig,
|
||||
|
||||
t.IDDecodeFrameOptions: typeExprDecodeFrameOptions,
|
||||
}
|
||||
|
||||
func (c *Checker) parseBuiltInFuncs(ss []string, generic bool) (map[t.QQID]*a.Func, error) {
|
||||
|
||||
+14
-10
@@ -413,11 +413,6 @@ const (
|
||||
IDIOWriter = ID(0x111)
|
||||
IDStatus = ID(0x112)
|
||||
|
||||
IDFrameConfig = ID(0x114)
|
||||
IDImageConfig = ID(0x115)
|
||||
IDPixelBuffer = ID(0x116)
|
||||
IDPixelConfig = ID(0x117)
|
||||
|
||||
IDT1 = ID(0x118)
|
||||
IDT2 = ID(0x119)
|
||||
IDDagger1 = ID(0x11A)
|
||||
@@ -526,6 +521,13 @@ const (
|
||||
IDCopyNFromReader = ID(0x193)
|
||||
IDCopyNFromSlice = ID(0x194)
|
||||
|
||||
IDFrameConfig = ID(0x1C0)
|
||||
IDImageConfig = ID(0x1C1)
|
||||
IDPixelBuffer = ID(0x1C2)
|
||||
IDPixelConfig = ID(0x1C3)
|
||||
|
||||
IDDecodeFrameOptions = ID(0x1C8)
|
||||
|
||||
// -------- 0x200 block.
|
||||
|
||||
IDReset = ID(0x200)
|
||||
@@ -680,11 +682,6 @@ var builtInsByID = [nBuiltInIDs]string{
|
||||
IDIOWriter: "io_writer",
|
||||
IDStatus: "status",
|
||||
|
||||
IDFrameConfig: "frame_config",
|
||||
IDImageConfig: "image_config",
|
||||
IDPixelBuffer: "pixel_buffer",
|
||||
IDPixelConfig: "pixel_config",
|
||||
|
||||
// Some of the next few IDs are never returned by the tokenizer, as it
|
||||
// rejects non-ASCII input. The string representations "¶", "ℤ" etc. are
|
||||
// specifically non-ASCII so that no user-defined (non built-in) identifier
|
||||
@@ -810,6 +807,13 @@ var builtInsByID = [nBuiltInIDs]string{
|
||||
IDCopyNFromReader: "copy_n_from_reader",
|
||||
IDCopyNFromSlice: "copy_n_from_slice",
|
||||
|
||||
IDFrameConfig: "frame_config",
|
||||
IDImageConfig: "image_config",
|
||||
IDPixelBuffer: "pixel_buffer",
|
||||
IDPixelConfig: "pixel_config",
|
||||
|
||||
IDDecodeFrameOptions: "decode_frame_options",
|
||||
|
||||
// -------- 0x200 block.
|
||||
|
||||
IDReset: "reset",
|
||||
|
||||
Reference in new issue
Block a user