Repository navigation
fix: the snapshot keeps the single view's aspect ratio (#248) - #250
Merged
Merged
Conversation
compot-dev
marked this pull request as ready for review
October 20, 2026 09:30
PR Summary by QodoPreserve single-view aspect ratio in snapshots
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can open the rule or relationship behind a finding in one click |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #248.
In
/snapshot.jpgand on the debug page, the single view's camera was copied straight into its 16:9 cell, so a picture of another aspect ratio, such as a slot turned 90° (portrait), was stretched. On the screen it is fitted with black bars.Change.
Snapshots.Cell.aspect: width / height of the picture as the screen shows it; the single view's cell gets it from the view's video size (after Turn). Grid cells keep 0 and fill their cell as before.Snapshots.fit(): the largest rectangle of that ratio centred in the cell (the whole cell for 0 or a ratio within 1 %, so no one-pixel bars); PixelCopy copies into that rectangle and the frame is drawn there.SnapshotsTest;docs/debug.md.Version 2.18.1 (PATCH). PR #220 (also 2.18.1 now) waits for a reporter's test and will move on to 2.18.2 if this merges first.
testDebugUnitTest(362 tests, incl.SnapshotsTest),lintDebug,assembleDebug; version checkcdac5da: single view of a 2560×1920 H.265 slot turned 90° → its/snapshot.jpgcell shows the portrait picture centred with black bars (was stretched); a 16:9 H.264 slot fills its cell as before; the 3×3 grid snapshot unchanged (9 cells); 0FATAL EXCEPTION/ANR in