Go to the documentation of this file.
11 factory; factory = factory->
next())
13 if (factory->SupportedRenderer(
type))
14 result << factory->name();
23 if (!audio || !render || name.isEmpty())
27 factory; factory = factory->
next())
30 return factory->
Create(audio, render);
31 if (factory->name() == name)
32 return factory->
Create(audio, render);
40 m_lastUpdate(QDateTime::currentDateTimeUtc())
59 QDateTime now = QDateTime::currentDateTimeUtc();
60 auto result = std::chrono::milliseconds(
m_lastUpdate.time().msecsTo(now.time()));
87 if (
m_nodes.front()->m_offset > timestamp)
101 short *l,
short *r,
const float *s,
unsigned long cnt)
103 const float f((1 << 15) - 1);
106 *l++ = short(f * *s++);
107 *r++ = short(f * *s++);
113 short *l,
const float *s,
unsigned long cnt)
115 const float f((1 << 15) - 1);
117 *l++ = short(f * *s++);
122 std::chrono::milliseconds timecode,
127 LOG(VB_GENERAL, LOG_ERR,
DESC +
128 QString(
"Over 500 nodes buffered - disabling visualiser."));
void addVisual(MythTV::Visual *vis)
static VideoVisualFactory * VideoVisualFactories()
static void mono16_from_monopcm8(short *l, const uchar *c, long cnt)
static VideoVisualFactory * g_videoVisualFactory
static void mono16_from_monofloat32(short *l, const float *s, unsigned long cnt)
static VideoVisual * Create(const QString &name, AudioPlayer *audio, MythRender *render)
QList< VisualNode * > m_nodes
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
static void stereo16_from_stereofloat32(short *l, short *r, const float *s, unsigned long cnt)
static void mono16_from_monopcm16(short *l, const short *s, long cnt)
VideoVisualFactory * next() const
static void stereo16_from_stereopcm16(short *l, short *r, const short *s, long cnt)
static QStringList GetVisualiserList(RenderType type)
void removeVisual(MythTV::Visual *vis)
static void stereo16_from_stereopcm8(short *l, short *r, const uchar *c, long cnt)
void add(const void *b, unsigned long b_len, std::chrono::milliseconds timecode, int c, int p) override
VisualNode * GetNode(void)
std::chrono::milliseconds GetAudioTime(void)
std::chrono::milliseconds SetLastUpdate(void)
VideoVisual(AudioPlayer *audio, MythRender *render)