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 | |
WaylandEglStreamClientBufferIntegrationPrivate ()=default | |
bool | ensureContext () |
bool | initEglStream (WaylandEglStreamClientBuffer *buffer, struct ::wl_resource *bufferHandle) |
void | setupBufferAndCleanup (BufferState *bs, QOpenGLTexture *texture, int plane) |
void | handleEglstreamTexture (WaylandEglStreamClientBuffer *buffer) |
Static Public Member Functions | |
static WaylandEglStreamClientBufferIntegrationPrivate * | get (WaylandEglStreamClientBufferIntegration *integration) |
Public Attributes | |
EGLDisplay | egl_display = EGL_NO_DISPLAY |
bool | display_bound = false |
::wl_display * | wlDisplay = nullptr |
QOffscreenSurface * | offscreenSurface = nullptr |
QOpenGLContext * | localContext = nullptr |
WaylandEglStreamController * | eglStreamController = nullptr |
PFNEGLBINDWAYLANDDISPLAYWL | egl_bind_wayland_display = nullptr |
PFNEGLUNBINDWAYLANDDISPLAYWL | egl_unbind_wayland_display = nullptr |
PFNEGLQUERYWAYLANDBUFFERWL_compat | egl_query_wayland_buffer = nullptr |
QEGLStreamConvenience * | funcs = nullptr |
Static Public Attributes | |
static bool | shuttingDown = false |
Definition at line 125 of file waylandeglstreamintegration.cpp.
|
default |
bool WaylandEglStreamClientBufferIntegrationPrivate::ensureContext | ( | ) |
Definition at line 157 of file waylandeglstreamintegration.cpp.
References QOffscreenSurface::create(), QOpenGLContext::create(), QOpenGLContext::currentContext(), QOpenGLContext::format(), QOpenGLContext::globalShareContext(), localContext, QOpenGLContext::makeCurrent(), offscreenSurface, QOffscreenSurface::setFormat(), and QOpenGLContext::setShareContext().
Referenced by handleEglstreamTexture(), and initEglStream().
|
inlinestatic |
Definition at line 148 of file waylandeglstreamintegration.cpp.
References QScopedPointer< T, Cleanup >::data(), nullptr, and shuttingDown.
Referenced by WaylandEglStreamClientBuffer::~WaylandEglStreamClientBuffer(), and WaylandEglStreamClientBuffer::setCommitted().
void WaylandEglStreamClientBufferIntegrationPrivate::handleEglstreamTexture | ( | WaylandEglStreamClientBuffer * | buffer | ) |
Definition at line 271 of file waylandeglstreamintegration.cpp.
References QOpenGLTexture::bind(), QOpenGLContext::doneCurrent(), egl_display, EGL_STREAM_STATE_KHR, EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR, ensureContext(), funcs, localContext, Q_FUNC_INFO, QEGLStreamConvenience::query_stream, qWarning, state, QEGLStreamConvenience::stream_consumer_acquire, and BufferState::textures.
bool WaylandEglStreamClientBufferIntegrationPrivate::initEglStream | ( | WaylandEglStreamClientBuffer * | buffer, |
struct ::wl_resource * | bufferHandle ) |
Definition at line 223 of file waylandeglstreamintegration.cpp.
References QEGLStreamConvenience::create_stream_attrib_nv, QEGLStreamConvenience::create_stream_from_file_descriptor, QOpenGLContext::currentContext(), QEGLStreamConvenience::destroy_stream, QOpenGLContext::doneCurrent(), 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, ensureContext(), funcs, GL_TEXTURE_EXTERNAL_OES, Qt::hex(), localContext, Q_ASSERT, Q_FUNC_INFO, qWarning, setupBufferAndCleanup(), state, and QEGLStreamConvenience::stream_consumer_gltexture.
void WaylandEglStreamClientBufferIntegrationPrivate::setupBufferAndCleanup | ( | BufferState * | bs, |
QOpenGLTexture * | texture, | ||
int | plane ) |
Definition at line 180 of file waylandeglstreamintegration.cpp.
References QOpenGLContext::aboutToBeDestroyed(), QObject::connect(), QOpenGLContext::currentContext(), Qt::DirectConnection, Q_ASSERT, Q_FUNC_INFO, and qCDebug.
Referenced by initEglStream().
bool WaylandEglStreamClientBufferIntegrationPrivate::display_bound = false |
Definition at line 136 of file waylandeglstreamintegration.cpp.
PFNEGLBINDWAYLANDDISPLAYWL WaylandEglStreamClientBufferIntegrationPrivate::egl_bind_wayland_display = nullptr |
Definition at line 143 of file waylandeglstreamintegration.cpp.
EGLDisplay WaylandEglStreamClientBufferIntegrationPrivate::egl_display = EGL_NO_DISPLAY |
Definition at line 135 of file waylandeglstreamintegration.cpp.
Referenced by handleEglstreamTexture(), and initEglStream().
PFNEGLQUERYWAYLANDBUFFERWL_compat WaylandEglStreamClientBufferIntegrationPrivate::egl_query_wayland_buffer = nullptr |
Definition at line 145 of file waylandeglstreamintegration.cpp.
Referenced by initEglStream().
PFNEGLUNBINDWAYLANDDISPLAYWL WaylandEglStreamClientBufferIntegrationPrivate::egl_unbind_wayland_display = nullptr |
Definition at line 144 of file waylandeglstreamintegration.cpp.
WaylandEglStreamController* WaylandEglStreamClientBufferIntegrationPrivate::eglStreamController = nullptr |
Definition at line 141 of file waylandeglstreamintegration.cpp.
QEGLStreamConvenience* WaylandEglStreamClientBufferIntegrationPrivate::funcs = nullptr |
Definition at line 147 of file waylandeglstreamintegration.cpp.
Referenced by handleEglstreamTexture(), and initEglStream().
QOpenGLContext* WaylandEglStreamClientBufferIntegrationPrivate::localContext = nullptr |
Definition at line 139 of file waylandeglstreamintegration.cpp.
Referenced by ensureContext(), handleEglstreamTexture(), and initEglStream().
QOffscreenSurface* WaylandEglStreamClientBufferIntegrationPrivate::offscreenSurface = nullptr |
Definition at line 138 of file waylandeglstreamintegration.cpp.
Referenced by ensureContext().
|
static |
Definition at line 152 of file waylandeglstreamintegration.cpp.
Referenced by WaylandEglStreamClientBufferIntegration::~WaylandEglStreamClientBufferIntegration(), and get().
::wl_display* WaylandEglStreamClientBufferIntegrationPrivate::wlDisplay = nullptr |
Definition at line 137 of file waylandeglstreamintegration.cpp.