CN101377922A - Method for generating and displaying OSD - Google Patents

Method for generating and displaying OSD Download PDF

Info

Publication number
CN101377922A
CN101377922A CNA2008101388220A CN200810138822A CN101377922A CN 101377922 A CN101377922 A CN 101377922A CN A2008101388220 A CNA2008101388220 A CN A2008101388220A CN 200810138822 A CN200810138822 A CN 200810138822A CN 101377922 A CN101377922 A CN 101377922A
Authority
CN
China
Prior art keywords
osd
resource
control
picture
buffer memory
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.)
Pending
Application number
CNA2008101388220A
Other languages
Chinese (zh)
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 Electric Co Ltd
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CNA2008101388220A priority Critical patent/CN101377922A/en
Publication of CN101377922A publication Critical patent/CN101377922A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an OSD generating and displaying method, which uses resources with higher occurrence frequency in menus as public resources, loads the public resources into an OSD buffer, leads the public resources to reside in the OSD buffer, and dynamically loads other resource parts in each menu. Concretely, the invention provides an OSD generating and displaying method which comprises: at least two OSD pictures are plotted; each OSD picture is cut into a plurality of small blocks; all the small blocks and the related OSD resources are marked as controllers; the controllers with high use frequency are marked as the public resources, and other controllers are marked as private resources; all the controllers are stored into a storage; during OSD initialization, the public resources are read from the storage into the OSD buffer and reside in the OSD buffer. The OSD generating and displaying method not only has convenient OSD development and raised space utilization rate of the OSD buffer, but also quickens the response speed of the OSD menus, and can be convenient for realizing OSD display functions such as the relatively beautiful user menus in video products that adopt a low-cost OSD scheme.

Description

OSD produces and display packing
Technical field
The present invention relates to a kind of OSD and produce and display packing, relate to a kind of OSD generation and display packing that is used for radio-frequency apparatus such as televisor more specifically.
Background technology
Constantly go on the market along with having the various video equipments that enrich function, except the outward appearance of video product more and more the fashion, magnificent day by day OSD interface design also becomes the key factor that these video products attract users.The main effect of OSD provides a GUI intuitively, helps the user to finish various control and information to machine and task such as knows.Figure 1 shows that the OSD outward appearance that a user may often see.Along with the raising of system processing power, present OSD even various attachment functions such as built-in recreation, notepad and perpetual calendar can be provided.
Two kinds of main OSD implementation methods are arranged at present: the stack between outside OSD generator and video processor is synthetic; Video processor internal support OSD is directly in the inner stack of video buffer memory OSD information.
The synthetic realization principle of stack between outside OSD generator and video processor is: by a MCU (microcontroller) built-in character-generator and display buffer memory, utilize quickly-blanking (Fast-Blank) signal to switch the picture and the OSD displaying contents of TV, the contents such as character of OSD are superimposed upon in the final display frame, in OSD and display frame overlap-add procedure process, see through translucent (Blending) effect that the ratio of adjusting between the two can realize OSD.Simultaneously, the R-G-B signals in the osd signal is carried out recompile, can obtain different OSD color effects.
Another implementation method is the inner OSD of support of video processor, directly in the inner stack of video buffer memory OSD information.This class Video processing has external memory storage or inner a spot of line buffer memory usually, has the OSD generator simultaneously, and the synthetic and control of OSD is directly finished in video buffer memory, has above-mentioned translucent and color control function equally.
OSD has two kinds on character type (Font-Based) and bitmap type (Bit-Map).In order to save display buffer memory, early stage reaching cheaply used character type OSD generator in the solution party eucalyptus, its principle is that displaying contents among the OSD is divided into piece according to specific form (12 * 18,12 * 16 etc.), as digital 0-9, alphabetical a-z, brightness commonly used, contrast symbol etc., and these contents are solidificated among ROM or the Flash, only deposit corresponding call number in display buffer memory, such ' dictionary ' structure can reduce the demand of display buffer memory significantly.Simultaneously; for the control to the attributes such as color of each character is provided; usually also have one and display buffer memory attribute buffer storer of a size, its attribute (foreground color, background color, flicker etc.) is effective to each picture element in the whole character.Can not be the shortcoming of each picture element designated color in order to remedy this mode, the mode that the OSD generator can adopt a plurality of display buffer memories to merge presents the polychrome character, its principle is that each display buffer memory is determined a kind of color Fang An, when two even the later polychrome character that goes out to surpass two kinds of colors of just can ' piecing together ' of more a plurality of display buffer memory merging.Character type OSD advantage is the display buffer memory that can use OSD inner less; And MCU only need specify the index of displaying contents can show corresponding OSD information, can realize on the MCU that compares low speed.
Compare character type OSD, the handling principle of bitmap OSD is directly perceived and simple: each pixel points that sees through specific region on the final displaying contents changes, directly the OSD information is added in the final display frame, its mode of controlling according to picture element can guarantee to have polychrome and enough expressive abilities.Build video processor inside in bitmap OSD generator is common, and share and use its main display buffer memory.The display effect of bitmap OSD can be accomplished very perfectly degree in theory, can provide and have relief various items among the similar Windows, as abundant figure of button, color with shade and literal etc., its shortcoming is to have enough OSD display buffer memories, and handles and rate request that MCU is brought by picture element.Usually on large-sized high-order flat-surface television and professional display, can use this class OSD.
Though the display effect of bitmap OSD is far better, consider the problem of cost, present most video product still uses character type OSD.When using character type OSD module, if show custom menu relatively attractive in appearance on TV screen, the response speed of menu just becomes the problem that needs are considered so.General disposal route is that the resource that menu all will show at every turn all is loaded in the frame memory, then menu is shown.This disposal route has two tangible problems: for the frame memory of fixed size, space availability ratio is not high; Each resource that is written into from flash memory Flash is too much, influences the response speed of OSD menu.Therefore, this area need a kind ofly can make full use of the OSD buffer memory, and does not influence the OSD generation and the display packing of OSD response speed.
Summary of the invention
In order to address the above problem, the invention provides a kind of OSD produces and display packing, the resource that the frequency of occurrences in the menu is higher is as public resource, be written into and resident OSD buffer memory, dynamically be written into each menu remainder resource, not only improve the space availability ratio of buffer memory, and accelerated OSD menu response speed.
Concrete, the invention provides a kind of OSD and produce and display packing, comprising:
Draw at least two OSD pictures;
With each OSD picture segmentation is several fritters;
Is control with all fritters with relevant OSD resource mark;
The control that frequency of utilization is high is labeled as public resource, and other controls are labeled as privately owned resource;
Deposit all controls in storer;
When the OSD initialization, public resource is read in OSD buffer memory and resident from storer.
Above-mentioned relevant OSD resource comprises one or more in zone, label, icon, literal, progress bar, animation, numeral, selectable icons, the drawn to obtain navigation information.
Above-mentioned fritter can be rectangular tiles.
When showing the OSD picture, read the public resource that needs from described OSD buffer memory, read the privately owned resource that needs from described storer.
Concrete, public resource of the present invention can obtain by the following method: the control that a plurality of OSD pictures are all needed is labeled as public resource.If the control occupation space size that described a plurality of OSD pictures all need and numeral and character occupation space size sum commonly used are public resource less than the OSD buffer memory with numeral and character marking commonly used.Control probability of occurrence in the OSD picture the character that calculate to remove control that described a plurality of OSD pictures all need and described numeral and use always is labeled as public resource with probability of occurrence greater than the control of one first particular value.
If the control occupation space size that described a plurality of OSD pictures all need and numeral and character occupation space size sum commonly used are greater than the OSD buffer memory, then calculate the control probability of occurrence in the OSD picture except that the control that described a plurality of OSD pictures all need, probability of occurrence is labeled as public resource greater than the control of one second particular value.
Described first particular value or second calculates by following system of equations and obtains:
F(x)+b+c1<=fb
F(x)+b+c2<=fb
……
F(x)+b+ci<=fb
Wherein, x is described first or second particular value, F (x) expression probability of occurrence is the resource size of all controls of x, b represents to be labeled as the resource size of the control of public resource, ci represents the resource size of arbitrary OSD picture remainder, fb represents the size of OSD buffer memory, and the number of OSD picture is exactly the number of this system of equations.
Adopt OSD of the present invention to produce and display packing, not only made things convenient for the exploitation of OSD, and improved the space availability ratio of OSD buffer memory, and accelerated OSD menu response speed, can be conveniently realize OSD Presentation Functions such as custom menu relatively attractive in appearance adopting on the video product of OSD scheme cheaply.
Description of drawings
Figure 1 shows that a synoptic diagram that shows the televisor of OSD.
Figure 2 shows that an OSD of the present invention produces and the synoptic diagram of the embodiment of display packing.
Figure 3 shows that the synoptic diagram of an OSD picture segmentation for several fritters.
Figure 4 shows that the system of selection of a kind of public resource of the present invention.
Figure 5 shows that the structural representation of the embodiment of a character type OSD application development system of the present invention.
Embodiment
In order to make those skilled in the art person understand the present invention program better, and above-mentioned purpose of the present invention, feature and advantage can being become apparent more, is example with the televisor below, and the present invention is further detailed explanation with embodiment in conjunction with the accompanying drawings.
Figure 2 shows that an OSD of the present invention produces and the synoptic diagram of the embodiment of display packing.As shown in the figure, the OSD production method of present embodiment may further comprise the steps:
Step 110: draw a plurality of OSD pictures.A plurality of OSD pictures here can be all pictures under certain OSD pattern, for example television mode, video recording pattern or factory mode or the like.If the OSD picture under the various modes is more unified, a plurality of OSD pictures here also can comprise the OSD picture under the various modes.
Step 120: with each OSD picture segmentation is several fritters.The fritter here can be a geometric figure arbitrarily.For convenience, present embodiment with each OSD picture according to certain form with cut apart rule and be divided into rectangle, its size can difference also can be identical, cutting apart rule and can determine here according to the content of OSD, for example the public part that all has for a plurality of OSD pictures is divided or the like according to identical form, as shown in Figure 3.
Step 130: identical fritter is labeled as a control, and the OSD resource with other also is labeled as control simultaneously.As shown in Figure 3, because except the fritter that comprises effective informations such as literal, picture, the color of most fritter is all identical with size, like this, identical fritter is labeled as a control, in ensuing storage, only need takies the space of a fritter, can save a large amount of storage spaces.In addition, for the OSD picture under the same pattern, most pictures all have identical part, and the fritter of the part that these are identical also is labeled as a control.Except these fritters, other OSD resource also needs to be labeled as control, and these OSD resources can comprise: zone, label, icon, literal, progress bar, animation, numeral, selectable icons, drawn to obtain navigation information or the like.
Step 140: the control that frequency of utilization is high is labeled as public resource, and other controls are labeled as privately owned resource.Generally speaking, the public part frequency of utilization of a plurality of OSD pictures under the same pattern is higher, and the control of these public parts can be labeled as public resource, and the control that will be only occurs at single OSD picture is labeled as resource is seemingly arranged.In addition, what of public resource present embodiment also can determine according to the cache size of OSD display device.In general, the buffer memory of OSD display device is big more, and the public resource that deposits in is many more, and the display speed of OSD is just fast more, otherwise the buffer memory of OSD display device is less, and the public resource that deposits in will lack, and the display speed of OSD is just slower.Figure 4 shows that the system of selection of a kind of public resource of present embodiment, will describe in detail below.
Step 150: deposit all controls in storer.The storer here is generally system storage, and when system start-up, the OSD display device reads these controls from system storage, and tissue also generates the OSD picture.
Step 160: when the OSD initialization, public resource is read in OSD buffer memory and resident from storer.When showing an OSD picture, read the public resource that needs from described OSD buffer memory, read the privately owned resource that needs from described storer.Corresponding with the OSD production method, like this, because the control of often using all is marked as public resource, therefore, these controls commonly used are just to be read into the OSD buffer memory in the OSD initialization, and reside in OSD buffer memory the inside, this has not only improved the utilization factor of OSD buffer memory, also significantly reduce OSD and called the number of times of control, reduced the time that OSD calls resource, improved the display speed of OSD.
Figure 4 shows that the system of selection of a kind of public resource of present embodiment.As shown in the figure, the system of selection of the public resource of present embodiment may further comprise the steps:
Step 210: the control that all OSD pictures are all occurred is labeled as first resource;
Step 220: with numeral and character marking commonly used is second resource;
Step 230: the space size of calculating first resource and second resource occupation;
Step 240: if the space of first resource and second resource occupation greater than the OSD buffer memory, is a public resource with first resource mark; Second resource and all remaining controls are labeled as information resources;
Step 250: if the space of first resource and second resource occupation less than the OSD buffer memory, is a public resource with first resource and second resource mark; All remaining controls are labeled as information resources;
Step 260: calculate the probability that all controls that information resources comprise occur in menu, probability of occurrence is labeled as public resource greater than the control of a particular value; The particular value here can calculate by following system of equations and obtain:
F(a)+b+c1<=fb
F(a)+b+c2<=fb
……
F(a)+b+ci<=fb
In this system of equations, F (a) expression probability of occurrence is the resource size of all controls of a, b represents in step 240 and 250 the public resource size of mark, ci represents the resource size of arbitrary OSD picture remainder, fb represents the size of OSD buffer memory, the number of OSD picture is exactly the number of this system of equations, and solution of equations represents that probability is the part that the resource of a can be used as public resource.
By said process, can to greatest extent public resource be set at maximum, when the OSD initialization, all public resources will be read into OSD buffer memory and resident, and this has just utilized the OSD buffer memory to greatest extent, has improved the display speed of OSD.
Figure 5 shows that the structural representation of the embodiment of a character type OSD application development system of the present invention.As shown in the figure, the character type OSD application development system of present embodiment comprises OSD hardware module 310, OSD driving 320, OSD control set 330, OSD application program 340, OSD display controller 350 and OSD design tool 360.OSD design tool 360 users draw multiple OSD picture, OSD hardware module 310 will be drawn good OSD picture segmentation and be become several fritters, the fritter that is divided into drives 320 by OSD, be made into control miscellaneous, the control that generates then is divided into the privately owned resource of public resource by OSD control set 330, these public resources and privately owned resource are finally called by OSD application program 340 and are generated complete OSD picture, are shown by 350 controls of OSD display controller at last.
Traditional OSD production method is to use program code ' picture ' to come out one by one the OSD object under the special scenes, when running into specific incident, utilize again a pile if else etc. similarly statement judge special scenes and manipulating object, and be corresponding OSD and handle.Under the better simply situation of OSD, its feasible method of can yet be regarded as.But running under the more situation of OSD scene and pattern, it is very big that the structure of this if else can become, and what is more important is very easily made mistakes and maintenance cost improves.And along with OSD becomes increasingly complex and the improving constantly of program code workload, the software engineer needs the expensive time on these ' presentable looks ', and the development time of real important use layer and device drive layer can be affected, and then influences the development progress of new product.The software engineer also has to heavily cover and writes same source code and satisfy the specific OSD needs that constantly change the client.
And use OSD of the present invention to produce and display packing, can produce exquisite OSD picture very easily, the developer only need be with the picture work OSD picture that draws, OSD production method of the present invention just can become various controls with this OSD picture segmentation, thereby realizes the exploitation of OSD picture.The direct benefit of doing like this is exactly the Production Time of having saved the OSD picture, has improved the programming efficiency of OSD, has also reduced the maintenance cost of OSD simultaneously, is convenient to upgrading, and is simultaneously also helpful for the robustness of program.Simultaneously, because the control of often using all is marked as public resource, and when the OSD initialization, just be read into the OSD buffer memory, and reside in OSD buffer memory the inside, this has not only improved the utilization factor of OSD buffer memory, also significantly reduce OSD and called the number of times of control, reduced the time that OSD calls resource, improved the display speed of OSD.
Certainly; above-mentioned explanation is not to be limitation of the present invention; the present invention also is not limited in above-mentioned giving an example, and variation, remodeling, interpolation or replacement that those skilled in the art are made in essential scope of the present invention also should belong to protection scope of the present invention.

Claims (10)

1, a kind of OSD produces and display packing, it is characterized in that described OSD production method comprises:
Draw at least two OSD pictures;
With each OSD picture segmentation is several fritters;
Is control with all fritters with relevant OSD resource mark;
The control that frequency of utilization is high is labeled as public resource, and other controls are labeled as privately owned resource;
Deposit all controls in storer;
When the OSD initialization, public resource is read in OSD buffer memory and resident from storer.
2, OSD according to claim 1 produces and display packing, and it is characterized in that: described relevant OSD resource comprises one or more in zone, label, icon, literal, progress bar, animation, numeral, selectable icons, the drawn to obtain navigation information.
3, OSD according to claim 1 produces and display packing, and it is characterized in that: described fritter is a rectangular tiles.
4, OSD according to claim 1 produces and display packing, it is characterized in that: when showing the OSD picture, read the public resource that needs from described OSD buffer memory, read the privately owned resource that needs from described storer.
5, according to the arbitrary described OSD production method of claim 1-4, it is characterized in that: the control that a plurality of OSD pictures are all needed is labeled as public resource.
6, OSD production method according to claim 5, it is characterized in that: if the control occupation space size that described a plurality of OSD pictures all need and numeral and character occupation space size sum commonly used are public resource less than the OSD buffer memory with numeral and character marking commonly used.
7, OSD production method according to claim 6, it is characterized in that: calculate to remove control that described a plurality of OSD pictures all need and described numeral and the character used always control probability of occurrence in the OSD picture, probability of occurrence is labeled as public resource greater than the control of one first particular value.
8, OSD production method according to claim 7 is characterized in that: described first particular value calculates by following system of equations and obtains:
F(a)+b+c1<=fb
F(a)+b+c2<=fb
.....
F(a)+b+ci<=fb
Wherein, a is described first particular value, F (a) expression probability of occurrence is the resource size of all controls of a, b represents to be labeled as the resource size of the control of public resource, ci represents the resource size of arbitrary OSD picture remainder, fb represents the size of OSD buffer memory, and the number of OSD picture is exactly the number of this system of equations.
9, OSD production method according to claim 5, it is characterized in that: if the control occupation space size that described a plurality of OSD pictures all need and numeral and character occupation space size sum commonly used are greater than the OSD buffer memory, then calculate the control probability of occurrence in the OSD picture except that the control that described a plurality of OSD pictures all need, probability of occurrence is labeled as public resource greater than the control of one second particular value.
10, OSD production method according to claim 9 is characterized in that: described second particular value calculates by following system of equations and obtains:
F(x)+b+c1<=fb
F(x)+b+c2<=fb
.....
F(x)+b+ci<=fb
Wherein, x is described second particular value, F (x) expression probability of occurrence is the resource size of all controls of x, b represents to be labeled as the resource size of the control of public resource, ci represents the resource size of arbitrary OSD picture remainder, fb represents the size of OSD buffer memory, and the number of OSD picture is exactly the number of this system of equations.
CNA2008101388220A 2008-08-01 2008-08-01 Method for generating and displaying OSD Pending CN101377922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101388220A CN101377922A (en) 2008-08-01 2008-08-01 Method for generating and displaying OSD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101388220A CN101377922A (en) 2008-08-01 2008-08-01 Method for generating and displaying OSD

Publications (1)

Publication Number Publication Date
CN101377922A true CN101377922A (en) 2009-03-04

Family

ID=40421427

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101388220A Pending CN101377922A (en) 2008-08-01 2008-08-01 Method for generating and displaying OSD

Country Status (1)

Country Link
CN (1) CN101377922A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938642A (en) * 2010-09-09 2011-01-05 北京中星微电子有限公司 Menu information displaying method and mobile terminal
CN102004646A (en) * 2010-12-24 2011-04-06 青岛海信信芯科技有限公司 Method, device and multimedia terminal for processing user interface (UI) of on screen display (OSD)
CN103093735A (en) * 2011-10-27 2013-05-08 康佳集团股份有限公司 Light-emitting diode (LED) video processor capable of being embedded with characters
CN105959826A (en) * 2016-04-29 2016-09-21 深圳创维-Rgb电子有限公司 Method, device and system for processing message
WO2019119401A1 (en) * 2017-12-21 2019-06-27 广州路派电子科技有限公司 Osd-based gui design method
CN115278264A (en) * 2022-09-26 2022-11-01 杭州雄迈集成电路技术股份有限公司 Image amplification and OSD superposition coding method and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938642A (en) * 2010-09-09 2011-01-05 北京中星微电子有限公司 Menu information displaying method and mobile terminal
CN101938642B (en) * 2010-09-09 2015-09-02 北京中星微电子有限公司 A kind of method of menu information display and mobile terminal
CN102004646A (en) * 2010-12-24 2011-04-06 青岛海信信芯科技有限公司 Method, device and multimedia terminal for processing user interface (UI) of on screen display (OSD)
CN103093735A (en) * 2011-10-27 2013-05-08 康佳集团股份有限公司 Light-emitting diode (LED) video processor capable of being embedded with characters
CN103093735B (en) * 2011-10-27 2015-07-29 康佳集团股份有限公司 The LED video processor of word can be embedded
CN105959826A (en) * 2016-04-29 2016-09-21 深圳创维-Rgb电子有限公司 Method, device and system for processing message
WO2019119401A1 (en) * 2017-12-21 2019-06-27 广州路派电子科技有限公司 Osd-based gui design method
CN115278264A (en) * 2022-09-26 2022-11-01 杭州雄迈集成电路技术股份有限公司 Image amplification and OSD superposition coding method and system
CN115278264B (en) * 2022-09-26 2023-02-28 杭州雄迈集成电路技术股份有限公司 Image amplification and OSD superposition coding method and system

