github.com/goplus/gossa@v0.3.25/pkg/image/jpeg/go114_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package jpeg
     6  
     7  import (
     8  	q "image/jpeg"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "jpeg",
    19  		Path: "image/jpeg",
    20  		Deps: map[string]string{
    21  			"bufio":                    "bufio",
    22  			"errors":                   "errors",
    23  			"image":                    "image",
    24  			"image/color":              "color",
    25  			"image/internal/imageutil": "imageutil",
    26  			"io":                       "io",
    27  		},
    28  		Interfaces: map[string]reflect.Type{
    29  			"Reader": reflect.TypeOf((*q.Reader)(nil)).Elem(),
    30  		},
    31  		NamedTypes: map[string]gossa.NamedType{
    32  			"FormatError":      {reflect.TypeOf((*q.FormatError)(nil)).Elem(), "Error", ""},
    33  			"Options":          {reflect.TypeOf((*q.Options)(nil)).Elem(), "", ""},
    34  			"UnsupportedError": {reflect.TypeOf((*q.UnsupportedError)(nil)).Elem(), "Error", ""},
    35  		},
    36  		AliasTypes: map[string]reflect.Type{},
    37  		Vars:       map[string]reflect.Value{},
    38  		Funcs: map[string]reflect.Value{
    39  			"Decode":       reflect.ValueOf(q.Decode),
    40  			"DecodeConfig": reflect.ValueOf(q.DecodeConfig),
    41  			"Encode":       reflect.ValueOf(q.Encode),
    42  		},
    43  		TypedConsts: map[string]gossa.TypedConst{},
    44  		UntypedConsts: map[string]gossa.UntypedConst{
    45  			"DefaultQuality": {"untyped int", constant.MakeInt64(int64(q.DefaultQuality))},
    46  		},
    47  	})
    48  }