Commit Graph
7039 Commits
Author SHA1 Message Date
aiongg 158e08c6d5 draw: a Convert Point press on an anchor selects it, as a Curvature press does 2026-11-15 22:18:48 +00:00
aiongg f427827b68 Merge commit '01199ba26e38766416ce6e73c775664b1eee19c0' into area/fwb2 2026-11-15 22:17:35 +00:00
Dylan M. Taylor 8a7c7d7e80 Integrate shared main after USD LZ4 prerequisite merge 2026-11-15 17:05:33 -05:00
aiongg 01199ba26e tfix4-f6d: format the fill trial 2026-11-15 22:04:53 +00: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
aiongg 5cabd08694 tfix4-f6d: FormDialog::opening is the host's Reset baseline in every pass; HostedAdjustDialog::seed moves it, so Reset returns to the last seed 2026-11-15 22:04:30 +00:00
Dylan M. Taylor 4ce781dab2 Merge pull request #1738 from storytold/extract/usd-crate-codec
Extract bounded USD Crate LZ4 decompression
2026-11-15 17:04:17 -05:00
aiongg 245f0dba01 tfix4-f6d: FullWindowWorkspace::closed runs on every close of a hosted workspace; Content-Aware Fill stores its settings there only 2026-11-15 22:03:17 +00:00
aiongg 20e969d9f6 tfix4-f6d: ParamDialog::previews declares the Preview box; HostedParamDialog keeps its value, so is_previewing holds from construction 2026-11-15 22:02:17 +00: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
Dylan M. Taylor 272a095b61 Merge pull request #1735 from storytold/extract/icc-v2-matrix
cms: share bounded ICC v2 matrix/TRC profile writer
2026-11-15 17:01:18 -05:00
Dylan M. Taylor f7e0d7fd55 Merge pull request #1736 from storytold/fix/stream-codecs-vendored-jbig2
Fix external stream-codecs consumers to retain bounded JBIG2 decoder
2026-11-15 17:00:31 -05:00
FredApps d1a431c4b5 audio: pure-Rust Vorbis encoder (1-8 channels, quality, tags, wasm) and an Ogg page writer (#1642)
* audio: pure-Rust Vorbis encoder, and an Ogg page writer in craft-media

Replace the libvorbis wrapper (vorbis_rs, C, desktop only) behind
`vorbis-encode` with FilmCraft's clean-room Vorbis I encoder by
@JordyUSA (storytold/filmcraft#4481), and move its Ogg page writer into
craft-media's `ogg` module.

craft-audio:
- `vorbis::encoder::{Encoder, EncoderConfig, Error}`: 1-8 channels in
  Vorbis order, any sample rate, quality -1 to 10 (VBR), streaming
  packets with granule positions.
- `encode_ogg_vorbis` with `OggVorbisOptions` (quality, vendor, tags,
  serial) writes a whole Ogg Vorbis file with a comment header.
- `encode_ogg(buf, kbps)` and `OGG_BITRATES` keep working: the bit rate
  picks the quality whose nominal rate it is (`quality_for_bitrate`).
- `encode` with `EncodeFormat::Ogg` takes 1-8 channel WAV-order layouts
  and writes them in Vorbis order, and `RateControl::Quality`.
- Ogg is built on wasm32 too.
- Residue partitions hold whole sample frames (48, 40, 48 or 56 values
  for 3, 5, 6 and 7 channels): libvorbis decodes each partition from
  channel 0, so 32-value partitions came out scrambled for those counts.
- The first audio packet gets a page of its own, so a short file's
  first audio page is never also its last (ffmpeg then kept the padding).

craft-media: `ogg::PageWriter`, `opus_tags`, `vorbis_comment`.

Part of storytold/craft-libs#778.

* audio, media: address review on the Vorbis encoder and Ogg writer

- Encoder: read cursor into the pending input, compacted once per call,
  so a large encode() call no longer moves the tail on every block.
- Tests: check ffmpeg's libvorbis decoder only when ffmpeg has it.
- PageWriter::finish: the end granule replaces the last page's only when
  a packet completes on it (RFC 7845 4.4); documented and tested.
- README: Ogg Opus packet granules are the samples decoded so far.

* audio: pick Ogg by extension on wasm32 too

The Vorbis encoder is pure Rust now, so encode_format_for("ogg") follows
the vorbis-encode feature alone, as EncodeFormat::Ogg.is_built() and
ENCODE_EXTENSIONS already do.
2026-11-15 22:59:29 +01:00
aiongg b5448ade93 tfix4-f6: trial: a hosted param dialog lists its opening fields and takes a set before its first pass 2026-11-15 21:53:46 +00:00
Dylan M. Taylor c247a085be Expose dependency-free HTTP URL syntax with bounded redirect input 2026-11-15 16:53:07 -05:00
NetterSilver 837e4d365a Preserve URL normalization and malformed authority regressions 2026-11-15 16:53:07 -05:00
MarekSpodBiedry 07fa210956 Preserve HTTPS redirect downgrade rejection 2026-11-15 16:53:07 -05:00
Daniel Voshart d577b23c9c Preserve bounded URLs and query-safe error messages 2026-11-15 16:53:07 -05:00
aiongg 9bea40a63b tfix4-f6: TransformBox::same_value takes a box written back within f32 precision as the proposal, so an applying host keeps its drag (no HostChanged cancel) 2026-11-15 21:50:16 +00:00
Daniel Voshart 02224df6cb Import LightCraft HTTP URL parser 2026-11-15 16:48:09 -05:00
Dylan M. Taylor fba532b6b2 Merge pull request #467 from AxylumRust/refactor/i18n-clippy-pedantic
i18n: satisfy Clippy pedantic lints
2026-11-15 16:45:48 -05:00
aiongg eb1aa98b2b tfix4-f6: HostedAdjustDialog::json_form lists the value's automation fields in the app's form (the command's params), with the edited signal 2026-11-15 21:43:01 +00:00
el-j 485f8e45f4 craft-audio: ADPCM test lints 2026-11-15 22:41:38 +01:00
el-j 9134fff94c craft-audio: ADPCM docs link and ffmpeg rounding variants in the oracle tests
Older ffmpeg releases decode IMA and Flash ADPCM with the
((2 * magnitude + 1) * step) rounding; the tests accept either that or the
recommended-practice one.
2026-11-15 22:41:20 +01:00
aiongg ebe44b9779 tfix4-f6: HostedAdjustDialog::edited is the dialog's edit signal (editor, Reset, field sets, value_mut); seed replaces the value without one 2026-11-15 21:40:51 +00:00
Dylan M. Taylor f494b2d3b1 Merge pull request #1332 from AxylumRust/docs/dxf-configured-tag-limit
docs(dxf): describe configurable tag limit
2026-11-15 16:36:32 -05:00
vangel76andClaude Sonnet 5.5 747419ecb5 craft-drawingml: chart dates past 31 December 9999 show hashes after the time rounds up
serial_date computes the real date once. A serial that rounds up into
the day after 9999-12-31 (for example 2958465.99999999 with seconds
shown) is out of range like Excel; it showed 1/1/10000.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 22:36:27 +01:00
Dylan M. Taylor f12249ba7d Merge pull request #1346 from AxylumRust/refactor/dwg-clippy-pedantic
refactor(dwg): apply behavior-preserving cleanups
2026-11-15 16:35:58 -05:00
el-j 6b059051e5 craft-audio: IMA WAV, Microsoft, Yamaha and Flash ADPCM decoders and encoders (adpcm)
Bit-exact with ffmpeg's decoders on both ffmpeg-made and our own
streams; our encoders match ffmpeg's in SNR.

Closes #1536.
2026-11-15 22:35:46 +01:00
Dylan M. Taylor 506d093a61 Merge pull request #1283 from AxylumRust/test/prc-compressed-validation
craft-prc: validate compressed tessellation reconstruction (#778)
2026-11-15 16:35:34 -05:00
aiongg 86efb4973c cl: test drops a caller's --message-format (cl reads cargo's JSON messages itself) 2026-11-15 21:35:00 +00:00
Dylan M. Taylor ffb280d65e test(raw): preserve DCP profile boundaries and shot-field exclusion 2026-11-15 16:34:17 -05:00
aiongg c434c5f7ae tfix4-f6: the crop frame's body report (CropShown from CropTool::show_frame) goes to the same pass's CropTool::pass; one pass per frame 2026-11-15 21:33:52 +00:00
OneSlip 39578d914c craft-raw: share DNG camera profile file reader and writer
Port reusable DCP wire parsing/writing and synthetic tests from LightCraft e87f92fe crates/raw/src/dcp.rs, originally introduced by OneSlip in 8972565249b496ccdf3a7f23321c84622615a353. Reuse existing craft-raw DNG color/profile tag reader and craft-tiff writer instead of copying helpers. App applied_to policy stays in LightCraft.
2026-11-15 16:33:42 -05:00
aiongg a4176ef04e tfix4-f6: HostedNewDocument opens its settings at construction (ctx in new); a host-opened dialog's first pass keeps them 2026-11-15 21:32:41 +00:00
aiongg 84bb213705 tfix4-f6: HostedFormatOptions opens its fields at construction (ctx in new), so they list and take sets before the first pass 2026-11-15 21:32:41 +00:00
aiongg e0633b2164 tfix4-f6: TextEditor claims Escape and reports every session end in TextEditorOutput::ended 2026-11-15 21:32:40 +00:00
vangel76andClaude Sonnet 5.5 24e9ff3407 craft-drawingml: chart date formats convert serials through chrono
civil_from_days is gone; serial_date uses checked chrono date arithmetic.
Serial 0 and Excel's 29 February 1900 stay explicit exceptions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 22:32:27 +01:00
aiongg 0b823cd7b0 tfix4-f6: value controls that step by the wheel declare it, so a Free scope frees them 2026-11-15 21:30:32 +00:00
FredApps 5a7a63a21d Merge pull request #1593 from storytold/i778/opus-encoder-effectcraft-speedups
craft-audio: port EffectCraft's later Opus encoder speed-ups
2026-11-15 22:26:13 +01:00
Dylan M. Taylor da591dc6b2 fix(raw): bound LJ92 writer tile padding before allocation 2026-11-15 16:21:37 -05:00
el-j 0281d0951b craft-video: Motion JPEG decoder and encoder (mjpeg)
A frame-level wrapper over craft-jpeg: packets decode to gray or RGB
frames (Annex K Huffman tables put in for AVI MJPG packets that have
none) and frames encode to baseline JPEG packets. Checked against
ffmpeg as a black-box oracle in both directions.

Part of #1510.
2026-11-15 22:19:12 +01:00
el-j 1648ef05f5 craft-audio: MPEG-1/2 Layer II (MP2) encoder (mpa-encode)
Constant bit rate mono and stereo at 16-48 kHz, written from ISO/IEC
11172-3 and 13818-3. Decoded by our decoder and by ffmpeg as an
oracle.

Closes #1545.
2026-11-15 22:15:58 +01:00
FredApps 048c93634a image-codecs: probe PNG, JPEG and TIFF sizes from the header
probe_size returned Unsupported for PNG, JPEG and TIFF, so callers sized
those images with a full decode. Each now reads only its header with the
checks decode runs: PNG's IHDR/fcTL, limits and plausibility; JPEG's
first frame header and EXIF; TIFF's default page directory, camera-raw
refusal and Orientation tag. The size is turned upright for 5-8, as
decode returns it.
2026-11-15 22:15:55 +01:00
dotCooCoo 90b6cbef8a craft-exr: deep chunk offsets must follow every part's offset table
In a multipart file the chunks start after the offset tables of all
parts. The deep readers in craft-exr and craft-image-codecs took the end
of the deep part's own table as the start of the chunk area, so an
offset into a later part's table passed the chunk-area check and its
bytes were parsed as a chunk.

Both readers now compute where the deep part's table starts and where
the last table ends with checked arithmetic, and refuse a file whose
tables run past its end before reading any offsets. The earlier tables'
sizes are no longer capped or saturated.

Tests build a two-part file from scratch (a deep part and a 1x1 flat
part, in both orders): the deep part decodes as in a single-part file,
an offset into the second table or one byte before the end of the
tables is refused, and a file that ends inside the second table is
refused.
2026-11-15 13:13:48 -08:00
kiwi4boy 3b892c1dd8 Merge remote-tracking branch 'origin/main' into xlsb-tables 2026-11-15 16:12:50 -05:00
kiwi4boy 8b4aaf2d55 Merge remote-tracking branch 'origin/main' into xlsb-names 2026-11-15 16:12:50 -05:00
kiwi4boy 8b7cdcdbf0 Merge remote-tracking branch 'origin/main' into xlsb-styles 2026-11-15 16:12:50 -05:00
vangel76andClaude Opus 5.5 3b02f3ee6c craft-pptx: test kept 3-D and layout/master extensions in default-namespace parts
Extends the default-namespace theme test with an effect style holding
scene3d and sp3d, and adds a layout and master case whose unprefixed
extLst/ext is written back through ext_children.

To be precise about the previous commit: theme effect styles and shape spPr
3-D kept from a part with a default namespace now keep that namespace. Text
bodyPr and group spPr 3-D without a prefix are still dropped on save, as
before (valid_raw3d requires the a: prefix); that is out of scope here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:11:54 +01:00
vangel76andClaude Opus 5.5 e7627d396c craft-drawingml: keep the default namespace on kept fragments
A part written with a default namespace (`<theme xmlns="…/main">`, a slide with
`xmlns="…/presentationml/2006/main"`) has unprefixed names. `keep_with` copied
only prefixed declarations, so a kept fragment (theme custClrLst, extLst,
objectDefaults, effect 3-D, slide/layout/master extLst) lost its namespace when
written under a root that binds no default. A kept fragment now gets the part
root's `xmlns` when one of its unprefixed names is not bound inside it; prefixed
fragments are written as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:06:07 +01:00