MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / getFrame

Method getFrame

Source/Node/VideoNode.cpp:246–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 }
245
246 std::optional<std::vector<uint32_t>> getFrame() {
247 std::scoped_lock<std::mutex> lock(buffersMutex);
248 if (frameBuffers.empty()) {
249 return std::nullopt;
250 }
251 auto front = std::move(frameBuffers.front());
252 frameBuffers.pop_front();
253 return front;
254 }
255
256 void processVideoFrame() {
257 if (!decoderStorage) return;

Callers 1

updateTextureMethod · 0.45

Calls 4

moveFunction · 0.85
emptyMethod · 0.45
frontMethod · 0.45
pop_frontMethod · 0.45

Tested by

no test coverage detected