forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/engine/tests/exif_orientation.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-30

fix(engine): a still is shown the way its EXIF orientation saysAhmet Kaan Gümüş · e600a6e
fix(engine): a still is shown the way its EXIF orientation says

A phone photographs a portrait picture and stores it as landscape plus a
tag saying which way up it is. The `image` crate keeps that tag in its
decoder and applies nothing, so every still door read the *stored* shape:
the preview, the timeline clip box, the poster thumbnail, the library
row, the canvas seed and an export of that clip. A portrait phone photo
opened sideways in all of them, silently.

The turn is now read and made once, in `Still::open`, before the planes
are written -- the same step the video doors take for a display matrix,
at the same place in the pipeline, through the same `Rotation`. Because
the turn is in the planes, `Render`, the `VideoMeta` both still doors
mint, an export's `place_picture` and `image_size` all report the shown
pair without any of them re-deriving it, and no consumer can be
forgotten.

EXIF 2, 4, 5 and 7 are mirrorings and this engine has no flip anywhere
in its pipeline, so they are refused by name at the door
(`UnsupportedStillOrientation`, `is_it` and all) the way a display
matrix that is not a quarter turn is: a mirrored photo shown the wrong
way round is a wrong picture, not a missing feature. The refusal is
propagated unchanged rather than folded into a sentence with the file's
name, so a caller can still downcast it.

`DecodeSession::open_range` also reaches a still now. It handed one to
the mp4 demuxer, which answers "a box with a larger size than it" -- a
true sentence about a container and nothing a person can act on -- so
this door, the one a front-end opens a file through, refused every
picture outright, and the poster thumbnail was one of its callers.

Witness (crates/engine/tests/exif_orientation.rs, 5 tests): a JPEG built
in-test with four coloured quadrants and a hand-written APP1/EXIF
segment carrying tag 0x0112, sampled a pixel per corner so a wrong
direction cannot pass. Red on the base: `image_size` (64, 32), frame
64x32, corners ["red","green","blue","yellow"] -- the stored layout,
orientation ignored. Green after: (32, 64) and ["yellow","red","green",
"blue"], with 180, anticlockwise and no-turn each asserted in its own
direction, all four mirrors refused by name, and the export portrait
with no matrix of its own. `cargo test -p engine --test images` 8/8.