frame

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 8 Imported by: 33

README

Special thanks to https://github.com/dialup-inc/ascii for I420 and NV21 decoder implementations.

Documentation

Index

Constants

View Source
const (
	// FormatI420 https://wiki.videolan.org/YUV#I420
	FormatI420 Format = "I420"
	// FormatI444 is a YUV format without sub-sampling
	FormatI444 Format = "I444"
	// FormatNV21 https://www.kernel.org/doc/html/v5.9/userspace-api/media/v4l/pixfmt-nv12.html
	FormatNV21 = "NV21"
	// FormatNV12 https://www.kernel.org/doc/html/v5.9/userspace-api/media/v4l/pixfmt-nv12.html
	FormatNV12 = "NV12"
	// FormatYUY2 https://www.kernel.org/doc/html/v5.9/userspace-api/media/v4l/pixfmt-yuyv.html
	// YUY2 is what Windows calls YUYV
	FormatYUY2 = "YUY2"
	// FormatYUYV https://www.kernel.org/doc/html/v5.9/userspace-api/media/v4l/pixfmt-yuyv.html
	FormatYUYV = "YUYV"
	// FormatUYVY https://www.kernel.org/doc/html/v5.9/userspace-api/media/v4l/pixfmt-uyvy.html
	FormatUYVY = "UYVY"

	// FormatRGBA https://www.kernel.org/doc/html/v5.9/userspace-api/media/v4l/pixfmt-rgb.html
	FormatRGBA Format = "RGBA"

	// FormatMJPEG https://wiki.videolan.org/MJPEG
	FormatMJPEG = "MJPEG"

	// FormatZ16 https://www.kernel.org/doc/html/v5.9/userspace-api/media/v4l/pixfmt-z16.html
	FormatZ16 = "Z16"
)

Variables

View Source
var UninitializedHuffmanTable = []byte{} /* 31516 elements not displayed */

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode(frame []byte, width, height int) (image.Image, func(), error)
}

func NewDecoder

func NewDecoder(f Format) (Decoder, error)

type Format

type Format string

Jump to

Keyboard shortcuts

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