CN101883207B - Method for accelerating display speed of set top box - Google Patents
Method for accelerating display speed of set top box Download PDFInfo
- Publication number
- CN101883207B CN101883207B CN2010102263018A CN201010226301A CN101883207B CN 101883207 B CN101883207 B CN 101883207B CN 2010102263018 A CN2010102263018 A CN 2010102263018A CN 201010226301 A CN201010226301 A CN 201010226301A CN 101883207 B CN101883207 B CN 101883207B
- Authority
- CN
- China
- Prior art keywords
- function
- top box
- set top
- accelerating
- display
- 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
Links
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 DTV STB, 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, let the user that the sensation of brush screen is arranged.When using 2D to quicken function to accomplish 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, said 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 being plotted to screen to given view data;
GetDate: the view data that is used for obtaining screen;
PurDataMask: be used for being plotted to screen to the image that has Transparent color information;
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 said 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 accomplish 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 when a large amount of frequent drawing image data, can occur 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 accomplish 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: through the 2D accelerating engine, the position that shows needs, the length and the height of rectangle, and the color settings of filling draws in the formation to the rectangle of 2D accelerating engine, starts the formation that 2D quickens.The 2D accelerating engine can be carried out the drafting formation like this, moves the data that need in the display buffer of appointment, and does not need the help of CPU, reduces the burden of CPU.
Being operating as of function PutData wherein: through the 2D accelerating engine, the position that shows needs, 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 through the DrawPixel function to the display buffer dateout.
To using the 2D drafting to need a large amount of places of drawing point operation problem slowly to occur drawing; Adopt direct mode among the present invention to the display buffer dateout; Carry out corresponding a large amount of operation of drawing point through the DrawPixel function, draw problem slowly thereby solve to use in the 2D accelerator.
Wherein, said 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, directly write the color value of needs setting on the position of the display buffer of calculating.The coordinate of supposing to need that the picture point function is set 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 through 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, through 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 through 2D; If then skip; Judge next pixel, finish, realize band Transparent color picture is drawn with this up to all judging image data.
4) when having operations such as playing frame, use the data that the GetDate function reads needs to show the zone that plays frame, preserve them get off, 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, through 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; Through the 2D accelerating engine, when point operation is drawn in a large number by system, Caton phenomenon can not appear; Rapid speed 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 DTV STB interface, occurs, improve drawing efficiency, make the user can better enjoy the smooth procedure for displaying of STB.
Embodiment
Below in conjunction with specific embodiment the present invention is described further.
The present invention provides a kind of method of accelerating display speed of set top box, and said method comprises the steps:
A kind of method of accelerating display speed of set top box, said 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 being plotted to screen to given view data;
GetDate: the view data that is used for obtaining screen;
PurDataMask: be used for being plotted to screen to the image that has Transparent color information;
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 said 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 accomplish 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 when a large amount of frequent drawing image data, can occur 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 accomplish 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: through the 2D accelerating engine, the position that shows needs, the length and the height of rectangle, and the color settings of filling draws in the formation to the rectangle of 2D accelerating engine, starts the formation that 2D quickens.The 2D accelerating engine can be carried out the drafting formation like this, moves the data that need in the display buffer of appointment, and does not need the help of CPU, reduces the burden of CPU.
Being operating as of function PutData wherein: through the 2D accelerating engine, the position that shows needs, 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 through the DrawPixel function to the display buffer dateout.
To using the 2D drafting to need a large amount of places of drawing point operation problem slowly to occur drawing; Adopt direct mode among the present invention to the display buffer dateout; Carry out corresponding a large amount of operation of drawing point through the DrawPixel function, draw problem slowly thereby solve to use in the 2D accelerator.
Wherein, said 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, directly write the color value of needs setting on the position of the display buffer of calculating.The coordinate of supposing to need that the picture point function is set 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 through 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, through 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 through 2D; If then skip; Judge next pixel, finish, realize band Transparent color picture is drawn with this up to all judging image data.
4) when having operations such as playing frame, use the data that the GetDate function reads needs to show the zone that plays frame, preserve them get off, 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 (6)
1. the method for an accelerating display speed of set top box, it is characterized in that: said 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 being plotted to screen to given view data;
GetDate: the view data that is used for obtaining screen;
PurDataMask: be used for being plotted to screen to the image that has Transparent color information;
Step 2: each function in the graph image display interface of design adopts combination drive accelerating display speed of set top box, being operating as of its combination drive mode:
1) adopts the function F illRect of 2D acceleration drawing rectangle frame and the view data that will draw is plotted to the function PutData of screen; When needs are drawn when operation in a large number, 2D quickens to help CPU to accomplish the filling of rectangle frame and the view data that will draw is plotted to the output services of screen;
2) adopt direct mode, needing accordingly to carry out a large amount of operations of drawing point through 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.
2. according to the method for the accelerating display speed of set top box described in the claim 1; It is characterized in that: the operation of function F illRect is through the 2D accelerating engine in the step 1) of said combination drive operation; The position of needs demonstration, the length and the height of rectangle; And the color settings of filling is drawn in the formation formation that startup 2D quickens to the rectangle of 2D accelerating engine.
3. 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 through the 2D accelerating engine in the step 1) of said 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.
4. according to the method for the accelerating display speed of set top box described in the claim 1, it is characterized in that: the object that the needs the step 2 of said combination drive operation) are drawn operation a little in a large number is character, circle or polygon.
5. according to the method for the accelerating display speed of set top box described in the claim 1; It is characterized in that: the step 2 of said 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, directly write the color value of needs setting on the position of the display buffer of calculating.
6. according to the method for the accelerating display speed of set top box described in the claim 1; It is characterized in that: in the step 3) of said 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 through 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,, judge next pixel if then skip; Finish up to all judging image data, judge that the image data that the Transparent color mark will be arranged after finishing adopts the PurDataMask function directly to export to the display buffer.
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 CN101883207A (en) | 2010-11-10 |
CN101883207B true 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) |
Families Citing this family (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 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100610954B1 (en) * | 2002-01-21 | 2006-08-10 | 마츠시타 덴끼 산교 가부시키가이샤 | Display apparatus and display apparatus drive method |
CN1625230A (en) * | 2003-12-01 | 2005-06-08 | 北京中视联数字系统有限公司 | Method of merging displaying any graphic |
CN100496092C (en) * | 2007-05-11 | 2009-06-03 | 中山大学 | Microwindows-based optimized digital family set-top box GUI system |
-
2010
- 2010-07-14 CN CN2010102263018A patent/CN101883207B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101883207A (en) | 2010-11-10 |
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 | |
CN111899322B (en) | Video processing method, animation rendering SDK, equipment and computer storage medium | |
US20120262463A1 (en) | Virtualization method of vertical-synchronization in graphics systems | |
US8471861B2 (en) | Method and system for cost-efficient, high-resolution graphics/image display system | |
CN105302580A (en) | Method and system for rapidly acquiring game graphics through GPU (Graphics Processing Unit) texture sharing | |
US20100085355A1 (en) | Image Generating Apparatus, Image Processing Method, Information Recording Medium, and Program | |
CN103106361A (en) | Method and device for strengthening picture verification code security | |
US10524008B2 (en) | Virtual gaming system based on previous skills-based events | |
KR102292789B1 (en) | Display apparatus and control method thereof | |
US8411110B2 (en) | Interactive image and graphic system and method capable of detecting collision | |
CN103513974A (en) | Method and device for achieving dynamic icon button | |
CN101883207B (en) | Method for accelerating display speed of set top box | |
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 | |
WO1995001629A1 (en) | Image processing device and method therefor, and game machine having image processing part | |
CN101599007A (en) | The system of video display | |
EP2761396A1 (en) | Displaying hardware accelerated video on x window systems | |
US9077993B2 (en) | Method of converting a video file to a graphics interchange format image using same palette table for consecutive frames | |
CN106027925A (en) | OSD menu display control method and device | |
JP2000148131A (en) | Image display method and image processing device | |
JP2023002385A5 (en) | ||
TWI392349B (en) | Device and method for displaying caption window |
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 |