MayaFlux 0.1.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 86 of file NDimensionalContainer.cpp.

88{
89 switch (organization) {
92
94 switch (modality) {
97
100
103
104 default:
106 }
107
108 default:
110 }
111}
@ AUDIO_MULTICHANNEL
Multi-channel audio.
@ 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, and MayaFlux::Kakshya::VIDEO_COLOR.

+ Here is the call graph for this function: