]> git.sesse.net Git - nageru/commit
Move to one JPEG decoder thread per view.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 10 Mar 2019 22:29:24 +0000 (23:29 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 10 Mar 2019 22:29:24 +0000 (23:29 +0100)
commit36ae902913f91a6e4d3d6a1f5d16a0ab1b92c3ae
tree169c36d59a65e04f295ec0c56c8ef0df937a4a22
parent9f90c49a50f30b13ed6638515d17cac7e6712d19
Move to one JPEG decoder thread per view.

This is, surprisingly, the most useful for VA-API decodes; they can
have long latency at 1080p, and Futatabi's dropping scheme sometimes
caused massive unfairness. Our system doesn't pipeline all that
nicely, so just having multiple threads was the simplest solution.
The risk is that we now access VA-API from multiple threads, which
has a tendency to tickle bugs, but we'll see.

Of course, for CPU decoding, you will also benefit.
futatabi/jpeg_frame_view.cpp
futatabi/jpeg_frame_view.h
futatabi/main.cpp