Commit Graph
7039 Commits
Author SHA1 Message Date
FredApps 9de25ee47a Merge remote-tracking branch 'origin/main' into w1621 2026-11-16 02:58:38 +01:00
aiongg f3907ceb3b craft-ui-contract: clippy 1.99 (if_same_then_else, unnecessary_lazy_evaluations, expect_used in the icon trials) 2026-11-16 01:58:30 +00:00
aiongg 4a65e13b74 Sync follow-ups: upstream's new audio codec tests reach the test kit through the integration module, serde_json back as a dev-dependency, no imports for tests our side cut; stream.rs items documented (missing_docs) 2026-11-16 01:58:30 +00:00
FredApps f28df9c471 format: address the CodeRabbit review
- build: fail on unreadable folders/entries (only a missing pending/ is empty);
  detect a step by its declaration, not a substring
- container: commit part state only after the write; honour cancellation
  before each part and between pieces of a long one; count written parts in
  room(); bound the initial read to the approved length; enforce per-part
  limits when reading; check both thumbnail part limits before writing
- lib: crate-root deny lints; parse the legacy prefix on its own
- newer: retained container.json needs a container; index list anchors;
  report a retained field an edit replaced
2026-11-16 02:57:10 +01:00
aiongg 260a64cf62 Clippy: lints the gate denies in ui-contract and window (identical if blocks, then_some, an Option mask in the icon trial, items after the test module); the it tests name epaint_default_fonts' special emojis and use Id::unique 2026-11-16 01:55:23 +00:00
FredApps 9baecfa4a1 Merge origin/main; route frames zune-jpeg may panic on to craft-jpeg where panics abort
On panic = "abort" targets (wasm32) the catch_unwind fallback can't run, so
frames whose first component is sampled below the frame's largest factors
go to craft-jpeg before zune-jpeg is called.
2026-11-16 02:54:50 +01:00
FredApps 462fe40be1 Merge remote-tracking branch 'origin/main' into w1627 2026-11-16 02:54:17 +01:00
Dylan M. Taylor 5ac7c9664c Merge pull request #1778 from storytold/fix/rav1e-threading
Forward opt-in threading to rav1e encoder dependencies
2026-11-15 20:53:17 -05:00
aiongg dffc61a7e0 Merge storytold main 832883b5 (sync 16 Nov)
961 upstream commits since 7bb6c900. Resolutions:
- Test-only conflicts: upstream tests from before the base that our side
  cut stay cut; tests new upstream are kept (audio aac/config, layout,
  encode_format; cms lutfile; media mux; print windows_native, ticket;
  update self_update; xml hostile).
- Code our side moved, with upstream's change carried to the new place:
  craft-media mux roll sample groups (mux/boxes.rs) and writer-start
  offsets with overflow checks (mux/progressive.rs); craft-print's
  shrink-to-fit scale guard (sheets/plan.rs); craft-update's nextest
  archive detection (self_update/detect.rs); craft-vectorcraft-format's
  Tail::write_to_with (container.rs); craft-i18n's pedantic fixes
  (bidi.rs, negotiation.rs).
- craft-ui: the old crate's modules stay removed; gpu_test_lock guarded
  their per-test wgpu renderers, which the snapshot kit does not have.
- New upstream tests in crates that build their integration tests into
  the library's test executable are modules of tests/main.rs (audio
  flac_decode and qoa_oracle, cms, docpath, pcraft-format,
  vectorcraft-format).
- The 22 new crates are optional members of the craft facade.
2026-11-16 01:52:09 +00:00
FredApps c28356d400 Merge pull request #1660 from storytold/codex/legacy-exif-orientation
Share legacy EXIF summary and preserve PNG orientation
2026-11-16 02:48:31 +01:00
FredApps a9a9c22994 Merge remote-tracking branch 'origin/main' into w1732
# Conflicts:
#	.github/workflows/sonarcloud.yml
2026-11-16 02:42:43 +01:00
aiongg 2d93badb1d Merge remote-tracking branch 'upstream/next' into area/fwb2-f12 2026-11-16 01:42:32 +00:00
FredApps 8625f2a31a Merge pull request #1673 from storytold/codex/sunraster-ci-coverage
Include Sun Raster in coverage build
2026-11-16 02:42:30 +01:00
FredApps 831c080ac5 dpx: write the reservation helper and its test independently of tga's 2026-11-16 02:42:09 +01:00
FredApps 5b5f42961c Merge pull request #1672 from storytold/codex/sunraster-main-reconcile
craft-image-codecs: add opt-in Sun Raster reader and writer
2026-11-16 02:41:41 +01:00
el-j d09260a36a craft-audio: prevent potential negation overflow and bound multichannel input in G.722 2026-11-16 02:39:51 +01:00
FredApps 4a70763629 fix(image-codecs): refuse JPEG inks of frames too large for their scan data
zune-jpeg allocates its whole output before reading a scan, so
decode_jpeg_inks now applies decode's scan-data guard (one byte for every
2048 pixels, counted on scan data, not APP padding) first. The comparison
test's noise is computed in u64, so it doesn't overflow on 32-bit targets.
2026-11-16 02:39:34 +01:00
aiongg 3f44be022e Settings: the legacy file parser has a named type (clippy type_complexity) 2026-11-16 01:39:05 +00:00
FredApps 832883b5b4 Merge pull request #1755 from storytold/image-codecs/probe-size-png-jpeg-tiff
image-codecs: probe PNG, JPEG and TIFF sizes from the header
2026-11-16 02:38:50 +01:00
FredApps 815e30d5b6 Merge remote-tracking branch 'origin/main' into w1732
# Conflicts:
#	.github/workflows/sonarcloud.yml
2026-11-16 02:33:07 +01:00
FredApps eef0d8ae36 Merge pull request #1605 from storytold/extract/shx-compiler
shx: extract CADCraft SHP to SHX compiler
2026-11-16 02:32:29 +01:00
FredApps 0c15f7c749 Merge pull request #1723 from storytold/codex/shared-jsonrpc-io
Share asynchronous JSON-RPC line adapter
2026-11-16 02:32:15 +01:00
FredApps 7d1d64fc46 Merge remote-tracking branch 'origin/main' into w1687
# Conflicts:
#	crates/font-catalog/src/tests.rs
2026-11-16 02:31:10 +01:00
el-j 8314189cb0 craft-audio: bound the Microsoft ADPCM step; regression tests for the review findings 2026-11-16 02:26:50 +01:00
aiongg dc65acc35a tfix5-f12: the Escape a focused document canvas's sessions and tool leave reaches the window's intents (keys::leave_to_window from the tool host; with_window_intents answers while the document canvas is focused); trial 2026-11-16 01:26:07 +00:00
el-j 853c8e8a4d craft-audio: remove a file that does not belong to this PR 2026-11-16 02:24:40 +01:00
el-j 31d3e07999 Merge main into feat/audio-adpcm 2026-11-16 02:23:22 +01:00
el-j c25ac10b88 Merge main into feat/audio-mp2-encode 2026-11-16 02:23:11 +01:00
aiongg 5329642822 tfix5-f12: a momentary tool takes the press over the canvas's session members (pointer::withhold_members, set by the tool host each pass); trial: a held Space pans over a crop corner and leaves the crop 2026-11-16 01:23:00 +00:00
el-j 252c959167 Merge remote-tracking branch 'origin/main' into feat/video-mjpeg 2026-11-16 02:22:43 +01:00
aiongg 021859c0b4 tfix5-f12: a root under a modal layer starts no press, targeted or not (sampler::root_takes_press reads egui's modal gate); trial: a press under a modal starts nothing on the canvas 2026-11-16 01:21:32 +00:00
FredApps 5e27cfc222 Merge pull request #1700 from storytold/codex/shared-font-bytes
Share font face data ownership
2026-11-16 02:19:26 +01:00
FredApps 6253fff31f Merge pull request #1596 from storytold/extract/tga-metadata-bounds
tga: reuse FilmCraft metadata boundaries before decoder cutover
2026-11-16 02:19:13 +01:00
vangel76 b2beb93658 Merge upstream/main into feat/6820-chartex-placeholder 2026-11-16 02:18:33 +01:00
vangel76andClaude Sonnet 5.5 5e3632533f DOCX: read the placeholder chart title from its text, leave the frame unfilled
Take the title of an Office 2016 chart from its rich text (all runs) or its text data, and draw the placeholder frame without a fill so it does not become a white box on a coloured page. The run-fallback test is a guard and says so.

Part of storytold/wordcraft#6820

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 02:18:25 +01:00
FredApps 95aba513e7 tga, dpx: test the RGBA8 encoders' allocation-failure path
Follow-up to #1631 (CodeRabbit): the fallible output reservation moves into a
small helper whose OutOfMemory mapping is covered by a test.
2026-11-16 02:17:34 +01:00
FredApps 6ec4c31355 mesh: FBX material IDs per corner/control point, texture candidate order
Addresses CodeRabbit on #1777: ByPolygonVertex/ByControlPoint material IDs use the
polygon's first corner instead of the polygon number; an earlier texture candidate
is tried before a later cached one; regression test for strict colours reading the
validated layer.
2026-11-16 02:16:29 +01:00
FredApps d4f5f1e0c4 Merge remote-tracking branch 'origin/main' into w1777 2026-11-16 02:14:58 +01:00
FredApps c3ad96bfd8 video: honour QuickTime RGB row padding; require BGRX masks for BI_BITFIELDS
Addresses the CodeRabbit review on #1692: odd-width raw RGB rows carry a pad byte,
and BI_BITFIELDS is only BGRX with the matching masks (new from_avi_bitfields).
2026-11-16 02:14:30 +01:00
el-j 6502ca440e craft-audio: ITU-T G.722 wideband speech codec (#1530) 2026-11-16 02:14:12 +01:00
FredApps eb5eff868a Merge remote-tracking branch 'origin/main' into w1692 2026-11-16 02:13:24 +01:00
FredApps cb504733bf Merge pull request #1635 from storytold/codex/shared-shaped-run
Share contextual directional text shaping
2026-11-16 02:13:00 +01:00
FredApps 7f30d66469 Merge pull request #1773 from storytold/extract/light-icc-normalize
cms: share bounded ICC embedding normalization
2026-11-16 02:12:34 +01:00
FredApps d4009b4c95 Merge pull request #1631 from storytold/codex/tga-dpx-rgba-writers
tga dpx: share uncompressed RGBA8 export
2026-11-16 02:12:20 +01:00
aiongg 754e8c4fe7 Fixed Size's unit menu is the field's only right-click menu 2026-11-16 01:08:07 +00:00
aiongg 9a8b17cf1a Cargo.lock: craft-settings' and craft-text's dependencies 2026-11-16 01:06:45 +00:00
vangel76andClaude Sonnet 5.5 e76bf4bad4 DOCX: an Office 2016 chart with a text-only fallback keeps its size as a placeholder
read_chartex_alternate built the chart object only from a picture fallback. With a fallback
that holds only text (for example "Chart not available."), it returned None and the reader
used the fallback words, so the chart's 432 x 252 pt frame was never reserved and the pages
collapsed.

Now such a chart becomes a Chart graphic of the choice's wp:extent, drawn as the same kind of
placeholder unsupported classic charts get (frame, title, chart type), with the choice and
fallback kept so saving writes them back unchanged. A fallback that holds runs or paragraphs
is still read as before, because the writer puts the fallback inside the object's own run.

The frame reading at the top of read_drawing moves into drawing_frame so both paths share it.

Part of storytold/wordcraft#6820

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 02:04:08 +01:00
FredApps 9a6d894200 Add craft-gridcraft-format: GridCraft's native JSON workbook (#1749)
GridCraft's native workbook format, moved from storytold/gridcraft at
1d0b311b: the `.json`/`.scjson` extensions (crates/engine/src/io.rs), the
reader and its error text (io.rs), and the pretty writer with newer macros kept
unread and appended to `macros` as the file held them
(crates/engine/src/macros/mod.rs json_bytes).

The Workbook model, the index rebuilds after a read, and macro reading stay in
GridCraft. The consumer's golden test shows saved bytes are unchanged.

Part of #778.
2026-11-16 02:03:41 +01:00
aiongg 951ec07f96 Design lint: one exception for the timeline preview's picture bars 2026-11-16 01:02:55 +00:00
aiongg b171283050 fmt 2026-11-16 01:01:56 +00:00