-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the video deemphasis filter generation.
Previously this needed different hand-tuned scaling factors for PAL and NTSC. The missing bit was pre-warping the zero/pole frequencies to match the bilinear transform. The resulting filter is very close to the existing one (within 0.1dB for NTSC and 0.3dB for PAL), so this doesn't make much difference to the output.
- Loading branch information
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
159d4bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While looking at the new audio code I was looking at this function and trying to remember how I derived this... and then I pulled up git history which reminded me that I didn't ;)
Not a big deal, but got any references for how the pre-warping works? I eventually worked out the transfer function for audio, and it's a very close match to the filter this creates...
159d4bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure I was looking at the implementation of FM deemphasis in GNU radio. There's also a bit about this in the JOS filters book.