Commit Graph
4880 Commits
Author SHA1 Message Date
FredApps a32f16f25d Merge main into i778/effectcraft-opus-craft-audio
Keep workspace craft-libs pins at 5a7a63a2 (#1593), which already includes
main's older exr and lottie revisions. Retain the craft-cms pin at 9fd926dc
from #3744; SPI1D landed on craft-libs main after #1593.
2026-11-16 09:05:56 +01:00
FredApps 737322678c Merge pull request #3744 from storytold/extract/shared-spi1d
effects: cut SPI1D parsing over to craft-cms
2026-11-16 08:24:45 +01:00
FredApps b68b840245 Merge pull request #3646 from storytold/codex/effectcraft-exr-shared-consumer
refactor(exr): decode channels with shared craft-exr
2026-11-16 08:20:17 +01:00
FredApps 5bc065af79 Merge main into i778/effectcraft-opus-craft-audio; repin craft-libs to 5a7a63a2 2026-11-16 08:11:50 +01:00
FredApps 18adb1ec7a Merge pull request #3643 from storytold/codex/effectcraft-dotlottie-container
Use shared ZIP codec for dotLottie archives
2026-11-16 07:58:45 +01:00
FredApps bb0058444b Merge remote-tracking branch 'upstream/main' into extract/shared-spi1d
# Conflicts:
#	Cargo.lock
2026-11-16 07:48:25 +01:00
Dylan M. Taylor ac2ffa1cd4 Merge pull request #3759 from storytold/fix/gpu-picker-test-lock
test(ui): serialize GPU picker integration
2026-11-16 01:46:09 -05:00
FredApps 234273d9b8 docs(exr): note the shared decoder's all-channel data-window bound 2026-11-16 07:44:53 +01:00
FredApps 286f2d0661 Merge remote-tracking branch 'upstream/main' into codex/effectcraft-exr-shared-consumer 2026-11-16 07:35:45 +01:00
Dylan M. Taylor cc09cdd4f3 Merge remote-tracking branch 'origin/main' into fix/dotlottie-scope-only 2026-11-16 01:17:52 -05:00
Dylan M. Taylor 45e2fe0506 Merge remote-tracking branch 'origin/main' into fix/gpu-picker-test-lock 2026-11-16 01:17:32 -05:00
Dylan M. Taylor 0282141e7a Merge pull request #3647 from storytold/codex/fix-llvmpipe-selective-color
fix(gpu): sort selective color channels on llvmpipe
2026-11-16 01:17:05 -05:00
Dylan M. Taylor 600db3717f Merge remote-tracking branch 'origin/main' into fix/effect-gpu-integrated 2026-11-16 00:32:26 -05:00
Dylan M. Taylor 684c5d6cd1 Merge pull request #3709 from storytold/codex/fix-readback-after-selective-color
fix(gpu): serialize readback mapping cleanup
2026-11-16 00:32:15 -05:00
Dylan M. Taylor 218b94224a test(ui): serialize GPU picker integration 2026-11-15 23:57:08 -05:00
Dylan M. Taylor f0a5783a82 fix(gpu): preserve CSP shaper channels on software Vulkan 2026-11-15 23:56:13 -05:00
Dylan M. Taylor 3678cc9bec fix(gpu): bound inverse LUT search and write transfer components explicitly 2026-11-15 23:25:31 -05:00
Dylan M. Taylor 5a7b4e903f test(gpu): isolate inverse LUT and profile readbacks 2026-11-15 23:03:51 -05:00
Dylan M. Taylor 3b4f35eba4 Keep dotLottie cutover separate from coverage PR 3654 2026-11-15 22:13:24 -05:00
Dylan M. Taylor 963fbb1345 Merge commit 'df79630f6f2e00d099c07def39b0230cb759e328' into fix/effect3643-coverage 2026-11-15 20:02:51 -05:00
Dylan M. Taylor 7a179a0efd Merge remote-tracking branch 'origin/main' into fix/effect3643-coverage 2026-11-15 20:02:51 -05:00
Dylan M. Taylor 6c70694a04 Merge pull request #3742 from storytold/extract/shared-base64-encoders
encoding: replace four local Base64 writers with existing craft-mime
2026-11-15 18:03:34 -05:00
Dylan M. Taylor 85903800dd Account selected EXR planes per part and skip unused parts 2026-11-15 14:46:37 -05:00
Dylan M. Taylor d2d3f47d92 Merge main and isolate shared EXR decoder revision 2026-11-15 14:08:54 -05:00
Dylan M. Taylor d7d6007970 effects: use shared SPI1D table reader 2026-11-15 13:49:50 -05:00
Dylan M. Taylor ac1c1d9202 encoding: reuse shared Base64 writers across four consumers 2026-11-15 13:19:05 -05:00
Dylan M. Taylor 8fdbbc604c Refresh shared dotLottie cutover and propagate archive errors 2026-11-15 10:24:25 -05:00
FredApps e6a8cf8cec Export: WebM Opus from craft-audio; remove crates/opusenc
WebM export (VP9 and AV1) now encodes Opus with craft_audio::opus::Encoder
(the opus-encode feature). The shared encoder was imported from this crate,
and craft-libs #1593 ports the speed-ups that landed here afterwards, so the
packets are byte-identical to effectcraft-opusenc. Encoder errors are export
errors instead of panics.

All direct craft-libs dependencies, the lockfile and the PDF dependency
validator move to b850981f, the head of craft-libs #1593. Repin to its merge
commit once it lands.

Refs storytold/craft-libs#778
2026-11-15 16:05:11 +01:00
.CooCoo d6c9ad6643 Cineon Converter: Gamma 1 gives linear output and saved projects keep their render (#2312)
## Behavior

A new Cineon Converter opens with Gamma 1.7. Its Version parameter is 2 by default. A converter saved before Version existed opens as version 1, retaining its Gamma value, keyframes, and expression text and rendering on its original scale. Reset keeps the instance's Version.

In version 2:

- Log to Linear raises the exposure to `1 / gamma` before subtracting the black offset and normalizing: `(E^(1/g) - O^(1/g)) / (1 - O^(1/g))`, with `E = 10^((code - white) * 0.002 / 0.6)` and `O` the exposure at the black point. Gamma 1 gives linear output, and a larger Gamma lightens the midtones. Highlight Rolloff then applies as before, and Linear to Log is the inverse.
- Log to Log returns code values unchanged at Gamma 1 and raises the normalized code value to `1 / gamma` at other values. With custom black or white points, the code values first go through the Gamma 1 conversion.

The CPU and GPU paths match. Version 1 instances render as before, and Interpret Footage ▸ Cineon Settings keeps its existing formula, which agrees with the version 2 Converter at Gamma 1.

The public Cineon Converter documentation (https://helpx.adobe.com/after-effects/using/utility-effects.html) describes Gamma as a midtone control and gives no defaults or formula. The default, the Log to Linear curve and the Log to Log behavior come from running and scripting After Effects 26.5 on my own machine and reading back the rendered pixels. In After Effects, choosing Log to Log also sets Gamma to 1 and Highlight Rolloff to 0; EffectCraft does not do that yet, because no command sets one parameter from another.

Animation preset format 3 records `cineonVersion` for a saved Gamma property and stores effect key times relative to the first key. Presets in formats 1 and 2 without that tag contain version 1 Gamma values; format 2 already has relative effect key times. Applying a whole old Cineon Converter also gives it version 1. Exposed Essential Properties Gamma values convert to the target converter version where their target is unambiguous (the conversion keeps the linear point; other Gamma values follow each version's own curve); enabled expressions on another scale are skipped instead of rewriting their source.

A saved Gamma records the Version its converter has at the current time. Applied to a converter whose Version is keyframed, a Gamma preset keeps those keys: the Gamma is converted to the one version they hold, or skipped when they hold several or an expression sets the Version. A preset that also holds the Version sets it from that property.

The project schema remains 2. `docs/architecture.md` describes the behavior above.

## Validation

Effect tests check version 2 Log to Linear at Gamma 1.7 (codes 95 to 685) and Gamma 2.2 (codes 180 to 620), and Log to Log at Gamma 1 (Rolloff 0 and 20) and Gamma 1.7, against the measured 8-bit values within one or two codes, plus round trips, version 1 rendering and the Interpret Footage agreement at Gamma 1. GPU tests compare the version 2 paths with the CPU. Engine tests cover old projects, Reset, presets, keyframes, and Essential Properties.

Commands run on `74d398c2`:

- `cargo fmt --all -- --check`
- `cargo clippy -p effectcraft-effects -p effectcraft-gpu -p effectcraft-project -p effectcraft-engine --all-targets -- -D warnings`
- `cargo test -p effectcraft-effects`: 546 passed (including `effects_doc_is_current`, so `docs/effects.md` needs no change), 1 ignored, plus 6
- `cargo test -p effectcraft-project`: 47 passed
- `cargo test -p effectcraft-gpu`: 253 passed, 1 ignored
- `cargo test -p effectcraft-engine`: 1,007 passed, 5 ignored, plus 27
2026-11-15 12:11:07 +01:00
Dylan M. Taylor 26fa70007a fix(gpu): serialize readback mapping cleanup 2026-11-15 09:21:33 +00: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
Dylan M. Taylor df79630f6f ci: use merged test thread limit for Sonar coverage 2026-11-15 01:36:12 +00:00
Dylan M. Taylor dc2380b070 fix(ci): stabilize macOS dialog and EXR cache tests (#3704)
* fix(ci): stabilize macOS dialog and EXR cache tests

* style: format file dialog test helpers
2026-11-14 20:08:47 -05:00
Dylan M. Taylor 4e8cd4638b ci: serialize one-shard Sonar coverage tests 2026-11-15 00:34:59 +00:00
Dylan M. Taylor 5fb0fbd3d2 Merge remote-tracking branch 'origin/main' into codex/serialize-ocio-gpu-tests 2026-11-14 20:51:39 +00:00
FredApps e8a68671ae Merge pull request #3693 from storytold/fix/import-dialog-tests-paths-result
Tests: import dialog tests answer with a Result of paths (main does not compile its tests)
2026-11-14 21:22:41 +01:00
Dylan M. Taylor 4b778eef1e Merge remote-tracking branch 'origin/main' into codex/serialize-ocio-gpu-tests 2026-11-14 20:17:06 +00:00
Dylan M. Taylor dd3c6e968d test(ui): serialize GPU picker integration 2026-11-14 20:00:53 +00:00
FredApps c6b9311f98 3084: own diagnostic text and retain pre-logging errors 2026-11-14 19:15:07 +01:00
FredApps f159ddf823 3084: guard the diagnostic-report message dialog 2026-11-14 18:54:50 +01:00
FredApps 4bb4c71583 Wrap the line rustfmt would wrap 2026-11-14 18:20:47 +01:00
FredApps 3968433f75 Tests: import dialog tests answer with a Result of paths
DialogAnswer.paths became a Result in #3304; three import tests merged
since still passed a plain Vec, so the test build of effectcraft-ui-egui
did not compile on main.
2026-11-14 18:20:27 +01:00
FredApps f029bbadb2 Merge pull request #3251 from vangel76/tests-pin-english-3244
Tests: Match System resolves to English in ui-egui test builds
2026-11-14 17:30:28 +01:00
FredApps afaa9cced3 Merge pull request #3304 from vangel76/macos-open-panel-3084
File dialogs: a dialog that can't be created is an error, not a crash (#3084)
2026-11-14 17:30:08 +01:00
FredApps 38cd374bae Merge pull request #3236 from vangel76/number-field-math-3195
Number fields: typed arithmetic (960/2, (3+4)*2) and a leading *, / or + applied to the value
2026-11-14 17:29:47 +01:00
FredApps 829706de6f Merge pull request #3232 from vangel76/project-drag-new-folder-3196
Project panel: items dropped on New Folder go into a new folder, as After Effects
2026-11-14 17:29:26 +01:00
FredApps 00a4903b5f Merge pull request #3230 from vangel76/script-expression-error-3219
Scripting: expressionError reports evaluation errors, as After Effects
2026-11-14 17:29:06 +01:00
FredApps 7cda51d7e5 Merge pull request #3222 from vangel76/expr-fn-decl-minus-3212
Expressions: a function declaration ends at its brace, so a next line starting with '-' is a new statement
2026-11-14 17:28:45 +01:00
FredApps 5c8e66aa1e Merge pull request #3242 from vangel76/prop-get-footage-3231
Expressions: prop.get and Reveal Expression Errors evaluate with the footage source
2026-11-14 17:28:24 +01:00
FredApps da611b2540 Merge pull request #3226 from vangel76/waveform-peaks-1722
Timeline waveform: read keyframed Audio Levels at layer time
2026-11-14 17:28:05 +01:00