diff options
author | wm4 <wm4@nowhere> | 2016-09-12 15:08:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-12 19:58:58 +0200 |
commit | 274e71ee8b774d6c9c69929a548a83c343202be1 (patch) | |
tree | 1176b9933fb04d730e0eeec4bcb3bc024725d618 /video/out/opengl/common.h | |
parent | 343f5ca24beeddc69f49d43448acc05b982176ad (diff) | |
download | mpv-274e71ee8b774d6c9c69929a548a83c343202be1.tar.bz2 mpv-274e71ee8b774d6c9c69929a548a83c343202be1.tar.xz |
vo_opengl: add hw overlay support and use it for RPI
This overlay support specifically skips the OpenGL rendering chain, and
uses GL rendering only for OSD/subtitles. This is for devices which
don't have performant GL support.
hwdec_rpi.c contains code ported from vo_rpi.c. vo_rpi.c is going to be
deprecated. I left in the code for uploading sw surfaces (as it might
be slightly more efficient for rendering sw decoded video), although
it's dead code for now.
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r-- | video/out/opengl/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h index e3ebd66c41..5abe839b8d 100644 --- a/video/out/opengl/common.h +++ b/video/out/opengl/common.h @@ -120,6 +120,7 @@ struct GL { void (GLAPIENTRY *DrawArrays)(GLenum, GLint, GLsizei); GLenum (GLAPIENTRY *GetError)(void); void (GLAPIENTRY *GetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *); + void (GLAPIENTRY *Scissor)(GLint, GLint, GLsizei, GLsizei); void (GLAPIENTRY *GenBuffers)(GLsizei, GLuint *); void (GLAPIENTRY *DeleteBuffers)(GLsizei, const GLuint *); |