av1lfasm

command
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 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

Overview

Command av1lfasm writes the AV1 encoder's loop filter kernel (internal/av1/lf_amd64.s): the sample filtering process (spec 7.14.6) for the four lines of an edge segment at once, a line a 32-bit lane.

go run ./tools/av1lfasm -dir internal/av1

The kernel gathers the samples across the edge (as many each side as the filter reads) into frame slots, works out each lane's masks (filter or not, flat, flat2, high edge variance) as loopFilter.sample does, then the narrow filter's outputs and the wide filters' (their sums written out from wideFilter's windows, the samples beyond them the last ones), blends them by the masks and writes back the samples the filter's length may change.

Jump to

Keyboard shortcuts

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