English
Language : 

SH7205 Datasheet, PDF (1488/1904 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
Section 26 2D Graphics Engine (2DG)
Example 2: Duplicate-line settings in the case of partial resizing
• Conditions
Number of source lines: 9
Number of destination lines: 18
Multiplication: 2 times
Source starting position: Line 5
In this case, when the conditional expression given earlier is applied to all lines, the results are as
shown in figure 26.48. The number of lines for transfer as the total obtained from the conditional
expression for line duplication is thus 17.
Number of source lines: 9
Source-line number
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Result of judgment
1
2
2
2
2
2
2
2
2
Number of lines for transfer =
total of the results of judgment = 17
Figure 26.48 Duplicate-line Setting for partial resizing
(c) How to set the register for duplicate-line setting
When lines are to be set in duplicate, the resize register in the 2DG must be set in the same manner
as normal resizing settings. The source image size should be set in terms of the number of
horizontal pixels and the number of lines that are actually transferred by the CPU to the 2DG. For
the resize image size, set the number of horizontal pixels and the number of lines that are actually
written to the memory by the 2DG. Examples are shown in figures 26.44 and 26.45.
Rev. 1.00 Mar. 25, 2008 Page 1456 of 1868
REJ09B0372-0100