Commit Graph
8520 Commits
Author SHA1 Message Date
vangel76andClaude Sonnet 5.5 77cd75167c Merge upstream/main into fix/gutter-at-top
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 00:17:31 +01:00
vangel76andClaude Sonnet 5.5 1ea162df26 DOCX: make the gutter-at-top tests check the order and False/FALSE
The merge unit test compared Options, and its generated part had no
w:mirrorMargins, so the order check proved nothing; put the element in
and look the positions up. Add the False and FALSE spellings to the
value test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 00:17:26 +01:00
FredApps dd833aaf7c font-catalog: order modules after merging main 2026-11-16 00:15:25 +01:00
FredApps 01f9fdaebc Merge remote-tracking branch 'origin/main' into shaped
# Conflicts:
#	crates/font-catalog/src/lib.rs
2026-11-16 00:15:08 +01:00
FredApps 9b6d3297ff Merge remote-tracking branch 'origin/codex/shared-cluster-fallback' into shaped 2026-11-16 00:15:02 +01:00
FredApps 809abee15e Merge remote-tracking branch 'origin/codex/shared-visual-order' into shaped 2026-11-16 00:15:02 +01:00
FredApps ccceabe0ad Merge pull request #1643 from storytold/codex/shared-shape-segments
Share shaping segment boundary state
2026-11-16 00:14:45 +01:00
FredApps 55cca991b4 Merge pull request #1663 from storytold/codex/shared-line-settle
Share measured line break selection
2026-11-16 00:14:33 +01:00
FredApps 045b159407 Merge pull request #1638 from storytold/codex/shared-cluster-fallback
Share grapheme cluster font fallback selection
2026-11-16 00:14:13 +01:00
FredApps e161781482 Merge pull request #1661 from storytold/codex/shared-visual-order
Share visual ordering of shaped clusters
2026-11-16 00:14:03 +01:00
FredApps bcb8a52f60 Merge pull request #1666 from storytold/codex/shared-ligature-carets
Share ligature caret mapping
2026-11-16 00:13:50 +01:00
vangel76andClaude Sonnet 5.5 fc808abd49 DOCX: read and write the "gutter at top" setting (w:gutterAtTop)
The reader ignored w:gutterAtTop in settings.xml (it was only carried
through on save), so an app using the model could not tell that Word adds
the gutter to the top margin instead of the left one. Add
Settings::gutter_at_top (document-wide, off by default), read it with the
shared on/off helper, write it after w:mirrorMargins and before
w:attachedTemplate, and make the settings merge treat it as a modelled
child so turning it off removes it.

Tests: round trip and default off, every on/off spelling, merge into a
settings part from another writer (keep, remove, insert in schema order).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 00:12:22 +01:00
FredApps 9687434f72 Merge pull request #1632 from storytold/codex/shared-font-outline
Share catalog face metrics and glyph outlines
2026-11-16 00:11:44 +01:00
FredApps 8f5ba6bcbe Merge remote-tracking branch 'origin/main' into tga 2026-11-16 00:10:57 +01:00
FredApps 59ce036a8f tga, dpx: reserve the RGBA8 export buffer fallibly
The caller already holds the frame, so the output is a second large buffer.
Report OutOfMemory instead of letting a failed allocation abort.
2026-11-16 00:10:57 +01:00
FredApps 0eaafeb505 Merge pull request #1641 from storytold/codex/tiff-dng-reader
tiff: share bounded lazy classic directory reader
2026-11-16 00:10:27 +01:00
FredApps 6bd1c3dc35 Merge pull request #1715 from storytold/codex/filmcraft-project-format
Share FilmCraft project envelope and schema migrations
2026-11-16 00:10:16 +01:00
FredApps 99d0a6eca4 Merge pull request #1724 from storytold/codex/shared-control-protocol
Share authenticated JSON-lines control protocol
2026-11-16 00:10:04 +01:00
FredApps a5f31480eb Merge remote-tracking branch 'origin/main' into w-codex/pcm-export-shared
# Conflicts:
#	crates/audio/src/lib.rs
2026-11-16 00:08:48 +01:00
FredApps 8287455d6d Merge pull request #1629 from storytold/codex/exr-rgba-writer
exr: share scanline RGBA writer
2026-11-16 00:08:19 +01:00
FredApps f01f6aca3a Merge pull request #1721 from storytold/codex/shared-sfnt-discovery
Share bounded SFNT face discovery
2026-11-16 00:08:07 +01:00
FredApps 19675a61ec Merge pull request #1708 from storytold/extract/psd-duotone-records
craft-psd: share raw Duotone ink records and block writer
2026-11-16 00:07:29 +01:00
FredApps 24a9b2928e Merge pull request #1722 from storytold/extract/dds-float-surface
craft-texture: add bounded DDS float surface adapter
2026-11-16 00:07:17 +01:00
FredApps 105d69c61c Merge remote-tracking branch 'origin/main' into otio 2026-11-16 00:06:43 +01:00
FredApps 9c6fa9ce33 timeline: say that the report limit counts every distinct entry
The limit mirrors FilmCraft's MAX_REPORT_ENTRIES, which bounds the report's
size and counts informational entries too. Document that rather than imply a
warning-only budget.
2026-11-16 00:06:43 +01:00
Dylan M. Taylor 37bb0cff8d test(raw): use fixed-size chunks in DNG padding assertions 2026-11-15 18:06:34 -05:00
FredApps 6c947d655b Merge remote-tracking branch 'origin/main' into pcm-essence
# Conflicts:
#	crates/audio/src/lib.rs
2026-11-16 00:05:49 +01:00
FredApps 947dc5fb0e Merge pull request #1630 from storytold/codex/shared-tiff-inspection
Share first-directory TIFF inspection
2026-11-16 00:05:27 +01:00
FredApps c26b32c8ac Merge pull request #1636 from storytold/codex/shared-pcm-packet
audio: share interleaved PCM packet decoding
2026-11-16 00:05:15 +01:00
FredApps 937ac93c5c Merge pull request #1695 from storytold/codex/jpeg-app14
Share Adobe APP14 and JPEG sample conversion
2026-11-16 00:02:40 +01:00
FredApps 2896c6ed06 Merge pull request #1718 from storytold/codex/shared-font-embedding
Share TrueType subset embedding classification
2026-11-16 00:02:29 +01:00
Dylan M. Taylor f135882c7b Merge pull request #1742 from storytold/extract/usd-int-decode
Extract bounded USD Crate integer delta decoding
2026-11-15 18:02:27 -05:00
FredApps c0f7be37f1 Merge pull request #1694 from storytold/codex/ps-actualtext-scope
Keep synthesized PostScript text spans inside clip scopes
2026-11-16 00:02:17 +01:00
aiongg 77e58961b2 Merge commit '9a47a9f65ad07dd3a98c06885db515f167567313' into area/fwb2 2026-11-15 23:02:16 +00:00
Dylan M. Taylor ef87387625 Merge pull request #1720 from storytold/extract/spi1d-parser
cms: extract bounded SPI1D table reader from EffectCraft
2026-11-15 18:01:55 -05:00
FredApps 5f4d546449 Merge pull request #1658 from storytold/codex/fcp7-nesting-bounds
Bound FCP7 nested sequence traversal
2026-11-16 00:01:33 +01:00
FredApps f749643b01 Merge pull request #1603 from storytold/codex/raster-probe-limits
Expose bounded stored raster dimensions
2026-11-16 00:01:21 +01:00
FredApps 984803ad07 Merge pull request #1689 from storytold/codex/zip-owned-archive
Allow ZIP archives to own their input
2026-11-16 00:01:08 +01:00
Dylan M. Taylor 7306195df5 cms: expose bounded ICC embedding normalization with parity tests 2026-11-15 18:00:57 -05:00
vangel76 c27333683a DDS: time decoding a 30 MP texture too
An ignored test beside the encode timings: the best of five decodes of
the same texture written with each compression. It uses only the API
the reader had before, so it runs on the old code for comparison.
2026-11-16 00:00:28 +01:00
vangel76 f31c93cf59 DDS: read and write BC4 and BC5 (grayscale data and normal maps)
BC4 is one block of 16 single-channel values and BC5 two of them, the
block BC3 already stores its alpha in, so the alpha block encoder and
decoder now serve all three (BC3's output stays the same).

Reading: ATI1 and BC4U, and DXGI 79 (typeless) and 80, open as gray;
ATI2 and BC5U, and DXGI 82 (typeless, as Pillow writes it) and 83,
open as RGB with blue 0. ATI2 follows Microsoft's mapping, red in the
first block. Signed BC4S/BC5S and DXGI 81/84 are refused, naming SNORM.

Writing: DdsCompression::Bc4 (bc4, ati1) from gray and Bc5 (bc5, ati2)
from RGB, with the DX10 header (BC4_UNORM, BC5_UNORM, one 2D texture),
mip chains included. The encode plan converts other layouts to gray
and RGB, so the fidelity warnings report colour to gray and dropped
alpha; BC5's dropped blue is documented under LossyCompression.

DdsCompression is now #[non_exhaustive] and ALL has six entries.
2026-11-16 00:00:28 +01:00
vangel76 203f225562 DDS: stop the principal-axis iteration once the axis is a fixed point
A power-iteration step that gives back the same axis bit for bit gives
it back on every later step, so stopping there keeps the output. Kept
only if the timings show a gain.
2026-11-16 00:00:28 +01:00
vangel76 e22ccf3511 DDS: encode and decode faster with the same bytes
Encoding:
- colour blocks keep their colours and endpoint candidates on the stack
  instead of in per-block vectors (the idea of storytold/photocraft#10669)
- a refinement round whose endpoint pair was already fitted ends the
  search, which could not change the block any more
- a block of one colour skips the principal-axis search, whose result
  for it is that colour at both ends
- the alpha block gathers its 16 values once, finds both ranges in one
  pass and picks indices in a plain loop with the same tie-break
- the nearest palette colour is found the same way
- interior blocks are gathered as four rows of four texels, and
  interior mip pixels average their 2x2 source pixels directly

Decoding:
- block-compressed data is decoded one row of blocks per task, copying
  whole texel rows and checking bounds only on the right edge
- uncompressed rows are decoded one per task; when every channel is a
  whole byte (RGBA, BGRA, BGRX, luminance), pixels are a byte shuffle

The f32 arithmetic and its order are unchanged; the digest oracle pins
the output.
2026-11-16 00:00:28 +01:00
vangel76 a98aa0b462 Move the DDS reader and writer into a craft-dds crate without dependencies
craft-dds holds the header parsing, the uncompressed and BC1-BC3
readers and writers and the block encoder, with its own pixel layout
and error types and rayon behind a `parallel` feature. It parses the
header first (Texture::parse) so a caller can check the size against
its limits before anything is allocated.

craft-image-codecs reads and writes DDS through it, re-exports its
DdsCompression and DdsOptions and maps its errors onto CodecError with
the same messages, so its API and output stay the same. Apps that only
need DDS can depend on craft-dds without the other codecs and their
licences.
2026-11-16 00:00:28 +01:00
vangel76 e70cceae33 DDS: pin the writer's and reader's output as SHA-256 digests
Digests of uncompressed, BC1, BC2 and BC3 textures, with and without
mip chains, from deterministic odd-sized pictures (ramps, noise, flat
tiles, alpha at 0, 255 and in between) in RGBA, RGB, gray with alpha
and gray, and of decoding those files and hand-built ones in the other
stored layouts. The table is filled from the unchanged code; on a
mismatch the test prints every digest it computed.
2026-11-16 00:00:28 +01:00
FredApps ac1fc5cea8 Merge remote-tracking branch 'origin/main' into xmlattr 2026-11-16 00:00:18 +01:00
FredApps 17f402798e xml: compare strict expanded attribute names by namespace id, not a URI copy
A declaration's URI was copied once per attribute that used it, so one long URI
and many attributes multiplied memory. Give each binding an id (shared by equal
URIs, found once at declaration) and key expanded names by that id.
2026-11-16 00:00:18 +01:00
wstock 84c84a36fa cms: import deterministic ICC creation-date policy 2026-11-15 17:59:36 -05:00
Brandon Thomas 05d01a5c05 cms: import LightCraft ICC tag alignment 2026-11-15 17:59:36 -05:00
FredApps 3d519f66d2 Merge pull request #1740 from storytold/fix/ps-reencoded-fallback
ps: preserve reencoded glyph names in fallback fonts
2026-11-15 23:59:03 +01:00