Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Video Parameters dialogue to ld-analyse #757

Merged
merged 11 commits into from
Jun 11, 2022

Conversation

atsampson
Copy link
Collaborator

This lets you edit the black/white levels and aspect ratio in ld-analyse, then save them back to the JSON file. You can also set the black/white levels by shift-clicking on the oscilloscope. For NTSC sources, there are buttons to set the black level for both NTSC and NTSC-J (see #744). The aspect ratio button now just toggles SAR/DAR.

videoparams-ntsc
videoparams-pal

When saving, I've made it rename the existing .json to .json.bup if it doesn't already exist, as ld-process-vbi does. I think I've done this in a way that'll work on non-Unixy filesystems.

There's a fair amount of GUI refactoring in here to support this, so apologies if I've broken anything else in the process... It'll need some updates to the manual, but I haven't (non-trivially) changed the appearance of anything that already existed so it should only need a screenshot of the new dialogue.

The other windows mostly have shortcuts, so this should have one too.
(You can close any of the QDialogs by pressing escape, so there's no
need to make it toggle.)
This avoids duplicating the code to update the main view and the scopes.
Fix a couple of typos in related comments too.
Previously they had minimum and maximum sizes set to achieve the same
effect -- this makes Qt work out the size automatically.

The VBI dialog now uses grid layouts -- previously it was laid out with
absolute positions for most of the widgets.
You can also set the black/white levels by shift-clicking on the scope.
Rework the aspect ratio button in the main window so it now just toggles
between the source and display aspect ratios.
startBackgroundLoad now returns a bool to indicate explicitly whether
it succeeded.
@atsampson atsampson added enhancement ld-decode-tools An issue only affecting the ld-decode-tools labels Jun 11, 2022
@atsampson atsampson requested a review from simoninns June 11, 2022 03:23
@simoninns simoninns merged commit c95decb into happycube:master Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ld-decode-tools An issue only affecting the ld-decode-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants