Commit Graph
8 Commits
Author SHA1 Message Date
vangel76 82cef51617 Frame blending averages the source frames a comp frame skips over (#3180)
Footage interpreted at a much higher frame rate than the comp (for example a
60 fps clip interpreted as 600 fps in a 25 fps comp) showed no frame blending.
Frame Mix only cross-faded the two source frames around the comp frame's
source time, and only when that time fell between frames. With a whole-number
ratio every comp frame lands exactly on a source frame, so nothing blended,
and at other ratios at most two of the many skipped frames were used.

When a comp frame runs through at least four source frames (conformed rate,
time stretch or time remap), Frame Mix and Pixel Motion now average the
source frames that comp frame spans, each weighted by how much of it the span
covers; spans over 16 frames are sampled at 16 evenly spread frames. Played
backwards, the span ends with the comp frame's own source frame.

The speed is measured locally (over 1/16 of a comp frame) and must agree with
the difference to the next comp frame, so a time remap jump (a hold followed
by a cut, a loop wrapping back) stays crisp instead of smearing across the
jump. Reduced-resolution previews mix frames at the reduced size.

Below four source frames per comp frame (slow-downs, equal rates, 60p in a
30, 25 or 24 fps comp, 50p in 25) nothing changes. The threshold and the
16-frame cap are named constants, pending a comparison with After Effects.

The layer cache key, and the key of a layer that selects a frame-blended
footage layer as an effect input, now include how far the source runs during
the comp frame, which the mix depends on.

Fixes #3180
2026-11-07 12:24:04 +01:00
jayzed80 588560c368 Render: frame_position no longer panics on a zero or negative frame rate
A project file can carry footage with a frame rate of den 0; frame_position
divided by zero while rendering it. Treat non-positive rates as having no
frame to land between.
2026-10-30 15:53:49 +00:00
bflatastic 0754a754ae Merge main into #2300; Cineon conversion kept in footage_frame_raw (main routes proxies through footage_frame), frame-blend cache key hashes both premul colour and Cineon settings, spec strings combined 2026-10-30 05:41:52 +07:00
Camille Moine df0a88b795 Fix collapsed precomp Essential Property overrides (#1747)
Carry property, Font and Media Replacement overrides into the collapsed nested EvalCtx so nested layers render beyond the precomp frame instead of falling back to a clipped, flattened image. Key the layer cache on instance overrides to keep distinct collapsed instances isolated.
2026-10-29 15:21:16 +01:00
dotCooCoo ff717aa309 Merge main and retain Cineon Settings in the extracted modules
Resolve the Interpret Footage form against main's split into
interpret_footage_form and project_settings_form, keeping the Cineon
Settings fields and the pointUnits readback. Restore the Arc, rayon
prelude and cineon_frame imports that main's explicit use lists dropped.
2026-10-28 16:57:56 -07:00
Dylan M. Taylor 5d71dce7fc Refactor render for strict Clippy checks 2026-10-28 06:09:21 +00:00
dotCooCoo e0dc5eb2ff Merge main and retain Cineon Settings in the extracted modules 2026-10-27 11:41:43 -07:00
aiongg cbce15f069 refactor(render): move footage, effect host, accelerators, options, pipeline, layers and frames out of lib.rs 2026-10-26 21:49:11 +00:00