Documentation
¶
Index ¶
- func ColorHash(pixel Pixel) uint8
- func Decode(reader io.Reader) (image.Image, error)
- func DecodeConfig(reader io.Reader) (image.Config, error)
- func Encode(writer io.Writer, image image.Image) error
- func LumaDiff(a, b Pixel) (int8, int8, int8)
- func RGBDiff(a, b Pixel) (int8, int8, int8)
- type Chunk
- type Decoder
- type DiffChunk
- type Encoder
- type Header
- type IndexChunk
- type LumaChunk
- type Pixel
- type RGBAChunk
- type RGBChunk
- type RunChunk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chunk ¶
type Chunk interface { encoding.BinaryMarshaler encoding.BinaryUnmarshaler Pixels(decoder *Decoder) []Pixel }
type Decoder ¶
type DiffChunk ¶
type Encoder ¶
type Header ¶
type IndexChunk ¶
type IndexChunk struct {
Index uint8
}
func (*IndexChunk) MarshalBinary ¶
func (chunk *IndexChunk) MarshalBinary() (data []byte, err error)
func (*IndexChunk) Pixels ¶
func (chunk *IndexChunk) Pixels(decoder *Decoder) []Pixel
func (*IndexChunk) String ¶
func (chunk *IndexChunk) String() string
func (*IndexChunk) UnmarshalBinary ¶
func (chunk *IndexChunk) UnmarshalBinary(data []byte) error
type LumaChunk ¶
Click to show internal directories.
Click to hide internal directories.