Hitachi HD64411 Q2 User Manual page 52

Quick 2d graphics renderer
Table of Contents

Advertisement

DD17 to DD0
Image data (1st word)
DD17 to DD0
Image data (2nd word)
DD17 to DD0
Image data (3rd word)
DD17 to DD0
Image data (4th word)
DD17 to DD0
Image data (nth word)
Color Data Format Conversion
• ∆YUV/YUV-to-RGB conversion
The specifications of the function for converting ∆YUV or YUV data in main memory to RGB
data are shown in figure 3-12.
The Q2 converts ∆YUV or YUV data transferred from the CPU to RGB data and stores it in the
UGM source area. The converted RGB data is used as source data for quadrilateral-drawing
commands.
Q2 registers that should be set by the CPU are as follows. Make the register settings in the
order shown in figure 3-13.
1716
0
Y0 (8 bits)
CSEL
1716
0
Y1 (8 bits)
CSEL
1716
0
Y2 (8 bits)
CSEL
1716
0
Y3 (8 bits)
CSEL
1716
0
Yn-1 (8 bits)
CSEL
Assuming an even number for n and an 18-bit word
8 7
0
Cb0 (8 bits)
18 bits
8 7
0
Cr0 (8 bits)
18 bits
8 7
0
Cb2 (8 bits)
18 bits
8 7
0
Cr2 (8 bits)
18 bits
8 7
0
Crn-2 (8 bits)
18 bits
Data flow
45

Advertisement

Table of Contents
loading

Table of Contents