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

SMDegrain: fix broken BFF interlace handling #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JohnstonJ
Copy link

The SMD_UnfoldFieldsVertical function takes a TFF parameter, but doesn't actually use it when assigning the parity of the input clip. This results in horribly destroyed results when using BFF interlaced clips.

Fix this by using TFF to determine whether to call AssumeTFF or AssumeBFF.

Here's an example that shows the problem. The input image originated from a DV camcorder that interlaced using BFF. I used the filter SMDegrain(interlaced=true) to generate the outputs.

I git bisected the repository and found this regression was first introduced in e3cea8f

Original input image
image

Broken interlace handling seen in master
image

Results after applying this commit
image

The SMD_UnfoldFieldsVertical function takes a TFF parameter, but doesn't
actually use it when assigning the parity of the input clip.  This
results in horribly destroyed results when using BFF interlaced clips.

Fix this by using TFF to determine whether to call AssumeTFF or
AssumeBFF.
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.

1 participant