wavefront

package
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 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 wavefront is the progress counter that the row-parallel loop filters of the video decoders wait on: row r of a picture may process unit c once row r-1 has finished unit c+1 or so. The waiting row spins for a moment (the units are short, so the wait usually is too) and then sleeps on a condition variable, instead of yielding in a loop, which burns the CPU the other rows need when the machine is busy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rows

type Rows struct {
	// contains filtered or unexported fields
}

Rows tracks the number of finished units of every row.

func New

func New(n int) *Rows

New makes the counters of n rows, all at zero.

func (*Rows) Done

func (r *Rows) Done(row, n int)

Done records that row has finished n units.

func (*Rows) Wait

func (r *Rows) Wait(row, n int)

Wait blocks until row has finished at least n units.

Jump to

Keyboard shortcuts

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