yuv

package
Version: v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChromaPos

type ChromaPos uint8
const (
	TopLeft ChromaPos = iota
	BetweenFour
)

type ImgProcessor

type ImgProcessor interface {
	Process(rgba *image.RGBA) ImgProcessor
	Get() []byte
}

func NewYuvImgProcessor

func NewYuvImgProcessor(w, h int, options ...Option) ImgProcessor

NewYuvImgProcessor creates new YUV image converter from RGBA.

type Option

type Option func(*Options)

func ChromaP

func ChromaP(cp ChromaPos) Option

func Threaded

func Threaded(t bool) Option

func Threads

func Threads(t int) Option

func WithOptions

func WithOptions(arg Options) Option

WithOptions used for config files.

type Options

type Options struct {
	ChromaP  ChromaPos
	Threaded bool
	Threads  int
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL