yuv

package
v0.0.0-...-b59fb02 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromI420

func FromI420(frame []byte, width, height int) (*image.YCbCr, error)

FromI420 decodes an i420-encoded YUV image into a Go Image.

See https://www.fourcc.org/pixel-format/yuv-i420/

func FromNV21

func FromNV21(frame []byte, width, height int) (*image.YCbCr, error)

FromNV21 decodes an NV21-encoded, big-endian YUV image into a Go Image.

See https://www.fourcc.org/pixel-format/yuv-nv21/

func ToI420

func ToI420(img image.Image) (frame []byte, width, height int)

ToI420 converts a Go image into an I420-encoded YUV raw image slice

See https://www.fourcc.org/pixel-format/yuv-i420/

Types

This section is empty.

Jump to

Keyboard shortcuts

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