MythTV master
videovisualmonoscope.h
Go to the documentation of this file.
1#ifndef VIDEOVISUALMONOSCOPE_H
2#define VIDEOVISUALMONOSCOPE_H
3
4// MythTV
5#include "videovisual.h"
6
7static constexpr size_t NUM_SAMPLES { 256 };
8#define FADE_NAME QString("FadeScope")
9#define SIMPLE_NAME QString("SimpleScope")
10
12{
13 public:
14 VideoVisualMonoScope(AudioPlayer* Audio, MythRender* Render, bool Fade);
15 QString Name() override;
16
17 protected:
18 Q_DISABLE_COPY(VideoVisualMonoScope)
19 void InitCommon (QRect Area);
20 bool UpdateVertices (float* Buffer);
21 void UpdateTime ();
22
23 std::chrono::milliseconds m_lastTime { 0ms };
24 float m_hue { 0.0 };
25 float m_rate { 1.0 };
26 float m_lineWidth { 1.0 };
27 float m_maxLineWidth { 1.0 };
28 bool m_fade { false };
29};
30
31#endif
bool UpdateVertices(float *Buffer)
VideoVisualMonoScope(AudioPlayer *Audio, MythRender *Render, bool Fade)
std::chrono::milliseconds m_lastTime
static constexpr size_t NUM_SAMPLES