Commit Graph
64 Commits
Author SHA1 Message Date
FredApps be556bedcb psd: align quilt serialization and strict slice admission 2026-11-18 08:43:10 +01:00
FredApps b3960accde psd: reject invalid quilt bounds and discard unsupported templates 2026-11-18 08:08:01 +01:00
FredApps f8d869c1e7 psd: preserve bounded placement and descriptor compatibility 2026-11-18 05:41:30 +01:00
Dylan M. Taylor 8d5c939e20 psd: use fixed-size guide chunks for strict clippy 2026-11-17 14:46:32 -05:00
aionggandDylan M. Taylor d55beb8f61 psd: share legacy guide header and record encoding
Extract PhotoCraft guide framing from 2aa88b0956; leave rounding and document ordering with callers. Add fixed-byte and hostile-prefix coverage.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-17 14:23:06 -05:00
Brandon ThomasandDylan M. Taylor e1d883e444 psd: share legacy guide record prefix decoding
Adapt PhotoCraft parse_guides from 16941f7198, retaining signed-position semantics from 1a54384d80. Allocation-free framing preserves complete-prefix recovery.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-17 14:23:06 -05:00
Dylan M. Taylor 06496f5bf2 craft-psd: decode strict PackBits rows into caller-owned slices (#1978) 2026-11-16 22:22:35 -05:00
.CooCoo e62945a8da craft-psd: test-support is the name of the testgen feature, which stays as an alias (#1380) 2026-11-16 21:36:00 -05:00
Dylan M. Taylor 20220807a4 psd: preserve PhotoCraft lenient TySh prefix parsing (#1923) 2026-11-16 15:51:27 -05:00
FredApps 30cad49e95 Merge pull request #1907 from FredApps/fix/786-psd-consumer-resource-limits
fix(psd): preserve consumer parsing limits and borrow placed pixels
2026-11-16 19:53:51 +01:00
Dylan M. Taylor ce2ec507c2 Merge pull request #1893 from storytold/feat/psd-unpredict-scratch
psd: support caller-budgeted prediction scratch
2026-11-16 11:38:15 -05:00
FredApps 10a585c3e2 fix(psd): preserve consumer resource limits (#786) 2026-11-16 17:14:31 +01:00
FredApps 9fc471fc5c psd: add Descriptor::parse_prefix for mid-stream reads (#1887)
from_bytes still requires the slice to be fully consumed. parse_prefix
returns the descriptor and the number of bytes used, matching
VersionedDescriptor, so apps can read a descriptor that is followed by
more data (layer effects, fill and adjustment blocks).

Part of #778 and effectcraft#786.
2026-11-16 10:09:54 -05:00
Dylan M. Taylor a4fbe4e392 Merge main preserving PackBits and prediction regressions 2026-11-16 10:05:24 -05:00
Dylan M. Taylor b774e4d168 psd: add bounded PackBits recovery decoding for app cutovers (#1885)
* psd: expose bounded PackBits recovery row decoding

* Clarify recovery row budget and partial-error contract
2026-11-16 09:55:44 -05:00
Dylan M. Taylor c864e1e8c9 psd: support caller-budgeted prediction scratch 2026-11-16 09:46:17 -05:00
FredApps 083920ebd7 psd: keep a layer record's blocks before an overlong one (#1845) 2026-11-16 07:19:08 -05:00
FredApps a1540d3039 Merge pull request #1696 from storytold/codex/psd-head-metadata
Share PSD EXIF and XMP resource selection
2026-11-16 06:48:01 +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
Dylan M. Taylor 040b5202f9 Merge pull request #1743 from storytold/extract/psd-unicode-names
psd: share borrowed Unicode channel-name record framing
2026-11-15 17:04:49 -05:00
Dylan M. Taylor b841da4124 Merge pull request #1737 from storytold/extract/psd-channel-resources
psd: share DisplayInfo and alternate spot-color raw records
2026-11-15 17:01:58 -05:00
9d56699be8 psd: share borrowed Unicode channel-name record framing
Extract framing from PhotoCraft 16941f7198da9ae1811a8928f4c256b5cb37c1cb, retaining the overflow protection added by 3b45e8baee7117e53847523b5bc3ae2b337966d4. Allocation-free adaptation leaves text policy with callers.

Co-authored-by: Valentin Klein <vangel1976@googlemail.com>

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 15:08:20 -05:00
5e2bc54a48 psd: share raw channel display and alternate spot records
Port raw framing from PhotoCraft f7f8fdcd89 and 9a390661b5; preserve tolerant import semantics and keep colour policy with consumers.

Co-authored-by: Khawar Zamman Wani <wanikhawar@gmail.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 14:38:21 -05:00
Dylan M. Taylor ebdff8b931 Document Duotone public record fields and counts 2026-11-15 13:59:18 -05:00
Dylan M. Taylor b9c22554ce Make serialized Duotone ink count valid by construction 2026-11-15 13:35:18 -05:00
Gert PellinandDavid Mann 689eff839d Share raw PSD Duotone ink record layout
Extract the fixed layout from PhotoCraft 772cf39c09930229e11b920196f486239bbbfab8, incorporating alternate-colour handling from 2d7c62055ee47497f8cb77bbdfd3befa29718f4a. Keep document colour/curve policy out of the codec.

Co-authored-by: David Mann <daaavid.mann@gmail.com>
2026-11-15 13:28:14 -05:00
Bram Heerink 6d590ce432 Extract PSD guide resource decoding for shared consumers
Adapt PhotoCraft f49564d281bf8892db58ed154767717223aff4f6 to a validated allocation-free iterator; retain caller-owned guide policy.
2026-11-15 13:17:03 -05:00
Dylan M. Taylor 32ae528fa1 Share PSD EXIF and XMP resource selection 2026-11-15 18:08:21 +00:00
Dylan M. Taylor d181e08d3d Read selected merged PSD planes without parsing layers (#1623)
* Read selected merged PSD planes without parsing layers

* Validate merged PSD payload bounds without decoding

* Expose declared dimensions for limit reporting

* Cover complete and truncated merged payloads
2026-11-15 13:04:18 -05:00
Dylan M. Taylor 16d838105b Write flat PSD from borrowed samples (#1620)
* Write flat PSD from borrowed interleaved samples

* Cover multiple PSD rows and planes

* Document flat PSD inputs and satisfy lint
2026-11-15 12:59:08 -05:00
Dylan M. Taylor 2d0d993c6d Merge pull request #1594 from storytold/feat/psd-tysh-envelope
psd: share editable TySh binary envelope
2026-11-15 12:23:02 -05:00
Dylan M. Taylor 2bb5d0344f docs(psd): document editable TySh envelope fields 2026-11-15 10:10:41 -05:00
Dylan M. Taylor 1e204c51df psd: bound TySh serialization and reject unsafe geometry 2026-11-15 09:33:38 -05:00
Dylan M. Taylor d0feabc6c8 Exercise displacement dimension guards independently of mode 2026-11-15 09:30:43 -05:00
4d594a1130 psd: share editable TySh binary envelope from PhotoCraft
Preserve transform safety work and compatibility recovery; adapt to shared array geometry and add regression tests.

Co-authored-by: David Mann <daaavid.mann@gmail.com>
Co-authored-by: Sean Lavery <Theseanlavery@gmail.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 09:30:30 -05:00
Dylan M. Taylor f2106054e0 Support bounded streaming displacement samples without plane copies 2026-11-15 09:30:28 -05:00
Dylan M. Taylor 46cd009367 Add exact-plane payload writer and hostile-input regression tests 2026-11-15 09:29:01 -05:00
Scott Macdonald 8322a1166c Port bounded Displace payload reader from PhotoCraft 2026-11-15 09:28:27 -05:00
Dylan M. Taylor 2284a6bf76 Merge pull request #1582 from storytold/extract/psd-annotations
craft-psd: bounded annotation record views and writer
2026-11-15 09:17:31 -05:00
Dylan M. Taylor 09188c3bbf Merge pull request #1565 from storytold/extract/psd-linked-views
craft-psd: bounded header-only linked records for deferred consumers
2026-11-15 08:47:29 -05:00
Dylan M. Taylor 22c9a0933d psd: expose bounded annotation record views and serialization 2026-11-15 07:43:59 -05:00
David Mann 2c3171d734 psd: retain the non-advancing annotation length guard 2026-11-15 07:43:59 -05:00
Brandon Thomas 2af0575279 psd: import annotation reader primitives from PhotoCraft 2026-11-15 07:39:16 -05:00
Dylan M. Taylor 25abb43bde craft-psd: pin that a length not fitting 32 bits is refused, not truncated 2026-11-14 14:44:05 -05:00
Dylan M. Taylor 1cb33dabdd Cover incremental PSD zlib stream draining 2026-11-13 08:17:32 -05:00
Dylan M. Taylor 6c505b0ce0 Expose incremental PSD zlib stream encoding 2026-11-13 08:14:16 -05:00
Dylan M. Taylor 47107f6601 craft-mesh: retain glTF texture and sampler inventory (#1151)
* craft-mesh: expose unreferenced glTF texture variants

* mesh: validate texture inventory image indices

* Fix PR 1151 validation and workspace checks

* Fix remaining Rust 1.95 workspace lint findings

* Fix proof workspace Clippy warning

* Fix remaining workspace Clippy findings

* Fix video all-features Clippy warning

* KRA: parse nested layers without recursion

* Preserve KRA layer limit traversal order

* Avoid expect in iterative KRA parser

* OpenRaster: parse nested stacks without recursion

* Plate tests honor optional font fixtures

* Keep bundled font index bytes unchanged

* Preserve font build license fixture bytes

* ci: allow longer workspace test matrix

* test: respect Windows Hunspell path behavior

* ci: provision keymap fonts for all-feature tests

* ci: provision PSD corpus for full workspace tests
2026-11-13 02:17:30 -05:00
Dylan M. Taylor 61d9de7846 psd: bound resource iterator size hint 2026-11-13 00:21:00 +00:00
Dylan M. Taylor cc9c380543 Fix PSD resource iterator size hint 2026-11-13 00:05:37 +00:00
Dylan M. Taylor 341c84d1b1 Add borrowed PSD head resource views 2026-11-13 00:03:19 +00:00