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

Method processImpl

external/nvImageCodec/src/image_generic_encoder.cpp:84–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 4

getCodeStreamDescMethod · 0.80
encodeMethod · 0.45
getImageDescMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected