Package jpeg
import "image/jpeg"
The jpeg package implements a decoder for JPEG images, as defined in ITU-T T.81.
Package files
huffman.go idct.go reader.gofunc Decode
func Decode(r io.Reader) (image.Image, os.Error)
Decode reads a JPEG formatted image from r and returns it as an image.Image.
type FormatError
A FormatError reports that the input is not a valid JPEG.
type FormatError string
func (FormatError) String
func (e FormatError) String() string
type Reader
If the passed in io.Reader does not also have ReadByte, then Decode will introduce its own buffering.
type Reader interface {
io.Reader
ReadByte() (c byte, err os.Error)
}
type UnsupportedError
An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.
type UnsupportedError string
func (UnsupportedError) String
func (e UnsupportedError) String() string
