| 80 | } |
| 81 | |
| 82 | void Codec::unregisterParserFactory(const std::string parser_id) { |
| 83 | NVIMGCODEC_LOG_TRACE(logger_, "Codec::unregisterParser"); |
| 84 | for (auto it = parsers_.begin(); it != parsers_.end(); ++it) { |
| 85 | if (it->second->getParserId() == parser_id) { |
| 86 | parsers_.erase(it); |
| 87 | return; |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | void Codec::registerEncoderFactory( |
| 93 | std::unique_ptr<IImageEncoderFactory> encoderFactory, float priority) { |
no test coverage detected