github.com/goplus/igop@v0.25.0/pkg/image/gif/go119_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!go1.20
     5  
     6  package gif
     7  
     8  import (
     9  	q "image/gif"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "gif",
    20  		Path: "image/gif",
    21  		Deps: map[string]string{
    22  			"bufio":               "bufio",
    23  			"bytes":               "bytes",
    24  			"compress/lzw":        "lzw",
    25  			"errors":              "errors",
    26  			"fmt":                 "fmt",
    27  			"image":               "image",
    28  			"image/color":         "color",
    29  			"image/color/palette": "palette",
    30  			"image/draw":          "draw",
    31  			"io":                  "io",
    32  		},
    33  		Interfaces: map[string]reflect.Type{},
    34  		NamedTypes: map[string]reflect.Type{
    35  			"GIF":     reflect.TypeOf((*q.GIF)(nil)).Elem(),
    36  			"Options": reflect.TypeOf((*q.Options)(nil)).Elem(),
    37  		},
    38  		AliasTypes: map[string]reflect.Type{},
    39  		Vars:       map[string]reflect.Value{},
    40  		Funcs: map[string]reflect.Value{
    41  			"Decode":       reflect.ValueOf(q.Decode),
    42  			"DecodeAll":    reflect.ValueOf(q.DecodeAll),
    43  			"DecodeConfig": reflect.ValueOf(q.DecodeConfig),
    44  			"Encode":       reflect.ValueOf(q.Encode),
    45  			"EncodeAll":    reflect.ValueOf(q.EncodeAll),
    46  		},
    47  		TypedConsts: map[string]igop.TypedConst{},
    48  		UntypedConsts: map[string]igop.UntypedConst{
    49  			"DisposalBackground": {"untyped int", constant.MakeInt64(int64(q.DisposalBackground))},
    50  			"DisposalNone":       {"untyped int", constant.MakeInt64(int64(q.DisposalNone))},
    51  			"DisposalPrevious":   {"untyped int", constant.MakeInt64(int64(q.DisposalPrevious))},
    52  		},
    53  	})
    54  }