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

Method init

framework/filter/VideoFilterChain.cpp:193–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool VideoFilterChain::init(int type)
194{
195 auto iter = mVideoFiltersMap.begin();
196 while (iter != mVideoFiltersMap.end()) {
197 std::unique_ptr<IVideoFilter> &filter = iter->second;
198 bool ret = filter->init(type);
199 if (!ret) {
200 //remove init failed filter
201 iter = mVideoFiltersMap.erase(iter);
202 } else {
203 ++iter;
204 }
205 }
206
207 return !mVideoFiltersMap.empty();
208}
209
210bool VideoFilterChain::removeFilter(const std::string &target)
211{

Callers 4

mainFunction · 0.45
setupFilterChainsMethod · 0.45
initFilterMethod · 0.45
mainFunction · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by 2

mainFunction · 0.36
mainFunction · 0.36