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

Method Add

tests/VideoCacheThread.cpp:364–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 InterruptingCache(int64_t maxb, TestableVideoCacheThread* t)
363 : CacheMemory(maxb), tcb(t) {}
364 void Add(std::shared_ptr<openshot::Frame> frame) override {
365 int64_t idx = frame->number; // use public member 'number'
366 CacheMemory::Add(frame);
367 if (idx == 23) {
368 tcb->forceUserSeekFlag();
369 }
370 }
371 } interruptingCache(/*max_bytes=*/100000000, &thread);
372
373 bool wasFull = thread.prefetchWindow(&interruptingCache,

Callers 7

Clip.cppFile · 0.45
FFmpegReader.cppFile · 0.45
CacheMemory.cppFile · 0.45
CacheDisk.cppFile · 0.45
DummyReader.cppFile · 0.45
FrameMapper.cppFile · 0.45

Calls 1

forceUserSeekFlagMethod · 0.80

Tested by

no test coverage detected