waveforms: moved waveform to track rather than block

This is a much more robust and thread-safe system of storing the waveforms.
This commit is contained in:
itsmattkc
2020-06-04 18:03:21 +10:00
parent 9ff9817b95
commit 0e87762afa
19 changed files with 184 additions and 336 deletions
+9
View File
@@ -73,6 +73,11 @@ public:
copy_map_ = copy_map;
}
void SetGeneratePreviews(bool e)
{
generate_previews_ = e;
}
/**
* @brief Return a unique ID for the image generated at this time
*
@@ -127,6 +132,8 @@ signals:
void FinishedJob();
void WaveformGenerated(const OLIVE_NAMESPACE::TrackOutput* track, const OLIVE_NAMESPACE::AudioVisualWaveform& samples, const OLIVE_NAMESPACE::rational& start);
private:
NodeValue GetDataFromStream(StreamPtr stream, const TimeRange& input_time);
@@ -157,6 +164,8 @@ private:
bool audio_mode_is_preview_;
bool generate_previews_;
QHash<Node*, Node*>* copy_map_;
};