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

Allow separate chroma output from ld-chroma-encoder #777

Merged
merged 6 commits into from
Aug 22, 2022

Conversation

atsampson
Copy link
Collaborator

The main aim here was to make it possible for ld-chroma-encoder to produce the same kind of output as vhs-decode, with chroma in one file and luma + syncs in another. Besides testing the handling of this in other tools, this is useful for tuning ld-chroma-decoder, because you can feed video through it and see exactly which parts of the composite signal are chroma. I plan to use this for calibrating the Transform PAL thresholds.

Some other improvements to ld-chroma-encoder included:

  • Extract the common parts of my PALEncoder and @ifb's NTSCEncoder as an Encoder base class
  • Use std::vector rather than QVector, which speeds it up a bit
  • Fix the slightly out-of-spec PAL UV filter that @ifb spotted

@atsampson atsampson added enhancement ld-decode-tools An issue only affecting the ld-decode-tools labels Aug 22, 2022
ifb spotted, while working on the NTSC encoder, that this filter didn't
quite meet the spec in Clarke -- it had slightly less than 20 dB
attenuation at 4 MHz. Recompute it so it now has slightly more.

Also correct the misleading comment -- the filter isn't taken from
pyctools-pal.

Comparing the results from check-chroma-pal, this results in ~0.02 dB
lower PSNR on colourbars.
There's no need for QVector's COW behaviour here.
This matches the output from vhs-decode, which ld-analyse already
accepts.
@happycube happycube merged commit 0d08975 into happycube:master Aug 22, 2022
@atsampson atsampson deleted the splitchroma branch August 22, 2022 11:11
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.

2 participants