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

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