BezierEasing evaluates CSS-style cubic-bezier timing curves (Newton with
bisection fallback) with linear, ease-in, ease-out and ease-in-out
presets. VirtualCamera interpolates centre, roll and geometric zoom
between keyframes and returns one view-to-source affine composed with
the inverse stabiliser correction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
Per frame, nine phase-correlation patches on a 3x3 grid are gated by
noise-compensated gradient energy (Immerkær noise estimate) and peak
sharpness, then fitted with a similarity by exhaustive two-point
hypotheses and weighted least squares on the inliers. Solve smooths the
camera path with Gaussian-weighted local linear regression, derives
corrections, shake RMS, recommendation (> 0.3 px) and the crop needed to
hide borders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
ShutterAngle computes the real angle from exposure and interval and the
blur fraction sqrt(target^2 - real^2)/360 (zero once the real angle
reaches the target). MotionBlurRenderer averages bilinear taps along
each pixel's motion vector with a tap count adaptive to the length.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
GrayPyramid builds Burt–Adelson binomial pyramids on pooled planes.
MotionField stores grid vectors with bilinear sampling, forward–backward
errors, magnitude histogram and statistics. OpticalFlowEngine solves a
Lucas–Kanade window at every pixel of each level with a first-order
correction for neighbouring flows (stable for any iteration count),
binomial pre-smoothing, median filtering between levels, Draft/Balanced/
Best presets and forward–backward consistency.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
Affine2D (compose, invert, apply, similarity decomposition), RectD and
AspectRatio presets with largest-centred crop fitting and offsets, and a
single-pass geometry stage composing crop, aspect, output size and warp,
resampled with Keys cubic convolution (a = -0.5): Vector128 4x4 interior
path, widened kernel when minifying, clamp or transparent borders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
Radix-2 Cooley–Tukey with SIMD butterflies and Bluestein chirp-z for
arbitrary lengths, cached plans, parallel 2D transforms, real-input
half-length transforms and Tukey/Hann windows. Phase correlation packs
both patches into one complex FFT, normalises the cross-power spectrum
with a Gaussian low-pass and refines the peak with a log-parabola fit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC