| 82 | } |
| 83 | |
| 84 | bool ImageGenericEncoder::processImpl(Entry& sample, int tid) noexcept { |
| 85 | try { |
| 86 | copyToTempBuffers(sample, tid); |
| 87 | bool encode_ret = sample.processor->instance_->encode( |
| 88 | sample.code_stream->getCodeStreamDesc(), sample.getImageDesc(), curr_params_, &sample.status, tid); |
| 89 | |
| 90 | assert(sample.status != NVIMGCODEC_PROCESSING_STATUS_UNKNOWN); |
| 91 | bool encode_success = encode_ret && sample.status == NVIMGCODEC_PROCESSING_STATUS_SUCCESS; |
| 92 | return encode_success; |
| 93 | } catch (const std::exception& e) { |
| 94 | NVIMGCODEC_LOG_ERROR(logger_, "Exception during processImpl: " << e.what()); |
| 95 | sample.status = NVIMGCODEC_PROCESSING_STATUS_FAIL; |
| 96 | return false; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | void ImageGenericEncoder::sortSamples() { |
| 101 | } |
nothing calls this directly
no test coverage detected