Color Manipulation - Epson S1D13706 Technical Manual

Embedded memory lcd controller
Hide thumbs Also See for S1D13706:
Table of Contents

Advertisement

Page 84

10.2.6 Color Manipulation

void seWriteLutEntry(int Index, BYTE *pRGB)
Description:
Parameter:
Return Value:
void seReadLutEntry(int Index, BYTE *pRGB)
Description:
Parameter:
Return Value:
void seWriteLut(BYTE *pRGB, int Count)
Description:
Parameter:
Return Value:
S1D13706
X31B-G-003-03
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.
Keep in mind that all lookup table data is contained in the upper six bits of each byte.
seWriteLutEntry() writes one lookup table entry to the specified index of the lookup table.
Index
Offset to the lookup table entry to be modified (i.e. a 0 will write the
first entry and a 255 will write the last lookup table entry).
pRGB
A pointer to a byte array of data to write to the lookup table. The array
must consist of three bytes; the first byte contains the red value, the
second byte contains the green value and the third byte contains the
blue value.
None
seReadLutEntry() reads one lookup table entry and returns the results in the byte array
pointed to by pRGB.
Index
Offset to the lookup table entry to be read. (i.e. setting index to 2 returns
the value of the third RGB element of the lookup table).
pRGB
A pointer to an array to receive the lookup table data. The array must be
at least three bytes long. On return from this function the first byte of
the array will contain the red data, the second byte will contain the
green data and the third byte will contain the blue data.
None.
seWriteLut() writes one or more lookup table entries starting at offset zero.
These routines are intended to allow setting as many lookup table entries as the current
color depth allows.
pRGB
A pointer to an array of lookup table entry values to write to the LUT.
Each lookup table entry must consist of three bytes. The first byte must
contain the red value, the second byte must contain the green value and
the third byte must contain the blue value.
Count
The number of lookup table entries to modify.
None.
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/23

Advertisement

Table of Contents
loading

Table of Contents