| 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 { |
nothing calls this directly
no test coverage detected