diff options
author | wm4 <wm4@nowhere> | 2013-11-04 00:02:21 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-04 00:11:43 +0100 |
commit | 2d58fb3b8e7e87a939220f50a51294f8efdc51e1 (patch) | |
tree | fa8eae8b6a759dea1bd086834071521a8781315b /video/out/gl_common.h | |
parent | 571e697a7c557d10bcc9130915c431829981d877 (diff) | |
download | mpv-2d58fb3b8e7e87a939220f50a51294f8efdc51e1.tar.bz2 mpv-2d58fb3b8e7e87a939220f50a51294f8efdc51e1.tar.xz |
vo_opengl: add support for VA-API OpenGL interop
VA-API's OpenGL/GLX interop is pretty bad and perhaps slow (renders a
X11 pixmap into a FBO, and has to go over X11, probably involves one or
more copies), and this code serves more as an example, rather than for
serious use. On the other hand, this might be work much better than
vo_vaapi, even if slightly slower.
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r-- | video/out/gl_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h index d8d07de06a..8d318a7c1f 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -185,6 +185,7 @@ struct gl_hwdec_driver { // Test whether the given IMGFMT_ is supported. bool (*query_format)(int imgfmt); // Create the hwdec device. It must fill in hw->info, if applicable. + // This also must set hw->converted_imgfmt. int (*create)(struct gl_hwdec *hw); // Prepare for rendering video. (E.g. create textures.) // Called on initialization, and every time the video size changes. |