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 LineNumber and rework how line numbers are shown in the scope #753

Merged
merged 6 commits into from
Jun 8, 2022

Conversation

atsampson
Copy link
Collaborator

The LineNumber class represents a line number within a ComponentFrame/OutputFrame, and can convert between the various different representations of line numbers that the ld-decode tools use - plus the standard way of numbering PAL/NTSC lines. There are various places in the code that could potentially use this in the future, but for now...

The oscilloscope view has been converted to use LineNumber, so it now shows the selected X/Y coordinates within the frame, and the line numbers that you need if you're referring to a standard or working with the metadata:
scope3

Thanks to various people on IRC/Discord for workshopping the UI changes!

@atsampson atsampson added enhancement ld-decode-tools An issue only affecting the ld-decode-tools labels Jun 8, 2022
@atsampson atsampson requested a review from simoninns June 8, 2022 01:38
We can use these names directly when reading and writing JSON, and in
GetVideoSystemDescription -- there's no need to duplicate the list of
systems anywhere.

Add a function for parsing system names, since the JSON parser and
ld-chroma-encoder both need to do this.
This represents a line number within a particular video system, and can
convert to and from standard numbering and the four different formats
ld-decode uses internally.
It's always given lastScope* as its arguments, so we may as well remove
the arguments and have it use those variables directly.
Previously we showed a 1-based line number within the frame, which is
only meaningful internally to ld-analyse.

We now use spin boxes to show 0-based X and Y coordinates within the
full frame (as you'd see in an image editor), and labels to show the
system, standard line number, field, and 1-based line within the field
(as used in the field metadata).
@atsampson
Copy link
Collaborator Author

Added a function to parse VideoSystem names, since #752 wanted to do that.

@simoninns simoninns merged commit 5ecb767 into happycube:master Jun 8, 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