#include "worgen.h" #include "pixman.h"FUNCTION c_pxconv (ftyp, totyp, frombuf, tobuf, size)
long *ftyp; long *totyp; unsigned char *frombuf; unsigned char *tobuf; long *size;
An integer representing the data type of the source buffer. Legal values include:
= EBYTE(1): unsigned byte data = EWORD(2): signed two byte data = ELONG(3): signed four byte data = EREAL(4): four byte floating point data
An integer representing the data type of the destination buffer. Legal values are the same as above.
The source buffer of the data to be converted; this data is of type ftyp.
The destination buffer of the converted data; this data will be of type totyp.
The number of pixels to be converted.
The c_pxconv() call is used to convert size pixels of type ftyp to totyp. If the two data types are the same, c_pxcopy() is called.
c_pxconv() returns
E_SUCC --> successful completion TOOBIG --> exceeded upper limit of data type TOOSMALL--> exceeded lower limit of data type