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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package image
     6  
     7  import (
     8  	q "image"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "image",
    19  		Path: "image",
    20  		Deps: map[string]string{
    21  			"bufio":       "bufio",
    22  			"errors":      "errors",
    23  			"image/color": "color",
    24  			"io":          "io",
    25  			"math/bits":   "bits",
    26  			"strconv":     "strconv",
    27  			"sync":        "sync",
    28  			"sync/atomic": "atomic",
    29  		},
    30  		Interfaces: map[string]reflect.Type{
    31  			"Image":         reflect.TypeOf((*q.Image)(nil)).Elem(),
    32  			"PalettedImage": reflect.TypeOf((*q.PalettedImage)(nil)).Elem(),
    33  		},
    34  		NamedTypes: map[string]gossa.NamedType{
    35  			"Alpha":               {reflect.TypeOf((*q.Alpha)(nil)).Elem(), "", "AlphaAt,At,Bounds,ColorModel,Opaque,PixOffset,Set,SetAlpha,SubImage"},
    36  			"Alpha16":             {reflect.TypeOf((*q.Alpha16)(nil)).Elem(), "", "Alpha16At,At,Bounds,ColorModel,Opaque,PixOffset,Set,SetAlpha16,SubImage"},
    37  			"CMYK":                {reflect.TypeOf((*q.CMYK)(nil)).Elem(), "", "At,Bounds,CMYKAt,ColorModel,Opaque,PixOffset,Set,SetCMYK,SubImage"},
    38  			"Config":              {reflect.TypeOf((*q.Config)(nil)).Elem(), "", ""},
    39  			"Gray":                {reflect.TypeOf((*q.Gray)(nil)).Elem(), "", "At,Bounds,ColorModel,GrayAt,Opaque,PixOffset,Set,SetGray,SubImage"},
    40  			"Gray16":              {reflect.TypeOf((*q.Gray16)(nil)).Elem(), "", "At,Bounds,ColorModel,Gray16At,Opaque,PixOffset,Set,SetGray16,SubImage"},
    41  			"NRGBA":               {reflect.TypeOf((*q.NRGBA)(nil)).Elem(), "", "At,Bounds,ColorModel,NRGBAAt,Opaque,PixOffset,Set,SetNRGBA,SubImage"},
    42  			"NRGBA64":             {reflect.TypeOf((*q.NRGBA64)(nil)).Elem(), "", "At,Bounds,ColorModel,NRGBA64At,Opaque,PixOffset,Set,SetNRGBA64,SubImage"},
    43  			"NYCbCrA":             {reflect.TypeOf((*q.NYCbCrA)(nil)).Elem(), "", "AOffset,At,ColorModel,NYCbCrAAt,Opaque,SubImage"},
    44  			"Paletted":            {reflect.TypeOf((*q.Paletted)(nil)).Elem(), "", "At,Bounds,ColorIndexAt,ColorModel,Opaque,PixOffset,Set,SetColorIndex,SubImage"},
    45  			"Point":               {reflect.TypeOf((*q.Point)(nil)).Elem(), "Add,Div,Eq,In,Mod,Mul,String,Sub", ""},
    46  			"RGBA":                {reflect.TypeOf((*q.RGBA)(nil)).Elem(), "", "At,Bounds,ColorModel,Opaque,PixOffset,RGBAAt,Set,SetRGBA,SubImage"},
    47  			"RGBA64":              {reflect.TypeOf((*q.RGBA64)(nil)).Elem(), "", "At,Bounds,ColorModel,Opaque,PixOffset,RGBA64At,Set,SetRGBA64,SubImage"},
    48  			"Rectangle":           {reflect.TypeOf((*q.Rectangle)(nil)).Elem(), "Add,At,Bounds,Canon,ColorModel,Dx,Dy,Empty,Eq,In,Inset,Intersect,Overlaps,Size,String,Sub,Union", ""},
    49  			"Uniform":             {reflect.TypeOf((*q.Uniform)(nil)).Elem(), "", "At,Bounds,ColorModel,Convert,Opaque,RGBA"},
    50  			"YCbCr":               {reflect.TypeOf((*q.YCbCr)(nil)).Elem(), "", "At,Bounds,COffset,ColorModel,Opaque,SubImage,YCbCrAt,YOffset"},
    51  			"YCbCrSubsampleRatio": {reflect.TypeOf((*q.YCbCrSubsampleRatio)(nil)).Elem(), "String", ""},
    52  		},
    53  		AliasTypes: map[string]reflect.Type{},
    54  		Vars: map[string]reflect.Value{
    55  			"Black":       reflect.ValueOf(&q.Black),
    56  			"ErrFormat":   reflect.ValueOf(&q.ErrFormat),
    57  			"Opaque":      reflect.ValueOf(&q.Opaque),
    58  			"Transparent": reflect.ValueOf(&q.Transparent),
    59  			"White":       reflect.ValueOf(&q.White),
    60  			"ZP":          reflect.ValueOf(&q.ZP),
    61  			"ZR":          reflect.ValueOf(&q.ZR),
    62  		},
    63  		Funcs: map[string]reflect.Value{
    64  			"Decode":         reflect.ValueOf(q.Decode),
    65  			"DecodeConfig":   reflect.ValueOf(q.DecodeConfig),
    66  			"NewAlpha":       reflect.ValueOf(q.NewAlpha),
    67  			"NewAlpha16":     reflect.ValueOf(q.NewAlpha16),
    68  			"NewCMYK":        reflect.ValueOf(q.NewCMYK),
    69  			"NewGray":        reflect.ValueOf(q.NewGray),
    70  			"NewGray16":      reflect.ValueOf(q.NewGray16),
    71  			"NewNRGBA":       reflect.ValueOf(q.NewNRGBA),
    72  			"NewNRGBA64":     reflect.ValueOf(q.NewNRGBA64),
    73  			"NewNYCbCrA":     reflect.ValueOf(q.NewNYCbCrA),
    74  			"NewPaletted":    reflect.ValueOf(q.NewPaletted),
    75  			"NewRGBA":        reflect.ValueOf(q.NewRGBA),
    76  			"NewRGBA64":      reflect.ValueOf(q.NewRGBA64),
    77  			"NewUniform":     reflect.ValueOf(q.NewUniform),
    78  			"NewYCbCr":       reflect.ValueOf(q.NewYCbCr),
    79  			"Pt":             reflect.ValueOf(q.Pt),
    80  			"Rect":           reflect.ValueOf(q.Rect),
    81  			"RegisterFormat": reflect.ValueOf(q.RegisterFormat),
    82  		},
    83  		TypedConsts: map[string]gossa.TypedConst{
    84  			"YCbCrSubsampleRatio410": {reflect.TypeOf(q.YCbCrSubsampleRatio410), constant.MakeInt64(int64(q.YCbCrSubsampleRatio410))},
    85  			"YCbCrSubsampleRatio411": {reflect.TypeOf(q.YCbCrSubsampleRatio411), constant.MakeInt64(int64(q.YCbCrSubsampleRatio411))},
    86  			"YCbCrSubsampleRatio420": {reflect.TypeOf(q.YCbCrSubsampleRatio420), constant.MakeInt64(int64(q.YCbCrSubsampleRatio420))},
    87  			"YCbCrSubsampleRatio422": {reflect.TypeOf(q.YCbCrSubsampleRatio422), constant.MakeInt64(int64(q.YCbCrSubsampleRatio422))},
    88  			"YCbCrSubsampleRatio440": {reflect.TypeOf(q.YCbCrSubsampleRatio440), constant.MakeInt64(int64(q.YCbCrSubsampleRatio440))},
    89  			"YCbCrSubsampleRatio444": {reflect.TypeOf(q.YCbCrSubsampleRatio444), constant.MakeInt64(int64(q.YCbCrSubsampleRatio444))},
    90  		},
    91  		UntypedConsts: map[string]gossa.UntypedConst{},
    92  	})
    93  }