Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions content/en/upscale.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@ One core of a Ryzen 9 7950X (load about 2), 1280x720 to 1920x1080, milliseconds
| ffmpeg lanczos | 2.8 |
| `upscale`, scalar (default build) | 242 (EASU alone 193) |
| `upscale`, `GOEXPERIMENT=simd` (v0.22.0) | 82 (EASU alone 73) |
| `upscale`, `GOEXPERIMENT=simd` (v0.23.0) | 55 (EASU alone 44) |

ffmpeg's figures subtract the source and the pixel conversion. The vector build uses the
portable Go 1.27 `simd` package (AVX2 and AVX-512 on amd64, NEON on arm64); it is chosen at
start-up, so the default build is unchanged. It is still about 30 times slower than
ffmpeg's hand-written scaler, **an open defect**: the 12-tap gather per output pixel
dominates. Today `upscale` suits stills, offline work and small frames, not real-time 1080p.
start-up, so the default build is unchanged. v0.23.0 gathers each source row's taps once
(not once per output pixel), computes the edge analysis once per source pixel and packs
RGBA with vectors. It is still about 20 times slower than ffmpeg's hand-written scaler,
**an open defect**: the scalar gather, the input conversion and the EASU arithmetic take
roughly equal shares of what is left. Today `upscale` suits stills, offline work and small frames, not real-time 1080p.

## Reproduce {#reproduce}

Expand Down
Loading