forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/engine/tests/anamorphic.rsClear filter

2026-10-23

🚚 edith moves to git.tahinli.comAhmet Kaan Gümüş · b02f499
🚚 edith moves to git.tahinli.com

The working tree as of 2026-10-23, as one commit on top of the last one
here. It carries the work up to that date plus the test-slimming work:
integration tests merged into one binary per crate, nextest config,
doctest = false, debug line tables only, perf tests behind --ignored,
and faster generators, reverse, undo, subtitle-export, hevc, stabilise
and hear tests.

2026-09-24

fix(decode): stretch before the turn, so a rotated anamorphic file fills its canvasAhmet Kaan Gümüş · f4bc699
fix(decode): stretch before the turn, so a rotated anamorphic file fills its canvas

A 1440x1080 SAR-4/3 file with a 90-degree display matrix rendered
1440x1440: the render composed turn-then-stretch, landing the ratio on
the coded height, and the square raster sat letterboxed inside the
1080x1920 canvas the probe declares -- bars in the preview and baked
into the export. The ratio belongs to the axis that was horizontal
BEFORE the turn: the coded width is stretched by h/v and the turn then
swaps the stretched pair, which is what the probe has declared all
along. Render::frame and place_picture now both stretch first, the one
order that agrees with the probe.

The suite's rotated case had been vacuous -- the in-test fixture was a
setsar file with no display matrix, asserting nothing about the turn.
It now remuxes a real 90-degree matrix on (-display_rotation 90, the
gen_fixtures pattern), asserts the probe's swapped stretched pair
(1080x1920, not 1440x1440), and drives the render through the same
assertions; the export test grows the rotated clip with
preview-vs-export equality. Mutation witness: with the render reverted
to turn-then-stretch the new assertions fail with exactly
left (1440, 1440) / right (1080, 1920).

The demux comment now names the render's order and the failure the
other one produces, so the two can't drift again.
test(anamorphic): the anamorphic fixtures and the suite that pins themAhmet Kaan Gümüş · db45d3c
test(anamorphic): the anamorphic fixtures and the suite that pins them

scripts/gen_fixtures.sh grows the anamorphic block: test_anamorphic.mp4
and .mkv, one 1440x1080 setsar=4/3 source in each container (mkvmerge is
not installed; ffmpeg's own Display* output is the source of truth), and
test_anamorphic_hevc.mkv for the copy door, which only copies HEVC or
AV1 Matroska.

crates/engine/tests/anamorphic.rs pins the whole contract on them:
- the probe reads coded 1440x1080 and drawn 4/3 off both doors, the
  ratio compared reduced because the mkv carries ffmpeg's DAR spelling
  (17280/12960) where the mp4 carries the SAR itself;
- the preview hands out 1920x1080 with picture in every corner (numeric
  gate) and a measured 16:9 display aspect;
- the export re-encodes to the drawn shape, square, the same picture
  the preview showed within encode loss;
- the Matroska copy keeps the aspect beside the coded blocks (read
  back), and the mp4 Exact row refuses in the words 'a copy would lose
  the pixel aspect';
- square files still read one to one, swapped only where their matrix
  turns them.

The HEVC-door tests skip on a machine without the plugin, as
video_copy's decode-back test does.