Page 50
Epson Research and Development
Vancouver Design Center
S1D13704
Programming Notes and Examples
X26A-G-002-03
Issue Date: 01/02/12
int seSetBitsPerPixel(int DevID, int BitsPerPixel)
Description: This routine sets the color depth the S1D13704 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 S1D13704.
int seGetBitsPerPixel(int DevID, int * pBitsPerPixel)
Description: This function reads the S1D13704 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 S1D13704 control registers must have
been correctly initialized.
Parameters: DevID
-
registered
device
ID
pBytes
- pointer to an integer to receive the number of bytes per scan line
Return Value: ERR_OK - operation completed with no problems
*