CN101471040B - Simulated overlapping surface implementing method based on MPU interface LCD module - Google Patents

Simulated overlapping surface implementing method based on MPU interface LCD module Download PDF

Info

Publication number
CN101471040B
CN101471040B CN2007100328209A CN200710032820A CN101471040B CN 101471040 B CN101471040 B CN 101471040B CN 2007100328209 A CN2007100328209 A CN 2007100328209A CN 200710032820 A CN200710032820 A CN 200710032820A CN 101471040 B CN101471040 B CN 101471040B
Authority
CN
China
Prior art keywords
rectangle
rectangles
lcd module
effective
method based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2007100328209A
Other languages
Chinese (zh)
Other versions
CN101471040A (en
Inventor
林桂杰
胡胜发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Ankai Microelectronics Co.,Ltd.
Original Assignee
Anyka Guangzhou Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anyka Guangzhou Microelectronics Technology Co Ltd filed Critical Anyka Guangzhou Microelectronics Technology Co Ltd
Priority to CN2007100328209A priority Critical patent/CN101471040B/en
Publication of CN101471040A publication Critical patent/CN101471040A/en
Application granted granted Critical
Publication of CN101471040B publication Critical patent/CN101471040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The invention discloses a method for realizing simulating covering surface based on an MPU interface liquid crystal display module, which mainly comprises the following steps: firstly, only an original rectangle on a screen at the beginning, secondly, the original rectangle is divided into a plurality of rectangles when inserting into the rectangle, wherein the rectangles whose height and widths are zero are ineffective rectangles, thirdly, finding the corresponding rectangles and refurbishing according to a certain refurbishing condition when refurbishing. The invention utilizes the LCM characteristic of the MPU interface, and realizes the function of covering the surface on an LCD controller which has no hardware covering surface function. Since the copy between pictures and internal memory, the speed of displaying the pictures is improved, and the video playing quality is obviously improved.

Description

Simulated overlapping surface implementation method based on the MPU interface LCD module
Technical field
The present invention relates to a kind of LCD MODULE covering surfaces (Overlay Surface) implementation method, especially relate to a kind of software simulation covering surfaces implementation method based on MPU interface LCD module (LCM).
Background technology
Covering surfaces also is known as overlapped surfaces or overlayer usually, is the surface of the specific hardware supported of a kind of needs.By the covering surfaces technology, can realize transparent and special efficacy convergent-divergent, and allow to have the first type surface of different pixel formats and covering surfaces and combine and need not to carry out the conversion of pixel format.Covering surfaces is normally used for showing real-time video, video record, or static bitmap is on first type surface, and do not need to carry out the content that Blit operates on the first type surface or changes first type surface with any method.Common covering surfaces that is to say that fully by hardware supported lcd controller must have this function.But at present, a lot of integrated lcd controllers of embedded type CPU are not supported covering surfaces.When displaying video, just must will the picture displayed data copy on the video memory like this, could realize showing by memory copying.If the pixel format of video source and first type surface are inequality, then also must carry out format conversion, and this is an action more consuming time.Therefore, the inefficiency in the time of can causing displaying video is play discontinuous.
Summary of the invention
The object of the present invention is to provide a kind of simulated overlapping surface implementation method based on the MPU interface LCD module, can make on the LCD lcd controller that in the embedded type CPU integrated system, does not have hardware covering surfaces function, realize the covering surfaces function, reached the display effect of covering surfaces.
For achieving the above object, a kind of simulated overlapping surface implementation method based on the MPU interface LCD module of the present invention may further comprise the steps:
When A, beginning whole screen is considered as an original rectangular;
B, past original rectangular are inserted an energy by the rectangle that original rectangular comprised, and original rectangular is divided into a plurality of rectangles;
In C, the rectangle that in step B, forms, all be not that 0 rectangle is the Rule of judgment of effective rectangle, find out all effective rectangles according to the height and width of rectangle;
D, from the combination of effective rectangle, find the one or more rectangles that meet display condition, with the coordinate figure of rectangle coordinate register in the LCD MODULE is set, then the rectangle corresponding display content is flushed on the LCD MODULE, on display screen, produce one by first type surface and the synthetic image of covering surfaces;
The present invention is not when needing to show covering surfaces, and the rectangle deletion with inserting among the step B reverts to original rectangular.
Rectangle partition process among the B of step described in the present invention is: two limits up and down that will insert rectangle prolong, up to be inserted into rectangle about two limits intersect, divide the new rectangle of coming out thus.
Each effective rectangle comprises following attribute described in the present invention:
A. the chain list index is used for own chain is gone into visual or not visible chained list;
B. the regional therewith surperficial pointer that is associated;
C. parents' regional indicator;
D. pixel format;
E. store data type.Be divided into continuously, be used for the pilot brush New Policy with discontinuous;
F. video memory address;
G. the dirty sign of video memory is used to represent whether displaying contents has changed.
The concrete steps of finding out all effective rectangles among the C of step described in the present invention are:
1, obtains the wide and high of each new rectangle;
2, from new rectangle, take out one;
3, judging whether the wide or high of new rectangle is 0, promptly is to judge whether this rectangle is invalid rectangle;
If 4 invalid rectangles are abandoned;
If 5 effective rectangles are then preserved this rectangle;
6, from new rectangle, take out the next one again;
7, repeat 3,4,5,6 three steps are up to handling all rectangles;
8, finish above step, will obtain rectangular set.
Display condition of the present invention is that the attribute set when refreshing with request of one of attribute of selected effective rectangle is identical.
Step display described in the present invention is:
1) from the rectangular set that generates, takes out a rectangle;
2) judge whether the rectangle corresponding display content changes, the dirty true time that is masked as of the video memory in the rectangle attribute is represented to have changed, for fictitious time is represented not change; Judge promptly whether this rectangle needs to refresh;
3) if do not need to refresh, then abandon;
4) if need refresh, then the coordinate figure with this rectangle is provided with coordinate register relevant in the LCD MODULE, refreshes scope to select it, and then the video data of rectangle correspondence is flushed to LCD MODULE;
5) in the rectangular set that from the rectangle partiting step, generates, take out next rectangle;
6) repeating step 2~5, up to having refreshed all rectangles.
Because the present invention has utilized MPU interface LCD module LCM, by to showing that rectangle carries out simple process, just realized the function of covering surfaces, making does not have the embedded type CPU of hardware covering surfaces function, and the function of covering surfaces also can be provided.Because on the basis of covering surfaces, for showing real-time video, video record, or the such operation on first type surface of static bitmap, the content that need not to carry out memory copying and revise first type surface is so can significantly improve display speed.And support the YUV pixel format for some, but the embedded type CPU of support hardware covering surfaces not, because covering surfaces can support pixel format and first type surface inequality, so can also save the very long switching time that yuv format is converted to rgb format, display speed improves a lot especially.
Description of drawings
The present invention is further illustrated below in conjunction with specific embodiment.
Fig. 1 is an original rectangular;
Fig. 2 is the division figure when inserting a rectangle;
Fig. 3 is the figure that is used to analyze partiting step.
Embodiment
As Fig. 1, Fig. 2 and shown in Figure 3, insert an energy by the rectangle that original rectangular comprised toward original rectangular, original rectangular is divided into a plurality of rectangles; Two limits up and down that to insert rectangle prolong, up to be inserted into rectangle about two limits intersect, divide the new rectangle of coming out thus.Have 1~5 (rectangle that comprises insertion), hypothesis always generates 5 new rectangles earlier, and these 5 rectangles are judged, and is specific as follows:
1) calculates the wide and high of 5 new rectangles;
2) from 5 new rectangles, take out one;
3) judging whether the wide or high of new rectangle is 0, promptly is to judge whether this rectangle is invalid rectangle;
4) if invalid rectangle abandon;
5) if effective rectangle is then preserved this rectangle;
6) from 5 new rectangles, take out the next one.
7) repeat 4,5,6,7 three steps are up to handling all rectangles;
8) finish above step, will obtain rectangular set.
In effective rectangular set that step 8) obtains, each effective rectangle comprises following attribute:
A. the chain list index is used for own chain is gone into visual or not visible chained list;
B. the regional therewith surperficial pointer that is associated;
C. parents' regional indicator;
D. pixel format;
E. store data type.Be divided into continuously, be used for the pilot brush New Policy with discontinuous;
F. video memory address;
G. the dirty sign of video memory is used to represent whether displaying contents has changed.
As shown in Figure 3, original rectangular has been divided into 5 new rectangles.
Because video data is deposited by row, is the data continuity that guarantees that as far as possible each is regional, two horizontal sides up and down of the rectangle put into are extended, intersect with two limits about former rectangle.
Suppose each rectangle upper left corner coordinate and lower right corner coordinate representation, (x, represent by form y) with P for point coordinate.Original rectangular represents that with T the rectangle of putting into represents that with K other alphabetical implication is as follows:
l:left
r:right
t:top
b:bottom
It is as shown in table 1 then can to obtain each newly-generated rectangle:
Table 1
The rectangle sequence number Upper left corner coordinate P (x, y) Lower right corner coordinate P (x, y) Wide High
0 ?Tl,Tt ?Tr,Kt-1 ?Tr-Tl+1 ?Kt-Tt
1 ?Tl,Kt ?Kl-1,Kb ?Kl-Tl ?Kb-Kt+1
2 ?Kl,Kt ?Kr,Kb ?Kr-Kl+1 ?Kb-Kt+1
3 ?Kr+1,Kt ?Tr,Kb ?Tr-Kr ?Kb-Kt+1
4 ?Tl,Kb+1 ?Tr,Tb ?Tr-Tl+1 ?Tb-Kb
The sequence number of rectangle is by from left to right, from top to bottom tactic.When some rectangles wide or high is 0, represent that this rectangle is invalid.By this Rule of judgment, just can obtain effective rectangular set and merge preservation.Effective rectangular set in this example be 0,1,2,3,4}, wherein sequence number is that the surface of 2 rectangle correspondence is a covering surfaces, the surface of all the other rectangle correspondences is a first type surface.
From effective rectangle combination, find the one or more rectangles that meet display condition (attribute of setting when one of attribute that is rectangle refreshes with request is identical), with the coordinate figure of rectangle coordinate register in the LCD MODULE is set, then the rectangle corresponding display content is flushed on the LCD MODULE, on display screen, produce one by first type surface and the synthetic image of covering surfaces;
Concrete step is:
1, in the rectangular set that from the rectangle partiting step, generates, takes out a rectangle;
2, judge whether the rectangle corresponding display content changes, judge promptly whether this rectangle needs to refresh;
3, if do not need to refresh, then abandon;
4, if need refresh, then the coordinate figure with this rectangle is provided with coordinate register relevant among the LCM, refreshes scope to select it, and then the video data of rectangle correspondence is flushed to LCM;
5, in the rectangular set that from the rectangle partiting step, generates, take out next rectangle;
6, repeating step 2~5, up to having refreshed all rectangles.
After displaying contents changes, need refresh, the dirty true time that is masked as of the video memory in the rectangle attribute is represented to have changed, for fictitious time is represented not change.Corresponding tables 1, if the displaying contents of first type surface has changed, then only need refresh rectangle 0,1,3,4}; If the displaying contents of covering surfaces has changed, then only need refresh rectangle { 2}.When refreshing, the relevant coordinate register of LCM is set, refreshes scope to select it, and then the video data of rectangle correspondence is flushed to LCM with the coordinate figure that refreshes rectangle.
If when not needing to show covering surfaces, the rectangle deletion with inserting reverts to original rectangular.

