
***
Genesis Microchip Confidential ***
gm5115/25 Preliminary Data Sheet
June 2002
36
C5115-DAT-01H
Brightness
Contrast
Address26:
Cell attributes for
1
cell, 2
row
Address 25:
Attributes for
upper-right hand cell
Address 1:
Cell Attributes for
upper-left hand cell
CELLMAP_XSZ
CELLMAP_YSZ
Figure 25.
OSD Cell Map
Cell definitions are stored as bit map data. On-chip registers point to the start of 1-bit per pixel
definitions, 2-bit per pixel definitions and 4-bit per pixel definitions respectively. 1, 2 and 4-bit
per pixel cell definitions require 9, 18 and 36 words of the OSD RAM respectively.
Note that the cell map and the cell definitions share the same on-chip RAM. Thus, the size of the
cell map can be traded off against the number of different cell definitions. In particular, the size
of the OSD image and the number of cell definitions must fit in OSD SRAM. That is, the
following inequality must be satisfied. (Note, the ROUND operation rounds 3.5 to 4).
(CELLMAP_XSZ+1) * CELLMAP_YSZ +
18 * ROUND(Number of 1-bit per pixel fonts / 2) +
18 * (Number of 2-bit per pixel fonts) +
36 * (Number of 4-bit per pixel fonts) <= 4096
For example, an OSD menu 360 pixels wide by 360 pixels high is 30 cells in width and 20 cells
in height. Many of these cells would be the same (e.g. empty). In this case, the menu could
contain more than 32 1-bit per pixel cells, 100 2-bit per pixel cells, and 16 4-bit per pixel cells.
Of course, different numbers of each type can also be used.
4.14.2 Color Look-up Table (LUT)
Each pixel of a displayed cell is resolved to an 8-bit color code. This selected color code is then
transformed to a 24-bit value using a 256 x 24-bit look up table. This LUT is stored in an on-chip
RAM that is separate from the OSD RAM. Color index value 0x00 is reserved for transparent
OSD pixels.