decoder

package
v0.0.0-...-0149753 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(options Options) (d *Decoder, err error)

func (*Decoder) Decode

func (d *Decoder) Decode(r io.Reader) (image.Image, error)

func (*Decoder) GetFeatures

func (d *Decoder) GetFeatures(r io.Reader) (*Features, error)

type Features

type Features struct {
	Width  int
	Height int

	HasAlpha     bool
	HasAnimation bool
}

type Options

type Options struct {
	ByPassFiltering        bool
	NoFancyUpsampling      bool
	Crop                   *image.Rectangle
	Scale                  *image.Rectangle
	UseThreads             bool
	DitheringStrength      int
	AlphaDitheringStrength int
	Flip                   bool
}

Jump to

Keyboard shortcuts

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