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

Method canDecode

external/nvImageCodec/src/image_generic_decoder.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

canProcessImplMethod · 0.45

Calls 2

whatMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected