package jpeg Import Path image/jpeg (on golang.org and go.dev) Dependency Relation imports 6 packages, and imported by 0 packagesInvolved Source Files fdct.go huffman.go idct.go Package jpeg implements a JPEG image decoder and encoder. JPEG is defined in ITU-T T.81: https://www.w3.org/Graphics/JPEG/itu-t81.pdf. scan.go writer.goPackage-Level Type Names (total 4)Options are the encoding parameters. Quality ranges from 1 to 100 inclusive, higher is better. Quality int func Encode(w io.Writer, m image.Image, o *Options) errorDeprecated: Reader is not used by the image/jpeg package and should not be used by others. It is kept for compatibility. ( T) Read(p byte) (n int, err error) ( T) ReadByte() (byte, error) *bufio.Reader bufio.ReadWriter *bytes.Buffer *bytes.Reader compress/flate.Reader (interface) *internal/trace.Writer *strings.Reader T : compress/flate.Reader T : io.ByteReader T : io.ReaderPackage-Level Functions (total 3)Decode reads a JPEG image from r and returns it as an image.Image.DecodeConfig returns the color model and dimensions of a JPEG image without decoding the entire image.Encode writes the Image m to w in JPEG 4:2:0 baseline format with the given options. Default parameters are used if a nil *Options is passed.Package-Level Constants (only one)DefaultQuality is the default quality encoding parameter.
|The pages are generated with Golds v0.2.5. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|