| 409 | } |
| 410 | |
| 411 | nvimgcodecStatus_t PluginFramework::unregisterParser(const nvimgcodecParserDesc_t* desc) { |
| 412 | NVIMGCODEC_LOG_INFO(logger_, "Framework is unregistering parser (id:" << desc->id << " codec:" << desc->codec << ")"); |
| 413 | ICodec* codec = codec_registry_->getCodecByName(desc->codec); |
| 414 | if (codec == nullptr) { |
| 415 | NVIMGCODEC_LOG_WARNING(logger_, "Codec " << desc->codec << " not registered"); |
| 416 | return NVIMGCODEC_STATUS_INVALID_PARAMETER; |
| 417 | } |
| 418 | codec->unregisterParserFactory(desc->id); |
| 419 | return NVIMGCODEC_STATUS_SUCCESS; |
| 420 | } |
| 421 | |
| 422 | nvimgcodecStatus_t PluginFramework::log(const nvimgcodecDebugMessageSeverity_t message_severity, |
| 423 | const nvimgcodecDebugMessageCategory_t message_category, const nvimgcodecDebugMessageData_t* data) { |
no test coverage detected