| 214 | } |
| 215 | |
| 216 | void ContinuousPageProvider::scheduleDecode(int pageIndex) |
| 217 | { |
| 218 | if (!render || pageIndex < 0 || pageIndex >= numPagesValue) { |
| 219 | return; |
| 220 | } |
| 221 | |
| 222 | const QByteArray rawData = render->getRawPage(pageIndex); |
| 223 | if (rawData.isEmpty()) { |
| 224 | return; // raw bytes not loaded yet; onRawDataReady will retrigger us |
| 225 | } |
| 226 | |
| 227 | pending.insert(pageIndex); |
| 228 | |
| 229 | auto *task = new PageDecodeTask(this, pageIndex, generation, rawData, |
| 230 | rotation, brightnessLevel, contrastLevel, gammaLevel); |
| 231 | decodePool.start(task); |
| 232 | } |
| 233 | |
| 234 | void ContinuousPageProvider::deliverDecodedImage(int pageIndex, quint64 generationValue, QImage decoded) |
| 235 | { |
nothing calls this directly
no test coverage detected