MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / ReleaseImage

Method ReleaseImage

Engine/TrackerFrameAccessor.cpp:448–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446
447
448void
449TrackerFrameAccessor::ReleaseImage(Key key)
450{
451 MvFloatImage* imgKey = (MvFloatImage*)key;
452 QMutexLocker k(&_imp->cacheMutex);
453
454 for (FrameAccessorCache::iterator it = _imp->cache.begin(); it != _imp->cache.end(); ++it) {
455 if (it->second.image.get() == imgKey) {
456 --it->second.referenceCount;
457 if (!it->second.referenceCount) {
458 _imp->cache.erase(it);
459
460 return;
461 }
462 }
463 }
464}
465
466/*
467 * @brief This is called by LibMV to retrieve an the mask, which is always defined in the reference frame.

Callers 1

TrackMarkerMethod · 0.80

Calls 4

beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected