Renesas SH7781 User Manual
Page 1052
![background image](/manuals/199869/1052/background.png)
20. Graphics Data Translation Accelerator (GDTA)
Rev.1.00 Jan. 10, 2008 Page 1022 of 1658
REJ09B0261-0100
No. Operation
Description
(2) Calculation
of
output position
(nth row and
below)
The following formulae are used to compute output positions (nth row and
below) (DDR2-SDRAM output address).
Output address formulae for nth row and below
• Y output target address
Calculation formula: Output frame Y point value (base point) + [(mbrow
×
16 + n - 1)
× (width + Y padding)] + [mbcol × 16]
Output frame Y pointer value (base point): MCOYPR setting address
mbrow: Calculated from MCCF setting
mbcol: Calculated from MCCF setting
width: Calculated from MCWR setting
Y padding: Calculated from MCYPR setting
Subsequently, data for 16 dots (= 16 bytes) is processed in succession
• U/V output target address
Calculation formula: Output frame U point value (base point) + [(mbrow
×
8 + n - 1)
× (width/2 + U padding)] + [mbcol × 8]
Output frame U pointer value (base point): MCOUPR setting address
mbrow: Calculated from MCCF setting
mbcol: Calculated from MCCF setting
width: Calculated from MCWR setting
U padding: Calculated from MCUVPR setting
Subsequently, data for 8 dots (= 8 bytes) is processed in succession
V pointer address is calculated using a formula similar to that for the U pointer
address.