![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtGui/qcolor.h>#include <QtGui/qimage.h>#include <QtCore/qrect.h>#include <QtCore/qsize.h>#include <QtCore/qvariantmap.h>Go to the source code of this file.
Classes | |
| struct | SyntheticVideoScene |
Functions | |
| void | paintSyntheticVideoScene (QPainter &painter, const SyntheticVideoScene &scene, unsigned tick=0) |
| QImage | renderSyntheticVideoScene (const SyntheticVideoScene &scene, unsigned tick=0) |
| void paintSyntheticVideoScene | ( | QPainter & | painter, |
| const SyntheticVideoScene & | scene, | ||
| unsigned | tick = 0 ) |
Paints scene with painter. tick only matters when scene.animated is set.
Definition at line 63 of file qsyntheticvideoscene.cpp.
|
nodiscard |
Renders scene into a QImage::Format_RGB32 image of scene.frameSize.
Format_RGB32 is deliberate: its in-memory byte order is B,G,R,x on little-endian, identical to SPA_VIDEO_FORMAT_BGRx, so the PipeWire producer can memcpy rows without any conversion.
Definition at line 75 of file qsyntheticvideoscene.cpp.
References QPaintEngine::QPainter.