| 1 | // Code generated by 'yaegi extract image'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 5 | |
| 6 | package stdlib |
| 7 | |
| 8 | import ( |
| 9 | "image" |
| 10 | "image/color" |
| 11 | "reflect" |
| 12 | ) |
| 13 | |
| 14 | func init() { |
| 15 | Symbols["image/image"] = map[string]reflect.Value{ |
| 16 | // function, constant and variable definitions |
| 17 | "Black": reflect.ValueOf(&image.Black).Elem(), |
| 18 | "Decode": reflect.ValueOf(image.Decode), |
| 19 | "DecodeConfig": reflect.ValueOf(image.DecodeConfig), |
| 20 | "ErrFormat": reflect.ValueOf(&image.ErrFormat).Elem(), |
| 21 | "NewAlpha": reflect.ValueOf(image.NewAlpha), |
| 22 | "NewAlpha16": reflect.ValueOf(image.NewAlpha16), |
| 23 | "NewCMYK": reflect.ValueOf(image.NewCMYK), |
| 24 | "NewGray": reflect.ValueOf(image.NewGray), |
| 25 | "NewGray16": reflect.ValueOf(image.NewGray16), |
| 26 | "NewNRGBA": reflect.ValueOf(image.NewNRGBA), |
| 27 | "NewNRGBA64": reflect.ValueOf(image.NewNRGBA64), |
| 28 | "NewNYCbCrA": reflect.ValueOf(image.NewNYCbCrA), |
| 29 | "NewPaletted": reflect.ValueOf(image.NewPaletted), |
| 30 | "NewRGBA": reflect.ValueOf(image.NewRGBA), |
| 31 | "NewRGBA64": reflect.ValueOf(image.NewRGBA64), |
| 32 | "NewUniform": reflect.ValueOf(image.NewUniform), |
| 33 | "NewYCbCr": reflect.ValueOf(image.NewYCbCr), |
| 34 | "Opaque": reflect.ValueOf(&image.Opaque).Elem(), |
| 35 | "Pt": reflect.ValueOf(image.Pt), |
| 36 | "Rect": reflect.ValueOf(image.Rect), |
| 37 | "RegisterFormat": reflect.ValueOf(image.RegisterFormat), |
| 38 | "Transparent": reflect.ValueOf(&image.Transparent).Elem(), |
| 39 | "White": reflect.ValueOf(&image.White).Elem(), |
| 40 | "YCbCrSubsampleRatio410": reflect.ValueOf(image.YCbCrSubsampleRatio410), |
| 41 | "YCbCrSubsampleRatio411": reflect.ValueOf(image.YCbCrSubsampleRatio411), |
| 42 | "YCbCrSubsampleRatio420": reflect.ValueOf(image.YCbCrSubsampleRatio420), |
| 43 | "YCbCrSubsampleRatio422": reflect.ValueOf(image.YCbCrSubsampleRatio422), |
| 44 | "YCbCrSubsampleRatio440": reflect.ValueOf(image.YCbCrSubsampleRatio440), |
| 45 | "YCbCrSubsampleRatio444": reflect.ValueOf(image.YCbCrSubsampleRatio444), |
| 46 | "ZP": reflect.ValueOf(&image.ZP).Elem(), |
| 47 | "ZR": reflect.ValueOf(&image.ZR).Elem(), |
| 48 | |
| 49 | // type definitions |
| 50 | "Alpha": reflect.ValueOf((*image.Alpha)(nil)), |
| 51 | "Alpha16": reflect.ValueOf((*image.Alpha16)(nil)), |
| 52 | "CMYK": reflect.ValueOf((*image.CMYK)(nil)), |
| 53 | "Config": reflect.ValueOf((*image.Config)(nil)), |
| 54 | "Gray": reflect.ValueOf((*image.Gray)(nil)), |
| 55 | "Gray16": reflect.ValueOf((*image.Gray16)(nil)), |
| 56 | "Image": reflect.ValueOf((*image.Image)(nil)), |
| 57 | "NRGBA": reflect.ValueOf((*image.NRGBA)(nil)), |
| 58 | "NRGBA64": reflect.ValueOf((*image.NRGBA64)(nil)), |
| 59 | "NYCbCrA": reflect.ValueOf((*image.NYCbCrA)(nil)), |
| 60 | "Paletted": reflect.ValueOf((*image.Paletted)(nil)), |
| 61 | "PalettedImage": reflect.ValueOf((*image.PalettedImage)(nil)), |
| 62 | "Point": reflect.ValueOf((*image.Point)(nil)), |
| 63 | "RGBA": reflect.ValueOf((*image.RGBA)(nil)), |
| 64 | "RGBA64": reflect.ValueOf((*image.RGBA64)(nil)), |
| 65 | "RGBA64Image": reflect.ValueOf((*image.RGBA64Image)(nil)), |
| 66 | "Rectangle": reflect.ValueOf((*image.Rectangle)(nil)), |
| 67 | "Uniform": reflect.ValueOf((*image.Uniform)(nil)), |
| 68 | "YCbCr": reflect.ValueOf((*image.YCbCr)(nil)), |
| 69 | "YCbCrSubsampleRatio": reflect.ValueOf((*image.YCbCrSubsampleRatio)(nil)), |
| 70 | |
| 71 | // interface wrapper definitions |
| 72 | "_Image": reflect.ValueOf((*_image_Image)(nil)), |
| 73 | "_PalettedImage": reflect.ValueOf((*_image_PalettedImage)(nil)), |
| 74 | "_RGBA64Image": reflect.ValueOf((*_image_RGBA64Image)(nil)), |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // _image_Image is an interface wrapper for Image type |
| 79 | type _image_Image struct { |
| 80 | IValue interface{} |
| 81 | WAt func(x int, y int) color.Color |
| 82 | WBounds func() image.Rectangle |
| 83 | WColorModel func() color.Model |
| 84 | } |
| 85 | |
| 86 | func (W _image_Image) At(x int, y int) color.Color { return W.WAt(x, y) } |
| 87 | func (W _image_Image) Bounds() image.Rectangle { return W.WBounds() } |
| 88 | func (W _image_Image) ColorModel() color.Model { return W.WColorModel() } |
| 89 | |
| 90 | // _image_PalettedImage is an interface wrapper for PalettedImage type |
| 91 | type _image_PalettedImage struct { |
| 92 | IValue interface{} |
| 93 | WAt func(x int, y int) color.Color |
| 94 | WBounds func() image.Rectangle |
| 95 | WColorIndexAt func(x int, y int) uint8 |
| 96 | WColorModel func() color.Model |
| 97 | } |
| 98 | |
| 99 | func (W _image_PalettedImage) At(x int, y int) color.Color { return W.WAt(x, y) } |
| 100 | func (W _image_PalettedImage) Bounds() image.Rectangle { return W.WBounds() } |
| 101 | func (W _image_PalettedImage) ColorIndexAt(x int, y int) uint8 { return W.WColorIndexAt(x, y) } |
| 102 | func (W _image_PalettedImage) ColorModel() color.Model { return W.WColorModel() } |
| 103 | |
| 104 | // _image_RGBA64Image is an interface wrapper for RGBA64Image type |
| 105 | type _image_RGBA64Image struct { |
| 106 | IValue interface{} |
| 107 | WAt func(x int, y int) color.Color |
| 108 | WBounds func() image.Rectangle |
| 109 | WColorModel func() color.Model |
| 110 | WRGBA64At func(x int, y int) color.RGBA64 |
| 111 | } |
| 112 | |
| 113 | func (W _image_RGBA64Image) At(x int, y int) color.Color { return W.WAt(x, y) } |
| 114 | func (W _image_RGBA64Image) Bounds() image.Rectangle { return W.WBounds() } |
| 115 | func (W _image_RGBA64Image) ColorModel() color.Model { return W.WColorModel() } |
| 116 | func (W _image_RGBA64Image) RGBA64At(x int, y int) color.RGBA64 { return W.WRGBA64At(x, y) } |