Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Public Member Functions | |
WaylandEglClientBufferIntegrationPrivate () | |
void | initBuffer (WaylandEglClientBuffer *buffer) |
void | initEglTexture (WaylandEglClientBuffer *buffer, EGLint format) |
bool | ensureContext () |
bool | initEglStream (WaylandEglClientBuffer *buffer, struct ::wl_resource *bufferHandle) |
void | setupBufferAndCleanup (BufferState *bs, QOpenGLTexture *texture, int plane) |
void | handleEglstreamTexture (WaylandEglClientBuffer *buffer, wl_resource *bufferHandle) |
void | registerBuffer (struct ::wl_resource *buffer, BufferState state) |
Static Public Member Functions | |
static WaylandEglClientBufferIntegrationPrivate * | get (WaylandEglClientBufferIntegration *integration) |
Public Attributes | |
EGLDisplay | egl_display = EGL_NO_DISPLAY |
bool | display_bound = false |
::wl_display * | wlDisplay = nullptr |
QOffscreenSurface * | offscreenSurface = nullptr |
QOpenGLContext * | localContext = nullptr |
PFNEGLBINDWAYLANDDISPLAYWL | egl_bind_wayland_display = nullptr |
PFNEGLUNBINDWAYLANDDISPLAYWL | egl_unbind_wayland_display = nullptr |
PFNEGLQUERYWAYLANDBUFFERWL_compat | egl_query_wayland_buffer = nullptr |
PFNEGLCREATEIMAGEKHRPROC | egl_create_image = nullptr |
PFNEGLDESTROYIMAGEKHRPROC | egl_destroy_image = nullptr |
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC | gl_egl_image_target_texture_2d = nullptr |
QEGLStreamConvenience * | funcs = nullptr |
Static Public Attributes | |
static bool | shuttingDown = false |
Definition at line 142 of file waylandeglclientbufferintegration.cpp.
WaylandEglClientBufferIntegrationPrivate::WaylandEglClientBufferIntegrationPrivate | ( | ) |
Definition at line 180 of file waylandeglclientbufferintegration.cpp.
bool WaylandEglClientBufferIntegrationPrivate::ensureContext | ( | ) |
Definition at line 266 of file waylandeglclientbufferintegration.cpp.
References QOffscreenSurface::create(), QOpenGLContext::create(), QOpenGLContext::currentContext(), QOpenGLContext::format(), QOpenGLContext::globalShareContext(), localContext, QOpenGLContext::makeCurrent(), offscreenSurface, QOffscreenSurface::setFormat(), and QOpenGLContext::setShareContext().
Referenced by handleEglstreamTexture().
|
inlinestatic |
Definition at line 171 of file waylandeglclientbufferintegration.cpp.
References QScopedPointer< T, Cleanup >::data(), nullptr, and shuttingDown.
Referenced by WaylandEglClientBuffer::WaylandEglClientBuffer(), WaylandEglClientBuffer::~WaylandEglClientBuffer(), WaylandEglClientBuffer::lockNativeBuffer(), WaylandEglClientBuffer::setCommitted(), WaylandEglClientBuffer::toOpenGlTexture(), and WaylandEglClientBuffer::unlockNativeBuffer().
void WaylandEglClientBufferIntegrationPrivate::handleEglstreamTexture | ( | WaylandEglClientBuffer * | buffer, |
wl_resource * | bufferHandle ) |
Definition at line 384 of file waylandeglclientbufferintegration.cpp.
References QOpenGLTexture::bind(), QOpenGLContext::doneCurrent(), egl_display, EGL_STREAM_STATE_KHR, EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR, ensureContext(), funcs, initEglStream(), localContext, BufferState::ModeUninitialized, Q_FUNC_INFO, qCWarning, QEGLStreamConvenience::query_stream, state, QEGLStreamConvenience::stream_consumer_acquire, and BufferState::textures.
void WaylandEglClientBufferIntegrationPrivate::initBuffer | ( | WaylandEglClientBuffer * | buffer | ) |
Definition at line 184 of file waylandeglclientbufferintegration.cpp.
References egl_display, egl_query_wayland_buffer, and initEglTexture().
bool WaylandEglClientBufferIntegrationPrivate::initEglStream | ( | WaylandEglClientBuffer * | buffer, |
struct ::wl_resource * | bufferHandle ) |
Definition at line 332 of file waylandeglclientbufferintegration.cpp.
References QEGLStreamConvenience::create_stream_attrib_nv, QEGLStreamConvenience::create_stream_from_file_descriptor, QOpenGLContext::currentContext(), QEGLStreamConvenience::destroy_stream, egl_display, egl_error_string(), BufferState::egl_format, EGL_NO_FILE_DESCRIPTOR_KHR, EGL_NO_STREAM_KHR, egl_query_wayland_buffer, EGL_TEXTURE_EXTERNAL_WL, EGL_WAYLAND_BUFFER_WL, EGL_WAYLAND_EGLSTREAM_WL, funcs, GL_TEXTURE_EXTERNAL_OES, Qt::hex(), BufferState::ModeEGLStream, Q_FUNC_INFO, qCDebug, qCWarning, setupBufferAndCleanup(), state, and QEGLStreamConvenience::stream_consumer_gltexture.
Referenced by handleEglstreamTexture().
void WaylandEglClientBufferIntegrationPrivate::initEglTexture | ( | WaylandEglClientBuffer * | buffer, |
EGLint | format ) |
Definition at line 192 of file waylandeglclientbufferintegration.cpp.
References egl_create_image, egl_display, BufferState::egl_format, egl_query_wayland_buffer, EGL_TEXTURE_EXTERNAL_WL, EGL_TEXTURE_RGB, EGL_TEXTURE_RGBA, EGL_TEXTURE_Y_U_V_WL, EGL_TEXTURE_Y_UV_WL, EGL_TEXTURE_Y_XUXV_WL, EGL_WAYLAND_BUFFER_WL, EGL_WAYLAND_PLANE_WL, EGL_WAYLAND_Y_INVERTED_WL, EGLBoolean(), gl_egl_image_target_texture_2d, i, BufferState::ModeEGLImage, qCWarning, ret, and state.
Referenced by initBuffer().
void WaylandEglClientBufferIntegrationPrivate::registerBuffer | ( | struct ::wl_resource * | buffer, |
BufferState | state ) |
void WaylandEglClientBufferIntegrationPrivate::setupBufferAndCleanup | ( | BufferState * | bs, |
QOpenGLTexture * | texture, | ||
int | plane ) |
Definition at line 289 of file waylandeglclientbufferintegration.cpp.
References QOpenGLContext::aboutToBeDestroyed(), QObject::connect(), QOpenGLContext::currentContext(), Qt::DirectConnection, Q_ASSERT, Q_FUNC_INFO, and qCDebug.
Referenced by initEglStream().
bool WaylandEglClientBufferIntegrationPrivate::display_bound = false |
Definition at line 156 of file waylandeglclientbufferintegration.cpp.
PFNEGLBINDWAYLANDDISPLAYWL WaylandEglClientBufferIntegrationPrivate::egl_bind_wayland_display = nullptr |
Definition at line 161 of file waylandeglclientbufferintegration.cpp.
PFNEGLCREATEIMAGEKHRPROC WaylandEglClientBufferIntegrationPrivate::egl_create_image = nullptr |
Definition at line 165 of file waylandeglclientbufferintegration.cpp.
Referenced by initEglTexture().
PFNEGLDESTROYIMAGEKHRPROC WaylandEglClientBufferIntegrationPrivate::egl_destroy_image = nullptr |
Definition at line 166 of file waylandeglclientbufferintegration.cpp.
EGLDisplay WaylandEglClientBufferIntegrationPrivate::egl_display = EGL_NO_DISPLAY |
Definition at line 155 of file waylandeglclientbufferintegration.cpp.
Referenced by handleEglstreamTexture(), initBuffer(), initEglStream(), and initEglTexture().
PFNEGLQUERYWAYLANDBUFFERWL_compat WaylandEglClientBufferIntegrationPrivate::egl_query_wayland_buffer = nullptr |
Definition at line 163 of file waylandeglclientbufferintegration.cpp.
Referenced by initBuffer(), initEglStream(), and initEglTexture().
PFNEGLUNBINDWAYLANDDISPLAYWL WaylandEglClientBufferIntegrationPrivate::egl_unbind_wayland_display = nullptr |
Definition at line 162 of file waylandeglclientbufferintegration.cpp.
QEGLStreamConvenience* WaylandEglClientBufferIntegrationPrivate::funcs = nullptr |
Definition at line 170 of file waylandeglclientbufferintegration.cpp.
Referenced by handleEglstreamTexture(), and initEglStream().
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC WaylandEglClientBufferIntegrationPrivate::gl_egl_image_target_texture_2d = nullptr |
Definition at line 168 of file waylandeglclientbufferintegration.cpp.
Referenced by initEglTexture().
QOpenGLContext* WaylandEglClientBufferIntegrationPrivate::localContext = nullptr |
Definition at line 159 of file waylandeglclientbufferintegration.cpp.
Referenced by ensureContext(), and handleEglstreamTexture().
QOffscreenSurface* WaylandEglClientBufferIntegrationPrivate::offscreenSurface = nullptr |
Definition at line 158 of file waylandeglclientbufferintegration.cpp.
Referenced by ensureContext().
|
static |
Definition at line 175 of file waylandeglclientbufferintegration.cpp.
Referenced by WaylandEglClientBufferIntegration::~WaylandEglClientBufferIntegration(), and get().
::wl_display* WaylandEglClientBufferIntegrationPrivate::wlDisplay = nullptr |
Definition at line 157 of file waylandeglclientbufferintegration.cpp.