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>.
Loading...
Searching...
No Matches
LinuxDmabufWlBuffer Class Reference

#include <linuxdmabuf.h>

+ Inheritance diagram for LinuxDmabufWlBuffer:
+ Collaboration diagram for LinuxDmabufWlBuffer:

Public Member Functions

 LinuxDmabufWlBuffer (::wl_client *client, LinuxDmabufClientBufferIntegration *clientBufferIntegration, uint id=0)
 
 ~LinuxDmabufWlBuffer () override
 
void initImage (uint32_t plane, EGLImageKHR image)
 
void initTexture (uint32_t plane, QOpenGLTexture *texture)
 
QSize size () const
 
uint32_t flags () const
 
uint32_t drmFormat () const
 
Planeplane (uint index)
 
uint32_t planesNumber () const
 
EGLImageKHR image (uint32_t plane)
 
QOpenGLTexturetexture (uint32_t plane) const
 
void buffer_destroy_resource (Resource *resource) override
 

Static Public Attributes

static const uint32_t MaxDmabufPlanes = 4
 

Private Member Functions

void buffer_destroy (Resource *resource) override
 

Friends

class LinuxDmabufParams
 

Detailed Description

Definition at line 100 of file linuxdmabuf.h.

Constructor & Destructor Documentation

◆ LinuxDmabufWlBuffer()

LinuxDmabufWlBuffer::LinuxDmabufWlBuffer ( ::wl_client * client,
LinuxDmabufClientBufferIntegration * clientBufferIntegration,
uint id = 0 )
explicit

Definition at line 246 of file linuxdmabuf.cpp.

◆ ~LinuxDmabufWlBuffer()

LinuxDmabufWlBuffer::~LinuxDmabufWlBuffer ( )
override

Definition at line 252 of file linuxdmabuf.cpp.

References buffer_destroy(), and LinuxDmabufClientBufferIntegration::removeBuffer().

+ Here is the call graph for this function:

Member Function Documentation

◆ buffer_destroy()

void LinuxDmabufWlBuffer::buffer_destroy ( Resource * resource)
overrideprivate

Definition at line 258 of file linuxdmabuf.cpp.

References QMetaObject::Connection(), LinuxDmabufClientBufferIntegration::deleteImage(), QObject::disconnect(), i, QtWayland::QWaylandTextureOrphanage::instance(), and Q_UNUSED.

Referenced by ~LinuxDmabufWlBuffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buffer_destroy_resource()

void LinuxDmabufWlBuffer::buffer_destroy_resource ( Resource * resource)
override

Definition at line 329 of file linuxdmabuf.cpp.

References Q_UNUSED.

◆ drmFormat()

uint32_t LinuxDmabufWlBuffer::drmFormat ( ) const
inline

Definition at line 110 of file linuxdmabuf.h.

Referenced by LinuxDmabufClientBuffer::bufferFormatEgl(), and LinuxDmabufClientBuffer::toOpenGlTexture().

+ Here is the caller graph for this function:

◆ flags()

uint32_t LinuxDmabufWlBuffer::flags ( ) const
inline

Definition at line 109 of file linuxdmabuf.h.

Referenced by LinuxDmabufClientBuffer::origin().

+ Here is the caller graph for this function:

◆ image()

EGLImageKHR LinuxDmabufWlBuffer::image ( uint32_t plane)
inline

Definition at line 113 of file linuxdmabuf.h.

References plane().

Referenced by LinuxDmabufClientBuffer::toOpenGlTexture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initImage()

void LinuxDmabufWlBuffer::initImage ( uint32_t plane,
EGLImageKHR image )

Definition at line 284 of file linuxdmabuf.cpp.

References plane(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ initTexture()

void LinuxDmabufWlBuffer::initTexture ( uint32_t plane,
QOpenGLTexture * texture )

Definition at line 291 of file linuxdmabuf.cpp.

References QOpenGLContext::aboutToBeDestroyed(), QObject::connect(), QMetaObject::Connection(), QOpenGLContext::currentContext(), Qt::DirectConnection, QObject::disconnect(), plane(), Q_ASSERT, Q_FUNC_INFO, and qCDebug.

Referenced by LinuxDmabufClientBuffer::toOpenGlTexture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ plane()

Plane & LinuxDmabufWlBuffer::plane ( uint index)
inline

Definition at line 111 of file linuxdmabuf.h.

Referenced by image(), initImage(), initTexture(), and texture().

+ Here is the caller graph for this function:

◆ planesNumber()

uint32_t LinuxDmabufWlBuffer::planesNumber ( ) const
inline

Definition at line 112 of file linuxdmabuf.h.

◆ size()

QSize LinuxDmabufWlBuffer::size ( ) const
inline

Definition at line 108 of file linuxdmabuf.h.

Referenced by LinuxDmabufClientBuffer::size(), and LinuxDmabufClientBuffer::toOpenGlTexture().

+ Here is the caller graph for this function:

◆ texture()

QOpenGLTexture * LinuxDmabufWlBuffer::texture ( uint32_t plane) const
inline

Definition at line 114 of file linuxdmabuf.h.

References plane().

Referenced by LinuxDmabufClientBuffer::toOpenGlTexture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ LinuxDmabufParams

friend class LinuxDmabufParams
friend

Definition at line 135 of file linuxdmabuf.h.

Member Data Documentation

◆ MaxDmabufPlanes

const uint32_t LinuxDmabufWlBuffer::MaxDmabufPlanes = 4
static

Definition at line 117 of file linuxdmabuf.h.

Referenced by LinuxDmabufParams::zwp_linux_buffer_params_v1_add().


The documentation for this class was generated from the following files: