MayaFlux 0.5.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 259 of file NDimensionalContainer.cpp.

260{
261 size_t frame_size = 1;
262 for (const auto& dim : dimensions) {
263 if (dim.role != DataDimension::Role::TIME) {
264 frame_size *= dim.size;
265 }
266 }
267 return frame_size;
268}
@ TIME
Temporal progression (samples, frames, steps)

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

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

+ Here is the caller graph for this function: