TVP4020
Programmers Reference Manual
Graphics Programming
95
textureAddressMode.Enable = PERMEDIA_TRUE
textureAddressMode.PerspectiveCorrection = PERMEDIA_TRUE
TextureAddressMode(textureAddressMode)
// Load texture address parameters
SStart()
dSdx()
dSdyDom()
TStart()
dTdx()
dTdyDom()
QStart()
dQdx()
dQdyDom()
// Configure texture read
textureReadMode.Enable = PERMEDIA_TRUE
textureReadMode.SWrapMode = PERMEDIA_TEXTURE_WRAP_REPEAT
textureReadMode.TWrapMode = PERMEDIA_TEXTURE_WRAP_REPEAT
textureReadMode.Width = width
textureReadMode.Height = height
textureReadMode.FilterMode = PERMEDIA_FALSE
TextureReadMode(textureReadMode)
textureMapFormat.PP0 = partialProduct0
textureMapFormat.PP1 = partialProduct1
textureMapFormat.PP2 = partialProduct2
textureMapFormat.SubPatchMode = PERMEDIA_TRUE
textureMapFormat.TexelSize = PERMEDIA_8_BITS_PER_TEXEL
TextureMapFormat(textureMapFormat)
textureDataFormat.TextureFormat = PERMEDIA_COLOR_FORMAT_RGB_332
TextureDataFormat(textureDataFormat)
// Enable texture/fog/blend unit, load other parameters and
// render
5.9
YUV Unit
The YUV unit converts from YUV color format, also known as YCbCr, to
RGB. It also does chroma key testing. This test may be done either
before or after the conversion.
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 ...