1. Gyanastra
  2. Computer Graphics
  3. Display Devices, Colour, Images and Fractals
  4. Display Devices and Frame Buffer
Free lesson, no account needed 13 min read 8 practice questions after it
Asked in past papers8 times
  • ISRO2014
  • UGC NET2019201820172016201520142013

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 2N2^N (limited by frame buffer depth), while the total number of possible colors is 2W2^W.
  • 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

  1. 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.
  2. 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.
  3. 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 640×480×12=3,686,400640 \times 480 \times 12 = 3,686,400 bits = 460,800460,800 bytes = 450 KB (using 1 KB = 1024 bytes).
  4. LUT operation:
    • The frame buffer stores an N-bit index for each pixel.
    • The LUT contains 2N2^N 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 = 2N2^N; total possible colors = 2W2^W.
  5. 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.
  6. 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.
  7. Resolution in line pairs: If BB black lines and WW white lines are interleaved, the number of line-pairs is min⁡(B,W)\min(B,W) 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

Figure. The diagram traces the CRT’s electron path: electron gun, control electrode, focusing electrode, deflection coils, and phosphor-coated screen. The nearby text connects beam intensity variation with color production in raster scan.
Figure. Notice that each frame-buffer pixel has N bits, and the look-up table has 2^N entries of W bits before output reaches the monitor. The CPU supplies data to the frame buffer.

Formulas

  • Frame buffer size in bytes: S=W×H×b8S = \frac{W \times H \times b}{8}, where WW = width in pixels, HH = height in pixels, bb = bits per pixel.
  • Refresh rate in Hz: R=1tpixel×W×HR = \frac{1}{t_{\text{pixel}} \times W \times H}, where tpixelt_{\text{pixel}} is the access time per pixel (seconds). (Assumes one access per pixel per frame.)
  • Number of simultaneous colors with N-bit frame buffer: Csim=2NC_{\text{sim}} = 2^N.
  • Total possible colors with W-bit LUT: Ctotal=2WC_{\text{total}} = 2^W.
  • LUT size in bytes: L=2N×W8L = \frac{2^N \times W}{8}, where NN = bits per pixel (index bits), WW = bits per LUT entry.
  • Resolution in line pairs per inch: LP=number of black lines\text{LP} = \text{number of black lines} when white lines are interleaved one-to-one.
  • Aspect ratio: A=widthheightA = \frac{\text{width}}{\text{height}}.

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 = 640×480=307,200640 \times 480 = 307,200.
  • Total bits = 307,200×12=3,686,400307,200 \times 12 = 3,686,400 bits.
  • Bytes = 3,686,400/8=460,8003,686,400 / 8 = 460,800 bytes.
  • Kilobytes = 460,800/1024=450460,800 / 1024 = 450 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 = 640×480=307,200640 \times 480 = 307,200.
  • Time to refresh one frame = 307,200×200×10−9307,200 \times 200 \times 10^{-9} s = 0.061440.06144 s.
  • Refresh rate = 1/0.06144≈16.2761 / 0.06144 \approx 16.276 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 = 210=10242^{10} = 1024.
  • Bits per entry = 8+8+8=248 + 8 + 8 = 24 bits = 3 bytes.
  • LUT size = 1024×3=30721024 \times 3 = 3072 bytes.
  • Note: 3072=210+211=1024+20483072 = 2^{10} + 2^{11} = 1024 + 2048. So answer can be written as (210+211)(2^{10} + 2^{11}) 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

FeatureRaster ScanRandom Scan
Beam movementSweeps horizontally line by lineDirectly traces the picture lines
RefreshRequires constant refreshRefresh depends on phosphor persistence
Image qualityGood for solid areasGood for line drawings
CostLess expensiveMore expensive
ExampleTelevision, modern monitorsOscilloscopes, early vector displays
FeatureBeam PenetrationShadow Mask
Scan typeRandom scanRaster scan
Number of gunsOneThree (R, G, B)
ColorsLimited (typically 4)Wide range
SpeedSlowerFaster
QualityLowerHigher
MaskNo shadow maskShadow mask with holes
ConceptFrame BufferLook-up Table
PurposeStores pixel valuesMaps pixel values to colors
SizeWidth × Height × bpp2N2^N entries × W bits
DepthN bits per pixelW bits per entry (W > N)
Simultaneous colorsLimited by N (2N2^{N})Determined by N (2N2^{N})
Total colorsN/A2W2^W
FeatureActive Graphics DevicePassive Graphics Device
DefinitionGenerates coordinate data directlyRequires user to indicate position indirectly
ExamplesJoystick, digitizer, thumb wheelKeyboard, light pen (sometimes)
InteractionDirect positional inputIndirect 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 2N2^N simultaneous colors; LUT size = 2N2^N × 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 = 2N2^N, not 2W2^W.
  • 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.

Pages 1–2 of 2