MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / unregisterParserFactory

Method unregisterParserFactory

external/nvImageCodec/src/codec.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 1

unregisterParserMethod · 0.80

Calls 4

beginMethod · 0.45
endMethod · 0.45
getParserIdMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected