avif

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 14 Imported by: 16

README

avif

Status Go Reference

Go decoder for AV1 Image File Format (AVIF).

Based on libavif and dav1d compiled to WASM and used with wazero runtime (CGo-free).

Documentation

Overview

Package avif implements an AVIF image decoder based on libavif compiled to WASM.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMemRead  = errors.New("avif: mem read failed")
	ErrMemWrite = errors.New("avif: mem write failed")
	ErrDecode   = errors.New("avif: decode failed")
)

Errors .

Functions

func Decode

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

Decode reads a AVIF image from r and returns it as an image.Image.

func DecodeAll added in v0.1.4

func DecodeAll(r io.Reader) ([]image.Image, []float64, error)

DecodeAll reads a AVIF image from r and returns the sequential frames and timing information.

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns the color model and dimensions of a AVIF image without decoding the entire image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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