yuv

package module
v0.0.0-...-3f05fc8 Latest Latest
Warning

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

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

README

Imported from https://github.com/giongto35/cloud-game/tree/master/pkg/encoder/yuv

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
}

Jump to

Keyboard shortcuts

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