Documentation
¶
Overview ¶
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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode reads a JPEG image from r and returns it as an image.Image.
Types ¶
type FormatError ¶
type FormatError string
A FormatError reports that the input is not a valid JPEG.
func (FormatError) Error ¶
func (e FormatError) Error() string
type Reader
deprecated
type Reader interface {
io.ByteReader
io.Reader
}
Deprecated: Reader is not used by the image/jpeg package and should not be used by others. It is kept for compatibility.
type UnsupportedError ¶
type UnsupportedError string
An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.
func (UnsupportedError) Error ¶
func (e UnsupportedError) Error() string
Click to show internal directories.
Click to hide internal directories.