Reserch and System Implementation of the Framebuffer-based Graphics Library in Embedded Linux
- Author
- XiaFan
- Advisor
- ChenShuYu
- School
- Chongqing University
- Major
- Software Engineering
- Classification
- TP391.41 Image recognition device
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 45
- Citations
- 0
Abstract
With the coming of the post-PC era, the embedded ARM-based system has significantly improved and becomes more and more widely-used. There also comes a problem that the older simple human-computer interaction interface becomes unable to meet the requirements of people. At the same time, the graphical interaction interface has already become mature. Thus, gradually some GUI (Graphic User Interface) system has been adopted in the embedded system.GUI can not display without the support of the graphics library. This paper not to discuss how to modify an existing graphics library and tranplant it to our system, but to discuss how to design and implement a small graphics library based on the Framebuffer in Linux ourselves. Framebuffer only provides some primitive graphics operations, such as write some data to the display memory to display a certain point. Eventually the graphics library we implement will be applied in practice.The main work of this paper is as follows:①Design and implement to display vector graphics on the screen using some graphic algorithms: midpoint line drawing algorithm, midpoint circle drawing algorithm and seed filling algorithm.②Design and implement to display the bitmap on the screen by getting its width and height information from its information header and mapping its data array to framebuffer.③Design a small dot-matrix characters library, implement to display common ASCII characters on the screen through dot-matrix characters displaying principle.④Design a new kind of window only containing client area, implement to display this window on the screen using vector graphics displaying method.⑤Implement message-response mechanism by the message queue and circle reading method to achieve human-computer interaction. Main messages include timer messages, touch-screen messages, keyboard messages.⑥Design and implement a series of window controls using single linked list to facilitate the application development.Experiment shows that the graphics library we have implemented have the features mentioned above. This paper shows the operating results of this graphics library and does a comparison between this graphics library and other famous graphics libraries.
Table of contents
Chinese abstract 3-4
English summary 4-8
1 Introduction 8-11
1.1 Background 8
1.2 domestic and foreign research status 8-10
1.3 purpose and research 10
1.4 nbsp paper tissue structure ; 10-11
2 related technologies 11-18
2.1 Linux-based embedded systems 11-13
2.1.1 embedded Systems 11
2.1.2 embedded operating system 11-12
2.1.3 select structure embedded Linux systems 12-13
2.2 Framebuffer principle 13-18
2.2.1 Framebuffer Profile 13-14
2.2.2 Framebuffer internal structure 14
2.2.3 Framebuffer setting 14-15
2.2.4 Framebuffer display mechanism 15
2.2.5 Framebuffer basic programming design 15-18
3 graphics library hierarchical design 18-31
3.1 graphics library 18-20
3.1.1 device driver layer 18-19
3.1.2 engine intermediate layer 19-20
3.1.3 API layer 20
design nbsp 3.2 GUI object module ; Showing 20-23
3.2.1 vector graphics 20-21
3.2.2 BMP bitmap display Showing 21-22
3.2.3 character design nbsp 22-23
3.3 window module ; 23-25 ??
3.3.1 GUI wINDOW 23-24
3.3.2 coordinate system 24-25
3.3.3 output window 25
3.4 messaging system module design 25-27
design nbsp 3.5 control module ; 27-31
3.5.1 button 28
3.5.2 static frame 28-29
3.5.3 single box 29
3.5.4 checkbox achieve 29-31
4 graphics library 31-49 <br / > 4.1 point to achieve drawn 4.2 31-32
draw a straight line with a dotted line algorithm to achieve achieved with the midpoint of the 32-33
4.3 circle drawn round algorithm 33-35
4.4 area filled with seed filling algorithm achieve 35-36
4.5 BMP bitmap display 36-39
4.6 characters Implementation and dot matrix character display principle 39-41
4.6.1 dot character principle 39-40
realize 4.6.2 character display 40 - achieve 41
4.7 window achieve 41-42
4.8 message mechanism 42-46
4.8.1 news 42-44 <br / > 4.8.2 message Queue 44-45
4.8.3 message loop achieve 45-46
4.9 controls 46-49
4.9. a control structure with a control list 46-47
4.9.2 controls Click handling 47-49
testing and comparison of five systems 49-57 <br / > 5.1 system Test 49-53
5.1.1 Framebuffer environment settings 49-51
5.1.2 graphics library based on the preparation of the application and the Makefile file 51-53
5.2 system works contrast 53-55
5.3本graphics library and other graphics libraries 55-57
6 summary and Outlook 57-58
Thanks 58-59
References 59-61
Appendix 61
A period of study for a degree in published papers directory research nbsp 61
B during study for a degree of participation ; 61
Related dissertations
- Research on Embedded Control System for Palletizing Robot
- Embeded Fire Cannon Control System Use in the Car Which Based on Linux Operating System
- The research on government audit risk
- A Study on College Internal Audit Risk Based on Modern Risk-oriented Audit Mode
- Research on Control the Excessive Growth of the Social Medical Insurance Costs
- A Research on the Credit Risk Control of Sub-National Goverment Bond
- The Study of Offshore Financial Operational Risk Control of a Bank
- The Research on Financial Service Outsourcing Risk Management of Commercial Banks
- Research on Risk Management of Puyang Heyin’s Town Bank
- The Comparison and Enlightenment of Intermediate Business Income of Chinese and Foreign Commercial Banks
- Research on IT Outsourcing Risk Control of Medium-sized and Small Enterprises
- Study on Budgeting Control System of Activity-based Costs
- Research on the Logistics Cost Control of Chinese Manufacturer Enterprises
- Small and Medium-sized Enterprise Financial Risk Control Research
- Gansu Small and Medium Enterprises Gredit Guarantee Institutions Risk and Control
- On prevention and control of enterprise financial risk
- Research on Innovation Control Capability of Complex Product and Systems Integrators
- Product Competitive Strategy of Hitro Co, Ltd, Dalian
- Research on Forewarning and Control Mechanism for Brain Drain of High-tech Company
- Stakeholder Governance in the Mergers and Acquisitions of Securities Company