comparison data/model/RegionModel.h @ 1725:78fe29adfd16

Re-implement extendEndFrame behaviour, used by Tony application
author Chris Cannam
date Wed, 19 Jun 2019 13:32:52 +0100
parents 73077ec5aed6
children 9d82b164f264
comparison
equal deleted inserted replaced
1724:157c62ff0056 1725:78fe29adfd16
81 bool isOK() const override { return true; } 81 bool isOK() const override { return true; }
82 82
83 sv_frame_t getStartFrame() const override { 83 sv_frame_t getStartFrame() const override {
84 return m_events.getStartFrame(); 84 return m_events.getStartFrame();
85 } 85 }
86 sv_frame_t getEndFrame() const override { 86 sv_frame_t getTrueEndFrame() const override {
87 if (m_events.isEmpty()) return 0; 87 if (m_events.isEmpty()) return 0;
88 sv_frame_t e = m_events.getEndFrame(); 88 sv_frame_t e = m_events.getEndFrame();
89 if (e % m_resolution == 0) return e; 89 if (e % m_resolution == 0) return e;
90 else return (e / m_resolution + 1) * m_resolution; 90 else return (e / m_resolution + 1) * m_resolution;
91 } 91 }