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

chroma-encoder: Fix phase error in wideband-yuv mode #756

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

ifb
Copy link
Contributor

@ifb ifb commented Jun 9, 2022

NTSC .tbc files use IQ sampling per SMPTE 244M. Encode Y'UV and convert to Y'IQ, except do it correctly this time. It was about 5 degrees off before.

I had this correct locally at some point, but I managed to break it before making #752 I don't like replacing magic numbers with more magic numbers, but shifting 57 degrees does make sense (zeroH is 57/90 between samples).

The new vectorscope makes it much easier to verify correctness, too.

NTSC .tbc files use IQ sampling per SMPTE 244M. Encode Y'UV and convert to
Y'IQ, except do it correctly this time. It was about 5 degrees off before.
@atsampson atsampson merged commit a7f5209 into happycube:master Jun 9, 2022
@atsampson
Copy link
Collaborator

All looks good now:
scope

@ifb ifb deleted the fix-yuv-enc branch January 21, 2023 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants