| 156 | } |
| 157 | |
| 158 | bool FilterManager::initFilter(IVideoFilter::Feature feature, int filterType) |
| 159 | { |
| 160 | if (!hasFilter(feature, "")) { |
| 161 | return false; |
| 162 | } |
| 163 | |
| 164 | std::unique_ptr<VideoFilterChain> &targetFilterChain = mFilterChains[feature]; |
| 165 | return targetFilterChain->init(filterType); |
| 166 | } |
| 167 | |
| 168 | bool FilterManager::hasFilter(IVideoFilter::Feature feature, const string &target) |
| 169 | { |