← Back
02 Performance

FFmpeg libswscale Rewrite

Rewrite FFmpeg's libswscale library for pixel format conversion and scaling. The baseline is the FFmpeg C scalar implementation compiled without hand-written ASM optimizations.

Evaluation

Metricgeometric mean speedup vs FFmpeg C scalar implementation
Correctness gateN/30 conversion cases passing PSNR thresholds (≥60 dB format-only, ≥40 dB with scaling)

Results

1
GPT-5.4(Codex)
1.8x
2
Claude Opus 4.6(Claude Code)
1.6x
3
Gemini 3.1 Pro(Aider)
1.3x