MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / popImage

Method popImage

framework/video/smk.cpp:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 Vec2<int> getVideoSize() const override { return this->frame_size; }
79
80 sp<FrameImage> popImage() override
81 {
82 std::lock_guard<std::recursive_mutex> l(this->frame_queue_lock);
83 if (this->image_queue.empty())
84 {
85 if (this->readNextFrame() == false)
86 {
87 return nullptr;
88 }
89 }
90 auto frame = this->image_queue.front();
91 this->image_queue.pop();
92 this->current_frame_video++;
93 return frame;
94 }
95
96 sp<FrameAudio> popAudio() override
97 {

Callers 2

beginMethod · 0.80
renderMethod · 0.80

Calls 3

readNextFrameMethod · 0.95
emptyMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected