18 using namespace std::chrono_literals;
20 #define DESC QString("Visualiser: ")
28 VisualNode(
short *l,
short *r,
unsigned long n, std::chrono::milliseconds timecode)
29 : m_left(l), m_right(r), m_length(n), m_offset(timecode) { }
37 short *m_left {
nullptr};
38 short *m_right {
nullptr};
56 QPaintDevice* device) = 0;
57 virtual QString
Name(
void) = 0;
59 void add(
const void *b,
unsigned long b_len,
60 std::chrono::milliseconds timecode,
61 int c,
int p)
override;
62 void prepare()
override;
66 void DeleteNodes(
void);
67 std::chrono::milliseconds SetLastUpdate(
void);
70 bool m_needsPrepare {
false };
71 bool m_disabled {
false };
82 : m_nextVideoVisualFactory(g_videoVisualFactory)
84 g_videoVisualFactory =
this;
87 virtual const QString &name(
void)
const = 0;
92 return g_videoVisualFactory;
96 return m_nextVideoVisualFactory;
104 #endif // VIDEOVISUAL_H