Claims (6)

1. simulated overlapping surface implementation method based on the MPU interface LCD module is characterized in that may further comprise the steps:
When A, beginning whole screen is considered as an original rectangular;
B, past original rectangular are inserted an energy by the rectangle that original rectangular comprised, and original rectangular is divided into a plurality of rectangles; Rectangle partition process among the described step B is: two limits up and down that will insert rectangle prolong, up to be inserted into rectangle about two limits intersect, divide the new rectangle of coming out thus;
In C, the rectangle that in step B, forms, all be not that 0 rectangle is the Rule of judgment of effective rectangle, find out all effective rectangles according to the height and width of rectangle;
D, from the combination of effective rectangle, find the one or more rectangles that meet display condition, with the coordinate figure of rectangle coordinate register in the LCD MODULE is set, then the rectangle corresponding display content is flushed on the LCD MODULE, on display screen, produce one by first type surface and the synthetic image of covering surfaces.
2. the simulated overlapping surface implementation method based on the MPU interface LCD module according to claim 1 is characterized in that when not needing to show covering surfaces, and the rectangle deletion with inserting among the step B reverts to original rectangular.
3. the simulated overlapping surface implementation method based on the MPU interface LCD module according to claim 1 is characterized in that each effective rectangle comprises following attribute:
A. the chain list index is used for effective rectangle chain is gone into visual or not visible chained list;
B. the regional therewith surperficial pointer that is associated;
C. parents' regional indicator;
D. pixel format;
E. store data type; Be divided into continuously, be used for the pilot brush New Policy with discontinuous;
F. video memory address;
G. the dirty sign of video memory is used to represent whether displaying contents has changed.
4. the simulated overlapping surface implementation method based on the MPU interface LCD module according to claim 1 is characterized in that the concrete steps of finding out all effective rectangles among the described step C are:
1, obtains the wide and high of each new rectangle;
2, from new rectangle, take out one;
3, judging whether the wide or high of new rectangle is 0, promptly is to judge whether this rectangle is invalid rectangle;
If 4 invalid rectangles are abandoned;
If 5 effective rectangles are then preserved this rectangle;
6, from new rectangle, take out the next one again;
7, repeat 3,4,5,6 four steps are up to handling all rectangles;
8, finish above step, will obtain rectangular set.
5. the simulated overlapping surface implementation method based on the MPU interface LCD module according to claim 3 is characterized in that the attribute of setting when one of display condition is selected effective rectangle among the described step D attribute refreshes with request is identical.
6. the simulated overlapping surface implementation method based on the MPU interface LCD module according to claim 1 is characterized in that concrete step display is among the described step D:
1) from the rectangular set that generates, takes out a rectangle;
2) judge whether the rectangle corresponding display content changes, the dirty true time that is masked as of the video memory in the rectangle attribute is represented to have changed, for fictitious time is represented not change; Judge promptly whether this rectangle needs to refresh;
3) if do not need to refresh, then abandon;
4) if need refresh, then the coordinate figure with this rectangle is provided with coordinate register relevant in the LCD MODULE, refreshes scope to select it, and then the video data of rectangle correspondence is flushed to LCD MODULE;
5) in the rectangular set that from the rectangle partiting step, generates, take out next rectangle;
6) repeating step 2)~5), up to having refreshed all rectangles.
CN2007100328209A 2007-12-25 2007-12-25 Simulated overlapping surface implementing method based on MPU interface LCD module Active CN101471040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100328209A CN101471040B (en) 2007-12-25 2007-12-25 Simulated overlapping surface implementing method based on MPU interface LCD module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100328209A CN101471040B (en) 2007-12-25 2007-12-25 Simulated overlapping surface implementing method based on MPU interface LCD module

Publications (2)

Publication Number Publication Date
CN101471040A CN101471040A (en) 2009-07-01
CN101471040B true CN101471040B (en) 2011-05-18

Family

ID=40828467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100328209A Active CN101471040B (en) 2007-12-25 2007-12-25 Simulated overlapping surface implementing method based on MPU interface LCD module

Country Status (1)

Country Link
CN (1) CN101471040B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004621B (en) * 2010-11-15 2012-09-05 华为技术有限公司 Graphic display method, device and system
CN102984436B (en) * 2011-09-07 2016-02-24 晨星软件研发(深圳)有限公司 Image method for refreshing and coherent video processing unit
CN102819997B (en) * 2012-07-13 2015-05-20 深圳邦健生物医疗设备股份有限公司 Display method and device for displaying acceleration

Also Published As

Publication number Publication date
CN101471040A (en) 2009-07-01

Similar Documents

Publication Publication Date Title
US4225861A (en) Method and means for texture display in raster scanned color graphic
DE69735975T2 (en) System and method for superimposing images optionally stored in different native formats
WO2018201512A1 (en) Method of compensating mura defect of display panel, and display panel
CN104992657A (en) Mura compensation module and method, display device and method
CN103761315A (en) Method and system for displaying webpage content
JP3892900B2 (en) Window system with individual windows of arbitrary resolution for display on multiple devices of arbitrary resolution
CN101656037B (en) Method for displaying large-format picture on small screen equipment and small screen equipment
CN101471040B (en) Simulated overlapping surface implementing method based on MPU interface LCD module
JP4707782B2 (en) Image processing apparatus and method
CN102842145A (en) Tiled graphics architecture
US5828384A (en) Image display control device, method and computer program product
CN114692034A (en) Image display method, image display device, electronic equipment and computer storage medium
KR100613747B1 (en) Image processing apparatus and method of the same
CN115129191B (en) Three-dimensional object pickup method, device, equipment and storage medium
CN100489900C (en) Image processing apparatus and image processing method
CN112445989A (en) WebGIS (Web geographic information System) -based map text label avoidance display method and device
CN113495665A (en) Image display method, image display device, electronic equipment and computer readable storage medium
CN106485767B (en) Method and device for drawing symbols
CN101661730A (en) Method and device for reducing color gradation of image display
TWI685834B (en) Display driving circuit and operating method thereof
CN115100081B (en) LCD display screen gray scale image enhancement method, device, equipment and storage medium
CN107885880A (en) A kind of storage method of LOGO pictures
CN114627228A (en) Method and device for displaying sequence frame image and storage medium
JPH04160479A (en) Setting system for character string display position
CN105468312A (en) Image display method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510663 301-303, 401-402, zone C1, 182 science Avenue, Science City, Guangzhou high tech Industrial Development Zone

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 301-303 401-402, zone C1, No. 182, science Avenue, Science City, Guangzhou high tech Industrial Development Zone

Patentee before: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 510555 No. 107 Bowen Road, Huangpu District, Guangzhou, Guangdong

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 301-303, 401-402, zone C1, No. 182, science Avenue, Science City, Guangzhou high tech Industrial Development Zone

Patentee before: Guangzhou Ankai Microelectronics Co.,Ltd.