github.com/goplus/igop@v0.25.0/pkg/image/go118_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.18 && !go1.19 4 // +build go1.18,!go1.19 5 6 package image 7 8 import ( 9 q "image" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.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]reflect.Type{ 37 "Alpha": reflect.TypeOf((*q.Alpha)(nil)).Elem(), 38 "Alpha16": reflect.TypeOf((*q.Alpha16)(nil)).Elem(), 39 "CMYK": reflect.TypeOf((*q.CMYK)(nil)).Elem(), 40 "Config": reflect.TypeOf((*q.Config)(nil)).Elem(), 41 "Gray": reflect.TypeOf((*q.Gray)(nil)).Elem(), 42 "Gray16": reflect.TypeOf((*q.Gray16)(nil)).Elem(), 43 "NRGBA": reflect.TypeOf((*q.NRGBA)(nil)).Elem(), 44 "NRGBA64": reflect.TypeOf((*q.NRGBA64)(nil)).Elem(), 45 "NYCbCrA": reflect.TypeOf((*q.NYCbCrA)(nil)).Elem(), 46 "Paletted": reflect.TypeOf((*q.Paletted)(nil)).Elem(), 47 "Point": reflect.TypeOf((*q.Point)(nil)).Elem(), 48 "RGBA": reflect.TypeOf((*q.RGBA)(nil)).Elem(), 49 "RGBA64": reflect.TypeOf((*q.RGBA64)(nil)).Elem(), 50 "Rectangle": reflect.TypeOf((*q.Rectangle)(nil)).Elem(), 51 "Uniform": reflect.TypeOf((*q.Uniform)(nil)).Elem(), 52 "YCbCr": reflect.TypeOf((*q.YCbCr)(nil)).Elem(), 53 "YCbCrSubsampleRatio": reflect.TypeOf((*q.YCbCrSubsampleRatio)(nil)).Elem(), 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]igop.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]igop.UntypedConst{}, 94 }) 95 }