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

vf_vapoursynth: remove excessive locking when reading/writing frames #6262

Merged
merged 2 commits into from
Jul 7, 2019
Merged

vf_vapoursynth: remove excessive locking when reading/writing frames #6262

merged 2 commits into from
Jul 7, 2019

Conversation

chainikdn
Copy link
Contributor

@chainikdn chainikdn commented Oct 30, 2018

Single-threaded data copying becomes a real performance bottleneck in case of 4K, especially with 10 bit color depth and high frame rates.

I agree that my changes can be relicensed to LGPL 2.1 or later.

@chainikdn
Copy link
Contributor Author

Not so sure about 2nd one (writing), because we probably need to protect "img" from being deleted from "p->buffered". Anyway it works in real tests w/o crashes.

@chainikdn
Copy link
Contributor Author

Somebody please take a look! W/o this one it's impossible to watch 4K/10bit with a real time motion interpolation.

@jeeb
Copy link
Member

jeeb commented Jun 12, 2019

@chainikdn sorry for not being able to get to this earlier, but since you're a first time contributor could you please add the note to your PR that you agree with the licensing? See https://github.com/mpv-player/mpv/blob/master/.github/PULL_REQUEST_TEMPLATE for the sentence.

@chainikdn
Copy link
Contributor Author

@jeeb first message edited

@jeeb
Copy link
Member

jeeb commented Jun 13, 2019

Thanks.

Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, no crashes.

@sfan5 sfan5 merged commit 7f0f1a1 into mpv-player:master Jul 7, 2019
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.

3 participants