summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2017-05-29 09:48:10 -0700
committerwm4 <wm4@nowhere>2017-06-03 16:41:03 +0200
commit7424651b9637082f71deab9fcc87111e2d9df13f (patch)
treee5d4813a3195e56d39bd313900a765bc69d9e40d /demux
parent7e889e5e637536cba3dfced3962ab87d7c8ea01f (diff)
downloadmpv-7424651b9637082f71deab9fcc87111e2d9df13f.tar.bz2
mpv-7424651b9637082f71deab9fcc87111e2d9df13f.tar.xz
vo_opengl: hwdec_cuda: Support separate decode and display devices
In a multi GPU scenario, it may be desirable to use different GPUs for decode and display responsibilities. For example, if a secondary GPU has better video decoding capabilities. In such a scenario, we need to initialise a separate context for each GPU, and use the display context in hwdec_cuda, while passing the decode context to avcodec. Once that's done, the actually hand-off between the two GPUs is transparent to us (It happens during the cuMemcpy2D operation which copies the decoded frame from a cuda buffer to the OpenGL texture). In the end, the bulk of the work is around introducing a new configuration option to specify the decode device.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions