Epson Research and Development

Page 49

Vancouver Design Center

 

 

 

int seSetLut(int device, BYTE *pLut)

Description: Writes the entire LUT from an array into the LUT registers.

Parameter: device - registered device ID

pLut - pointer to an array of BYTE lut[16][3] lut[x][0] == RED component

lut[x][1] == GREEN component lut[x][2] == BLUE component

Return Value: ERR_OK - operation completed with no problems

ERR_INVALID_REG_DEVICE - device argument is not valid.

int seSetLutEntry(int device, BYTE index, BYTE *pEntry)

Description: Writes one LUT entry.

Parameter: device - registered device ID index - index to LUT entry (0 to 15)

pEntry - pointer to an array of BYTE entry[3] entry[x][0] == RED component entry[x][1] == GREEN component entry[x][2] == BLUE component

Return Value: ERR_OK - operation completed with no problems

ERR_INVALID_REG_DEVICE - device argument is not valid.

int seGet15BppInfo(int device, unsigned *RedMask, unsigned *GreenMask, unsigned *BlueMask)

Description: Determines the bit fields for the red, green, and blue components of a 15 bpp stored in a WORD.

Parameter: device - registered device ID

RedMask - all bits set to 1 are used by the red component.

GreenMask - all bits set to 1 are used by the green component.

BlueMask - all bits set to 1 are used by the blue component.

Return Value: ERR_OK - operation completed with no problems

ERR_INVALID_REG_DEVICE - device argument is not valid.

Programming Notes and Examples

S1D13504

Issue Date: 01/02/01

X19A-G-002-07

Page 187
Image 187
Epson S1D13504 manual Int seSetLutint device, Byte *pLut, Int seSetLutEntryint device, Byte index, Byte *pEntry