|
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
|
▷ |