MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / Contains

Method Contains

src/CacheDisk.cpp:148–154  ·  view source on GitHub ↗

Check if frame is already contained in cache

Source from the content-addressed store, hash-verified

146
147// Check if frame is already contained in cache
148bool CacheDisk::Contains(int64_t frame_number) {
149 if (frames.count(frame_number) > 0) {
150 return true;
151 } else {
152 return false;
153 }
154}
155
156// Get a frame from the cache (or NULL shared_ptr if no frame is found)
157std::shared_ptr<Frame> CacheDisk::GetFrame(int64_t frame_number)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected