Commit Graph
3507 Commits
Author SHA1 Message Date
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 252c959167 Merge remote-tracking branch 'origin/main' into feat/video-mjpeg 2026-11-16 02:22:43 +01: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
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
FredApps 58964adec1 Merge pull request #1726 from storytold/extract/sony-lut-readers
cms: extract SPI3D and SPIMTX readers from EffectCraft
2026-11-16 01:59:17 +01:00
FredApps 58d6844dad raw: carry the linearization table through DngImage views
Main's writer (#1745) reads linearized/linearization_table from the image;
the borrowed view needs the same fields so the merge compiles.
2026-11-16 01:58:21 +01:00
FredApps c18762fb57 Merge remote-tracking branch 'origin/main' into t1770 2026-11-16 01:56:53 +01:00
FredApps 5f4e05d951 audio: rustfmt after main merge 2026-11-16 01:56:22 +01:00
FredApps 22ead09553 Merge remote-tracking branch 'origin/main' into w1621
# Conflicts:
#	crates/audio/src/lib.rs
2026-11-16 01:48:39 +01:00
Dylan M. Taylor 2d271b95bd raw: expose opcode encoding as a fallible API without panics 2026-11-15 19:45:27 -05:00
Dylan M. Taylor cbc6172375 raw: reject unrepresentable opcode envelope lengths before encoding 2026-11-15 19:44:12 -05:00
FredApps 7f78225721 Merge pull request #1614 from storytold/codex/shared-pcm-essence
audio: share compatible PCM essence wrappers
2026-11-16 01:43:05 +01:00
Dylan M. Taylor c48cf22a03 Adapt attributed FilmCraft opcode envelopes to shared bounded API
Reuse vangel76 source from filmcraft commit 7e6f075ef7d0e9d2517628a7f48f648b5aff2f1b. Keep shared extraction code unchanged while retaining corrected parent provenance.
2026-11-15 19:41:21 -05:00
vangel76andClaude Opus 5.5 c31578e1ff #1065: DNG opcode lists (OpcodeList1/2/3)
Problem: DNG opcode lists were ignored, so lens shading gain maps
(phones and many cameras), bad pixel maps, vignette and distortion
corrections and trims that a file asks for were silently left out,
and an opcode a reader must apply could not be refused.

Fix (DNG 1.7.1.0 chapter 7): a big-endian opcode list parser (at most
256 opcodes, every count checked against the parameter bytes before
allocating) and the opcodes WarpRectilinear, WarpFisheye,
WarpRectilinear2 (with the skip rule), FixVignetteRadial,
FixBadPixelsConstant / List, TrimBounds, MapTable, MapPolynomial,
GainMap, DeltaPerRow / Column and ScalePerRow / Column. OpcodeList1 runs
on the stored samples (0-65535), OpcodeList2 on the linear values
before white balance (the fused normalise splits only then),
OpcodeList3 on the demosaiced camera values; values are clipped after
each opcode. Unknown opcodes or ones newer than 1.7.1.0 are skipped
when optional and an error naming them when mandatory; preview-only
opcodes are skipped on the reduced-resolution path, and a mandatory
OpcodeList3 keeps full resolution. Interpretations where the spec
leaves room are recorded in the README. Files without opcode lists
develop exactly as before.

Tests: unit tests per opcode with known results (tables, polynomials,
deltas, scales, gain map interpolation and edge replication, vignette,
warps reproducing a ramp, fisheye, the skip rule, bad pixels, trim,
hostile parameters) and whole-file tests of each list's stage, the
optional flag, the preview path, and 3000 mutations under catch_unwind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 19:41:21 -05:00
vangel76 2c18ddd1ed Merge remote-tracking branch 'upstream/main' into perf/dds-bc45-1766 2026-11-16 01:38:39 +01:00
FredApps 47ce856487 Merge pull request #1669 from storytold/codex/otio-bounded-report
Support bounded OTIO diagnostics
2026-11-16 01:37:33 +01:00
vangel76 7c34335afb Merge remote-tracking branch 'upstream/main' into perf/dds-bc45-1766 2026-11-16 01:34:47 +01:00
vangel76 39e1d41af7 DDS: refuse premultiplied-alpha DX10 textures
The DX10 header's alpha mode (miscFlags2, low three bits) was never
read, so RGBA, BGRA, BC2 and BC3 files marked premultiplied were read
as straight alpha. They are refused as Unsupported, like the legacy
DXT2/DXT4 FourCCs. Alpha modes 0, 1, 3 and 4 and the formats without
alpha are unchanged.
2026-11-16 01:34:20 +01:00
FredApps fc1801a3aa Merge remote-tracking branch 'origin/main' into image-codecs/jpeg-zune-panic 2026-11-16 01:33:19 +01:00
FredApps c6f155bb83 Merge pull request #1772 from storytold/stream-codecs/ccitt-raw-literal-alignment
stream-codecs: decode_ccitt_raw reads rows on bytes as its parameters say
2026-11-16 01:32:56 +01:00
Dylan M. Taylor d99d0d3f9d Merge main preserving AVIF threading and SGI features 2026-11-15 19:32:43 -05:00
FredApps 00dbe7449a raw: initialize linearization_table in the dngwrite test image 2026-11-15 19:31:39 -05:00
FredApps 41ca1712bf Merge remote-tracking branch 'origin/codex/sunraster-main-reconcile' into w1673
# Conflicts:
#	.github/workflows/sonarcloud.yml
2026-11-16 01:31:27 +01:00
FredApps 91a03d4564 Merge pull request #1712 from storytold/codex/fbx-layer-selection
Select FBX layer zero and require indexed data
2026-11-16 01:30:36 +01:00
FredApps 1a83fd70a3 Merge pull request #1761 from storytold/extract/dcp-wire
craft-raw: extract DCP camera-profile reader and writer
2026-11-16 01:30:25 +01:00
FredApps cbf14205dc raw: initialize linearization_table in the dngwrite test image
(cherry picked from commit 920c745f42)
2026-11-15 19:27:39 -05:00
FredApps 12fdc6571f Merge remote-tracking branch 'origin/main' into w1672 2026-11-16 01:27:27 +01:00
FredApps 3bb4dffea3 Merge pull request #1671 from storytold/codex/sgi-ci-coverage
CI: measure optional SGI codec coverage
2026-11-16 01:27:16 +01:00
FredApps 1b71cd1c18 Merge pull request #1667 from storytold/codex/sgi-main-reconcile
Reconcile SGI codec with merged JPEG-LS support
2026-11-16 01:26:24 +01:00
FredApps b6d9bd3b37 Merge remote-tracking branch 'origin/main' into w1616 2026-11-16 01:25:04 +01:00
FredApps 95d3f180c0 Merge pull request #1624 from storytold/codex/aaf-compat-schema
aaf: support compatible reference and locator conventions
2026-11-16 01:24:56 +01:00
FredApps a5a713d2e6 Merge remote-tracking branch 'origin/main' into image-codecs/jpeg-stored-inks 2026-11-16 01:21:38 +01:00
Dylan M. Taylor e6a9bcf338 Adapt attributed FilmCraft DNG raw history to shared line decoder
Preserve path-scoped source ancestry, original contributor authors, messages and dates; retain reviewed shared APIs and final integration tree.
2026-11-15 19:19:49 -05:00
FredApps 1f1211fe64 Merge pull request #1077 from vangel76/dng-decode-plus
#1065: DNG raw settings, faster decode, opcode lists, lossy JPEG DNG
2026-11-15 19:19:49 -05:00
Dylan M. Taylor 5e5c0cf874 dng: reject zero or over-16-bit sample depths before unpacking (#4192)
unpack accepted a bit depth of 0: the input requirement became zero bytes,
so one source byte produced a header-sized buffer of zero samples. Depths
outside 1..=16 (the u16 output range) are now rejected up front.
2026-11-15 19:19:49 -05:00
vangel76andClaude Sonnet 5.5 41801059b3 Address review: lossy JPEG channel check, opcode opt-in in develop_with, writer errors
- raw: a lossy JPEG tile must have as many components as SamplesPerPixel.
- process::develop_with: use the opcode lists only when apply_opcodes is set.
- writer: lossy_jpeg returns an error instead of an empty chunk or an encoder panic; new try_write rejects unsupported sample counts and bits/CFA options for lossy JPEG.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 19:19:49 -05:00