ConvertRgbToSeparatedYuyv Data Member Function

Converts the source range submitted to this function from RGB to YUYV. Values are stored separately in the destination ranges submitted to this function.

Prototype

int32 ConvertRgbToSeparatedYuyv( Uint8Iterator src, Uint8Iterator y, Uint8Iterator u, Uint8Iterator v, int32 width, int32 height )

Parameters

Parameter Type Parameter Name Documentation
<Uint8Iterator>srcAn iterator at the start of the source range of RGB values.
<Uint8Iterator>yAn iterator at the start of the range that stores the Y values generated during conversion.
<Uint8Iterator>uAn iterator at the start of the range that stores the U values generated during conversion.
<Uint8Iterator>vAn iterator at the start of the range that stores the V values generated during conversion.
int32widthThe width of the source data. For example, if a range representing an <Image> object is converted. Otherwise, this value multiplied by the height value must match the count of items in the source range.
int32heightThe height of the source data. For example, if a range representing an <Image> object is converted. Otherwise, this value multiplied by the width value must match the count of items in the source range.

Examples

Copy Text To Clipboard

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