08.01.2013 Views

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ashdown, Ian, Color Quantization<br />

Bibliography, Internet,<br />

<br />

Figure 4.6<br />

Display modes<br />

24 b (3 B)<br />

Truecolor<br />

16 b (2 B)<br />

Hicolor<br />

8 b (1 B)<br />

Pseudocolor<br />

640×480<br />

800×600<br />

1152×864<br />

A truecolor or hicolor image can be approximated in<br />

pseudocolor through software application of a fixed<br />

colormap. Alternatively, a colormap quantization algorithm<br />

can be used to examine a particular image (or<br />

sequence of images), and compute a colormap that is<br />

optimized or adapted for that image or sequence.<br />

Display modes<br />

A high data rate is necessary to refresh a PC or workstation<br />

display from graphics memory. Consequently,<br />

graphics memory has traditionally been implemented<br />

with specialized “video RAM” (VRAM) devices. A lowcost<br />

graphics adapter generally has a limited amount of<br />

this specialized memory, perhaps just one or two megabytes.<br />

Recently, it has become practical for graphics<br />

adapters to refresh from main memory (DRAM); this<br />

relaxes the graphics memory capacity constraint.<br />

Modern PC graphics subsystems are programmable<br />

among pseudocolor, hicolor, and truecolor modes.<br />

(Bilevel and grayscale have generally fallen into disuse.)<br />

The modes available in a typical system are restricted by<br />

the amount of graphics memory available. Figure 4.6<br />

sketches the three usual modes available in a system<br />

having one megabyte (1 MB) of VRAM.<br />

The top sketch illustrates truecolor (24 bits per pixel)<br />

operation. With just 1 MB of VRAM the pixel count will<br />

be limited to 1 ⁄3 megapixel, 640×480 (“VGA”). The<br />

advantage is that this mode gives access to millions of<br />

colors simultaneously.<br />

To increase pixel count to half a megapixel with just<br />

1 MB of VRAM, the number of bits per pixel must be<br />

reduced from 24. The middle sketch shows hicolor<br />

(16 bit per pixel) mode, which increases the pixel count<br />

to 1 ⁄2 megapixel, 800×600. However, the display is now<br />

limited to just 65536 colors at any instant.<br />

To obtain a one-megapixel display, say 1152×864, pixel<br />

depth is limited by 1 MB of VRAM to just 8 bits. This<br />

forces the use of pseudocolor mode, and limits the<br />

number of possible colors at any instant to just 256.<br />

40 DIGITAL VIDEO AND HDTV ALGORITHMS AND INTERFACES

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!