qoi

package
v0.0.0-...-142e2b3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelsRGB      Channels = 3
	ChannelsRGBA     Channels = 4
	ColorSpaceSRGB   uint8    = 0
	ColorSpaceLinear uint8    = 1
)
View Source
const (
	TagRGB   byte = 0b11111110
	TagRGBA  byte = 0b11111111
	TagMask  byte = 0b11_000000
	TagIndex byte = 0b00_000000
	TagDiff  byte = 0b01_000000
	TagLuma  byte = 0b10_000000
	TagRun   byte = 0b11_000000
)

Variables

View Source
var ErrParseEndMarker = errors.New("failed to parse QOI end marker")
View Source
var ErrParseHeader = errors.New("failed to parse QOI header")

Functions

func Decode

func Decode(input io.Reader) (image.Image, error)

func Encode

func Encode(w io.Writer, m image.Image, ch Channels) error

Types

type Channels

type Channels uint8

Jump to

Keyboard shortcuts

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