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

◆ get_variant_size() [2/2]

uint64_t MayaFlux::Kakshya::ContainerDataStructure::get_variant_size ( const std::vector< DataDimension > &  dimensions,
DataModality  modality,
OrganizationStrategy  organization,
size_t  variant_index = 0 
)
static

Calculate size of a specific variant in the organization.

Parameters
dimensionsVector of dimension descriptors
modalityData modality type
organizationOrganization strategy
variant_indexIndex of the variant (0-based)
Returns
Number of elements in the specified variant

Definition at line 94 of file NDimensionalContainer.cpp.

96{
97 switch (organization) {
100
102 switch (modality) {
105
108
112
113 default:
115 }
116
117 default:
119 }
120}
@ 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
@ PLANAR
Separate DataVariant per logical unit (LLL...RRR for stereo)
@ INTERLEAVED
Single DataVariant with interleaved data (LRLRLR for stereo)

References MayaFlux::Kakshya::AUDIO_MULTICHANNEL, dimensions, get_frame_count(), get_pixels_count(), get_samples_count_per_channel(), get_total_elements(), MayaFlux::Kakshya::IMAGE_COLOR, MayaFlux::Kakshya::INTERLEAVED, modality, organization, MayaFlux::Kakshya::PLANAR, MayaFlux::Kakshya::VIDEO_COLOR, and MayaFlux::Kakshya::VIDEO_DEPTH.

+ Here is the call graph for this function: