comparison data/model/ImageModel.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
59 bool isOK() const override { return true; } 59 bool isOK() const override { return true; }
60 60
61 sv_frame_t getStartFrame() const override { 61 sv_frame_t getStartFrame() const override {
62 return m_events.getStartFrame(); 62 return m_events.getStartFrame();
63 } 63 }
64 sv_frame_t getEndFrame() const override { 64 sv_frame_t getTrueEndFrame() const override {
65 if (m_events.isEmpty()) return 0; 65 if (m_events.isEmpty()) return 0;
66 sv_frame_t e = m_events.getEndFrame() + 1; 66 sv_frame_t e = m_events.getEndFrame() + 1;
67 if (e % m_resolution == 0) return e; 67 if (e % m_resolution == 0) return e;
68 else return (e / m_resolution + 1) * m_resolution; 68 else return (e / m_resolution + 1) * m_resolution;
69 } 69 }