| 67 | } |
| 68 | |
| 69 | void ImageGenericDecoder::canDecode(const std::vector<ICodeStream*>& code_streams, const std::vector<IImage*>& images, |
| 70 | const nvimgcodecDecodeParams_t* params, nvimgcodecProcessingStatus_t* processing_status, int force_format) noexcept { |
| 71 | try { |
| 72 | curr_params_ = params; |
| 73 | canProcess(code_streams, images, processing_status, force_format); |
| 74 | } catch (const std::exception& e) { |
| 75 | NVIMGCODEC_LOG_ERROR(logger_, "Exception during canDecode: " << e.what()); |
| 76 | std::fill(processing_status, processing_status + code_streams.size(), NVIMGCODEC_PROCESSING_STATUS_FAIL); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | ProcessingResultsPromise::FutureImpl ImageGenericDecoder::decode( |
| 81 | const std::vector<ICodeStream*>& code_streams, const std::vector<IImage*>& images, const nvimgcodecDecodeParams_t* params) noexcept { |
no test coverage detected