Epson S1D13505 Technical Manual page 235

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
{
HAL\r\n");
}
/*
** Init the SED1355 with the defaults stored in the HAL_STRUCT
*/
if (seSetInit(DevId) != ERR_OK)
{
SED1355\r\n");
}
/*
** Determine the screen size
*/
if (seGetScreenSize(DevId, &width, &height) != ERR_OK)
{
}
/*
** Determine the Bpp mode, and set colors appropriately
** Note: if less than 15Bpp set the color Lookup Table (LUT)
** local color variables contain either index into LUT or RGB value
*/
seGetBitsPerPixel(DevId, &Bpp);
if (verbose)
switch(Bpp)
{
Lut[0][0], 3);
and Blue */
Lut[0][0], 3);
Programming Notes and Examples
Issue Date: 01/02/05
printf("\r\nERROR: Unable to register device with
return -1;
printf("\r\nERROR: Unable to initialize the
return -1;
printf("\r\nERROR: Unable to get screen size\r\n");
return -1;
printf("Bpp is %d\n", Bpp);
case 1: /* Can't really do red and blue here */
/* Set the LUT to values appropriate to Black, Red,
case 2:
case 4:
case 8:
default: /* 15 or 16 bpp */
seSetLut(DevId, (BYTE *)&RedBlue-
color_red =
1;
color_blue = 1;
break;
seSetLut(DevId, (BYTE *)&RedBlue-
color_red
= 1;
color_blue = 2;
break;
color_red
= RED16BPP;
Page 81
S1D13505
X23A-G-003-07

Advertisement

Table of Contents
loading

Table of Contents