欢迎访问ic37.com |
会员登录 免费注册
发布采购

S1D13506 参数 Datasheet PDF下载

S1D13506图片预览
型号: S1D13506
PDF下载: 下载PDF文件 查看货源
内容描述: S1D13506彩色LCD / CRT / TV控制器 [S1D13506 Color LCD/CRT/TV Controller]
分类和应用: 电视控制器
文件页数/大小: 696 页 / 5934 K
品牌: EPSON [ EPSON COMPANY ]
 浏览型号S1D13506的Datasheet PDF文件第317页浏览型号S1D13506的Datasheet PDF文件第318页浏览型号S1D13506的Datasheet PDF文件第319页浏览型号S1D13506的Datasheet PDF文件第320页浏览型号S1D13506的Datasheet PDF文件第322页浏览型号S1D13506的Datasheet PDF文件第323页浏览型号S1D13506的Datasheet PDF文件第324页浏览型号S1D13506的Datasheet PDF文件第325页  
Epson Research and Development  
Page 87  
Vancouver Design Center  
10.2.10 Pattern Fill BitBLT withTransparency  
The Pattern Fill BitBLT with Transparency fills a specified rectangular area of the display  
buffer with a pattern. When a transparent color is selected, pattern pixels of the transparent  
color will not get copied, allowing creation of hatched patterns. The fill pattern is an eight  
by eight array of pixels stored in off-screen display buffer. The fill pattern must be loaded  
to off-screen display buffer prior to the BitBLT starting.  
The pattern itself must be stored in a consecutive array of pixels. As a pattern is defined to  
be eight pixels square, this results in 64 consecutive bytes for 8 bpp color depths and 128  
bytes for 15/16 bpp color depths. For 8 bpp color depths the pattern must begin on a 64 byte  
boundary, for 15/16 bpp color depths the pattern must begin on a 128 byte boundary.  
To fill an area using the Pattern Fill BitBLT with Transparency, the blit engine requires the  
location of the pattern, the destination rectangle position and size, and the transparency  
color. The blit engine also needs to know which pixel from the pattern is the first pixel in  
the destination rectangle (the pattern start phase). This allows seamless redrawing of any  
part of the screen using the pattern fill.  
Example 17: Fill a 100 x 250 rectangle at the screen coordinates x = 10, y = 20 with  
the pattern in off-screen memory at offset 10000h using a 640x480 dis-  
play at a color depth of 8 bpp. The first pixel (upper left corner) of the  
rectangle is the pattern pixel at x = 3, y = 4. Transparent color is blue (as-  
sumes LUT index 1).  
1. Calculate the destination address (upper left corner of destination rectangle), using the  
formula:  
DestinationAddress = (y × ScreenStride) + (x × BytesPerPixel)  
= (20 × 640) + (10 × 1)  
= 12810  
= 320Ah  
where:  
BytesPerPixel = 1 for 8 bpp  
BytesPerPixel = 2 for 15/16 bpp  
ScreenStride = DisplayWidthInPixels × BytesPerPixels = 640 for 8 bpp  
Program the BitBLT Destination Start Address Registers. REG[10Ah] is set to 00h,  
REG[109h] is set to 32h, and REG[108h] is set to 0Ah.  
2. Calculate the source address. This is the address of the pixel in the pattern that is the  
origin of the destination fill area. The pattern begins at offset 1M, but the first pattern  
pixel is at x = 3, y = 4. Therefore, an offset within the pattern itself must be calculated.  
SourceAddress  
= PatternOffset + StartPatternY × 8 × BytesPerPixel + StartPatternX × BytesPerPixel  
= 1M + (4 × 8 × 1) + (3 × 1)  
= 1M + 35  
= 1048611  
= 100023h  
Programming Notes and Examples  
Issue Date: 01/02/06  
S1D13506  
X25B-G-003-03  
 复制成功!