17 using namespace std::chrono_literals;
19 #define DESC QString("Visualiser: ")
27 VisualNode(
short *l,
short *r,
unsigned long n, std::chrono::milliseconds timecode)
28 : m_left(l), m_right(r), m_length(n), m_offset(timecode) { }
36 short *m_left {
nullptr};
37 short *m_right {
nullptr};
55 QPaintDevice* device) = 0;
56 virtual QString
Name(
void) = 0;
58 void add(
const void *b,
unsigned long b_len,
59 std::chrono::milliseconds timecode,
60 int c,
int p)
override;
61 void prepare()
override;
65 void DeleteNodes(
void);
66 std::chrono::milliseconds SetLastUpdate(
void);
69 bool m_needsPrepare {
false };
70 bool m_disabled {
false };
81 : m_nextVideoVisualFactory(g_videoVisualFactory)
83 g_videoVisualFactory =
this;
86 virtual const QString &name(
void)
const = 0;
91 return g_videoVisualFactory;
95 return m_nextVideoVisualFactory;
103 #endif // VIDEOVISUAL_H