diff options
author | wm4 <wm4@nowhere> | 2013-11-05 22:06:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-05 22:28:15 +0100 |
commit | db6a4eec0a9a58a342147e526154c46f19e7c303 (patch) | |
tree | 673b058f5423592b2a2297a54f54921f3645e42c /video/out/gl_header_fixes.h | |
parent | 5cca9143abdbf413641dc8a657ca869a9425b5a9 (diff) | |
download | mpv-db6a4eec0a9a58a342147e526154c46f19e7c303.tar.bz2 mpv-db6a4eec0a9a58a342147e526154c46f19e7c303.tar.xz |
vo_opengl: support for vdpau hardware decoding
This uses vdpau OpenGL interop to convert a vdpau surface to a texture.
Note that this is a bit weak and primitive. Deinterlacing (or any other
form of vdpau postprocessing) is not supported. vo_opengl chroma scaling
and chroma sample position are not supported. Internally, the vdpau
video surfaces are converted to a RGBA surface first, because using the
video surfaces directly is too complicated. (These surfaces are always
split into separate fields, and the vo_opengl core expects progressive
frames or frames with weaved fields.)
Diffstat (limited to 'video/out/gl_header_fixes.h')
-rw-r--r-- | video/out/gl_header_fixes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_header_fixes.h b/video/out/gl_header_fixes.h index 9fe1e88036..ffc583cd46 100644 --- a/video/out/gl_header_fixes.h +++ b/video/out/gl_header_fixes.h @@ -249,6 +249,10 @@ #endif #endif +#ifdef GL_NV_vdpau_interop +#define GLvdpauSurfaceNV GLintptr +#endif + #undef MP_GET_GL_WORKAROUNDS #endif |