1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-04 06:01:56 +00:00
mpv/video/out/opengl/rpi.h
wm4 2e5df94f0f vo_opengl: vaapi: redo how EGL extensions are loaded
It looks like my hope that we can unconditionally include EGL headers in
the OpenGL code is not coming true, because OSX does not support EGL at
all. So I prefer loading the VAAPI EGL/GL specific extensions manually,
because it's less of a mess. Partially reverts commit d47dff3f.
2015-09-27 16:18:06 +02:00

21 lines
479 B
C

#include <bcm_host.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include "common.h"
struct mp_egl_rpi {
struct mp_log *log;
struct GL *gl;
EGLDisplay egl_display;
EGLContext egl_context;
EGLSurface egl_surface;
// yep, the API keeps a pointer to it
EGL_DISPMANX_WINDOW_T egl_window;
};
int mp_egl_rpi_init(struct mp_egl_rpi *p, DISPMANX_ELEMENT_HANDLE_T window,
int w, int h);
void mp_egl_rpi_destroy(struct mp_egl_rpi *p);