Epson S1D13506 Technical Manual page 361

Color lcd/crt/tv controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
IMPORTANT
Parameters:
Return Value:
unsigned seGetBitsPerPixel(void)
unsigned seGetLcdBitsPerPixel(void)
unsigned seGetCrtBitsPerPixel(void)
unsigned seGetTvBitsPerPixel(void);
Description:
Parameters:
Return Value:
Programming Notes and Examples
Issue Date: 02/03/21
seSetLcdCrtBitsPerPixel() and seSetLcdTvBitsPerPixel() change the color depth for a sur-
face which combines LCD and CRT/TV. Portrait (SwivelView 90) is disabled. If the dis-
play resolution is not the same for the two displays then memory is allocated based on the
larger of the two.
When the LCD color depth is changed, memory allocated for the display buffer and ink
layer/hardware cursors is freed and the display buffer memory is reassigned. The applica-
tion must redraw the display and re-initialize the cursor/ink and redraw after calling seSet-
BitsPerPixel().
seSetLcdCrtBitsPerPixel(), and seSetLcdTvBitsPerPixel() will free all allocated memory
for all displays and all ink layers/hardware cursors, then allocate memory only for the dis-
play(s) mentioned in the function name. The cursor/ink must be re-initialized and restored
after making one of these calls.
If the active surface is the panel then seSetBitsPerPixel() will free all allocated memory for
all displays and all ink layers/hardware cursors, then allocate memory ONLY for the active
surface (LCD). If the active surface is the CRT or TV, seSetBitsPerPixel() will free mem-
ory only for the active surface (CRT or TV), and then reallocate memory for this surface as
required.
BitsPerPixel
The new color depth. BitsPerPixel can be one of the following:
4, 8, 15, 16.
The return value is the thirty-two bit offset to the start of the surface display memory. If
there is an error the return value is 0. A linear address is the 32-bit offset, in CPU address
space, where the application can directly read or write display memory.
The thirty-two bit address must be converted to a segment:offset for use with a 16-bit Intel
platform.
These functions returns the current color depth for a the associated display surface.
seGetBitsPerPixel() returns the color depth for the current active surface.
seGetLcdBitsPerPixel(), seGetCrtBitsPerPixel(), and seGetTvBitsPerPixel() return the
color depth for the surface indicated in the function name.
None.
The color depth of the surface. This value will be 4, 8, 15 or 16.
Page 127
S1D13506
X25B-G-003-04

Advertisement

Table of Contents
loading

Table of Contents