English
Language : 

SH7205 Datasheet, PDF (1476/1904 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
Section 26 2D Graphics Engine (2DG)
1. Calculating DL, the left-edge pixel of the area set as the destination
Since SL' = 55 pixels, judgment proceeds as follows.
Conditional expression:
INT (DH/SH × (SL' − 1)) × INT (SH/DH × 4096) + H1PHS_DCML ≥ (SL' − 1) × 4096
INT (350/280 × (55 − 1)) × INT (280/350 × 4096) + 819 ≥ (55 − 1) × 4096
Since the result of the conditional expression is "false", the value is obtained as shown below.
False: DL = INT (DH/SH × (SL' − 1)) + 1 = INT (350/280 × (55 − 1)) + 1 = 68
2. Calculating SL, the left-edge pixel of the area set as the source
Since SL' = 55 pixels, the value is obtained as follows.
SL = INT ((DL × INT (SH/DH × 4096) + H1PHS_DCML)/ 4096
= INT ((68 × INT (280/350 × 4096) + 819)/ 4096) = 54
From the above, the result for the integer part of the phase for the source-side starting position
is obtained as H1PHS_INTGR = 54.
3. Calculating DCWIDH, the width of the destination area
Since SR' = 133 and SH = 280 pixels, judgment proceeds as follows.
Conditional expression:
INT (DH/SH × (SR' + 1)) × INT (SH/DH × 4096) + H1PHS_DCML ≥ (SR' + 1) × 4096
INT (350/280 × (133 + 1)) × INT (280/350 × 4096) + 819 ≥ (133 + 1) × 4096
Since the result of the conditional expression is "false", the value is obtained as shown below.
False: DCWIDH
= INT (DH/SH × (SR' + 1)) − DL + 1 = INT (350/280 × (133 + 1)) − 68 + 1 = 100
4. Calculating SSWIDH, the width of the source area
Since SR' = 133 and SH = 280 pixels, judgment proceeds as follows.
Conditional expression:
INT (DH/SH × (SR' + 1)) × INT (SH/DH × 4096) + H1PHS_DCML ≥ (SR' + 1) × 4096
INT (350/280 × (133 + 1)) × INT (280/350 × 4096) + 819 ≥ (133 + 1) × 4096
Since the result of the conditional expression is "false", the value is obtained as shown below.
False: SSWIDH
= INT (((INT (DH/SH × (SR' + 1)) − 0) × INT (SH/DH × 4096) + H1PHS_DCML)/ 4096)
− SL+ 2
= INT (((INT (350/280 × (133 + 1)) − 0) × INT (280/350 × 4096) + 819)/ 4096) − 54 + 2 =
81
Rev. 1.00 Mar. 25, 2008 Page 1444 of 1868
REJ09B0372-0100