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

◆ get_expected_variant_count()

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

Calculate expected number of data variants for given dimensions.

Parameters
dimensionsVector of dimension descriptors
Returns
Expected number of DataVariant objects needed

Definition at line 74 of file NDimensionalContainer.cpp.

75{
77 return 1;
78 }
79
80 switch (modality) {
85 // return get_frame_count(dimensions) * get_channel_count(dimensions);
88
89 default:
90 return 1;
91 }
92}
@ AUDIO_MULTICHANNEL
Multi-channel audio.
@ VIDEO_DEPTH
[frames, height, width, components] - streaming range data
@ VIDEO_COLOR
4D video (time + 2D + color)
@ IMAGE_COLOR
2D RGB/RGBA image
@ INTERLEAVED
Single DataVariant with interleaved data (LRLRLR for stereo)

References MayaFlux::Kakshya::AUDIO_MULTICHANNEL, dimensions, get_channel_count(), get_component_count(), MayaFlux::Kakshya::IMAGE_COLOR, MayaFlux::Kakshya::INTERLEAVED, modality, organization, MayaFlux::Kakshya::VIDEO_COLOR, and MayaFlux::Kakshya::VIDEO_DEPTH.

+ Here is the call graph for this function: