mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
client API: adjust opengl_cb hardware decoding comments
Replace the reprecated --hwdec-preload option. Add a comment about cuvid/cuda decoding.
This commit is contained in:
parent
d303ebd9b6
commit
bdbb3142ec
@ -117,14 +117,17 @@ extern "C" {
|
||||
*
|
||||
* While "normal" mpv loads the OpenGL hardware decoding interop on demand,
|
||||
* this can't be done with opengl_cb for internal technical reasons. Instead,
|
||||
* make it load the interop at load time by setting the "hwdec-preload"="auto"
|
||||
* option before calling mpv_opengl_cb_init_gl().
|
||||
* make it load the interop at load time by setting the
|
||||
* "opengl-hwdec-interop"="auto" option before calling mpv_opengl_cb_init_gl()
|
||||
* ("hwdec-preload" in older mpv releases).
|
||||
*
|
||||
* There may be certain requirements on the OpenGL implementation:
|
||||
* - Windows: ANGLE is required (although in theory GL/DX interop could be used)
|
||||
* - Intel/Linux: EGL is required, and also a glMPGetNativeDisplay() callback
|
||||
* must be provided (see sections below)
|
||||
* - nVidia/Linux: GLX is required
|
||||
* - nVidia/Linux: GLX is required (if you force "cuda", it should work on EGL
|
||||
* as well, if you have recent enough drivers and the
|
||||
* "hwaccel" option is set to "cuda" as well)
|
||||
* - OSX: CGL is required (CGLGetCurrentContext() returning non-NULL)
|
||||
*
|
||||
* Once these things are setup, hardware decoding can be enabled/disabled at
|
||||
|
Loading…
Reference in New Issue
Block a user