Technical: Hardware: G4
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Vector Pack Pixel

vec_packpx(arg1, arg2)

The result is obtained from the concatenated 32 bytes of arg1 and arg2, by creating the packed pixels of each word and moving them, left to right, into the halfwords of the result.
A packed pixel is a 1/5/5/5-encoded aRGB halfword. It is formed from a word by taking the LSB of the high-order byte for the 1-bit alpha field and the 5 LSBs of each of the 3 remaining bytes to get the R, G and B fields.
See "PackAndUnpackPixel" in Programming Examples for a demonstration of the use of this instruction.

Result

arg1 and arg2

Maps To

vector pixel

vector unsigned long

vpkpx

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice