Computer Graphics · Display Devices, Colour, Images and Fractals
Display Devices and Frame Buffer
Overview
Display devices are output devices that convert electrical signals into visible images.
In computer graphics, the study of display devices covers the cathode-ray tube (CRT), its raster and random scan variants, color CRTs using beam penetration or shadow mask, and direct-view storage tubes (DVST).
The frame buffer is the memory area that holds the pixel values for the entire screen, and the look-up table (LUT) translates these pixel values into actual colors or intensity levels.
These concepts are fundamental for calculating memory requirements, refresh rates, and understanding how images are rendered on screen.
Before studying this topic, you should know binary numbers, bits and bytes, and basic coordinate geometry.
Key concepts
- Cathode-Ray Tube (CRT): A vacuum tube containing an electron gun, control electrode, focusing electrode, deflection coils, and a phosphor-coated screen. The electron beam strikes the phosphor to produce light.
- Persistence: The duration for which phosphor continues to glow after the electron beam moves away. Longer persistence reduces flicker but can cause ghosting.
- Refresh rate: The number of times per second the screen is redrawn. Measured in hertz (Hz).
Critical fusion frequency (CFF) is the refresh rate above which the human eye perceives a steady image rather than flicker (typically 30–60 Hz). - Raster scan: The electron beam sweeps horizontally across the screen from left to right, then moves down to the next line (horizontal retrace), and finally returns to the top-left (vertical retrace).
The beam is turned off during retrace (blanking). - Random scan (vector scan): The electron beam is directed only to the points where a picture is to be drawn, tracing lines directly.
- Horizontal retrace: The path the electron beam takes when returning to the left side of the CRT after completing a scan line. The beam is turned off during this return (blanking).
- Vertical retrace: The path the electron beam takes when returning to the top-left corner after completing the bottom scan line.
- Color CRT: Two basic techniques: beam penetration (random scan, limited colors, uses two phosphor layers, slower) and shadow mask (raster scan, uses three electron guns and a shadow mask, better quality and more colors).
- Direct-View Storage Tube (DVST) / Memory tube display: A CRT that stores the image directly on the phosphor screen without refreshing.
Components include: flooding gun (floods entire screen with low-energy electrons), collector (stores the charge generated by the writing gun), ground (discharges the collector), and phosphor grains (similar to standard CRT phosphor but with storage capability). - Frame buffer: A memory array that stores the color or intensity value of every pixel on the screen. Size depends on resolution and bits per pixel (color depth).
- Look-up table (LUT): A table that maps each pixel value from the frame buffer (N bits) to a color value with W bits (W > N).
The number of simultaneous intensity/color levels available is (limited by frame buffer depth), while the total number of possible colors is . - Resolution: The number of pixels in horizontal and vertical directions, e.g., 640×480. Alternatively, resolution in line pairs per inch: one line-pair consists of one black line and one adjacent white line.
- Aspect ratio: The ratio of width to height, usually expressed as width:height.
- Active graphics devices: Input devices that directly generate coordinate or positional data, such as joysticks, digitizers, and thumb wheels. Alphanumeric devices (keyboards) are not considered active graphics devices.
- Halftoning: A technique to simulate continuous shades using a limited number of intensity levels (often two, black and white) by varying the density of pixels.
Dithering is a specific halftoning technique that approximates halftones without reducing spatial resolution.
How it works
- CRT operation: The electron gun generates a beam of electrons. The control electrode (grid) turns the beam on and off. The focusing electrode focuses the beam into a narrow spot.
Deflection coils (magnetic) or plates (electrostatic) position the beam on the screen. When the beam strikes the phosphor coating, it emits light. Persistence determines how long the light remains after the beam moves. - Raster scan procedure:
- Start at top-left pixel.
- Scan horizontally to the right, turning the beam on for pixels to be lit and off for others (or modulating intensity).
- At the end of the line, turn off the beam and perform horizontal retrace to the left edge of the next line.
- Repeat for all lines.
- After the last line, perform vertical retrace to the top-left corner.
- The entire process repeats at the refresh rate.
- Frame buffer size calculation:
- Determine total number of pixels: width × height.
- Multiply by bits per pixel (color depth).
- Convert to bytes by dividing by 8.
- Example: 640×480 with 12 bpp requires bits = bytes = 450 KB (using 1 KB = 1024 bytes).
- LUT operation:
- The frame buffer stores an N-bit index for each pixel.
- The LUT contains entries, each W bits wide (W > N). Each entry specifies a color (e.g., 8 bits red, 8 bits green, 8 bits blue = 24 bits).
- The index selects one LUT entry, which is then sent to the display.
- Simultaneous colors = ; total possible colors = .
- Color CRT techniques:
- Beam penetration: Two phosphor layers (red and green) are deposited on the screen. The electron beam's energy determines which layer is excited.
Low energy excites red, high energy excites green, intermediate gives orange/yellow. Limited to four colors. Used with random scan. - Shadow mask: Three electron guns (red, green, blue) and a shadow mask with holes. Each hole allows the three beams to hit three different phosphor dots. By varying beam intensities, a wide range of colors is produced.
Used in raster scan.
- Beam penetration: Two phosphor layers (red and green) are deposited on the screen. The electron beam's energy determines which layer is excited.
- DVST operation: A writing gun writes the image by depositing charge on the storage grid. A flooding gun continuously floods the screen with low-energy electrons to maintain the image.
The collector stores the charge, and the ground discharges it. The image remains until intentionally erased. - Resolution in line pairs: If black lines and white lines are interleaved, the number of line-pairs is if evenly spaced. For example, 40 black and 40 white lines across one inch give 40 line-pairs per inch.
Diagram: CRT architecture
Diagram: Frame buffer and LUT data path
Drawing the diagram…
Drawing the diagram…
Formulas
- Frame buffer size in bytes: , where = width in pixels, = height in pixels, = bits per pixel.
- Refresh rate in Hz: , where is the access time per pixel (seconds). (Assumes one access per pixel per frame.)
- Number of simultaneous colors with N-bit frame buffer: .
- Total possible colors with W-bit LUT: .
- LUT size in bytes: , where = bits per pixel (index bits), = bits per LUT entry.
- Resolution in line pairs per inch: when white lines are interleaved one-to-one.
- Aspect ratio: .
Worked examples
Example 1 (Frame buffer size): A raster system has resolution 640×480 and uses 12 bits per pixel. Find the frame buffer size in bytes and in kilobytes (1 KB = 1024 bytes).
- Total pixels = .
- Total bits = bits.
- Bytes = bytes.
- Kilobytes = KB.
Answer: 460,800 bytes or 450 KB.
Example 2 (Refresh rate): A frame buffer is 640 pixels wide, 480 pixels high, and 1 bit per pixel. The average access time per pixel is 200 ns. Find the refresh rate.
- Total pixels = .
- Time to refresh one frame = s = s.
- Refresh rate = frames per second.
- Approximately 16 fps.
Answer: 16 frames per second.
Example 3 (LUT size): A frame buffer has 10 bits per pixel. Each of the R, G, B components uses 8 bits in the LUT. Find the size of the color LUT in bytes.
- Number of LUT entries = .
- Bits per entry = bits = 3 bytes.
- LUT size = bytes.
- Note: . So answer can be written as bytes.
Answer: 3072 bytes.
Example 4 (Resolution): If 40 black lines interleaved with 40 white lines can be distinguished across one inch, what is the resolution in line-pairs per inch?
- A line-pair consists of one black line and one adjacent white line.
- 40 black lines + 40 white lines give exactly 40 line-pairs.
- Therefore, resolution = 40 line-pairs per inch.
Answer: 40 line-pairs per inch.
Example 5 (Statement type): Consider statements about CRT color techniques:
I. Beam penetration is used with random scan monitors.
II. Shadow mask is used in raster scan systems.
III. Beam penetration method is better than shadow mask method.
IV. Shadow mask method is better than beam penetration method.
Which is not true?
- I is true: beam penetration uses random scan.
- II is true: shadow mask uses raster scan.
- III is false: beam penetration is not better than shadow mask (it offers fewer colors and is slower).
- IV is true: shadow mask is better in quality.
Thus, only III is not true. Answer: III only.
Comparison
| Feature | Raster Scan | Random Scan |
|---|---|---|
| Beam movement | Sweeps horizontally line by line | Directly traces the picture lines |
| Refresh | Requires constant refresh | Refresh depends on phosphor persistence |
| Image quality | Good for solid areas | Good for line drawings |
| Cost | Less expensive | More expensive |
| Example | Television, modern monitors | Oscilloscopes, early vector displays |
| Feature | Beam Penetration | Shadow Mask |
|---|---|---|
| Scan type | Random scan | Raster scan |
| Number of guns | One | Three (R, G, B) |
| Colors | Limited (typically 4) | Wide range |
| Speed | Slower | Faster |
| Quality | Lower | Higher |
| Mask | No shadow mask | Shadow mask with holes |
| Concept | Frame Buffer | Look-up Table |
|---|---|---|
| Purpose | Stores pixel values | Maps pixel values to colors |
| Size | Width × Height × bpp | entries × W bits |
| Depth | N bits per pixel | W bits per entry (W > N) |
| Simultaneous colors | Limited by N () | Determined by N () |
| Total colors | N/A |
| Feature | Active Graphics Device | Passive Graphics Device |
|---|---|---|
| Definition | Generates coordinate data directly | Requires user to indicate position indirectly |
| Examples | Joystick, digitizer, thumb wheel | Keyboard, light pen (sometimes) |
| Interaction | Direct positional input | Indirect or text-based |
Revision summary
- CRT components: electron gun, control electrode, focusing electrode, deflection coils, phosphor screen.
- Persistence is the glow duration; refresh rate is redraw frequency; CFF is the flicker threshold.
- Horizontal retrace = beam returns to left after a line;
vertical retrace = beam returns to top-left after a frame;
beam is off (blanking) during both. - Frame buffer size = width × height × bpp / 8 bytes.
- Refresh rate = 1 / (total pixels × access time per pixel).
- N-bit frame buffer + LUT gives simultaneous colors; LUT size = × W / 8 bytes.
- Beam penetration: random scan, one gun, limited colors; shadow mask: raster scan, three guns, many colors.
- DVST components: flooding gun, collector, ground, phosphor grains.
- Resolution in line-pairs: one black + one white line = one line-pair.
- Aspect ratio = width / height.
- Active devices: joystick, digitizer, thumb wheel; alphanumeric keyboard is not active.
Previous-year exam insights
- Questions often ask for direct calculation of frame buffer size, refresh rate, or LUT size.
Check units (bits vs bytes, KB vs bytes) and use the given access time correctly. - Statement-based questions compare beam penetration and shadow mask; remember that shadow mask is superior in quality and used in raster scan.
- Match-the-list questions test knowledge of DVST components (flood gun, collector, ground, phosphor grains).
- Questions on CRT components may ask which are parts of a CRT; all listed (electron gun, control electrode, focusing electrode, phosphor screen) are correct.
- Resolution questions: distinguish between lines per inch and line-pairs per inch;
line-pairs = number of black lines when white lines are interleaved. - LUT questions may give N and W; remember number of simultaneous levels = , not .
- Horizontal retrace definition: path returning to left side; vertical retrace to top.
The beam is turned off during retrace. - Active graphics devices: only devices that generate coordinate data directly; alphanumeric keyboards are excluded.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- Calculate the frame buffer size in bytes for any resolution and bits per pixel.
- Compute the refresh rate given access time per pixel and resolution.
- Determine the number of simultaneous colors and total colors from N-bit frame buffer and W-bit LUT.
- Calculate the LUT size in bytes for given N and W.
- List and explain the components of a CRT and a DVST.
- Compare raster scan and random scan, and beam penetration vs shadow mask.
- Define horizontal retrace and vertical retrace, and explain blanking.
- Convert between lines per inch and line-pairs per inch for resolution.
- Identify active graphics devices from a list of input devices.
- Explain the purpose of a look-up table and how it differs from the frame buffer.
Attempt the sub-topic test first, then the subject test.