Mercurial > hg > sonic-annotator
comparison runner/LabFeatureWriter.h @ 176:59abb58b1855
TransformId is not sufficient -- it could be ambiguous (same transform id, different parameters etc). Use the whole transform
author | Chris Cannam |
---|---|
date | Wed, 15 Oct 2014 17:02:48 +0100 |
parents | 946115b8badd |
children | 704a8b27f3ed |
comparison
equal
deleted
inserted
replaced
175:977b7007071f | 176:59abb58b1855 |
---|---|
55 | 55 |
56 virtual QString getWriterTag() const { return "lab"; } | 56 virtual QString getWriterTag() const { return "lab"; } |
57 | 57 |
58 private: | 58 private: |
59 bool m_forceEnd; | 59 bool m_forceEnd; |
60 | 60 |
61 typedef map<TrackTransformPair, Vamp::Plugin::Feature> PendingFeatures; | 61 typedef pair<QString, Transform> DataId; // track id, transform |
62 typedef map<DataId, Vamp::Plugin::Feature> PendingFeatures; | |
62 PendingFeatures m_pending; | 63 PendingFeatures m_pending; |
63 | 64 |
64 void writeFeature(QTextStream &, | 65 void writeFeature(QTextStream &, |
65 const Vamp::Plugin::Feature &f, | 66 const Vamp::Plugin::Feature &f, |
66 const Vamp::Plugin::Feature *optionalNextFeature); | 67 const Vamp::Plugin::Feature *optionalNextFeature); |