Color Manipulation - Epson S1D13505 Technical Manual

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center

11.5.4 Color Manipulation

Programming Notes and Examples
Issue Date: 01/02/05
Parameters:
DevID
Offset
pByte
Return Value: ERR_OK
ERR_HAL_BAD_ARG - if the value for Offset is greater than the amount of
int seReadDisplayWord(int DevID, DWORD Offset, WORD *pWord)
Description:
Reads a word from the display buffer at the specified offset and returns the value in
pWord.
Parameters:
DevID
Offset
pWord
Return Value: ERR_OK
ERR_HAL_BAD_ARG - if the value for Offset is greater than the amount of
int seReadDisplayDword(int DevID, DWORD Offset, DWORD *pDword)
Description:
Reads a dword from the display buffer at the specified offset and returns the value
in pDword.
Parameters:
DevID
Offset
pDword
Return Value: ERR_OK
ERR_HAL_BAD_ARG - if the value for Offset is greater than the amount of
The functions in the Color Manipulation section deal with altering the color values in the
Look-Up Table directly through the accessor functions and indirectly through the color
depth setting functions.
int seSetLut(int DevID, BYTE *pLut, int Count)
Description:
This routine can write one or more LUT entries. The writes always start with Look-
Up Table index 0 and continue for Count entries.
A Look-Up Table entry consists of three bytes, one each for Red, Green, and Blue.
The color information is stored in the four most significant bits of each byte.
Parameters:
DevID
pLut
- registered device ID
- offset, in bytes, from start of the display buffer
- return value of the display buffer location.
- operation completed with no problems
installed memory.
- registered device ID
- offset, in bytes, from start of the display buffer
- return value of the display buffer location
- operation completed with no problems.
installed memory.
- registered device ID
- offset from start of the display buffer
- return value of the display buffer location
- operation completed with no problems.
installed memory.
- registered device ID
- pointer to an array of BYTE lut[16][3]
lut[x][0] == RED component
Page 67
S1D13505
X23A-G-003-07

Advertisement

Table of Contents
loading

Table of Contents