AN1368
APPENDIX C:
ADVANCED USAGE
OF RCCGPU
FIGURE C-2:
EXPANDING RECTANGLE
1
The RCCGPU can be used to achieve different kinds of
graphical effects, for instance, animations and scrolling
screens. These effects are achieved using a buffer of
memory, that is separate from the frame buffer, which
contains the final image to be displayed on the screen .
The image from this buffer is then transferred to the
Draw
Buffer
2
Frame
Buffer
frame buffer in special ways which forms the various
visual effects on the screen. For example, transferring
the image vertically, line by line to the frame buffer,
gives the effect of peeling, whereas moving the existing
frame buffer, line by line, and filling the moved part with
the final image, gives the effect of scrolling the screen.
Some of the effects and their algorithm are as follows:
1. Move from Left to Right: This effect shows the
new screen sliding from left to right.
Algorithm:
Step i: The new screen is completely created in the
draw buffer.
Step ii: Move a rectangle of 2x2 from the middle of the
draw buffer to the middle of the frame buffer using the
RCCGPU rectangle copy command.
Step iii: Move a rectangle of 3x3 from the middle of the
draw buffer to the middle of the frame buffer using the
FIGURE C-1:
MOVE FROM LEFT TO RIGHT
1
RCCGPU rectangle copy command.
Repeat the above steps until the whole screen is
transferred to the frame buffer, as shown in Figure C-2 .
3.
Expanding Line: This effect shows a vertical line
expanding from the middle to the end in a
horizontal direction.
FIGURE C-3:
EXPANDING LINE
Draw Buffer
2
Frame Buffer
1
Algorithm:
Step i: The new screen is completely created in the
draw buffer.
Draw Buffer
Frame Buffer
Step ii: Move one right line (Height = Screen Height,
Width = One Pixel) from the draw buffer to the left side
of the frame buffer using the RCCGPU rectangle copy
command.
Step iii: Move two right lines (Height = Screen Height,
Width = 2 Pixels) from the draw buffer to the left side of
the frame buffer using the RCCGPU rectangle copy
command.
Repeat the above steps until the whole screen is
transferred to the frame buffer, as shown in Figure C-1 .
2
Algorithm:
Step i : The new screen to be shown is completely
created in the draw buffer.
Step ii: Move two middle lines (Height = Screen Height,
Width = 2 Pixels) from the draw buffer to the middle of
the frame buffer using the RCCGPU rectangle copy
command.
2.
Expanding Rectangle: This effect shows a
rectangle expanding from the middle to the
periphery of the screen.
Step iii: Move four middle lines (Height = Screen Height,
Width = 4 Pixels) from the draw buffer to the middle of
the frame buffer using the RCCGPU rectangle copy
command.
Repeat the above steps until the whole screen is
transferred to the frame buffer, as shown in Figure C-3 .
Similarly, many screen transition effects can be
achieved easily.
? 2011 Microchip Technology Inc.
DS01368A-page 31
相关PDF资料
AC164130 BOARD DAUGHT PICTL PLUS ECAN/LIN
AC164131 BOARD DAUGHTER USB PICTAIL PLUS
AC164132 BOARD DAUGHTER PICTAIL ETHERNET
AC164141 BOARD SMART CARD / SIM CARD
AC164142 BOARD DAUGHTER PWR LINE MODEM
AC164144 LLC PICTAIL PLUS DAUGHTR BRD
AC164145 BOARD DAUGHTER PWR LINE MODEM
AC243005-1 KIT MEMORY SERIAL SUPERFLASH 1
相关代理商/技术参数
AC164128 功能描述:子卡和OEM板 dsPICDEM Motor Cntrl PICtail Plus RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164129 功能描述:子卡和OEM板 Audio PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164130 功能描述:网络开发工具 ECAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:Rabbit Semiconductor 产品:Development Kits 类型:Ethernet to Wi-Fi Bridges 工具用于评估:RCM6600W 数据速率:20 Mbps, 40 Mbps 接口类型:802.11 b/g, Ethernet 工作电源电压:3.3 V
AC164130-2 功能描述:子卡和OEM板 CAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164131 功能描述:子卡和OEM板 USB PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164132 功能描述:以太网开发工具 100Mbps Ethernet PICtail Plus DB RoHS:否 制造商:Micrel 产品:Evaluation Boards 类型:Ethernet Transceivers 工具用于评估:KSZ8873RLL 接口类型:RMII 工作电源电压:
AC164133 功能描述:电源管理IC开发工具 dsPIC BuckBoost PICtail Daughtr Brd RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
AC164133 制造商:Microchip Technology Inc 功能描述:Buck/Boost Converter PICtail P