English
Language : 

SED1374 Datasheet, PDF (146/420 Pages) Epson Company – SED1374 Embedded Memory Color LCD Controller
Page 50
Epson Research and Development
Vancouver Design Center
int seSetBitsPerPixel(int DevID, int BitsPerPixel)
Description: This routine sets the color depth the SED1374 displays in.
After performing validity checks to ensure the requested video mode can be set the
appropriate registers are changed and the Look-Up table is set its default values
appropriate to the color depth.
This call is similar to a mode set call on a standard VGA.
Parameter:
DevID
- registered device ID
BitsPerPixel - desired color depth in bits per pixel.
- Valid arguments are: 1, 2, 4, and 8.
Return Value: ERR_OK - operation completed with no problems
ERR_FAILED- possible causes for this error include:
1) the desired frame rate may not be attainable with the specified input clock
2) the combination of width, height and color depth may require more memory than
is available on the SED1374.
int seGetBitsPerPixel(int DevID, int * pBitsPerPixel)
Description: This function reads the SED1374 registers to determine the current color depth and
returns the result in pBitsPerPixel.
Parameters: DevID
- registered device ID
pBitsPerPixel - pointer to an integer to receive current color depth.
- return values will be: 1, 2, 4, or 8.
Return Value: ERR_OK - operation completed with no problems
int seGetBytesPerScanline(int DevID, int * pBytes)
Description: Returns the number of bytes use by each scan line in the integer pointed to by
pBytes. The number of bytes per scanline will include the number of non-displayed
bytes, if applicable.
Prior to calling seGetBytesPerScanline() the SED1374 control registers must have
been correctly initialized.
Parameters: DevID
pBytes
- registered device ID
- pointer to an integer to receive the number of bytes per scan line
Return Value: ERR_OK - operation completed with no problems
SED1374
X26A-G-002-02
Programming Notes and Examples
Issue Date: 99/04/27