diff options
author | wm4 <wm4@nowhere> | 2015-11-17 21:07:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-17 21:21:19 +0100 |
commit | 0ec35fa111391b8069640ba2f616746a1b5530a5 (patch) | |
tree | e5356e8ab396e1c370a7784843f3101d3195469f /video/out/vo_opengl.c | |
parent | 25fe9e89e7db1658acac84ec8ac0a292b2e86165 (diff) | |
download | mpv-0ec35fa111391b8069640ba2f616746a1b5530a5.tar.bz2 mpv-0ec35fa111391b8069640ba2f616746a1b5530a5.tar.xz |
videotoolbox: make decoder format customizable
Because apparently there's no ideal universally working format.
The weird OpenGL texture format for kCVPixelFormatType_32BGRA is from:
http://stackoverflow.com/questions/22077544/draw-an-iosurface-to-an-opengl-context
(Which apparently got it from the linked Apple example code.)
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 23a22a3f7e..1147aba79a 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -205,7 +205,7 @@ static void request_hwdec_api(struct gl_priv *p, const char *api_name) if (p->hwdec) return; - p->hwdec = gl_hwdec_load_api(p->vo->log, p->gl, api_name); + p->hwdec = gl_hwdec_load_api(p->vo->log, p->gl, p->vo->global, api_name); gl_video_set_hwdec(p->renderer, p->hwdec); if (p->hwdec) p->hwdec_info.hwctx = p->hwdec->hwctx; @@ -439,7 +439,7 @@ static int preinit(struct vo *vo) if (hwdec == HWDEC_NONE) hwdec = vo->global->opts->hwdec_api; if (hwdec != HWDEC_NONE) { - p->hwdec = gl_hwdec_load_api_id(p->vo->log, p->gl, hwdec); + p->hwdec = gl_hwdec_load_api_id(p->vo->log, p->gl, vo->global, hwdec); gl_video_set_hwdec(p->renderer, p->hwdec); if (p->hwdec) p->hwdec_info.hwctx = p->hwdec->hwctx; |