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

Method processCacheJobInternal

YUViewLib/src/video/VideoCache.cpp:143–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void loadingWorker::processCacheJobInternal()
144{
145 Q_ASSERT_X(currentCacheItem != nullptr, Q_FUNC_INFO, "Invalid Job - Item is nullptr");
146 Q_ASSERT_X(currentFrame >= 0 || !currentCacheItem->properties().isIndexedByFrame(),
147 Q_FUNC_INFO,
148 "Given frame index invalid");
149 DEBUG_JOBS("loadingWorker::processCacheJobInternal");
150
151 // Just cache the frame that was given to us.
152 // This is performed in the thread that this worker is currently placed in.
153 currentCacheItem->cacheFrame(currentFrame, testMode);
154
155 currentCacheItem = nullptr;
156 DEBUG_JOBS("loadingWorker::processCacheJobInternal emit loadingFinished");
157 emit loadingFinished();
158}
159
160void loadingWorker::processLoadingJobInternal(bool playing, bool loadRawData)
161{

Callers

nothing calls this directly

Calls 3

isIndexedByFrameMethod · 0.80
propertiesMethod · 0.80
cacheFrameMethod · 0.45

Tested by

no test coverage detected