comparison data/model/RangeSummarisableTimeValueModel.h @ 1038:cc27f35aa75c cxx11

Introducing the signed 64-bit frame index type, and fixing build failures from inclusion of -Wconversion with -Werror. Not finished yet.
author Chris Cannam
date Tue, 03 Mar 2015 15:18:24 +0000
parents 59e7fe1b1003
children 48e4ffa9fb48
comparison
equal deleted inserted replaced
1037:bf0e5944289b 1038:cc27f35aa75c
72 * If the given block size is not supported by this model 72 * If the given block size is not supported by this model
73 * (according to its zoom constraint), also modify the blockSize 73 * (according to its zoom constraint), also modify the blockSize
74 * parameter so as to return the block size that was actually 74 * parameter so as to return the block size that was actually
75 * obtained. 75 * obtained.
76 */ 76 */
77 virtual void getSummaries(int channel, int start, int count, 77 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count,
78 RangeBlock &ranges, 78 RangeBlock &ranges,
79 int &blockSize) const = 0; 79 int &blockSize) const = 0;
80 80
81 /** 81 /**
82 * Return the range from the given start frame, corresponding to 82 * Return the range from the given start frame, corresponding to
83 * the given number of underlying sample frames, summarised at a 83 * the given number of underlying sample frames, summarised at a
84 * block size equal to the distance between start and end frames. 84 * block size equal to the distance between start and end frames.
85 */ 85 */
86 virtual Range getSummary(int channel, int start, int count) const = 0; 86 virtual Range getSummary(int channel, sv_frame_t start, sv_frame_t count) const = 0;
87 87
88 virtual int getSummaryBlockSize(int desired) const = 0; 88 virtual int getSummaryBlockSize(int desired) const = 0;
89 89
90 QString getTypeName() const { return tr("Range-Summarisable Time-Value"); } 90 QString getTypeName() const { return tr("Range-Summarisable Time-Value"); }
91 }; 91 };