mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00:00
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. |
||
---|---|---|
.. | ||
af.rst | ||
ao.rst | ||
changes.rst | ||
encode.rst | ||
input.rst | ||
ipc.rst | ||
libmpv.rst | ||
lua.rst | ||
mpv.rst | ||
options.rst | ||
osc.rst | ||
vf.rst | ||
vo.rst |