MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_segment_with_cache()

std::optional< RegionSegment > MayaFlux::Kakshya::RegionCacheManager::get_segment_with_cache ( const RegionSegment segment)

Definition at line 97 of file RegionCacheManager.cpp.

98{
99 auto cache_opt = get_cached_region(segment.source_region);
100 if (cache_opt) {
101 RegionSegment seg = segment;
102 seg.cache = *cache_opt;
103 seg.is_cached = true;
104 return seg;
105 }
106 return std::nullopt;
107}
std::optional< RegionCache > get_cached_region(const Region &region)

References MayaFlux::Kakshya::RegionSegment::cache, get_cached_region(), MayaFlux::Kakshya::RegionSegment::is_cached, and MayaFlux::Kakshya::RegionSegment::source_region.

+ Here is the call graph for this function: