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/context_rpi.c | |
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/context_rpi.c')
-rw-r--r-- | video/out/opengl/context_rpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/context_rpi.c b/video/out/opengl/context_rpi.c index c0ca73335a..5a257a741c 100644 --- a/video/out/opengl/context_rpi.c +++ b/video/out/opengl/context_rpi.c @@ -181,7 +181,7 @@ static int rpi_init(struct MPGLContext *ctx, int flags) VC_RECT_T dst = {.width = w, .height = h}; VC_RECT_T src = {.width = w << 16, .height = h << 16}; VC_DISPMANX_ALPHA_T alpha = { - .flags = DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS, + .flags = DISPMANX_FLAGS_ALPHA_FROM_SOURCE, .opacity = 0xFF, }; p->window = vc_dispmanx_element_add(p->update, p->display, 1, &dst, 0, |