CN101727882B - Method for rolling display of character string - Google Patents

Method for rolling display of character string Download PDF

Info

Publication number
CN101727882B
CN101727882B CN2009102311786A CN200910231178A CN101727882B CN 101727882 B CN101727882 B CN 101727882B CN 2009102311786 A CN2009102311786 A CN 2009102311786A CN 200910231178 A CN200910231178 A CN 200910231178A CN 101727882 B CN101727882 B CN 101727882B
Authority
CN
China
Prior art keywords
character string
display
zone
buffer zone
character
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.)
Expired - Fee Related
Application number
CN2009102311786A
Other languages
Chinese (zh)
Other versions
CN101727882A (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN2009102311786A priority Critical patent/CN101727882B/en
Publication of CN101727882A publication Critical patent/CN101727882A/en
Application granted granted Critical
Publication of CN101727882B publication Critical patent/CN101727882B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method for rolling display of a character string, which comprises the following steps of: establishing a buffer area; writing the rolling displayed character string into the buffer area; and reading characters from the buffer area and refreshing to a rolling display area for display. The buffer area is established inside a system to store the rolling displayed character string, and only the buffer area is operated when the characters are refreshed each time, thereby reducing the occupation for a system memory and a CPU and improving the response speed of the integral system.

Description

A kind of method of rolling display of character string
Technical field
The present invention relates to a kind of display packing of character string, specifically, relate to a kind of method of rolling display of character string.
Background technology
Be to improve character string dynamic display effect, improve the utilization factor of display screen, often need be on display screen rolling display of character string.Prior art at first need empty the roll display zone on the display screen when rolling display of character string, call character library then, search the character of wanting in the characters displayed string, and it is flushed to the roll display zone, and the character string pointer offset is to character late then.Current screen show finish after, empty the roll display zone once more, call character library then, search next screen and want characters displayed, and it is flushed to the roll display zone.When the pointed tail of string, be the character string head with pointer assignment again, realize that the circulating rolling of character string shows.
In the process of above-mentioned rolling display of character string, be to be that unit carries out roll display with the character, need empty the roll display zone continually, from character library, search the character in the character string and refresh to roll display regional; Therefore; Can take a large amount of Installed System Memories and cpu resource, increase system load, cause the total system response speed to descend; Especially in the nervous relatively embedded system of system resource, its influence is more obvious.
Summary of the invention
The present invention is directed to the technical matters that rolling display of character string need take a large amount of Installed System Memories and cpu resource in the prior art, cause system response time to descend; A kind of method of rolling display of character string is provided; Through setting up buffer zone in internal system, the character string of storage roll display is only operated buffer zone when refreshing character at every turn; Reduced the taking of Installed System Memory and CPU, improved the response speed of entire system.
For solving the problems of the technologies described above, the present invention adopts following technical scheme to be achieved:
A kind of method of rolling display of character string comprises the steps:
Set up buffer zone;
The character string of roll display is write in the said buffer zone;
Read character from said buffer zone, flush to the roll display zone and show.
According to the present invention; For save memory headroom as far as possible; Before setting up buffer zone; At first obtain the demonstration font size in roll display zone and the character string of roll display, calculate plain width value and the height value of corresponding characters crossview under said demonstration font size, set up buffer zone according to said width value and said height value then.
According to the present invention; For avoiding carrying out continually the operation that empties the roll display zone; To show that corresponding characters crossview element writes in the said buffer zone under the font size, and from said buffer zone, read then and comprise character pixels zone character pixels, that adapt with the roll display area size and flush to the roll display zone and show.
According to the present invention, read after a character pixels zone flushes to the roll display zone from said buffer zone, the reading pointer in the buffer zone moves the amount of specifying Offsets backward.
Wherein, said side-play amount can be confirmed according to the pixel of character in the character string.
According to the present invention,, when the reading pointer in said buffer zone moves to the buffer zone afterbody, be the buffer zone head with reading pointer assignment again for the circulating rolling of realizing character string shows.
According to the present invention, the method for rolling display of character string also is included in the step that discharges the buffer zone of being set up when stopping roll display.
Compared with prior art, advantage of the present invention and good effect are:
1, the present invention is through setting up buffer zone in internal system; The character string of storage roll display; Only buffer zone operated when refreshing character at every turn, and needn't as prior art, inquire about, thereby effectively reduced roll display taking Installed System Memory and CPU to the equal invoke memory character library of each character that will refresh; Alleviate the load of total system, improved the entire system response speed.
2, the present invention comprises character pixels zone character pixels, that adapt with the roll display area size and directly flushes to the roll display zone and show through from said buffer zone, reading; The character pixels zone of being read can cover whole roll display zone fully; Directly replace last time roll display zone content displayed with the character pixels zone of newly reading; Empty the regional operation steps of roll display thereby avoided prior art before refreshing character, to carry out at every turn; Reduced the taking of system CPU resource, shortened the refresh time of roll display, improved the entire system performance.
Description of drawings
Fig. 1 is the process flow diagram of an embodiment of rolling display of character string according to the invention.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further detailed explanation.
The present invention is a starting point with the caused resource occupation of existing techniques in realizing character string roll display; Again consider the implementation method of rolling; A kind of method of rolling display of character string is provided; Be specially: at first in internal memory, create a buffer zone, the character string with roll display writes in the said buffer zone then; When carrying out roll display, directly from said buffer zone, read character and flush to the roll display zone, and only buffer zone operated when refreshing character later at every turn and get final product; When stopping roll display, discharge the buffer zone of being created, the regression system resource.The present invention is through setting up buffer zone in internal memory; All write in the said buffer zone the character string that needs roll display is disposable; Refresh character later on only operates this buffer zone at every turn; Avoided frequently to call the operation that character library is inquired about in the previous methods, reduced taking Installed System Memory and cpu resource.
Fig. 1 shows the process flow diagram of an embodiment of rolling display of character string according to the invention.Because prior art when rolling display of character string, all need empty the roll display screen before each character refreshes, cause showing mistake with character overlap before and after avoiding, thereby take cpu resource, and prolong the refresh time of roll display.This embodiment realizes at buffer zone on the basis of rolling display of character string, proposed the technical scheme that addresses the above problem simultaneously, and concrete performing step is following:
S101: flow process begins.
S102: obtain the size in roll display zone, this roll display zone is the viewing area that rolling effect frequently refreshes.Simultaneously, obtaining the attribute of this roll display zone display font, mainly is the font size of display font, and the size of font size has determined the width and the height of character string.
S103: obtain the character string that needs roll display.
S104: the width value and the height value of calculating character string corresponding pixel under said font size.
S105: width value and height value according to aforementioned calculation are set up buffer zone, and the assurance buffer zone can be deposited the character string of all roll display, is unlikely to waste memory headroom again.
S106: the character string that will show need roll display corresponding under the font size writes in the buffer zone.
Above-mentioned each step is mainly accomplished the preliminary work before the roll display, and preliminary work is accomplished, and follow-up roll display process is only operated to buffer zone and got final product.
S107: on the basis of preliminary work; Begin from the buffer zone head, read the character pixels zone in the buffer zone, flush to the roll display zone; Wherein, said character pixels zone is to comprise to need the zone characters displayed pixel, that adapt with the roll display area size.Because the buffer zone of in each step of above-mentioned preliminary work, being set up is equivalent to a viewing area, in this zone, show the character string of whole need roll display, when refreshing the roll display zone; Directly from buffer zone, read a character pixels zone; Cover whole roll display zone fully, directly replace last time roll display zone content displayed, the problem of character overlap can not occur with the character pixels zone of newly reading; Therefore; No longer need empty the roll display zone before refresh, reduce, shorten the refresh time of roll display the taking of cpu resource.
S108: after having read a character pixels zone, the reading pointer in the buffer zone moves the amount of specifying Offsets backward.Wherein, said side-play amount can confirm that for example, can define side-play amount is a width that shows font size character late pixel according to the pixel of character in the character string.
S109: judge whether reading pointer moves to the buffer zone afterbody.If, execution in step S110; Otherwise, go to step S107, continue to read the character pixels zone and flush to the roll display zone, realize the roll display of character string.
S110: when reading pointer had moved to the buffer zone afterbody, the assignment reading pointer was the buffer zone head again, and reading pointer points to the buffer zone head position again.
S111: judge whether to stop roll display.If stop roll display, execution in step S112; If do not stop roll display, then go to step S107, read the character pixels zone again from the buffer zone head and show, realize that the circulating rolling of character string shows.
S112: if system stops rolling display of character string, then discharge the buffer zone of setting up, regression system resource, the whole operation process of completion rolling display of character string.
S113: flow process finishes.
The foregoing description is set up buffer zone, is the roll display that reading unit is realized character string with the character pixels zone in the buffer zone through employing, replaced frequent execution of prior art needs to empty viewing area, call word library lookup character and flush to the regional process of roll display.Through test comparison, the described method of this embodiment can greatly reduce the taking of Installed System Memory and cpu resource, and has shortened the time that takies, thereby has alleviated the load of total system, has improved the response speed of entire system.
Certainly; The above only is a kind of preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (7)

1. the method for a rolling display of character string is characterized in that, comprises the steps:
Obtain the demonstration font size in roll display zone and the character string of roll display, calculate plain width value and the height value of corresponding characters crossview under said demonstration font size, set up buffer zone according to said width value and said height value then;
The character string of roll display is write in the said buffer zone;
Read character from said buffer zone, flush to the roll display zone and show.
2. the method for rolling display of character string according to claim 1 is characterized in that, will show that corresponding characters crossview element writes in the said buffer zone under the font size.
3. the method for rolling display of character string according to claim 2 is characterized in that, from said buffer zone, reads to comprise character pixels zone character pixels, that adapt with the roll display area size and flush to the roll display zone and show.
4. the method for rolling display of character string according to claim 3 is characterized in that, reads after a character pixels zone flushes to the roll display zone from said buffer zone, and the reading pointer in the buffer zone moves the amount of specifying Offsets backward.
5. the method for rolling display of character string according to claim 4 is characterized in that, said side-play amount is confirmed according to the pixel of character in the character string.
6. the method for rolling display of character string according to claim 5 is characterized in that, when the reading pointer in said buffer zone moves to the buffer zone afterbody, is the buffer zone head with reading pointer assignment again.
7. according to the method for each described rolling display of character string in the claim 1 to 6, it is characterized in that the method for rolling display of character string also is included in the step that discharges the buffer zone of being set up when stopping roll display.
CN2009102311786A 2009-12-07 2009-12-07 Method for rolling display of character string Expired - Fee Related CN101727882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102311786A CN101727882B (en) 2009-12-07 2009-12-07 Method for rolling display of character string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102311786A CN101727882B (en) 2009-12-07 2009-12-07 Method for rolling display of character string

Publications (2)

Publication Number Publication Date
CN101727882A CN101727882A (en) 2010-06-09
CN101727882B true CN101727882B (en) 2012-01-11

Family

ID=42448676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102311786A Expired - Fee Related CN101727882B (en) 2009-12-07 2009-12-07 Method for rolling display of character string

Country Status (1)

Country Link
CN (1) CN101727882B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104795033B (en) * 2015-04-17 2017-03-22 飞天诚信科技股份有限公司 Display method of paged LCD
CN110675800A (en) * 2019-11-07 2020-01-10 广东乐心医疗电子股份有限公司 Display screen driving method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2329504A (en) * 1997-09-17 1999-03-24 Alan William Robinson Scrolling message alarm
CN1246236A (en) * 1996-12-19 2000-03-01 汤姆森消费电子有限公司 Method and apparatus for providing modulated scroll rate for text display
CN101662616A (en) * 2009-09-17 2010-03-03 北京中科智网传媒技术有限公司 Character rolling display method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1246236A (en) * 1996-12-19 2000-03-01 汤姆森消费电子有限公司 Method and apparatus for providing modulated scroll rate for text display
GB2329504A (en) * 1997-09-17 1999-03-24 Alan William Robinson Scrolling message alarm
CN101662616A (en) * 2009-09-17 2010-03-03 北京中科智网传媒技术有限公司 Character rolling display method

Also Published As

Publication number Publication date
CN101727882A (en) 2010-06-09

Similar Documents

Publication Publication Date Title
CN101103415B (en) Method and system for minimizing impact of refresh operations on volatile memory performance
US20080201538A1 (en) Memory control method and memory system
CN101656106A (en) Method for writing data into EEPROM and device thereof
CN102142277A (en) Memory and memory read-write control method and system
CN104102590A (en) Heterogeneous memory management method and device
CN102508826B (en) Method and device for displaying table in document
CN101727882B (en) Method for rolling display of character string
CN102200937A (en) Method, device and television system for reading data in not-and (NAND) flash memory
CN100476758C (en) Data storage realizing method based on NOR FLASH chip
CN101483035B (en) Method and system for display text on graphical interface
CN102929795A (en) NandFlash bad block management method
CN101777024A (en) Data moving method and system utilizing the same
CN105242895A (en) Dot matrix text display method and apparatus
CN106951193B (en) Improve the method and its system of Nand Flash storage performance
US11210209B2 (en) Method for managing flash memory module and associated flash memory controller and electronic device
CN103544120A (en) Method for improving efficiency of memory and related memory system
CN102201220A (en) Method for split display of bistable display screen and apparatus thereof
CN105653466A (en) Data storage device and flash memory control method
CN102681788A (en) Memory controller and a controlling method adaptable to dram
CN104658578A (en) SDRAM (synchronous dynamic random access memory) control method in high-speed data acquisition system
CN202473263U (en) FLASH memorizer circuit supporting high erasing times
CN101968971B (en) Access method for flash memory, portable memory device and controller thereof
US9904665B2 (en) Partial rasterization of web page tiles
US20070011394A1 (en) Access method and access circuit for flash memory in embedded system
CN103294606A (en) Methods and devices for allocating memories and detecting overflow thereof

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120111

Termination date: 20191207