github.com/goplus/igop@v0.25.0/pkg/image/jpeg/go116_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package jpeg
     6  
     7  import (
     8  	q "image/jpeg"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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]reflect.Type{
    32  			"FormatError":      reflect.TypeOf((*q.FormatError)(nil)).Elem(),
    33  			"Options":          reflect.TypeOf((*q.Options)(nil)).Elem(),
    34  			"UnsupportedError": reflect.TypeOf((*q.UnsupportedError)(nil)).Elem(),
    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]igop.TypedConst{},
    44  		UntypedConsts: map[string]igop.UntypedConst{
    45  			"DefaultQuality": {"untyped int", constant.MakeInt64(int64(q.DefaultQuality))},
    46  		},
    47  	})
    48  }