Interleave Data Member Function

Interleaves the source into the destination, at the specified channel offsets. For example, sets the source values to every [i]th value in the destination. Using [0000] as the source: [1111111111111111] -> [0111011101110111] or [1011101110111011]. The span of the iterator must be evenly divisible by the number of specified channels, and the channel index must be between 0 and channel count - 1.

Prototype

int32 Interleave( Uint64Iterator first, Uint64Iterator last, int32 p_nSrcChannelCount, int32 p_nSrcChannelIndex, int32 p_nDstChannelCount, int32 p_nDstChannelIndex, Uint64Iterator dst )

Parameters

Parameter Type Parameter Name Documentation
<Uint64Iterator>firstAn iterator at the start of the source range.
<Uint64Iterator>lastAn iterator at the end of the source range.
int32p_nSrcChannelCountThe number of 'channels' in the source range.
int32p_nSrcChannelIndexThe index of the source channel from which to get the data for interleaving.
int32p_nDstChannelCountThe number of 'channels' in the destination range.
int32p_nDstChannelIndexThe index of the destination channel.
<Uint64Iterator>dstAn iterator at the start of the destination range.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.