MCPcopy Create free account
hub / github.com/IENT/YUView / processLoadingJobInternal

Method processLoadingJobInternal

YUViewLib/src/video/VideoCache.cpp:160–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void loadingWorker::processLoadingJobInternal(bool playing, bool loadRawData)
161{
162 Q_ASSERT_X(currentCacheItem != nullptr, Q_FUNC_INFO, "The set job is nullptr");
163 Q_ASSERT_X((!currentCacheItem->properties().isIndexedByFrame() || currentFrame >= 0),
164 Q_FUNC_INFO,
165 "The set frame index is invalid");
166 Q_ASSERT_X(
167 !currentCacheItem->taggedForDeletion(), Q_FUNC_INFO, "The set job was tagged for deletion");
168 DEBUG_JOBS(Q_FUNC_INFO);
169
170 // Load the frame of the item that was given to us.
171 // This is performed in the thread (the loading thread with higher priority.
172 currentCacheItem->loadFrame(currentFrame, playing, loadRawData);
173
174 currentCacheItem = nullptr;
175 emit loadingFinished();
176 DEBUG_JOBS("loadingWorker::processLoadingJobInternal emit loadingFinished");
177}
178
179/// -------------------------- VideoCache::loadingThread --------------------
180

Callers

nothing calls this directly

Calls 4

isIndexedByFrameMethod · 0.80
propertiesMethod · 0.80
taggedForDeletionMethod · 0.80
loadFrameMethod · 0.45

Tested by

no test coverage detected