decoder

package
v0.0.0-...-3853e65 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageDecoder

type ImageDecoder struct{}

ImageDecoder allows for the decoding of various types of images.

func (*ImageDecoder) Decode

func (*ImageDecoder) Decode(extension string, reader io.Reader) (img image.Image, err error)

Decode decodes images into image.Image.

type MediaDecoder

type MediaDecoder interface {
	Decode(extension string, reader io.Reader) (image.Image, error)
}

MediaDecoder is an interface for media decoding.

type VideoDecoder

type VideoDecoder struct{}

VideoDecoder allows for the decoding of various types of videos.

func (*VideoDecoder) Decode

func (*VideoDecoder) Decode(extension string, reader io.Reader) (img image.Image, err error)

Decode decodes videos into image.Image.

Jump to

Keyboard shortcuts

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