PipeWireFrameCleanupFunction
PipeWireFrameCleanupFunction Class Reference
Public Member Functions | |
PipeWireFrameCleanupFunction (std::function< void()> cleanup) | |
void | ref () |
Static Public Member Functions | |
static void | unref (void *x) |
Detailed Description
The to track the lifetime of a pipewire frame.
It is used to have a ref-counted class that will call the cleanup function when it's left with no references. This is useful so that it can be passed to QImage() if necessary without having to track if the QImage itself outlives the buffer.
Definition at line 24 of file pwhelpers.h.
Constructor & Destructor Documentation
◆ PipeWireFrameCleanupFunction()
|
inline |
Definition at line 28 of file pwhelpers.h.
Member Function Documentation
◆ ref()
|
inline |
Definition at line 34 of file pwhelpers.h.
◆ unref()
|
inlinestatic |
Definition at line 38 of file pwhelpers.h.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.