color

package
v2.0.0-...-cd2aaf7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: GPL-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 YCbCr

type YCbCr struct {
	*image.YCbCr
}

YCbCr is an in-memory image of Y'CbCr colors.

func NewYCbCr

func NewYCbCr(r image.Rectangle) *YCbCr

NewYCbCr returns a new YCbCr image with the given bounds and subsample ratio.

func (*YCbCr) CopyToCPointer

func (p *YCbCr) CopyToCPointer(CY, CCb, CCr unsafe.Pointer)

Copy arbitrary YCbCr to buffer that allocated by x264_picture_alloc()

func (*YCbCr) Set

func (p *YCbCr) Set(x, y int, c color.Color)

Set sets pixel color.

func (*YCbCr) ToYCbCr

func (p *YCbCr) ToYCbCr(src image.Image)

ToYCbCr converts image.Image to YCbCr.

Jump to

Keyboard shortcuts

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