]> git.sesse.net Git - kdenlive/blob - testingArea/audioCorrelationInfo.h
Audio alignment works.
[kdenlive] / testingArea / audioCorrelationInfo.h
1 #ifndef AUDIOCORRELATIONINFO_H
2 #define AUDIOCORRELATIONINFO_H
3
4 #include <QImage>
5
6 class AudioCorrelationInfo
7 {
8 public:
9     AudioCorrelationInfo(int mainSize, int subSize);
10     ~AudioCorrelationInfo();
11
12     int size() const;
13     int64_t* correlationVector();
14     int64_t const* correlationVector() const;
15
16     int64_t max() const;
17     void setMax(int64_t max); ///< Can be set to avoid calculating the max again in this function
18
19     int maxIndex() const;
20
21     QImage toImage(int height = 400) const;
22
23 private:
24     int m_mainSize;
25     int m_subSize;
26
27     int64_t *m_correlationVector;
28     int64_t m_max;
29
30 };
31
32 #endif // AUDIOCORRELATIONINFO_H