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

◆ set_or_update_region_data() [3/3]

template<typename T >
void MayaFlux::Kakshya::set_or_update_region_data ( std::vector< std::span< T > > &  dest_spans,
const std::vector< std::span< const T > > &  source_data,
const Region region,
const std::vector< DataDimension > &  dimensions,
OrganizationStrategy  organization 
)

Write or update a region of data with organization strategy.

Template Parameters
TData type.
Parameters
dest_spansVector of destination data spans (one per channel).
source_dataVector of source data spans (one per channel).
regionRegion to update.
dimensionsDimension descriptors.
organizationStorage organization strategy.

Definition at line 408 of file RegionUtils.hpp.

414{
415 if (organization == OrganizationStrategy::INTERLEAVED) {
416 set_or_update_region_data(dest_spans[0], source_data[0], region, dimensions);
417 } else {
418 set_or_update_region_data(dest_spans, source_data, region, dimensions);
419 }
420}
void set_or_update_region_data(std::span< T > dest_data, std::span< const T > source_data, const Region &region, const std::vector< DataDimension > &dimensions)
Write or update a region of data in a flat data span (interleaved).

References INTERLEAVED, and set_or_update_region_data().

+ Here is the call graph for this function: