CN101883207A - Method for accelerating display speed of set top box - Google Patents
Method for accelerating display speed of set top box Download PDFInfo
- Publication number
- CN101883207A CN101883207A CN 201010226301 CN201010226301A CN101883207A CN 101883207 A CN101883207 A CN 101883207A CN 201010226301 CN201010226301 CN 201010226301 CN 201010226301 A CN201010226301 A CN 201010226301A CN 101883207 A CN101883207 A CN 101883207A
- Authority
- CN
- China
- Prior art keywords
- function
- top box
- set top
- accelerating
- display speed
- 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.)
- Granted
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
- Image Generation (AREA)
Abstract
The invention discloses a method for accelerating the display speed of a set top box, which comprises the following steps that: step 1, a universal graphic image display interface is designed; and step 2, the function of the designed graphic image display interface adopts a combination drive to accelerate the display speed of the set top box. In the invention, by utilizing the method to accelerate the display speed of the set top box, a great quantity of CPU time is saved, even if when a large number of graphic images are drawn, a system can still smoothly display; when the system calls a great quantity of point drawing operations, unsmooth phenomenon can not occur; and the method can more quickly draw graphic data with transparent color. In short, by adopting the multiple function combination drive with the graphic image display interface, the invention effectively solves various problems existing in drawing graphic image in the interface of digital TV set boxes, improves the drawing efficiency, and leads users to more comfortably enjoy a smooth display process of the set top box.
Description
Technical field
The present invention relates to a kind of method of accelerating display speed of set top box, particularly adopt the mode of combination drive to accelerate the method for display speed of set top box.
Background technology
When using the operation display buffer to carry out OSD output in traditional digital TV set-top box, owing to use CPU as main data resettlement equipment, except taking a large amount of CPU times, when in a period of time, needing a large amount of graphing image, zigzag can occur and show that the many more sawtooth of content are also many more, and when the application program burden is too heavy, can cause OSD to upgrade slowly, allow the user that the sensation of brush screen is arranged.When using 2D to quicken function to finish OSD and draw, draw point operation in a large number when system call, drawing process extremely slowly will appear in system, writes particularly, draws that point-line-surface etc. is a large amount of when drawing point operation, and drafting card pauses can be more obvious.Simultaneously, speed is slower when drafting has the image data of Transparent color.
Summary of the invention
In order to overcome the deficiency of above-mentioned technical background, the present invention develops the method that a kind of mode that adopts combination drive is accelerated display speed of set top box.
To achieve these goals, technical scheme of the present invention is:
A kind of method of accelerating display speed of set top box, described method comprises the steps:
Step 1: design a kind of general graph image display interface, this interface mainly comprises: DrawPixel, FillRect, PutData, GetDate, PurDataMask function;
DrawPixel: be used for drawing a pixel to screen;
FillRect: draw a rectangle frame, be used to carry out use when a large amount of rectangular graphs are drawn;
PutData: be used for given view data is plotted to screen;
GetDate: the view data that is used for obtaining screen;
PurDataMask: be used for the image that has Transparent color information is plotted to screen;
Step 2: each function in the graph image display interface of design adopts the combination drive accelerating display speed of set top box.
Among the present invention, being operating as of the combination drive mode in the described step 2:
1) adopts the function F illRect of 2D acceleration drawing rectangle frame and the imaged data of having painted are plotted to the function PutData of screen; When needs are drawn when operation in a large number, 2D quickens to help CPU to finish the filling of rectangle frame and the view data of having drawn is plotted to the output services of screen.
Tradition adopts the display buffer as main graph image output function, the screen sawtooth sense that can occur when a large amount of frequent drawing image data and take CPU in a large number, the present invention use 2D to realize drawing the function F illRect of rectangle frame and the view data of having drawn is plotted to the function PutData of screen.Draw when operation so in a large number, 2D quickens to help CPU to finish the filling of rectangle frame and the view data of having drawn is plotted to the output services of screen, a large amount of offloading the CPU, and the while the sawtooth sense can not occur.
Being operating as of function F illRect wherein: by the 2D accelerating engine, the position that needs are shown, the length and the height of rectangle, and the rectangle that the color of filling is set to the 2D accelerating engine draws in the formation, starts the formation that 2D quickens.The 2D accelerating engine can be carried out the drafting formation like this, the data that need is moved in the display buffer of appointment, and do not needed the help of CPU, reduces the burden of CPU.
Being operating as of function PutData wherein: by the 2D accelerating engine, the position that needs are shown, the length of image data and image data high and that fill are set to the rectangle that the 2D expedited data fills and draw in the formation, start the formation that 2D quickens.2D accelerating engine execution drafting formation is like this moved the data that need in the display buffer of appointment, and does not need the help of CPU, reduces the burden of CPU.
2) adopt direct mode, carry out corresponding a large amount of operations of drawing point by the DrawPixel function to the display buffer dateout.
Need a large amount of places of drawing point operation problem slowly to occur drawing at using 2D to draw, adopt direct mode among the present invention to the display buffer dateout, carry out corresponding a large amount of operation of drawing point by the DrawPixel function, draw problem slowly thereby solve to use in the 2D accelerator.
Wherein, described needs draw in a large number a little be operating as character, circle or polygon etc.
In the operating process of drawing a large amount of picture points, directly use the DrawPixel function, in the function specified coordinate is calculated their positions in the display buffer, the color value of needs setting is directly write on the position of the display buffer of calculating.Suppose the coordinate that the picture point function is set that needs for (x, y), the initial address of display buffer is addr, the wide of screen is w, height is h, and the byte number that each pixel takies is b, and the position of the color value that writes by the DrawPixel function is addr+w*y*b+x*b.
3) when drafting has the image data of Transparent color, adopt the PurDataMask function directly to the display buffer dateout;
Among the present invention, by the PurDataMask function directly to the display buffer dateout, speed problem more slowly when solving 2D and quickening function and draw the image data that has Transparent color.
When generating image data, the picture that Transparent color is arranged in the picture is marked, when running into the picture that does not have the Transparent color mark, directly use the PutData function to draw fast, judge whether to be Transparent color when running into each pixel that the picture that the Transparent color mark is arranged then reads picture, if not then directly using DrawPixel to draw pixel by 2D, if then skip, judge next pixel, finish, realize band Transparent color picture is drawn with this up to image data is all judged.
4) when having operations such as playing frame, use the data that the GetDate function reads needs to show the zone that plays frame, they are preserved, draw then and play frame; After the operation that plays the frame disappearance, directly use the data of preserving to be plotted to required zone, come the process of acceleration drawing, and need not repaint whole screen.
Among the present invention, by a kind of a plurality of function combination drives of general graph image display interface are set, do not take a large amount of CPU times, even during a large amount of graphing image, system also can smooth demonstration; By the 2D accelerating engine, when point operation is drawn in a large number by system, Caton phenomenon can not appear; Speed is very fast when drafting has the image data of Transparent color.In a word, employing is provided with a plurality of function combination drives of graph image display interface, effectively solve the variety of problems that in the graphing image of digital TV set-top box interface, occurs, improve drawing efficiency, make the user can better enjoy the procedure for displaying of set-top box smoothness.
Embodiment
The present invention is described further below in conjunction with specific embodiment.
The invention provides a kind of method of accelerating display speed of set top box, described method comprises the steps:
A kind of method of accelerating display speed of set top box, described method comprises the steps:
Step 1: design a kind of general graph image display interface, this interface mainly comprises: DrawPixel, FillRect, PutData, GetDate, PurDataMask function;
DrawPixel: be used for drawing a pixel to screen;
FillRect: draw a rectangle frame, be used to carry out use when a large amount of rectangular graphs are drawn;
PutData: be used for given view data is plotted to screen;
GetDate: the view data that is used for obtaining screen;
PurDataMask: be used for the image that has Transparent color information is plotted to screen;
Step 2: each function in the graph image display interface of design adopts the combination drive accelerating display speed of set top box.
Among the present invention, being operating as of the realization combination drive mode in the described step 2:
1) adopts the function F illRect of 2D acceleration drawing rectangle frame and the imaged data of having painted are plotted to the function PutData of screen; When needs are drawn when operation in a large number, 2D quickens to help CPU to finish the filling of rectangle frame and the view data of having drawn is plotted to the output services of screen.
Tradition adopts the display buffer as main graph image output function, the screen sawtooth sense that can occur when a large amount of frequent drawing image data and take CPU in a large number, the present invention use 2D to realize drawing the function F illRect of rectangle frame and the view data of having drawn is plotted to the function PutData of screen.Draw when operation so in a large number, 2D quickens to help CPU to finish the filling of rectangle frame and the view data of having drawn is plotted to the output services of screen, a large amount of offloading the CPU, and the while the sawtooth sense can not occur.
Being operating as of function F illRect wherein: by the 2D accelerating engine, the position that needs are shown, the length and the height of rectangle, and the rectangle that the color of filling is set to the 2D accelerating engine draws in the formation, starts the formation that 2D quickens.The 2D accelerating engine can be carried out the drafting formation like this, the data that need is moved in the display buffer of appointment, and do not needed the help of CPU, reduces the burden of CPU.
Being operating as of function PutData wherein: by the 2D accelerating engine, the position that needs are shown, the length of image data and image data high and that fill are set to the rectangle that the 2D expedited data fills and draw in the formation, start the formation that 2D quickens.2D accelerating engine execution drafting formation is like this moved the data that need in the display buffer of appointment, and does not need the help of CPU, reduces the burden of CPU.
2) adopt direct mode, carry out corresponding a large amount of operations of drawing point by the DrawPixel function to the display buffer dateout.
Need a large amount of places of drawing point operation problem slowly to occur drawing at using 2D to draw, adopt direct mode among the present invention to the display buffer dateout, carry out corresponding a large amount of operation of drawing point by the DrawPixel function, draw problem slowly thereby solve to use in the 2D accelerator.
Wherein, described needs draw in a large number a little be operating as character, circle or polygon etc.
In the operating process of drawing a large amount of picture points, directly use the DrawPixel function, in the function specified coordinate is calculated their positions in the display buffer, the color value of needs setting is directly write on the position of the display buffer of calculating.Suppose the coordinate that the picture point function is set that needs for (x, y), the initial address of display buffer is addr, the wide of screen is w, height is h, and the byte number that each pixel takies is b, and the position of the color value that writes by the DrawPixel function is addr+w*y*b+x*b.
3) when drafting has the image data of Transparent color, adopt the PurDataMask function directly to the display buffer dateout.
Among the present invention, by the PurDataMask function directly to the display buffer dateout, speed problem more slowly when solving 2D and quickening function and draw the image data that has Transparent color.
When generating image data, the picture that Transparent color is arranged in the picture is marked, when running into the picture that does not have the Transparent color mark, directly use the PutData function to draw fast, judge whether to be Transparent color when running into each pixel that the picture that the Transparent color mark is arranged then reads picture, if not then directly using DrawPixel to draw pixel by 2D, if then skip, judge next pixel, finish, realize band Transparent color picture is drawn with this up to image data is all judged.
4) when having operations such as playing frame, use the data that the GetDate function reads needs to show the zone that plays frame, they are preserved, draw then and play frame; After the operation that plays the frame disappearance, directly use the data of preserving to be plotted to required zone, come the process of acceleration drawing, and need not repaint whole screen.
Claims (7)
1. the method for an accelerating display speed of set top box, it is characterized in that: described method comprises the steps:
Step 1: design a kind of general graph image display interface, this interface mainly comprises: DrawPixel, FillRect, PutData, GetDate, PurDataMask function;
DrawPixel: be used for drawing a pixel to screen;
FillRect: draw a rectangle frame, be used to carry out use when a large amount of rectangular graphs are drawn;
PutData: be used for given view data is plotted to screen;
GetDate: the view data that is used for obtaining screen;
PurDataMask: be used for the image that has Transparent color information is plotted to screen;
Step 2: each function in the graph image display interface of design adopts the combination drive accelerating display speed of set top box.
2. the method for accelerating display speed of set top box according to claim 1 is characterized in that: being operating as of the combination drive mode in the described step 2:
1) adopts the function F illRect of 2D acceleration drawing rectangle frame and the view data of having drawn is plotted to the function PutData of screen; When needs are drawn when operation in a large number, 2D quickens to help CPU to finish the filling of rectangle frame and the view data of having drawn is plotted to the output services of screen;
2) adopt direct mode, need a large amount of operations of drawing point accordingly by the DrawPixel function to the display buffer dateout;
3) when drafting has the image data of Transparent color, adopt the PurDataMask function directly to the display buffer dateout;
4) when having the operation of bullet frame, using the GetDate function to read needs to show the data in bullet frame zone, preserves this data, draws then and plays frame; After the operation that plays the frame disappearance, directly use the data of preserving to be plotted to required zone.
3. according to the method for the accelerating display speed of set top box described in the claim 2, it is characterized in that: being operating as of function F illRect is by the 2D accelerating engine in the step 1 of described combination drive operation, the position of needs demonstration, the length and the height of rectangle, and the color of filling is set in the rectangle drafting formation of 2D accelerating engine the formation that startup 2D quickens.
4. according to the method for the accelerating display speed of set top box described in the claim 2, it is characterized in that: the operation of function PutData is by the 2D accelerating engine in the step 1 of described combination drive operation, the position of needs demonstration, the length and the height of image data, and the image data of filling is set in the rectangle drafting formation of 2D expedited data filling the formation that startup 2D quickens.
5. according to the method for the accelerating display speed of set top box described in the claim 2, it is characterized in that: the needs in the step 2 of described combination drive operation draw in a large number a little be operating as character, circle or polygon.
6. according to the method for the accelerating display speed of set top box described in the claim 2, it is characterized in that: in the step 2 of described combination drive operation, when in the process of drawing a large amount of picture points, directly using the DrawPixel function, in the function specified coordinate is calculated their positions in the display buffer, the color value of needs setting is directly write on the position of the display buffer of calculating.
7. according to the method for the accelerating display speed of set top box described in the claim 2, it is characterized in that: in the step 3 of described combination drive operation, when generating image data, the picture that Transparent color is arranged in the picture is marked, when running into the picture that does not have the Transparent color mark, use the PutData function to draw fast by 2D, judge whether to be Transparent color when running into each pixel that the picture that Transparent color mark is arranged then reads picture, if not then directly using DrawPixel to draw pixel, if then skip, judge next pixel, finish up to image data is all judged.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102263018A CN101883207B (en) | 2010-07-14 | 2010-07-14 | Method for accelerating display speed of set top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102263018A CN101883207B (en) | 2010-07-14 | 2010-07-14 | Method for accelerating display speed of set top box |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101883207A true CN101883207A (en) | 2010-11-10 |
CN101883207B CN101883207B (en) | 2012-05-09 |
Family
ID=43055084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102263018A Expired - Fee Related CN101883207B (en) | 2010-07-14 | 2010-07-14 | Method for accelerating display speed of set top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101883207B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024318A (en) * | 2012-12-25 | 2013-04-03 | 青岛海信信芯科技有限公司 | Accelerated processing method and accelerated processing device for television graphics |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003063121A1 (en) * | 2002-01-21 | 2003-07-31 | Matsushita Electric Industrial Co., Ltd. | Display apparatus and display apparatus drive method |
CN1625230A (en) * | 2003-12-01 | 2005-06-08 | 北京中视联数字***有限公司 | Method of merging displaying any graphic |
CN101068304A (en) * | 2007-05-11 | 2007-11-07 | 中山大学 | Microwindows-based optimized digital family set-top box GUI system |
-
2010
- 2010-07-14 CN CN2010102263018A patent/CN101883207B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003063121A1 (en) * | 2002-01-21 | 2003-07-31 | Matsushita Electric Industrial Co., Ltd. | Display apparatus and display apparatus drive method |
CN1625230A (en) * | 2003-12-01 | 2005-06-08 | 北京中视联数字***有限公司 | Method of merging displaying any graphic |
CN101068304A (en) * | 2007-05-11 | 2007-11-07 | 中山大学 | Microwindows-based optimized digital family set-top box GUI system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024318A (en) * | 2012-12-25 | 2013-04-03 | 青岛海信信芯科技有限公司 | Accelerated processing method and accelerated processing device for television graphics |
Also Published As
Publication number | Publication date |
---|---|
CN101883207B (en) | 2012-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109600666B (en) | Video playing method, device, medium and electronic equipment in game scene | |
US6208354B1 (en) | Method and apparatus for displaying multiple graphics images in a mixed video graphics display | |
WO2020207250A1 (en) | Vertical synchronization method and apparatus, terminal, and storage medium | |
CN111899322B (en) | Video processing method, animation rendering SDK, equipment and computer storage medium | |
US8471861B2 (en) | Method and system for cost-efficient, high-resolution graphics/image display system | |
CN103106361A (en) | Method and device for strengthening picture verification code security | |
US10133711B2 (en) | Display apparatus and control method thereof | |
CN101114382A (en) | Frame buffer merging | |
US10524008B2 (en) | Virtual gaming system based on previous skills-based events | |
CN112055254A (en) | Video playing method, device, terminal and storage medium | |
US8411110B2 (en) | Interactive image and graphic system and method capable of detecting collision | |
CN101883207B (en) | Method for accelerating display speed of set top box | |
CN102298887A (en) | Method, device and system for simulative preview of LED program | |
CN101937666B (en) | Image display device | |
CN102184094B (en) | Method used for realizing auxiliary operation in PPT courseware playing process | |
US20150310833A1 (en) | Displaying Hardware Accelerated Video on X Window Systems | |
JP2005027796A (en) | Game machine and image display device thereof | |
CN116700943A (en) | Video playing system and method and electronic equipment | |
TW200725304A (en) | Medium for storing character data structure of AN A/V program and method for display the same | |
JP2023002385A5 (en) | ||
TWI392349B (en) | Device and method for displaying caption window | |
JP2000148131A (en) | Image display method and image processing device | |
JP2023002386A5 (en) | ||
CN116261016A (en) | Method and device for displaying large-screen caption characters based on CPU | |
JP2023002387A5 (en) |
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: 20120509 Termination date: 20190714 |