MCPcopy Create free account
hub / github.com/YACReader/yacreader / scheduleDecode

Method scheduleDecode

YACReader/continuous_page_provider.cpp:216–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void 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
234void ContinuousPageProvider::deliverDecodedImage(int pageIndex, quint64 generationValue, QImage decoded)
235{

Callers

nothing calls this directly

Calls 4

isEmptyMethod · 0.80
startMethod · 0.80
getRawPageMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected