MCPcopy Create free account
hub / github.com/NVIDIA/DALI / ReturnDecoder

Method ReturnDecoder

dali/operators/video/frames_decoder_gpu.cc:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 void ReturnDecoder(DecInstance *decoder) {
99 std::unique_lock lock(access_lock);
100 auto range = dec_cache.equal_range(decoder->codec_type);
101 for (auto it = range.first; it != range.second; ++it) {
102 if (&it->second == decoder) {
103 it->second.used = false;
104 return;
105 }
106 }
107 DALI_FAIL("Cannot return decoder that is not from the cache");
108 }
109
110 private:
111 NVDECCache() {}

Callers 1

ReturnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected