Add a decode_frame_options type

This commit is contained in:
Nigel Tao committed 2018-09-02 15:08:00 +10:00
1 parent 8b1e023e6a
commit 555a72d7a9
10 files changed
+90 -43

No files matched your search

+2
View File
@@ -74,6 +74,8 @@ var Types = []string{
"image_config",
"pixel_buffer",
"pixel_config",
"decode_frame_options",
}
var Funcs = []string{
+4
View File
@@ -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
View File
@@ -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",