![Texas Instruments TVP4020 PERMEDIA 2 Reference Manual Download Page 128](http://html.mh-extra.com/html/texas-instruments/tvp4020-permedia-2/tvp4020-permedia-2_reference-manual_1097169128.webp)
TVP4020
Programmers Reference Manual
Graphics Programming
119
5.13.4
Registers
One register controls the operation of this unit, DitherMode, and its
layout is:
0
8
16
24
31
Color format
Reserved
Dither enable
Unit enable
X offset
Y offset
ForceAlpha
Color format extension
DitherMethod
Reserved
Color order
Figure 5.48
Dither Mode Register
The X and Y offset fields are for window relative dithering. Color order
species RGB or BGR color order. The Color format and Color format
extension fields control color depth and options are given in table 4.1.
5.13.5
Dither Example
To set the framebuffer format to RGB 3:3:2 and enable dithering:
// 332 Dithering
ditherMode.UnitEnable = PERMEDIA_TRUE
ditherMode.DitherEnable = PERMEDIA_TRUE
ditherMode.ColorMode = PERMEDIA_COLOR_FORMAT_RGB_332
DitherMode (ditherMode)
// Load register
5.13.6
Color Format Example
To set the framebuffer format to RGB 3:3:2 and disable dithering:
// 332 No Dither
ditherMode.UnitEnable = PERMEDIA_TRUE
ditherMode.DitherEnable = PERMEDIA_FALSE
ditherMode.ColorMode = PERMEDIA_COLOR_FORMAT_RGB_332
DitherMode(ditherMode)
// Load register
5.13.7
Color Format Example
To set the framebuffer to RGBA 8:8:8:8 and not dithered:
Summary of Contents for TVP4020 PERMEDIA 2
Page 1: ...Texas Instruments TVP4020 PERMEDIA 2 Programmer s Reference Manual Issue 4 ...
Page 284: ...TVP4020 Programmers Reference Manual A Gouraud Shaded Triangle 275 ...
Page 292: ...TVP4020 Programmers Reference Manual Register Tables 283 ...
Page 314: ...TVP4020 Programmers Reference Manual Index 305 ...
Page 315: ...Index TVP4020 Programmers Reference Manual 306 Index ...
Page 323: ...Index TVP4020 Programmers Reference Manual 314 ...