Commit Graph
563 Commits
Author SHA1 Message Date
MeanTemperatureandClaude Opus 5.5 1855d02c47 fix(render): Fill keeps a scaled-up text layer's working image small (#4158) (#4159)
* fix(render): Fill keeps a scaled-up text layer's working image small (#4158)

A layer's effect stack skips the cover of the whole layer rectangle only
when every effect is in SKIPS_COVER. Fill was not, so a text layer with
Fill scaled up to ~900 % got a working image the size of the scaled layer
rectangle on every frame, and a render reached tens of GB.

Fill without Invert only recolours pixels the layer already has (masked
or not), so it now skips the cover too. Inverted, it paints the layer's
transparent area and keeps it. The check reads the instance's Invert
value, so EffectSpec gains skips_cover_for(params).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(render): a feathered Fill keeps the cover (#4158)

With a feather, a Fill mask edge outside the painted pixels still blurs
into them, so the coverage has to be computed beyond the painted bounds.
Keep the cover when either feather is set; unfeathered Fill (the default)
still skips it. Adds a covered-reference test with a feathered mask whose
edge lies just outside the painted content (fails without this change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 08:52:51 +01:00
MeanTemperatureandClaude Opus 5.5 61e4f00138 CLI renders keep at most 1 GB of decoded footage frames (#4157) (#4167)
* CLI: a headless session's footage frames keep at most 1 GB (#4157)

Since #3301 the footage frames may fill the caches' whole common budget,
and since #3941 the CLI's budget is that of the installed RAM. A one-pass
render reads each frame about once, so it kept gigabytes of frames it never
read again and was killed under a cgroup memory limit.

Session::footage_cap caps the footage frames (and decoded planes) below
the common budget; apply_cache_budgets honours it, so a new memory reading
or a settings change keeps it. headless_session() sets it to
HEADLESS_MEDIA_CACHE (1 GB, the footage cache's default in 0.24). The
desktop app keeps the whole budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(host): a headless session's footage cap is exactly HEADLESS_MEDIA_CACHE (#4157)

Assert the cap itself (or the budget, if smaller) rather than only that it
is below the budget, which a wrong cap above 1 GB would also pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 08:43:24 +01:00
FredApps 995039c7aa Merge branch 'main' into feat/import-photocraft 2026-11-26 17:17:26 +01:00
FredApps 52b1d18833 Merge branch 'main' into camera-tools-2586 2026-11-26 16:07:34 +01:00
FredApps a0be2a752f Merge branch 'main' into test/issue-2286-dof-guard-tests 2026-11-26 13:55:34 +01:00
FredApps 8d9aaf1055 Reconcile PhotoCraft import with current EffectCraft dependencies 2026-11-26 08:54:52 +01:00
Dylan M. Taylor 59aed45057 packaging(linux): support co-installable nightly packages (#4154)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 19:38:19 -06:00
NullTron 1f51b36567 fix(effects): preserve Particle Playground producer history (#1955) 2026-11-22 02:24:47 +05:30
NullTron 5fe33d0a9b fix(effects): sample particle producers at their birth time (#1955) 2026-11-22 02:24:47 +05:30
dotCooCoo 37ce6afb32 Merge main into feat/import-photocraft 2026-11-20 23:19:20 -08:00
FredApps 02b9ac978b Merge pull request #1710 from MarekSpodBiedry/issue-1682
Keep Essential Graphics instance keyframes in the comp so valueAtTime and numKeys see them (#1682)
2026-11-20 21:05:34 +07:00
dotCooCoo f5bbbd2d64 Merge main into feat/import-photocraft 2026-11-19 07:28:11 -08:00
FredApps e2b17586c0 Merge main into feat/import-photocraft 2026-11-18 20:20:08 +07:00
vangel76 51bb54efde Merge branch 'plane-store-on-craft-exr' into decode-cap-on-craft-exr 2026-11-18 13:17:20 +01:00
vangel76 f6a867a951 Disk cache: an entry larger than the cache is skipped before it is sealed (#3750 review) 2026-11-18 13:17:19 +01:00
vangel76 596a5ac55d Merge branch 'plane-store-on-craft-exr' into decode-cap-on-craft-exr 2026-11-18 13:03:07 +01:00
vangel76 9bbc0847ad Caching: a still cached both whole and as a frame can be let go, and a plane entry without memory to seal it is skipped (#3750 review) 2026-11-18 12:57:37 +01:00
dotCooCoo b84130ad63 Import: refuse pass-through groups deeper than the renderer collapses them
A pass-through group becomes a precomposition with Collapse Transformations on, and the renderer collapses one only 12 comps deep. A deeper one was flattened, so its layers no longer blended with the layers below the group. Composition import now refuses pass-through groups more than 13 levels deep and suggests Footage, as it does for groups more than 16 levels deep. The renderer's limit is effectcraft_render::MAX_COLLAPSE_DEPTH.
2026-11-17 18:25:04 -08:00
vangel76 6bee053990 Merge branch 'plane-store-on-craft-exr' into decode-cap-on-craft-exr
# Conflicts:
#	crates/media/src/exr_planes.rs
2026-11-17 17:40:27 +01:00
vangel76 3494ef8552 Caching: an oversized Cryptomatte plane stays beside held ones, disk copies are made a job at a time, and the review tests prove what they claim (#3750 review) 2026-11-17 17:40:16 +01:00
Christopher Linnett b06ba083ab #2286: a failing test behind each Classic 3D depth-of-field bounding guard
Removing any of three guards from the depth-of-field bounding work failed no test: dof_blur's refusal of a padded buffer past the largest layer size, dof_radii_at's zeroing of a NaN radius, and the GPU bokeh's saturating padded sizes with the refusal they feed.

- dof_blur_refuses_a_padded_buffer_longer_than_a_layer: a defocused strip as long as a layer may be, lying across the frame and standing up it, is drawn sharp and opaque; half as long, it blurs.
- dof_radii_are_zero_where_the_radius_is_nan: a NaN depth (camera and plane at z = ∓1e308) and a NaN circle of confusion at a finite depth (Aperture 1e308 at Blur Level 0 %) give a zero radius, not the cap.
- bokeh_refuses_a_padding_the_device_cannot_hold: paddings that would wrap the u32 size, or pass the device's largest texture in width (with the row-sum column) or height, are refused; a padding the device holds blurs.

The four existing tests that built the same depth-of-field scene now share dof_scene and plane_dof_radii with the new ones.
2026-11-18 00:12:18 +08:00
vangel76 79fdc7b21b Merge branch 'plane-store-on-craft-exr' into decode-cap-on-craft-exr
# Conflicts:
#	crates/media/src/exr_planes.rs
2026-11-17 17:00:55 +01:00
vangel76 5d0bfe7869 Caching: memory is let go only where it frees memory, Purge keeps nothing decoding meanwhile, and regions read the rows they show (#3750 review)
- Cryptomatte planes: a plane a render holds is not offered for its gone channels, and the entry
  limit holds while renders hold every plane.
- Footage frames and whole stills held elsewhere are not offered to the memory accountant.
- Purge (clear frames) makes decodes in flight stale: their frames are not kept or joined.
- Plane store: a size refusal of a merged decode is not handed to a request that fits alone;
  slimming a shared set and copies for the disk cache take memory fallibly, and planes the disk
  cache can't take are not copied.
- Disk cache: the plane encoder's scratch is taken fallibly; no memory skips the entry.
- Region of interest: rows follow the projected transform of a 2D layer under a 3D parent, and
  a frame of another size than its footage is read whole.
- The box filter's work bound is checked without a wall clock.
2026-11-17 17:00:29 +01:00
vangel76 c12320771c Merge branch 'plane-store-on-craft-exr' into decode-cap-on-craft-exr 2026-11-17 11:10:48 +01:00
vangel76 de69ca4866 OpenEXR limit: a limit set while the system's memory is read stays, and a reading without answer is asked for again (#3750 review)
The session's figure set during the reading was replaced by the older reading's
answer; it is now published only while nothing set a limit meanwhile. A reading
that gave no answer now makes earlier refusals for size out of date, so the
second reading is asked for by the next request.
2026-11-17 11:10:48 +01:00
vangel76 fc4eddf2d5 Merge upstream/main into the plane store branch (#3301)
# Conflicts:
#	Cargo.toml
2026-11-17 11:10:07 +01:00
vangel76 c205773d92 Caching: memory is counted where it is held, and whole layers stay whole under a viewer region (#3301 review)
- The memory accountant is offered only layer buffers and preview frames nobody
  else holds, so what it counts as freed is freed; the frame cache's recycled
  buffers count and go first.
- A Cryptomatte plane over the matte cache's own limit is kept only where the
  common budget trims it.
- Disk cache entries read back take their buffers fallibly: memory the system
  can't give is a miss.
- The Layer panel, sampleImage and effect inputs read whole footage frames under
  a viewer region of interest.
- A 16K Cryptomatte source at half resolution is box-filtered, not looked up
  nearest-neighbour.
- The System Compatibility Report shows the cache budget in force.
- A Project panel thumbnail render never starts under a key held back from an
  earlier state.
- Convert Expression to Keyframes makes no keys on a property that can't be
  animated.
2026-11-17 11:09:13 +01:00
Dylan M. Taylor 22dbd1612f Merge pull request #3246 from vangel76/waveform-reversed-3238
The Timeline waveform shows what is really heard for reversed layers and the Backwards effect
2026-11-16 20:37:23 -05:00
vangel76 a7e7cb6b6a OpenEXR limit: only a refusal for size depends on the limit's generation; sequentially consistent counters (#3749 review) 2026-11-16 23:10:29 +01:00
vangel76 bdf500f4ba OpenEXR limit: a refusal for size is decided anew when the limit changes; a failed reading is asked twice (#3749 review) 2026-11-16 23:09:59 +01:00
vangel76 b591f95ce4 OpenEXR: a file's channels may take what the machine's RAM allows, not a fixed 8 GiB (#3749)
The limit of one read is decided here (the 8 GiB floor, or the memory
budget when that is more) and handed to craft-exr as the read's max_bytes,
so the planes it reserves and the largest block it decompresses follow it.
craft-exr reserves the planes fallibly, so the reader's own fallible plane
allocation is not needed: memory the system can't give is a read that
failed just now (read_error), a plane over the limit a refusal for size.
2026-11-16 23:09:47 +01:00
vangel76 9ff031c5f1 Merge upstream/main into the plane store branch (#3301)
Conflicts: Cargo manifests (craft-libs pins from main, plus memory-stats, exr and
half for effectcraft-media), exr_channels.rs (the plane store's version; main's
craft-exr channel decode is replaced by the plane store until craft-exr reads
from a seekable source), pool.rs (frame_px takes the rows of #3271 and the
forget generation of #2042), session open/forget (main's forget_files plus the
reload counter), Project panel thumbnails (main's Thumb types, keyed by content).
2026-11-16 20:57:45 +01:00
ash 5300531387 Merge pull request #2042 from arnav-hiwarkar/perf/close-project-frees-caches
Close, New and Open Project free the closed project's memory
2026-11-16 17:27:13 +05:30
vangel76 4a1a845b21 Camera tools: a layer nearer than the near plane is not under the cursor (#3259 review) 2026-11-15 23:42:42 +01:00
vangel76 f4a8c88349 Merge upstream/main into cache-defaults-3298 2026-11-15 20:28:43 +01:00
.CooCoo 7cbefaf70f Import: VectorCraft documents import through the PDF they carry (#2901)
* Import: VectorCraft documents import through the PDF they carry

File > Import reads a .vectorcraft file through the PDF that VectorCraft
saves in it with Create PDF-Compatible File, one page per artboard, as
footage or as a composition with one layer per PDF layer. The PDF is read
with craft-doc from craft-libs (plain or compressed files, the PDF inline
or after the JSON). A PDF after the JSON may be as large as a PDF file
EffectCraft imports (512 MiB). A document saved without that option gives
an import error that names it.

craft-doc, craft-vectorcraft-format (tests only) and craft-ecproj-format
are pinned to craft-libs fa1a6574; craft-ecproj-format is unchanged
between ca1b5e2e and that commit.

* Import: show file errors returned by the import dialog

* Keep dropped-file import errors alongside local drop errors

* Import: preserve every file error across background jobs and UI notices

* Import: queue pending errors with bounded notification details

* Import: a damaged VectorCraft preview no longer stops the carried PDF

The importer read every rendition with craft_doc::renditions and then
picked the PDF, so a preview whose base64 was invalid or whose data lay
past the end of the file made the whole import fail. It now reads only
the PDF with craft_doc::rendition, from storytold/craft-libs#546, and
never decodes the preview. A document without a PDF still reports
NoCarriedPdf.

* Import: dismissing a picked import's error status acknowledges its details

A picked or menu import queued its error details with the status
report_import_errors set ("first (and 1 more)"), and show_result_errors
then replaced that status with "first; second". The two never matched,
so clicking the status left the details queued and they showed again.
Import commands now move the queued details to the status that replaces
it, also when After Effects project errors lead it. Other commands'
statuses never take over an import's details.
2026-11-15 03:45:56 -05:00
vangel76 3ad49f8f7b Merge upstream/main into cache-defaults-3298
Conflict in crates/render/src/pipeline.rs: kept both the footage-rows
reader of this branch and the frame-mix span reader from main.
Adapted three menus tests to DialogAnswer.paths now being a Result.
2026-11-14 19:53:16 +01:00
vangel76 d5268dd2ee Merge remote-tracking branch 'upstream/main' into waveform-reversed-3238 2026-11-14 18:21:02 +01:00
vangel76 1b8fefa0b6 Merge upstream/main into camera-tools-2586 2026-11-14 18:14:13 +01:00
FredApps 93bdc1f2f8 Merge pull request #3252 from vangel76/reversed-layer-audio-3239
Audio: a time-reversed layer plays its audio backwards
2026-11-14 17:27:44 +01:00
FredApps 4579f91c94 Merge pull request #3211 from vangel76/frame-blend-interpret-3180
Frame blending averages the source frames a comp frame skips over (fast-conformed footage)
2026-11-14 17:04:22 +01:00
vangel76 6cd1aec73c Waveform: draw reversed layers as the mix plays them (merge #3252)
Merge reversed-layer-audio-3239. The mixer now plays negative stretch backwards, so
stretch_is_mixed is gone and the Timeline waveform no longer treats reversed layers as
silent: columns follow the layer time mapping, and Backwards on a reversed layer undoes
the reversal. Tests assert mix/waveform agreement for reversed stretch and double reversal.
2026-11-14 17:01:57 +01:00
FredApps 05801ee111 Merge pull request #3210 from vangel76/grid-mask-3121
Effects: Grid, Checkerboard and Circle keep the layer's mask with Blending Mode None
2026-11-14 17:00:32 +01:00
vangel76 eb24211942 Merge upstream/main into waveform-reversed-3238 2026-11-13 19:06:07 +01:00
vangel76 2aefe27278 Merge upstream/main into reversed-layer-audio-3239 2026-11-13 19:06:02 +01:00
vangel76 4829a83d30 Merge upstream/main into cache-defaults-3298 2026-11-13 12:39:55 +01:00
Dylan M. Taylor 92274ec914 Merge remote-tracking branch 'origin/main' into codex/778-effect-migration
# Conflicts:
#	crates/aep/src/container.rs
#	crates/aep/src/container/footage.rs
#	crates/aep/tests/it/container/robustness.rs
#	crates/model/src/fbx.rs
#	crates/model/src/gltf.rs
#	crates/model/src/obj.rs
2026-11-13 02:26:44 +00:00
arnav-hiwarkar 0635f2496d #2042: review fixes for closing a project's thumbnails
- CancellableFootage calls off vector_frame too: a closed project's SVG / PDF thumbnail stops
  before it rasterises, like a viewer frame nobody waits for.
- replace_project forgets every footage file once and clears the layer cache and the
  Cryptomatte probe once, instead of once per footage item.
- The through-Close test covers comp thumbnails (layer cache and footage) as well as footage
  ones, and fails with a timeout instead of hanging.
- Docs: forget is also how a closed project's files go.
2026-11-12 19:32:06 +05:30
ash 6ea9476ee4 Merge pull request #3560 from arnav-hiwarkar/fix/3538-ocio-file-reload
OCIO File Transform and custom OCIO configs follow their files on disk (#3538)
2026-11-12 17:08:11 +05:30
vangel76 dcd46af227 Merge upstream/main into cache-defaults-3298 2026-11-12 12:36:34 +01:00