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

◆ get_frame_size() [2/2]

size_t MayaFlux::Kakshya::ContainerDataStructure::get_frame_size ( const std::vector< DataDimension > &  dimensions)
static

Extract the size of non time dimensions (channel, spatial, frequency)

Parameters
dimensionsVector of dimension descriptors
Returns
cumulative size of non time dimensions

Definition at line 239 of file NDimensionalContainer.cpp.

240{
241 size_t frame_size = 1;
242 for (const auto& dim : dimensions) {
243 if (dim.role != DataDimension::Role::TIME) {
244 frame_size *= dim.size;
245 }
246 }
247 return frame_size;
248}
@ TIME
Temporal progression (samples, frames, steps)

References dimensions, and MayaFlux::Kakshya::DataDimension::TIME.

Referenced by MayaFlux::Kakshya::RegionProcessorBase::on_attach(), and MayaFlux::Kakshya::RegionOrganizationProcessor::process().

+ Here is the caller graph for this function: