4#ifndef FRAMEGENERATOR_H
5#define FRAMEGENERATOR_H
18#include <QtCore/qobject.h>
19#include <QtCore/qlist.h>
20#include <QtMultimedia/qvideoframe.h>
21#include <QtMultimedia/qaudiobuffer.h>
22#include <private/audiogenerationutils_p.h>
29enum class ImagePattern
59 ImagePattern m_pattern = ImagePattern::SingleColor;
60 QSize m_size{ 640, 480 };
62 std::optional<
int> m_maxFrameCount;
64 std::optional<
double> m_frameRate;
65 std::optional<std::chrono::milliseconds> m_period;
66 std::optional<QtVideo::Rotation> m_presentationRotation;
67 std::optional<
bool> m_presentationMirrored;
68 bool m_emitEmptyFrameOnStop =
false;
QVideoFrame createFrame()
void setPeriod(std::chrono::milliseconds period)
void emitEmptyFrameOnStop()
void setPresentationMirrored(bool mirror)
void frameCreated(const QVideoFrame &frame)
void setFrameCount(int count)
void setFrameRate(double rate)
void setPresentationRotation(QtVideo::Rotation rotation)
void setPixelFormat(QVideoFrameFormat::PixelFormat pixelFormat)
static void fillColoredSquares(QImage &image)
Combined button and popup list for selecting options.