| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"go/constant" |
| 10 |
"go/token" |
| 11 |
"image/jpeg" |
| 12 |
"reflect" |
| 13 |
) |
| 14 |
|
| 15 |
func init() { |
| 16 |
Symbols["image/jpeg/jpeg"] = map[string]reflect.Value{ |
| 17 |
|
| 18 |
"Decode": reflect.ValueOf(jpeg.Decode), |
| 19 |
"DecodeConfig": reflect.ValueOf(jpeg.DecodeConfig), |
| 20 |
"DefaultQuality": reflect.ValueOf(constant.MakeFromLiteral("75", token.INT, 0)), |
| 21 |
"Encode": reflect.ValueOf(jpeg.Encode), |
| 22 |
|
| 23 |
|
| 24 |
"FormatError": reflect.ValueOf((*jpeg.FormatError)(nil)), |
| 25 |
"Options": reflect.ValueOf((*jpeg.Options)(nil)), |
| 26 |
"Reader": reflect.ValueOf((*jpeg.Reader)(nil)), |
| 27 |
"UnsupportedError": reflect.ValueOf((*jpeg.UnsupportedError)(nil)), |
| 28 |
|
| 29 |
|
| 30 |
"_Reader": reflect.ValueOf((*_image_jpeg_Reader)(nil)), |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
|
| 35 |
type _image_jpeg_Reader struct { |
| 36 |
IValue interface{} |
| 37 |
WRead func(p []byte) (n int, err error) |
| 38 |
WReadByte func() (byte, error) |
| 39 |
} |
| 40 |
|
| 41 |
func (W _image_jpeg_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) } |
| 42 |
func (W _image_jpeg_Reader) ReadByte() (byte, error) { return W.WReadByte() } |