Commit Graph
3507 Commits
Author SHA1 Message Date
FredApps 2ecbd1e9cd fbx: integer index arrays in strict mode, cache package textures, set-based missing dedup 2026-11-16 05:04:55 +01:00
FredApps b203dc6705 Merge remote-tracking branch 'origin/main' into w1777 2026-11-16 05:04:55 +01:00
FredApps b3643af647 Merge pull request #1616 from storytold/codex/omf-bounds
aaf: preserve bounded FilmCraft OMF traversal
2026-11-16 04:50:18 +01:00
FredApps a499742a93 Merge pull request #1779 from storytold/image-codecs/jpeg-stored-inks
feat(image-codecs): read four-component JPEGs as stored inks
2026-11-16 04:48:49 +01:00
FredApps a64f5a6e4a Merge pull request #1621 from storytold/codex/pcm-export-shared
audio: share streaming PCM export encoding
2026-11-16 04:48:11 +01:00
FredApps 07b5e88dce craft-format: block comments in step detection, room past budget, configured Deflate level, duplicate names, cached limits, whole-section/identity/top-level retention 2026-11-16 04:42:51 +01:00
batistalucasv 2e5e69091a craft-odf: preserve page background bitmap fill and legacy fallback (#1784)
- Preserves page background images and bitmap fills (`draw:fill="bitmap"`) alongside legacy `<style:background-image>` fallbacks on ODT export, preventing orphaned duplicate backgrounds and resolving naming collisions with header pictures.
- Reuses kept picture files or fill images with identical bytes on export instead of duplicating background files and definitions on every save.
- Allocates distinct fill names for replaced page pictures and maps colliding names in linear time.
- Falls back to legacy `<style:background-image>` when modern bitmap fill is missing or contains non-image bytes.
- Adds comprehensive round-trip tests in `crates/odf/src/text/tests_more/page_setup.rs`.
2026-11-16 00:41:54 -03:00
FredApps 1d2cd4a9b2 Merge remote-tracking branch 'origin/main' into w1627 2026-11-16 04:41:16 +01:00
FredApps 0479988f65 fbx package: entry limit counts only resolved textures; report overflow before the no-texture return 2026-11-16 04:39:34 +01:00
FredApps 232c2aa1f6 Merge remote-tracking branch 'origin/main' into w1777 2026-11-16 04:39:34 +01:00
FredApps aa6f41a3c8 Merge pull request #1732 from storytold/codex/jsonrpc-async-coverage
Cover optional JSON-RPC async line transport
2026-11-16 04:38:46 +01:00
FredApps 5a86ef0f26 Merge pull request #1692 from storytold/codex/shared-raw-video
Share uncompressed AVI and QuickTime sample decoding
2026-11-16 04:38:34 +01:00
Dylan M. Taylor f450b5b591 fix(video): preserve explicit rav1e zero quantizer 2026-11-15 22:33:24 -05:00
FredApps 2f10c9389e Merge pull request #1782 from storytold/image-codecs/jpeg-zune-panic
fix(image-codecs): read the JPEGs zune-jpeg panics on with craft-jpeg
2026-11-16 04:08:51 +01:00
FredApps 1b00186ae0 Merge pull request #1687 from storytold/codex/shared-font-plan-cache
Share per-face shaping plan cache
2026-11-16 04:01:15 +01:00
FredApps 5ca6bf4f9d Merge pull request #1790 from storytold/fredapps/i778-rgba8-oom-tests
tga, dpx: test the RGBA8 encoders' allocation-failure path
2026-11-16 04:01:03 +01:00
Dylan M. Taylor e25e6dbcad Expose bounded source-timed SMF framing without note normalization 2026-11-15 21:51:54 -05:00
Dylan M. Taylor a8fc359bc5 raw: share CinemaDNG capture metadata 2026-11-15 21:49:46 -05:00
Dylan M. Taylor 61a9330f4e Adapt attributed FilmCraft metadata to bounded shared reader
Preserve vangel76 original FilmCraft source commit 28247afae7806590dcdb149d744408739fb738df before the shared metadata extraction. Final metadata implementation is unchanged from the existing PR.
2026-11-15 21:49:46 -05:00
Dylan M. Taylor b00cb4533a raw: use fixed-size opcode record chunks 2026-11-15 21:49:46 -05:00
vangel76andClaude Opus 5.5 79c6602a35 #1065: clean-room DNG / CinemaDNG decoder crate
Problem: camera RAW is at 0% (docs/codec-parity.md, #383). CinemaDNG,
the one cinema RAW format with a public specification, could not be
read at all.

Fix: new L0 crate filmcraft-dng, written from the public DNG 1.4-1.7,
TIFF 6.0 / TIFF-EP, ITU-T T.81 and CinemaDNG specifications only (no
other decoder's source read; editions in the crate README):
- TIFF container with SubIFDs, bounded (64 IFDs, 4 levels, cycles end
  the walk) and checked offsets; the main raw IFD is the largest
  NewSubFileType 0 CFA / LinearRaw image.
- Raw data: 1-16-bit uncompressed (MSB-first packing) and lossless JPEG
  (process 14, predictors 1-7, 1-4 components, point transform, line
  restarts), strips and tiles, tiles decoded in parallel; allocations
  capped by size and by the data present.
- Processing per the DNG model: ActiveArea, LinearizationTable, per-site
  black levels with deltas, white levels, as-shot white balance with
  neutral highlight clipping, Malvar-He-Cutler Bayer demosaic (bilinear
  for other patterns), DefaultCrop, ColorMatrix / CameraCalibration /
  ForwardMatrix with illuminant interpolation, Bradford to linear
  Rec. 709, BaselineExposure; output scene-linear RGBA floats.
- CinemaDNG FrameRate, TimeCodes and ReelName tags.
- A test-only writer (feature `writer`) synthesises DNGs. Tests: raw
  samples bit-exact for every depth / predictor / layout, processing
  against hand-computed values, hostile files (every truncation, 12k
  mutations, cyclic IFDs, huge sizes, bad offsets), and LibRaw's
  unprocessed_raw as an external oracle reading the same samples
  (skipped when not installed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:49:46 -05:00
vangel76andClaude Opus 5.5 440e14c7f2 #1065: clean-room DNG / CinemaDNG decoder crate
Problem: camera RAW is at 0% (docs/codec-parity.md, #383). CinemaDNG,
the one cinema RAW format with a public specification, could not be
read at all.

Fix: new L0 crate filmcraft-dng, written from the public DNG 1.4-1.7,
TIFF 6.0 / TIFF-EP, ITU-T T.81 and CinemaDNG specifications only (no
other decoder's source read; editions in the crate README):
- TIFF container with SubIFDs, bounded (64 IFDs, 4 levels, cycles end
  the walk) and checked offsets; the main raw IFD is the largest
  NewSubFileType 0 CFA / LinearRaw image.
- Raw data: 1-16-bit uncompressed (MSB-first packing) and lossless JPEG
  (process 14, predictors 1-7, 1-4 components, point transform, line
  restarts), strips and tiles, tiles decoded in parallel; allocations
  capped by size and by the data present.
- Processing per the DNG model: ActiveArea, LinearizationTable, per-site
  black levels with deltas, white levels, as-shot white balance with
  neutral highlight clipping, Malvar-He-Cutler Bayer demosaic (bilinear
  for other patterns), DefaultCrop, ColorMatrix / CameraCalibration /
  ForwardMatrix with illuminant interpolation, Bradford to linear
  Rec. 709, BaselineExposure; output scene-linear RGBA floats.
- CinemaDNG FrameRate, TimeCodes and ReelName tags.
- A test-only writer (feature `writer`) synthesises DNGs. Tests: raw
  samples bit-exact for every depth / predictor / layout, processing
  against hand-computed values, hostile files (every truncation, 12k
  mutations, cyclic IFDs, huge sizes, bad offsets), and LibRaw's
  unprocessed_raw as an external oracle reading the same samples
  (skipped when not installed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:49:46 -05:00
Dylan M. Taylor 7ad0385abd raw: order opcode modules for rustfmt 2026-11-15 21:49:46 -05:00
Dylan M. Taylor fab94c80fe raw: bound opcode area count validation 2026-11-15 21:49:46 -05:00
Dylan M. Taylor 75cff558e5 raw: parse DNG opcode parameters into typed values 2026-11-15 21:49:46 -05:00
vangel76andClaude Opus 5.5 cb3f76848b #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 21:49:46 -05:00
FredApps 3a6613f058 Merge pull request #1770 from storytold/extract/dng-writer-view
raw: share borrowed and prepared-lossy DNG writing
2026-11-16 03:38:01 +01:00
FredApps 82597f403d fbx: strict check for ColorsIndex/NormalIndex, stop texture resolution at the entry limit, model entry keeps .fbx 2026-11-16 03:13:21 +01:00
FredApps fa56e8854b Merge remote-tracking branch 'origin/main' into w1777 2026-11-16 03:13:21 +01:00
FredApps f57db543da raw_video: QuickTime RGB24 always uses even-padded rows; only the last row's pad may be missing 2026-11-16 03:12:25 +01:00
FredApps f428f4d3b0 Merge remote-tracking branch 'origin/main' into w1692 2026-11-16 03:12:24 +01:00
FredApps d26e89917a omf: charge depth-limited visits and share a document search budget; AIFF-C needs an integer PCM code 2026-11-16 03:05:05 +01:00
FredApps 2f01ba2652 Merge remote-tracking branch 'origin/main' into w1616 2026-11-16 03:01:38 +01:00
FredApps 4daca46778 pcm_export: use is_multiple_of 2026-11-16 03:01:21 +01:00
FredApps b99a64fc5b pcm_export: refuse zero channels, zero sample rate and partial frames 2026-11-16 03:01:11 +01:00
FredApps 9de25ee47a Merge remote-tracking branch 'origin/main' into w1621 2026-11-16 02:58:38 +01: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
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
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
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
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