MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / pull

Method pull

framework/filter/VideoFilterChain.cpp:147–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147int VideoFilterChain::pull(std::unique_ptr<IAFFrame> &frame)
148{
149 IAFFrame *framePtr = nullptr;
150 if (!mOutPutFrames.empty()) {
151 framePtr = mOutPutFrames.front();
152 mOutPutFrames.pop();
153 }
154
155 if (framePtr == nullptr) {
156 return -1;
157 }
158
159 frame.reset(framePtr);
160 return 0;
161}
162
163bool VideoFilterChain::empty()
164{

Callers 1

pullFramesMethod · 0.45

Calls 4

frontMethod · 0.80
resetMethod · 0.65
emptyMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected