vp9test

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 3 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

Overview

Package vp9test makes the VP9 frames libvpx codes none of, out of the ones it does, for tests of what reads and decodes them: frames that show a frame again, hidden intra-only frames, and key frames that code a frame context of their own.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Headers

func Headers(t *testing.T, packets [][]byte) [][]vp9.FrameHeader

Headers reads the headers of the frames in each of packets, a stream from its first key frame.

func KeyContext

func KeyContext(t *testing.T, key []byte, context uint8) []byte

KeyContext is key, a shown profile 0 key frame, coding context for its frame_context_idx: a field libvpx writes 0 in and reads nothing from, a key frame decoding from context 0 and saving to it whatever the field says.

func ShowExisting

func ShowExisting(slot uint8) []byte

ShowExisting is a profile 0 frame that shows the frame in reference frame slot: a frame marker, the profile and show_existing_frame, then the slot.

Types

type IntraOnly

type IntraOnly struct {
	Resilient bool
	Reset     uint8
	Refresh   uint8
	Context   uint8
}

IntraOnly is the header of a hidden intra-only frame made of a key frame: whether it is error resilient, which resets every frame context; else its reset_frame_context; its refresh_frame_flags; and the frame_context_idx it codes, which is the context a reset_frame_context of 2 resets and no more: the frame decodes from context 0 and saves to it, as every intra frame does.

func (IntraOnly) Of

func (to IntraOnly) Of(t *testing.T, key []byte) []byte

Of turns key, a shown profile 0 key frame, into the hidden intra-only frame to says, which decodes to the key frame's picture where frame context 0 is the default one when it decodes: an intra-only frame's compressed header and tiles are coded as a key frame's, and of the uncompressed header only what comes before the frame size differs. A key frame that is error resilient codes neither refresh_frame_context nor frame_parallel_decoding_mode, which an intra-only frame that is not takes as that mode implies them.

Jump to

Keyboard shortcuts

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