static VADisplay *create_wayland_va_display(GL *gl) { struct wl_display *wl = gl->MPGetNativeDisplay("wl"); return wl ? vaGetDisplayWl(wl) : NULL; }
VADisplay GetVADisplay() override { return vaGetDisplayWl(dpy); };
void WAYLAND::VAAPIRegisterRender(CVaapiProxy *winSystem, bool &general, bool &deepColor) { EGLDisplay eglDpy = winSystem->eglDisplay; VADisplay vaDpy = vaGetDisplayWl(winSystem->dpy); CRendererVAAPI::Register(winSystem, vaDpy, eglDpy, general, deepColor); }
static VADisplay *create_wayland_va_display(struct ra *ra) { struct wl_display *wl = ra_get_native_resource(ra, "wl"); return wl ? vaGetDisplayWl(wl) : NULL; }