MythTV
master
mythtv
libs
libmythtv
visualisations
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
7
static
constexpr
size_t
NUM_SAMPLES
{ 256 };
8
#define FADE_NAME QString("FadeScope")
9
#define SIMPLE_NAME QString("SimpleScope")
10
11
class
VideoVisualMonoScope
:
public
VideoVisual
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
VideoVisualMonoScope::UpdateVertices
bool UpdateVertices(float *Buffer)
Definition:
videovisualmonoscope.cpp:34
NUM_SAMPLES
static constexpr size_t NUM_SAMPLES
Definition:
videovisualmonoscope.h:7
AudioPlayer
Definition:
audioplayer.h:22
VideoVisualMonoScope::m_maxLineWidth
float m_maxLineWidth
Definition:
videovisualmonoscope.h:27
VideoVisualMonoScope::m_lastTime
std::chrono::milliseconds m_lastTime
Definition:
videovisualmonoscope.h:23
VideoVisualMonoScope::m_lineWidth
float m_lineWidth
Definition:
videovisualmonoscope.h:26
Buffer
Definition:
MythExternControl.h:36
VideoVisualMonoScope
Definition:
videovisualmonoscope.h:11
MythRender
Definition:
mythrender_base.h:23
VideoVisualMonoScope::Name
QString Name() override
Definition:
videovisualmonoscope.cpp:20
videovisual.h
VideoVisual
Definition:
videovisual.h:43
VideoVisualMonoScope::m_hue
float m_hue
Definition:
videovisualmonoscope.h:24
VideoVisualMonoScope::m_rate
float m_rate
Definition:
videovisualmonoscope.h:25
VideoVisualMonoScope::m_fade
bool m_fade
Definition:
videovisualmonoscope.h:28
VideoVisualMonoScope::InitCommon
void InitCommon(QRect Area)
Definition:
videovisualmonoscope.cpp:25
VideoVisualMonoScope::UpdateTime
void UpdateTime()
Definition:
videovisualmonoscope.cpp:74
VideoVisualMonoScope::VideoVisualMonoScope
VideoVisualMonoScope(AudioPlayer *Audio, MythRender *Render, bool Fade)
Definition:
videovisualmonoscope.cpp:14
Generated on Mon Nov 25 2024 03:16:13 for MythTV by
1.8.17