English
Language : 

SH7265 Datasheet, PDF (1558/2024 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7260 Series
Section 28 2D Graphics Engine (2DG)
• Examples of calculation
(1) Obtaining Sa, the first address of the area set as the source.
(a) Conditions
SA, the first address of the source area in the ca+se of full resizing: H'10000 (= 65536)
SH, the number of pixels across the source area in the case of full resizing: 120
ST, the number of lines to the top of the source area to be read out in the case of partial
resizing: 15
SL, the number of pixels horizontally to the left edge of the source area (first point) to be read
out in the case of partial resizing: 5
Number of bytes per pixel: 2
(b) Obtaining the pitch of rows in the source plane
SGP = ROUNDUP ((number of bytes for one pixel) × SH/64 bytes) × 64 bytes
= ROUNDUP ((2 bytes) × 120/64 bytes) × 64 bytes = 256 bytes
(c) Obtaining Sa, the first address of the area set as the source
Sa = SA + SGP × ST + SL × (number of bytes for one pixel)
=65536 + 256 bytes × 15 + 5 × 2 bytes = 69386 (= H'10F0A)
(2) Obtaining Da, the first address of the area set as the destination.
(a) Conditions
DA, the first address of the destination area in the case of full resizing: H'11000 (= 69632)
DH, the number of pixels across the destination area in the case of full resizing: 277
DT, the number of lines to the top of the destination area in the case of partial resizing: 33
DL, the number of pixels horizontally to the left edge of the destination area (first point) to be
read out in the case of partial resizing: 15
Number of bytes per pixel: 2
(b) Obtaining the pitch of rows in the source plane
DGP = ROUNDUP ((number of bytes for one pixel) × DH/64 bytes) × 64 bytes
= ROUNDUP ((2 bytes) × 277/64 bytes) × 64 bytes = 576 bytes
(c) Obtaining Da, the first address of the area set as the destination
Da = DA + DGP × DT + DL × (number of bytes for one pixel)
=69632 + 576 bytes × 33 + 15 × 2 bytes = 888670 (= H'15A5E)
Rev. 1.00 Mar. 14, 2008 Page 1522 of 1984
REJ09B0351-0100