Epson S1D13506 Technical Manual page 345

Color lcd/crt/tv controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
int seGetResolution(unsigned *Width, unsigned *Height)
void seGetLcdResolution(unsigned *Width, unsigned *Height)
void seGetCrtResolution(unsigned *Width, unsigned *Height)
void seGetTvResolution(unsigned *Width, unsigned *Height)
Description:
Parameters:
Return Value:
unsigned seGetBytesPerScanline(void)
unsigned seGetLcdBytesPerScanline(void)
unsigned seGetTvBytesPerScanline(void)
unsigned seGetCrtBytesPerScanline(void)
Description:
Parameters:
Return Value:
Programming Notes and Examples
Issue Date: 02/03/21
These functions return the width and height of the physical display device. Virtual dimen-
sions are not accounted for in the return value.
seGetResolution() returns the width and height of the active surface. If there is more than
one display associated with the surface then precedence is given to the LCD.
seGetLcdResolution() returns the width and height of the LCD panel. The width and
height are adjusted for SwivelView orientation.
seGetCrtResolution() and seGetTvResolution() return the width and height of the display
indicated by the function name.
Width
A pointer to an unsigned integer which will receive the width, in pixels,
for the indicated surface.
Height
A pointer to an unsigned integer which will receive the height, in pixels,
for the indicated surface.
seGetResolution() returns one of the following:
ERR_OK
Function completed successfully
ERR_FAILED
Returned when there is not an active display surface.
seGetLcdResolution(), seGetCrtResolution(), and seGetTvResolution() do not return any
value.
These functions return the number of bytes per scanline, including both displayed and
non-displayed for the current video mode.
seGetBytesPerScanline() returns the number of bytes per scanline for the current active
surface.
seGetLcdBytesPerScanline(), seGetTvBytesPerScanline(), and seGetCrtBytesPerScan-
line() return the number of bytes per scanline for the surface indicated in the function
name.
To work correctly the S1D13505 registers have been initialized prior to calling any of
these routines.
None.
The return value is the "stride" or number of bytes from the first byte of one scanline to the
first byte of the next scanline. This value includes both the displayed and the non-dis-
played bytes on each logical scanline.
For rotated display modes the return value will be either 1024 (8 bpp) or 2048 (15/16 bpp)
to reflect the 1024 x 1024 virtual area of the rotated memory.
Page 111
S1D13506
X25B-G-003-04

Advertisement

Table of Contents
loading

Table of Contents