testutil

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: BSD-2-Clause Imports: 8 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

View Source
const (
	NALTypeSliceNonIDR = 1
	NALTypeSliceIDR    = 5
	NALTypeSEI         = 6
	NALTypeSPS         = 7
	NALTypePPS         = 8
)

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},
}
View Source
var HighCorpus = []Clip{
	{Name: "high_intra_8x8_cabac", Width: 176, Height: 144, Frames: 10},
	{Name: "high_intra_8x8_cavlc", Width: 176, Height: 144, Frames: 10},
	{Name: "high_ip_8x8_cabac", Width: 176, Height: 144, Frames: 10},
	{Name: "high_ip_8x8_cavlc", Width: 176, Height: 144, Frames: 10},
	{Name: "high_ipb_8x8_cabac", Width: 176, Height: 144, Frames: 10},
	{Name: "high_ipb_8x8_cavlc", Width: 176, Height: 144, Frames: 10},
	{Name: "high_cqm_jvt_cabac", Width: 176, Height: 144, Frames: 10},
	{Name: "high_cqm_jvt_cavlc", Width: 176, Height: 144, Frames: 10},
	{Name: "high_cqm_jvt_4x4", Width: 176, Height: 144, Frames: 10},
	{Name: "high_cqm_custom", Width: 176, Height: 144, Frames: 10},
	{Name: "high_cqm_custom_cavlc", Width: 176, Height: 144, Frames: 10},
}
View Source
var MainCorpus = []Clip{
	{Name: "main_intra_cabac", Width: 176, Height: 144, Frames: 10},
	{Name: "main_intra_cabac_nodb", Width: 176, Height: 144, Frames: 10},
	{Name: "main_ip_cabac", Width: 176, Height: 144, Frames: 10},
	{Name: "main_ipb_cabac", Width: 176, Height: 144, Frames: 10},
	{Name: "main_ip_weightp", Width: 176, Height: 144, Frames: 10},
	{Name: "main_ip_fade", Width: 176, Height: 144, Frames: 10},
	{Name: "main_ipb_cavlc", Width: 176, Height: 144, Frames: 10},
	{Name: "main_ipb_temporal", Width: 176, Height: 144, Frames: 10},
	{Name: "main_ipb_weightb", Width: 176, Height: 144, Frames: 10},
	{Name: "main_ipb_pyramid", Width: 176, Height: 144, Frames: 10},
	{Name: "main_cif_pyramid", Width: 352, Height: 288, Frames: 8},
}

Functions

func ComparePlanes

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

func CorpusDir

func CorpusDir() string

func EBSPUnits added in v1.6.0

func EBSPUnits() [][]byte

func LoadReferenceYUV

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

func LoadStream

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

func RBSPOfType added in v1.6.0

func RBSPOfType(types ...uint8) [][]byte

func Streams added in v1.6.0

func Streams() [][]byte

Types

type Clip

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

func AllClips added in v1.6.0

func AllClips() []Clip

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