jpeg

package
v0.0.0-...-90c9d3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2010 License: BSD-3-Clause, GooglePatentClause Imports: 4 Imported by: 0

Documentation

Overview

The jpeg package implements a decoder for JPEG images, as defined in ITU-T T.81.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func 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.

Types

type FormatError

type FormatError string

A FormatError reports that the input is not a valid JPEG.

func (FormatError) String

func (e FormatError) String() string

type Reader

type Reader interface {
	io.Reader
	ReadByte() (c byte, err os.Error)
}

If the passed in io.Reader does not also have ReadByte, then Decode will introduce its own buffering.

type UnsupportedError

type UnsupportedError string

An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.

func (UnsupportedError) String

func (e UnsupportedError) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL