frame

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 8 Imported by: 2 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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