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

Method canProcessImpl

external/nvImageCodec/src/image_generic_encoder.cpp:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 nvimgcodecProcessingStatus_t ImageGenericEncoder::canProcessImpl(Entry& sample, ProcessorEntry* processor, int tid) noexcept {
70 NVIMGCODEC_LOG_TRACE(this->logger_, tid << ": " << sample.processor->id_ << " canEncode #" << sample.sample_idx);
71 nvimgcodecProcessingStatus_t status;
72 try {
73 sample.processor->instance_->canEncode(
74 sample.code_stream->getCodeStreamDesc(), sample.getImageDesc(), curr_params_, &status, tid);
75 NVIMGCODEC_LOG_DEBUG(
76 this->logger_, tid << ": " << sample.processor->id_ << " canEncode #" << sample.sample_idx << " returned " << status);
77 return status;
78 } catch (const std::exception& e) {
79 NVIMGCODEC_LOG_ERROR(logger_, "Exception during canEncode: " << e.what());
80 return NVIMGCODEC_PROCESSING_STATUS_FAIL;
81 }
82 }
83
84 bool ImageGenericEncoder::processImpl(Entry& sample, int tid) noexcept {
85 try {

Callers

nothing calls this directly

Calls 4

getCodeStreamDescMethod · 0.80
canEncodeMethod · 0.45
getImageDescMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected