Move Bitblt With Color Expansion - Epson S1D13506 Technical Manual

Color lcd/crt/tv controller
Table of Contents

Advertisement

Page 88

10.2.11 Move BitBLT with Color Expansion

S1D13506
X25B-G-003-04
where:
BytesPerPixel = 1 for 8 bpp
BytesPerPixel = 2 for 15/16 bpp
Program the BitBLT Source Start Address Registers. REG[106h] is set to 10h,
REG[105h] is set to 00h, and REG[104h] is set 23h.
3. Program the BitBLT Width Registers to 100 - 1. REG[111h] is set to 00h and
REG[110h] is set to 63h (99 decimal).
4. Program the BitBLT Height Registers to 250-1. REG[113h] is set to 00h, and
REG[112h] is set to F9h (249 decimal).
5. Program the BitBLT Operation Register to select the Pattern Fill BitBLT with Trans-
parency. REG[103h] is set to 07h.
6. Program the BitBLT Background Color Registers to select transparent color. This ex-
ample uses blue (LUT index 1) as the transparent color. REG[114h] is set to 01h.
Note that for 15/16 bpp color depths, REG[115h] and REG[114h] are both required
and programmed directly with the value of the transparent background color. For ex-
ample, for full intensity green to be the transparent color in 16 bpp, REG[115h] is set
to 07h and REG[114h] is set to E0h.
7. Program the BitBLT Color Format Select bit for 8 bpp operations. REG[101h] is set
to 00h.
8. Program the BitBLT Memory Offset Registers to the ScreenStride in WORDS.
BltMemoryOffset = ScreenStride ÷ 2
REG[10Dh] is set to 01h and REG[10Ch] is set to 40h.
9. Program the BitBLT Destination/Source Linear Select bits for a rectangular blit (Bit-
BLT Destination Linear Select = 0, BitBLT Source Linear Select = 0).
Start the blit operation. REG[100h] is set to 80h.
Note
The order of register initialization is irrelevant as long as all relevant registers are pro-
grammed before the BitBLT is initiated.
The Move BitBLT with Color Expansion takes a monochrome bitmap as the source and
color expands it into the destination. Color expansion moves all bits in the monochrome
source to pixels in the destination. All bits in the source set to one are expanded into desti-
nation pixels of the selected foreground color. All bits in the source set to zero are expanded
into pixels of the selected background color.
= 640 ÷ 2
= 320
= 140h
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 02/03/21

Advertisement

Table of Contents
loading

Table of Contents