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

Clear Comb::FrameBuffer::clpbuffer before each frame #630

Merged
merged 1 commit into from
Apr 17, 2021

Conversation

atsampson
Copy link
Collaborator

@Gamnn reported that ntsc2d was producing differences in output for identical input after 200+ frames. Bisection narrowed this down to ff5f991.

The problem was that the Comb code didn't explicitly initialise clpbuffer. The code fills in values for the active region, but it
assumes anything outside the active region will read as 0 when filtering -- this was probably the case by accident before when
clpbuffer was allocated each time by Qt.

Zeroing the buffer explicitly fixes it.

Fixes #623. @Gamnn, please can you check this works for your file now?

Gamn reported that ntsc2d was producing differences in output for
identical input after 200+ frames. Bisection narrowed this down to
4f06cb5956c9 ("Use QScopedPointer for current/previousFrameBuffer.").

The problem was that the Comb code didn't explicitly initialise
clpbuffer. The code fills in values for the active region, but it
assumes anything outside the active region will read as 0 when
filtering -- this was probably the case by accident before when
clpbuffer was allocated each time by Qt.

Zeroing the buffer explicitly fixes it.
@atsampson atsampson added bug ld-decode-tools An issue only affecting the ld-decode-tools labels Apr 14, 2021
@Gamnn
Copy link
Contributor

Gamnn commented Apr 17, 2021

Seems to be working for me.

@atsampson
Copy link
Collaborator Author

Excellent, cheers. I'll merge this one then.

@atsampson atsampson merged commit cf60ff6 into happycube:master Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ld-decode-tools An issue only affecting the ld-decode-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ld-chroma-decoder output inconsistent
2 participants