Commit Graph
2444 Commits
Author SHA1 Message Date
kiwi4boy 74495a579a craft-rtf: look up fonts, colours and authors through an index (#1466)
Both writers found each run's font and colour by scanning the table so far
(write.rs `Tables`, doc/export.rs `Tables` and `author` for `\revtbl`), so
a document with n distinct fonts or colours took O(n²) comparisons. 3,000
runs with their own font and colour took 18,006,000 steps in the small
writer and 13,498,500 in the word-model writer.

Each table stays a Vec, in first-use order, so the output is unchanged.
`Interned` adds a map from key to place beside it: the colour, the font
name lowercased (as `eq_ignore_ascii_case` matched), or the trimmed author.

Tests count lookups through a test-only counter, as PdfCraft's own RTF
writer does: at most four per run for 3,000 runs in each writer, and font
names still match without regard to ASCII case.
2026-11-14 21:04:34 -05:00
Dylan M. Taylor 543786812c Merge remote-tracking branch 'origin/main' into fix/avif-exif-hlg 2026-11-15 02:03:26 +00:00
Dylan M. Taylor 497febe524 fix(ber): reject malformed SignedData field structure 2026-11-14 20:57:04 -05:00
Dylan M. Taylor 177f04768a fix(ber): bound metadata allocation for wide hostile inputs 2026-11-14 20:56:34 -05:00
Dylan M. Taylor 603aaacba6 Add neutral XFL text field schema views 2026-11-15 01:54:00 +00:00
Dylan M. Taylor cbd4dcad96 fix(ber): record standalone crate in workspace lockfile 2026-11-14 20:53:46 -05:00
Dylan M. Taylor 18ae39adcb fix(ber): validate CMS containers and integrate workspace crate 2026-11-14 20:50:46 -05:00
Dylan M. Taylor 5c0b0a3632 Deduplicate raster codecs via shared image implementations (successor to #1198) (#1331)
* Share small raster format implementations

(cherry picked from commit 7aedc1de73)

* Preserve raster facade encode contracts

(cherry picked from commit 2db7c82705)

* Allow alpha in IFF compatibility encoder

(cherry picked from commit 80b55dee5a)

* Test shared raster facade contracts and refresh lockfile
2026-11-14 20:46:22 -05:00
Dylan M. Taylor 92c0b49b5e feat(video): support tiled AV1 for large frames (#1453)
* feat(video): add tiled AV1 large-frame fallback

* feat(video): expose tiled AV1 speed preset

* fix(video): use clamped AV1 keyframe interval
2026-11-14 20:38:28 -05:00
Dylan M. Taylor 0f59e325e5 Merge pull request #1456 from storytold/codex/xfl-shape-style-schema
Add neutral XFL shape and media schema views
2026-11-14 20:23:07 -05:00
Dylan M. Taylor 727f945fc9 Merge branch 'main' into codex/format-adapter-safety 2026-11-14 20:11:50 -05:00
Dylan M. Taylor c0ce055384 image-codecs: bound PNG row streaming independently of full output 2026-11-14 20:04:36 -05:00
Dylan M. Taylor 8e20238384 Merge pull request #1321 from storytold/vorbis-encode-migration
feat(audio): migrate Ogg Vorbis encoding to craft-audio (PR #26)
2026-11-14 19:40:58 -05:00
Dylan M. Taylor e46c81e9cb test(avif): assert HLG color metadata without decoder 2026-11-15 00:40:25 +00:00
Dylan M. Taylor 1a4cf6d0ba Merge pull request #1195 from alehel/craft-video/mpeg2-encode-b
craft-video: MPEG-2 encoder, second step: B pictures (#1133)
2026-11-14 19:39:11 -05:00
Dylan M. Taylor d5a77b7dc1 Preserve legacy XFL matrix coefficient defaults 2026-11-15 00:33:05 +00:00
Dylan M. Taylor e4eddc5fe5 Preserve legacy XFL style table permissiveness 2026-11-15 00:23:42 +00:00
Dylan M. Taylor 352a410332 Expose native XFL drawing primitives 2026-11-15 00:18:46 +00:00
Dylan M. Taylor bb9f9a95cc Add neutral XFL shape and media schema views 2026-11-15 00:12:52 +00:00
Dylan M. Taylor e54d36a76c fix(image-codecs): place AVIF tests after encoders 2026-11-15 00:10:45 +00:00
Dylan M. Taylor 93a7d13aa1 feat: add craft-ber (ASN.1 BER/DER reader)
Port from mailcraft: ASN.1 BER and DER (X.690) reader with:
- TLV parsing (tag, length, value)
- BER to DER conversion (indefinite lengths, constructed OCTET STRINGs)
- CMS signed_data content extraction

No external dependencies. Hostile-input bounded reading.
2026-11-14 19:10:34 -05:00
Dylan M. Taylor 35a16a63fd fix(image-codecs): preserve AVIF EXIF and HLG levels 2026-11-14 23:56:16 +00:00
Dylan M. Taylor 92e665a5e8 Exercise Vorbis block boundaries with distinct channel signals 2026-11-14 18:33:24 -05:00
Dylan M. Taylor 136b29dd76 Merge pull request #1375 from storytold/codex/xfl-xml-shared
Add shared XFL document schema model
2026-11-14 18:16:50 -05:00
Dylan M. Taylor 354acd6a54 Cover Vorbis in format contract tests and assert streaming refusal 2026-11-14 18:15:14 -05:00
Dylan M. Taylor dc2b83d7f4 Document Vorbis rate semantics and validate standalone options 2026-11-14 18:13:31 -05:00
Dylan M. Taylor 9efb0a1575 Complete standalone Vorbis feature and option validation 2026-11-14 18:12:40 -05:00
Dylan M. Taylor 8ae42d1aeb Merge main and reconcile Vorbis encoding with current audio APIs 2026-11-14 18:12:03 -05:00
Dylan M. Taylor ce608a6405 test(raw): omit CFA tag in CR2 fallback regression 2026-11-14 23:10:28 +00:00
alehel c83e8ba250 craft-video: MPEG-2 encoder: flush and timestamp fixes from review (#1133)
- flush ends the GOP for average bitrate too: the budget of the pictures
  the GOP did not get is taken back, so flushed short GOPs no longer
  raise the bitrate.
- A lone picture flushed before a second sets the step gets dts = pts - 1,
  so decoding times still increase if encoding goes on.
- Presentation times whose decoding time does not fit in an i64 are
  refused with BadTimestamp before any state changes.
- Tests: the skip range test uses an f_code that can carry its vector, and
  the reconstruction count is checked before comparing pictures.
2026-11-15 00:07:33 +01:00
Dylan M. Taylor b5778c4f20 test(raw): cover missing-tag CR2 gradient decode 2026-11-14 22:52:35 +00:00
Dylan M. Taylor dd692d907e fix(raw): keep missing-tag CR2 CFA conservative 2026-11-14 22:22:35 +00:00
Dylan M. Taylor 9a33bc229a Cover prefixed XFL settings and frames 2026-11-14 22:20:54 +00:00
Dylan M. Taylor 620775e30b Format shared XFL local-name lookup 2026-11-14 22:16:51 +00:00
Dylan M. Taylor 7d6e2bf385 Match prefixed XFL schema elements 2026-11-14 21:59:22 +00:00
Dylan M. Taylor 465fa74789 fix(metadata,raw,svg): address CodeRabbit review findings 2026-11-14 21:31:04 +00:00
Dylan M. Taylor 4801a54e3c Select XFL package roots in craft-xfl 2026-11-14 21:23:28 +00:00
Dylan M. Taylor f2cd524f74 Merge pull request #1112 from storytold/chore/lock-github-actions
ci: lock workflow actions through an actions.lock lockfile
2026-11-14 16:22:25 -05:00
Dylan M. Taylor 2942da9a35 Model shared XFL publish settings 2026-11-14 21:16:28 +00:00
Dylan M. Taylor d6cd7836d3 feat(video,image-codecs,stream-codecs): add encode_with_key, encode_avif_hdr, and decode_ccitt_raw (#1369) 2026-11-14 16:15:44 -05:00
Dylan M. Taylor 79e97b6feb Merge pull request #1360 from storytold/sec/vendor-unsafe-note
vendor: record the hayro-syntax transmute as an audited exception
2026-11-14 15:59:35 -05:00
Dylan M. Taylor 712b0f792e Merge pull request #1361 from storytold/sec/psd-length-refusal
craft-psd: pin that a length not fitting 32 bits is refused, not truncated
2026-11-14 15:57:56 -05:00
Dylan M. Taylor f215740d1d Add shared XFL document schema model 2026-11-14 20:44:52 +00:00
Dylan Taylor acaa353f29 chore: trigger CI re-run 2026-11-14 15:28:11 -05:00
Dylan M. Taylor 30209caad8 feat(gif,image-codecs): add indexed/interlaced GIF, jpeg_progressive_scans, and JP2 decode (#1358)
* feat(gif,image-codecs): add indexed/interlaced GIF, jpeg_progressive_scans, and JP2 decode

* chore: update Cargo.lock for craft-image-codecs jp2 dep

* fix(image-codecs,svg): deref jp2 ch and re-export resvg from craft_svg::tree::draw
2026-11-14 15:13:21 -05:00
Terra854 db82f95711 Merge upstream main while preserving RAW import safeguards 2026-11-15 03:57:39 +08:00
Dylan M. Taylor d2b0bef7bf Merge pull request #1362 from storytold/sec/docpath-long-path
craft-docpath: prove a multi-megabyte UNC path parses iteratively
2026-11-14 14:53:24 -05:00
Dylan M. Taylor fae9569718 craft-docpath: prove a multi-megabyte UNC path parses iteratively 2026-11-14 14:53:16 -05:00
Terra854 58ef208c13 fix: preserve RAW identity and SVG byte-limit reporting 2026-11-15 03:49:35 +08: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