Repository navigation
vp8: AVX2 loop-filter and sub-pixel kernels (kernels v0.25.0) - #7
Merged
Merged
Conversation
The VP8 loop-filter dispatch functions and the six-tap / bilinear predictors try go-videodsp/kernels first when cpu.HasAVX2, keeping the previous code as the fallback. Added as portgovpx Patches. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…where AVX2 is present Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Wires the VP8 loop-filter kernels (go-videodsp/kernels v0.24.0
lf.VP8*) and the six-tap / bilinear predictors (v0.25.0mc.VP8SixTap,mc.VP8Bilinear) into the amd64 decoder, behindcpu.HasAVX2, the previous code as the fallback. Same pattern as the merged VP9 wiring (v0.3.0, v0.4.0):portgovpxPatches (vp8LFKernelPatches,vp8MCKernelPatches, plus two ininternal/vp8/decoder/loopfilter.go) and hand-writtenkernels_amd64.go/kernels_other.goininternal/vp8/dsp,lf_kernels_*.goininternal/vp8/decoder.The kernels filter 16 luma lines or 2 x 8 chroma lines per call; where they run, the per-edge calls replace the fused macroblock paths of
internal/pixel(the fused paths measured slower: 3438 against 3633 us/frame).Measured (fractal, Ryzen 9 7950X, core 11, load 3-4, 7 interleaved rounds, crowd_run 1080p VP8,
GOEXPERIMENT=simd)1.44x. VP9 unchanged (2463 against 2482 us on its 1-tile clip). Vectors 376/376, plain and 4 threads, with and without
GOEXPERIMENT=simd.Not wired: the decoder's simple-filter fused paths (not compared; the clip uses the normal filter).
🤖 Generated with Claude Code