Similar Documents

Publication Publication Date Title
US9196075B2 (en) Animation of computer-generated display components of user interfaces and content items
US10656820B2 (en) Snap points including ranges
US7917861B2 (en) User interface elements cloning and transitions
CN106126236B (en) Multi-screen display method, device and the terminal of terminal screen
CN106062705B (en) Cross-platform rendering engine
US8504925B1 (en) Automated animated transitions between screens of a GUI application
CN101377922A (en) Method for generating and displaying OSD
CN105302418A (en) Information processing method and electronic device
CN104216752A (en) Window-based information loading method and device
EP3396519A1 (en) Terminal and display control method
CN103530018A (en) Establishment method of widget interfaces in android operating system and mobile terminal
WO2004023293A1 (en) Gui application development support device, gui display device, method, and computer program
US11169672B2 (en) Styling system
CN102541554B (en) Method for realizing dynamic transparent specially good display effect of input box
CN101374213A (en) Implementing method for self-defining television human-machine interface
CN103870119A (en) Information processing method and electronic equipment
US20160274776A1 (en) System and method for modifying a look and feel of a graphical user interface for an application
CN111107127A (en) Streaming of individual application windows for remote desktop applications
WO2015184736A1 (en) Method and terminal for transforming background picture of touchscreen device
CN116136784A (en) Data processing method, device, storage medium and program product
JP2008102947A (en) Window display system, information processing system, client device, telephone set information device, household appliance and device
CN102495839A (en) Interactive presentation system based on information publishing and touch inquiring, and method for the same
CN104077114A (en) Method for changing display interface of application software and electronic equipment
TWI490815B (en) Visual effect display mothed and electronic apparatus
CN112001995B (en) Rendering apparatus, method, electronic device, and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090304