VEC_PACKPX(ARG1, ARG2)

Purpose

Packs information from each element of two vectors into the result vector.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) UNSIGNED(4) vector.
ARG2
An INTENT(IN) vector of the same type as ARG1.

Result type and attributes

The result is a pixel vector.

Result value

The value of each element of the result vector is taken from the corresponding element of the result of concatenating ARG1 and ARG2 in the following way: the least significant bit of the high order byte is stored into the first bit of the result element; the least significant 5 bits of each of the remaining bytes are stored into the remaining portion of the result element.