decoder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: BSD-2-Clause Imports: 15 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 decoder is the VP9 frame decoder — the final layer (M12) that wires together all lower-level packages into a complete decode pipeline.

Pipeline for each frame:

  1. Parse uncompressed header (frame.Parse).
  2. Decode compressed header probability updates (compheader.Decode).
  3. Allocate the output frame (refbuf.NewFrame).
  4. For each tile: create above-row context, then iterate superblock rows.
  5. For each SB: partition tree (recursive NONE/HORZ/VERT/SPLIT decode).
  6. For each coding block: blockmode.Decode → MV resolution → reconstruct.Block.
  7. After all tiles: apply loop filter (loopfilter.FilterPlane).
  8. Update reference buffer (refbuf.Buffer.Update, ExtendBorders).

Usage:

d := decoder.New()
for each IVF packet payload:
    frame, err := d.DecodeFrame(payload)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

Decoder holds VP9 decode state across frames.

func New

func New() *Decoder

New creates a Decoder with default probability tables.

func (*Decoder) DecodeFrame

func (d *Decoder) DecodeFrame(payload []byte) (*refbuf.Frame, error)

DecodeFrame decodes one VP9 frame from a raw IVF packet payload (not including the 12-byte IVF frame header). Returns the decoded 4:2:0 8-bit frame.

Jump to

Keyboard shortcuts

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