comparison vamp-sdk/hostext/PluginSummarisingAdapter.h @ 176:adfb6348881c

* add getSummaryForAllOutputs
author cannam
date Tue, 05 Aug 2008 15:36:40 +0000
parents 4811fb599a97
children 72bf540da84f
comparison
equal deleted inserted replaced
175:4811fb599a97 176:adfb6348881c
49 { 49 {
50 public: 50 public:
51 PluginSummarisingAdapter(Plugin *plugin); // I take ownership of plugin 51 PluginSummarisingAdapter(Plugin *plugin); // I take ownership of plugin
52 virtual ~PluginSummarisingAdapter(); 52 virtual ~PluginSummarisingAdapter();
53 53
54 //!!! perhaps it should return the summaries as if they were the
55 //!!! original features? if so, it will need to be told in
56 //!!! advance which summaries you want. and that won't work if
57 //!!! you want more than one. so, probably, no.
58
59 //!!! however, it is useful to have results in the same FeatureSet
60 //!!! structure as the original results -- rather than a single
61 //!!! FeatureList. perhaps even useful to get a summary for all
62 //!!! outputs?
63
54 FeatureSet process(const float *const *inputBuffers, RealTime timestamp); 64 FeatureSet process(const float *const *inputBuffers, RealTime timestamp);
55 FeatureSet getRemainingFeatures(); 65 FeatureSet getRemainingFeatures();
56 66
57 typedef std::set<RealTime> SegmentBoundaries; 67 typedef std::set<RealTime> SegmentBoundaries;
58 void setSummarySegmentBoundaries(const SegmentBoundaries &); 68 void setSummarySegmentBoundaries(const SegmentBoundaries &);
67 Variance, 77 Variance,
68 StandardDeviation, 78 StandardDeviation,
69 Count 79 Count
70 }; 80 };
71 81
72 FeatureList getSummary(int output, SummaryType type); 82 FeatureList getSummaryForOutput(int output, SummaryType type);
83 FeatureSet getSummaryForAllOutputs(SummaryType type);
73 84
74 protected: 85 protected:
75 class Impl; 86 class Impl;
76 Impl *m_impl; 87 Impl *m_impl;
77 }; 88 };