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.
int32 Interleave( Uint8Iterator first, Uint8Iterator last, int32 p_nSrcChannelCount, int32 p_nSrcChannelIndex, int32 p_nDstChannelCount, int32 p_nDstChannelIndex, Uint8Iterator dst )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Uint8Iterator> | first | An iterator at the start of the source range. |
<Uint8Iterator> | last | An iterator at the end of the source range. |
int32 | p_nSrcChannelCount | The number of 'channels' in the source range. |
int32 | p_nSrcChannelIndex | The index of the source channel from which to get the data for interleaving. |
int32 | p_nDstChannelCount | The number of 'channels' in the destination range. |
int32 | p_nDstChannelIndex | The index of the destination channel. |
<Uint8Iterator> | dst | An iterator at the start of the destination range. |
None published. Please look for an example in the Scenome Scripting Language code base.