testutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: BSD-2-Clause Imports: 6 Imported by: 0 modules, 0 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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Corpus = []Clip{
	{Name: "base_intra_qp26", Width: 176, Height: 144, Frames: 10},
	{Name: "base_intra_nodb", Width: 176, Height: 144, Frames: 10},
	{Name: "base_ip_qp10", Width: 176, Height: 144, Frames: 10},
	{Name: "base_ip_qp26", Width: 176, Height: 144, Frames: 10},
	{Name: "base_ip_qp40", Width: 176, Height: 144, Frames: 10},
	{Name: "base_ip_ref3", Width: 176, Height: 144, Frames: 10},
	{Name: "base_ip_slices", Width: 176, Height: 144, Frames: 10},
}

Functions

func ComparePlanes

func ComparePlanes(t *testing.T, label string, got, want []byte, width, height int)

func CorpusDir

func CorpusDir() string

func LoadReferenceYUV

func LoadReferenceYUV(t *testing.T, c Clip) []byte

func LoadStream

func LoadStream(t *testing.T, c Clip) []byte

Types

type Clip

type Clip struct {
	Name   string
	Width  int
	Height int
	Frames int
}

func (Clip) Frame

func (c Clip) Frame(all []byte, i int) []byte

func (Clip) FrameSize

func (c Clip) FrameSize() int

Jump to

Keyboard shortcuts

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