Documentation
¶
Overview ¶
Package wuffspng decodes PNG images with Wuffs, Google's memory-safe image decoders, compiled from the vendored single-file C release wuffs-v0.4.c (google/wuffs commit 7f70dda95c77b10c087c0908790837b5e9c15713, licensed Apache-2.0 OR MIT; see LICENSE-APACHE and LICENSE-MIT).
On a MiSTer it decoded real 512x700 cover art 2.8 times faster than image/png, with identical pixels. Builds without cgo report ErrUnavailable so callers fall back to image/png.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnavailable = errors.New("wuffspng: not available without cgo") // ErrTooLarge is returned when the decoded image cannot be addressed. ErrTooLarge = errors.New("wuffspng: image too large") // ErrDecode wraps Wuffs' own status message for an invalid PNG. ErrDecode = errors.New("wuffspng: decode failed") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.