Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsyntheticvideoscene.cpp File Reference

(94e0c042ed6c1a9a0288ec1aa5194108d6db8a29)

#include "qsyntheticvideoscene_p.h"
#include <QtGui/qpainter.h>
Include dependency graph for qsyntheticvideoscene.cpp:

Go to the source code of this file.

Functions

void paintSyntheticVideoScene (QPainter &painter, const SyntheticVideoScene &scene, unsigned tick)
QImage renderSyntheticVideoScene (const SyntheticVideoScene &scene, unsigned tick)

Function Documentation

◆ paintSyntheticVideoScene()

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.

◆ renderSyntheticVideoScene()

QImage renderSyntheticVideoScene ( const SyntheticVideoScene & scene,
unsigned tick = 0 )
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.

Here is the call graph for this function: