![]() |
Qt 6.x
The Qt SDK
|
#include <dmabufserverbufferintegration.h>
Public Member Functions | |
DmaBufServerBuffer (DmaBufServerBufferIntegration *integration, struct ::qt_server_buffer *id, int32_t fd, int32_t width, int32_t height, int32_t stride, int32_t offset, int32_t fourcc_format) | |
~DmaBufServerBuffer () override | |
QOpenGLTexture * | toOpenGlTexture () override |
![]() | |
QWaylandServerBuffer () | |
virtual | ~QWaylandServerBuffer () |
virtual QOpenGLTexture * | toOpenGlTexture ()=0 |
Format | format () const |
QSize | size () const |
void | setUserData (void *userData) |
void * | userData () const |
Additional Inherited Members | |
![]() | |
enum | Format { RGBA32 , A8 , Custom } |
![]() | |
Format | m_format = RGBA32 |
QSize | m_size |
Definition at line 34 of file dmabufserverbufferintegration.h.
DmaBufServerBuffer::DmaBufServerBuffer | ( | DmaBufServerBufferIntegration * | integration, |
struct ::qt_server_buffer * | id, | ||
int32_t | fd, | ||
int32_t | width, | ||
int32_t | height, | ||
int32_t | stride, | ||
int32_t | offset, | ||
int32_t | fourcc_format | ||
) |
Definition at line 17 of file dmabufserverbufferintegration.cpp.
References QtWaylandClient::DmaBufServerBufferIntegration::eglCreateImageKHR(), Qt::hex(), QtWaylandClient::QWaylandServerBuffer::m_size, qCDebug, and qCWarning.
|
override |
Definition at line 56 of file dmabufserverbufferintegration.cpp.
References QtWaylandClient::DmaBufServerBufferIntegration::eglDestroyImageKHR(), Qt::hex(), and qCWarning.
|
overridevirtual |
Implements QtWaylandClient::QWaylandServerBuffer.
Definition at line 65 of file dmabufserverbufferintegration.cpp.
References QOpenGLTexture::bind(), QOpenGLTexture::create(), QOpenGLContext::currentContext(), GL_CLAMP_TO_EDGE, QtWaylandClient::DmaBufServerBufferIntegration::glEGLImageTargetTexture2DOES(), QSize::height(), QtWaylandClient::QWaylandServerBuffer::m_size, qCWarning, QOpenGLTexture::release(), QOpenGLTexture::setSize(), QOpenGLTexture::Target2D, and QSize::width().