webp

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WebPEncodeLosslessRGBA func(in uintptr, width int32, height int32, bps int32, out uintptr) (size uint64)
	WebPEncodeRGBA         func(in uintptr, width int32, height int32, bps int32, quality float32, out uintptr) (size uint64)
	WebPDecodeRGBA         func(data uintptr, size uint64, width uintptr, height uintptr) uintptr
	WebPFree               func(ptr uintptr)
)

Functions

func DecodeImpl added in v1.1.0

func DecodeImpl(buf []byte) (image.Image, error)

func EncodeImpl

func EncodeImpl(w io.Writer, m *image.NRGBA, quality float32) error

func Init added in v1.0.1

func Init() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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