CN100414981C - A control system for screen display - Google Patents

A control system for screen display Download PDF

Info

Publication number
CN100414981C
CN100414981C CNB200510110141XA CN200510110141A CN100414981C CN 100414981 C CN100414981 C CN 100414981C CN B200510110141X A CNB200510110141X A CN B200510110141XA CN 200510110141 A CN200510110141 A CN 200510110141A CN 100414981 C CN100414981 C CN 100414981C
Authority
CN
China
Prior art keywords
layer
data
window
video
alpha
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
CNB200510110141XA
Other languages
Chinese (zh)
Other versions
CN1964442A (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.)
QIMA DIGITAL INFORMATION CO Ltd SHANGHAI
Shanghai Magima Digital Information Co Ltd
Original Assignee
QIMA DIGITAL INFORMATION CO Ltd SHANGHAI
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 QIMA DIGITAL INFORMATION CO Ltd SHANGHAI filed Critical QIMA DIGITAL INFORMATION CO Ltd SHANGHAI
Priority to CNB200510110141XA priority Critical patent/CN100414981C/en
Publication of CN1964442A publication Critical patent/CN1964442A/en
Application granted granted Critical
Publication of CN100414981C publication Critical patent/CN100414981C/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 related screen display control system comprises: a 2D module to take alpha pre-mixing to OSD data and GUI data and subtitle data; a mixing module to convert premixed data from RGB domain into YUV domain and mix converted image layer with video layer for alpha mixing. This invention eliminates OSD chain list mechanism and special DMA, and can realize mixing for infinite layers without much hardware configuration.

Description

Control system for screen display
Technical field
The present invention relates to control system for screen display, relate in particular to a kind of control system for screen display comprising that video layer mixes with the multi-layer data of graph layer.
Background technology
In the video transport process, the MPEG2 code stream decoding become picture deliver to television signal encoder encode show before, need usually and OSD (on screen display on-screen display objects), graphic user interface (Graphic User Interface; GUI), data such as captions etc. are pre-mixed into a pictures, and then send into television signal encoder and show by field scanning rate.OSD (on screen display), graphic user interface (Graphic User Interface; GUI), data are normally scattered leaves among the SDRAM for captions etc., can be referred to as graph layer here.Traditional way is that the form of graph layer with chained list is organized among the SDRAM, and provides the specialized hardware DMA of a support chain table handling to be responsible for loading automatically these data to advance hardware for married operation.Frequency with field scanning rate is loaded into mixed hardware repeatedly by hardware DMA from SDRAM again.As shown in Figure 1, for example three layers of OSD layer are handled, utilized start pointer start_pointer to start special-purpose DMA.Special-purpose DMA at first loads chained list from SDRAM first node OSD advances to mix engine for 1 layer, and shows that 1 layer of OSD is on screen; Load 2 layers of second node OSD then, and show that 2 layers of OSD are on screen; And the like.DMA loads 1 layer of first node OSD according to initial pointer.2 layers of other OSD node layer afterwards of second node OSD load according to indicator linking successively by DMA.According to the requirement of video displaying frame rate, common whole chained list can be loaded 25 times or 30 times within 1 second repeatedly.
When the graph layer zone does not cover whole screen and display effect when fairly simple, it is less to compare from the data of SDRAM carrying, adopts the chain sheet form can save the SDRAM bandwidth to a certain extent.Because the TV screen display adopts the line scanning mode usually, therefore, the way of chained list has an apparent in view shortcoming: adjacent two rectangular graph layer regions can not have overline on the screen ordinate.This means that for example shown in Figure 2 have two overlapping OSD layers of row, must be merged into a big graph layer node earlier could add in the chained list.
Second shortcoming of chain table handling is: the mechanism that realizes the graphic layer can only be taken on by OSD chained list mechanism, if support the special-purpose DMA of OSD chained list mechanism to have only one, then hardware can only be supported 1 layer of graphic layer.If want to support more graphic layer, just have to increase the special-purpose DMA of graph layer, the scheme that has at present provides 4 OSD of as many as special-purpose DMA, but this obviously relatively wastes hardware resource.
Another kind of scheme is to adopt a plurality of windows to realize mixing.In this scheme,, dispose a window respectively, like this,, also can mix even the overlapping graph layer of row is arranged as OSD, GUI, captions etc. corresponding to each layer pattern data.And, simultaneously for data such as video, cursor, backgrounds, also be that each layer disposes a window respectively in this scheme.Can save bandwidth to a certain extent though do like this, limit total mixing number of plies.Make and the enlarged areas that integrated circuit is realized be unfavorable for the reduction of cost.
Summary of the invention
The object of the present invention is to provide a kind of control system for screen display that video layer is mixed with multi-layer datas such as graph layers, it can will have the multi-layer data of overline or overlapping region to mix.And this control system for screen display utilizes less hardware just can realize the mixing of infinite layering.
According to control system for screen display of the present invention, comprising:
The 2D module in order to carry out the alpha premixed to comprising OSD layer, GUI layer and subtitle layer at interior multi-layer data, forms full frame graph layer;
Mixing module carries out the conversion of RGB territory to the YUV territory in order to the graph layer that premixed is formed, and the graph layer after will change carries out alpha with video layer and mix the data in formation YUV territory afterwards, and described mixing module comprises:
The screen coordinate scanning means, the scanning screen produces with the streamed current scanning element of coordinate scanning;
The first rectangular window device, judge that according to described coordinate scanning stream current scanning element is arranged in a window of a plurality of windows that comprise graphical window and cursor window, and the data that comprise graph layer and cursor layer are carried out the temporary layer in a RGB territory of selection formation of multiselect one;
The second rectangular window device judges that according to described coordinate scanning stream current scanning element is positioned at a video window;
Read buffer unit,, receive graph layer data of being transmitted and the video layer data of being transmitted from the reception of the second rectangular window device from the first rectangular window device respectively according to the window at current scanning element place;
Conversion equipment carries out the format conversion of RGB territory to the YUV territory to the temporary layer data in described RGB territory;
The Alpha mixing arrangement carries out Alpha to the temporary layer data and the video layer data in YUV territory and mixes.
The present invention is a simplified design, has made full use of one and can support two pictures to carry out the alpha married operation and the 2D module of repetitive operation repeatedly, to form the single graph layer of one deck.Simultaneously the data Layers such as graph layer that can send video layer, cursor layer and 2D module in mixing module dispose a window respectively.Remove OSD chained list mechanism and corresponding special-purpose DMA thereof in the 2D module of the present invention fully, and can carry out the mixing of lap effectively, need not to require too much hardware configuration just can realize the mixing of unlimited multilayer.
Description of drawings
The following drawings is the aid illustration to exemplary embodiment of the present, in conjunction with the following drawings to the elaboration of the embodiment of the invention, be to disclose feature of the present invention place for further, but do not limit the present invention, identical reference number is represented corresponding element, parts or step among the figure.Wherein:
The work schematic diagram of Fig. 1 in the prior art three layers of OSD being handled.
Fig. 2 is to the two-layer work schematic diagram that has the staggered OSD of part to handle in the prior art.
Fig. 3 is the structured flowchart of control system for screen display in the one embodiment of the invention.
Fig. 4 is the 2D modular structure block diagram of one embodiment of the invention.
Fig. 5 is the 2D module worker state machine schematic diagram of one embodiment of the invention.
Fig. 6 is system's engine structure schematic diagram of the mixing module of one embodiment of the invention.
Fig. 7 is the mode of operation schematic diagram of a screen coordinate scanning means in the mixing module shown in Figure 6.
Fig. 8 is the structured flowchart of the mixing module of one embodiment of the invention.
Fig. 9 is the schematic diagram of the worker state machine of mixing module shown in Figure 8.
Figure 10 is the structural representation of window judgment means in the mixing module of the present invention.
Figure 11 is an internal structure and peripheral interactive signal schematic diagram of reading buffer unit in the mixing module of the present invention.
Figure 12 is the flow chart of an embodiment of screen display mixed method of the present invention.
Figure 13 is the flow chart of another embodiment of screen display mixed method of the present invention.
Embodiment
In the MPEG-2 decoding, GUI, OSD and captions etc. all are to be stored among the SDRAM with scattered form usually.The present invention was pre-mixed scattered contents such as GUI layer, OSD layer and subtitle layer for simplifying the hierarchical mode in the DVB standard before sending into mixing module, form a full frame graph layer, and deposit back among the SDRAM.The present invention can carry out alpha in advance to the scattered content among the SDRAM such as GUI layer, OSD layer and subtitle layer by a 2D module and mix full frame graph layer of formation.
Fig. 3 is the structure diagram of control system for screen display in the one embodiment of the invention.As shown in Figure 3, this control system for screen display mainly comprises two parts: 2D module 11 and mixing module 12.The 2D module can be carried out alpha to scattered content in advance and be mixed full frame graph layer of formation.Scattered content among the SDRAM comprises GUI layer, OSD layer and subtitle layer etc., and wherein each all can have multilayer, as OSD1 layer, OSD2 layer etc.In one embodiment of the invention, can allow to support GUI layer, OSD layer and the subtitle layer etc. of multiple pixel format, as RGB565, ARGB3454, ARGB4444, forms such as ARGB32.Mixing module can carry out RGB to the graph layer that is pre-mixed to be mixed with video layer after the conversion of YUV.The data in the YUV territory that mixing is obtained are sent into television signal encoder at last, carry out screen display.
Fig. 4 is the hardware block diagram of 2D module in the one embodiment of the invention.The 2D module utilizes data DMA111 to take out data from SDRAM, and data are sent into the source buffer.The 2D module is provided with the first source buffer 113 and the second source buffer 114 among the figure, like this, when data DMA fetches data from SDRAM, can once get two layer data and send into the first source buffer and the second source buffer respectively.Data in the first source buffer and the second source buffer enter subsequently in the 2Dalpha mixed cell 116 and are pre-mixed.In an embodiment of the present invention, between the first source buffer and the second source buffer and the 2Dalpha mixed cell format conversion unit 115 can be set, to support the data Layer of various pixel formats.Can allow graph layer to support the pixel format of multiple little storage bit wide like this, thereby reduce the demand of bandwidth to a certain extent.According to one embodiment of present invention, as shown in Figure 4, format conversion unit 115 comprises format converter 1151 and 1153, can be as RGB565, ARGB3454, ARGB4444, pixel formats such as ARGB32 convert for example ARGB32 pixel format in interior multiple uniform format.Like this, the 2Dalpha mixed cell can for example be pre-mixed under this a kind of form of ARGB32.Among the embodiment shown in Figure 4, palette 1152 and format converter 1151 parallel being arranged between the first source buffer and the 2Dalpha mixed cell, similarly, palette can carry out the pixel format conversion of some form kinds between the first source buffer and the second source buffer and 2Dalpha mixed cell, for example 8 ARGB32 index, 8 AYUV32 index etc. are converted to the ARGB32 form.Be understandable that, and the format conversion unit between the 2Dalpha mixed cell format converter and palette in present embodiment, listed, can also dispose other device and carry out the conversion of various pixel formats.
The 2Dalpha mixed cell carries out the ALPHA married operation to the pixel through format conversion in the first source buffer and the second source buffer.Usually can take following formula to calculate:
dst=A*src1+(1-A)*src2
=A*(src1-src2)+src2
Src1 and src2 represent the layer that participates in mixing respectively in the formula, are through the pixel layer of format conversion in the first source buffer and the second source buffer at this.Suppose src1 on src2, wherein A is the alpha value, expression " opacity ", and span is 0~1, value is 0 o'clock, represents transparent fully; Value is 1 o'clock, represents opaque fully.
The 2Dalpha mixed cell can comprise the 2Dalpha value and adjust logic, is used for adjusting the ALPHA value.For example, for certain picture element, src1 is the GUI layer, and src2 is the OSD layer, and when the OSD layer data was above the GUI layer, the 2Dalpha value was adjusted logic the ALPHA value is made as 0, and then this picture element OSD layer after mixing covers the GUI layer fully.
The 2Dalpha mixed cell is delivered to the data that mix among the 2D output FIFO117.2D output FIFO117 returns FIFO112 with 2D and is connected, and the data that 2D returns among the FIFO send back among the SDRAM via data DMA.When utilizing the 2D module to carry out multilayer, mix by needs, for example during the mixing more than three layers or three layers, the data of 2D output FIFO can be returned FIFO through 2D and send and be added among the SDRAM, again sent in the 2D module with other layer among the SDRAM by data DMA and mix, recycling can support the 2D module of two layers of ALPHA mixing just can realize the mixing of multilayer like this.
Come the work of control system engine in the 2D module by configuration register 20.Configuration register receives the control command from CPU, realizes control to 2D module work engine by interrupting communication mechanism.The worker state machine of configuration register as shown in Figure 5.It comprises 4 kinds of states: beginning 21, free time 23, work 25 and interrupt service routine 27 states.Under the initial state, send initiation command by CPU and give configuration register, and configure other all 2D register.Subsequently, the 2D module enters idle condition.Under the idle condition, if configuration register receive that CPU sends the engine_start register is put 1 signal, configuration register will enter system's engine that operating state starts the 2D module and start working.The 2D module down, if receive the interruptive command that CPU sends, will enter interrupt service routine (ISR) state and wait in working order.Under the interrupt service routine (ISR), put 1 signal, then return operating state again and work on if configuration register receives the engine_start register; If receive the engine_start register and be 0 signal, then get back to idle condition.
Fig. 6 is system's engine structure schematic diagram of the mixing module of one embodiment of the invention.System's engine comprises screen coordinate scanning means 31, the first rectangular window device 33, the second rectangular window device 34, reads buffer unit 35, conversion equipment 36, and ALPHA mixing arrangement 37.The screen coordinate scanning means scans whole screen, and sends coordinate scanning stream and give the first rectangular window device and the second rectangular window device.The first rectangular window device and the second rectangular window device utilize windowing mechanism, judge according to coordinate scanning stream which window current scanning element is positioned at.Read buffer unit and read the current screen data according to the judged result of the first rectangular window device and the second rectangular window device.The data definition that the first rectangular window device is sent is a temporary layer.Conversion equipment carries out the format conversion of RGB to YUV to the temporary layer data.The ALPHA mixing arrangement carries out the ALPHA married operation to video pixel on the current coordinate and temporary layer pixel.
Fig. 7 is the mode of operation schematic diagram of screen coordinate scanning means.Whole screen can be defined as a screen coordinate system usually, and as shown in Figure 7, the upper left corner is defined as initial point (0,0), is to the right the positive axis of x axle, is downwards the positive axis of y axle.
" window " in the windowing mechanism is meant a zone in such screen coordinate system the inside.In one embodiment of the invention, this zone is the rectangular area, and it can come unique appointment by the position coordinates in the upper left corner and the position coordinates in the lower right corner.For example, corresponding to the viewing area of video layer, video window can be by two position coordinates (Xv 1, Yv 1) and (Xv 2, Yv 2) determine; Corresponding to the viewing area of background layer, backdrop window can be by two position coordinates (Xb 1, Yb 1) and (Xb 2, Yb 2) determine or the like.
The screen coordinate scanning means is according to the row-field scanning sequential of television signal encoder, begins scanning from the upper left corner of whole screen, finishes up to the lower right corner of screen.Scanning odd-numbered line in strange, scanning even number line in the idol field.The screen coordinate scanning means stably sends coordinate scanning stream according to the scanning sequence of video scanning screen the time.
Be provided with horizontal counter and vertical counter (not shown) in the screen coordinate scanning means.Horizontal counter along continuous straight runs is counted screen, and vertical counter is vertically counted screen.Here the screen scanning area with 640*480 is that example is illustrated.When mixing module adopted frame pattern to count, the counting of horizontal counter from 0 to 639 added up 1 at every turn, and vertical counting from 0 to 479 adds up 1 at every turn.When mixing module adopted field mode to count, whole screen was divided into very, two of idols, and at first counting is strange, again counting idol field.When counting strange, the counting of horizontal counter from 0 to 639 adds 1 at every turn, and vertical counting from 0 to 478 adds up 2 at every turn; During counting idol field, the counting of horizontal counter from 0 to 639 adds 1 at every turn, and vertical counting from 1 to 479 adds up 2 at every turn.Fig. 5 is the structured flowchart of the mixing module of one embodiment of the invention.Control register 38 receives from the command signal of CPU (not shown) and the work of control system engine.The worker state machine of control register can comprise 4 kinds of states referring to Fig. 6: initial state 61, idle condition 63, operating state 65 and fault processing state 67.When mixing module is started working, at first write control register by CPU, give start (beginning) register (not shown) assignment 1 wherein, mixing module just enters into idle condition from initial state.Under idle condition, when mixing module detects synchronizing signal VSYNC, the shadow register of then resetting (not shown), and enter operating state, system's engine begins to carry out hybrid working.After the data of mixing module carrying finishing present frame, receive that DMA_finish is 1 signal, enter the fault processing state, in this state, will be all input FIFO and once empty operation, prevent previous frame because make mistakes and residual data, thereby isolated the influence each other of each frame, reached the purpose of error correction.5 all after dates of fault processing state automatically return to idle condition.
In one embodiment of the invention,, can before sending into mixing module, be pre-mixed, form a full frame graph layer, and deposit back among the SDRAM by the 2D module for scattered contents such as GUI layer, OSD layer and subtitle layer according to the description of front.Therefore, the first rectangular window module for example can directly be carried out three to background layer, graph layer and cursor layer and selected one selection.The first rectangular window device 33 and the second rectangular window device 34 are respectively wherein each layer and are equipped with a window judgment means 70 (referring to Figure 10).In other words, in the present embodiment, for the configurable graph layer window judgment means of graph layer, for the configurable cursor layer window judgment means of cursor layer.Before screen scanning, be provided with a window respectively corresponding to the viewing area of graph layer and each layer data of cursor layer, can be described as graphical window 331 and cursor window 332.Each window all contains above-mentioned window judgment means.Graphical window is by two position coordinates (Xg 1, Yg 1) and (Xg 2, Yg 2) determine; The cursor window is by two position coordinates (Xc 1, Yc 1) and (Xc 2, Yc 2) determine.Graphical window and cursor position of window coordinate input window judgment means when every two field picture begins.Figure 10 is the structural representation of window judgment means.Each window judgment means is provided with the window's position coordinate register 701 and window comparison means 702 among Figure 10.The window's position coordinate register can be deposited definition position of window coordinate, as two position coordinates (Xg of graphical window 1, Yg 1) and (Xg 2, Yg 2), two position coordinates (Xc of cursor window 1, Yc 1) and (Xc 2, Yc 2).
The second rectangular window device can judge that similar with the first rectangular window principle of device, video window 341 wherein contains video layer window judgment means 70 to the video layer data.Video window 341 can be by two position coordinates (Xv 1, Yv 1) and (Xv 2, Yv 2) determine.Video layer window judgment means 70 also is provided with the window's position coordinate register 701 and window comparison means 702.Position coordinates (the Xv of video window 1, Yv 1) and (Xv 2, Yv 2) the window's position coordinate register of input window judgment means when every two field picture begins.
The coordinate scanning stream that the screen coordinate scanning means is sent is concurrently by video layer window judgment means, graph layer window judgment means, cursor layer window judgment means.Window comparison means in each window judgment means compares respectively coordinate scanning stream and each position of window coordinate.For example, video layer window judgment means is with coordinate scanning stream and video layer position of window coordinate (Xv 1, Yv 1) and (Xv 2, Yv 2) compare, judge whether current scanning element is positioned within the video window.If (X Y), satisfies this and falls into condition current scanning element, falls into two position coordinates (Xv 1, Yv 1) and (Xv 2, Yv 2) between, promptly
Xv 1≤X≤Xv 2;Yv 1≤Y≤Yv 2
Then current scanning element falls within this window.
The second rectangular window device is provided with video FIFO 342, can receive the video data from Video Decoder.Judge current scanning element when video layer window judgment means and fall within the video window, video layer window judgment means produces video window useful signal xy_in_video, and this signal is sent into read buffer unit.Correspondingly, read buffer unit and from video FIFO, load video pixel.
The first rectangular window device is provided with graphics fifo 334 and D graphics MA 333.D graphics MA can carry graph data from external memory storage, and leaves in the graphics fifo.External memory storage can be SDRAM etc.Judge current scanning element when graph layer window judgment means and fall within the graphical window, graph layer window judgment means produces graphical window useful signal xy_in_graphic, and this signal is sent into read buffer unit.Correspondingly, read buffer unit and from graphics fifo, load pattern pixel.
It is built-in that cursor data and background data are system's engine of mixing module.For example, in one embodiment of the invention, read to comprise in the buffer unit low capacity SRAM that can deposit cursor data and the register of depositing background data, cursor data and background data leave in to be read in the buffer unit.The value of background data can suitably be adjusted the color that changes background in the register.Judge current scanning element when cursor layer window judgment means and fall within the cursor window, cursor layer window judgment means produces cursor window useful signal xy_in_cursor, and this signal is sent into read buffer unit.Correspondingly, read buffer unit and from system's engine internal module, load cursor data.If current selection background layer input is then read buffer unit and load background data from system's engine internal module.
In the system definition of one embodiment of the invention, when all occurring, data do not fill with background.Background layer does not dispose special window judgment means, only when the equal free of data of figure, cursor and video window is imported, thinks that current scanning element falls into backdrop window, and selects the background layer input.
In other embodiments of the invention, the first rectangular window device can carry out the selection of alternative to graph layer and cursor layer.Background layer then is placed in the second rectangular window device and handles.Video layer window judgment means in the second rectangular window device is judged current coordinate scanning element and is not dropped on the video layer window, just thinks that current scanning element falls into backdrop window, and selects the background layer input.
Figure 11 is internal structure and a peripheral interactive signal schematic diagram of reading buffer unit.Read buffer unit 35 and have input register 351 and output register 353, and be provided with protocol analysis device 355 and coordinate reading and sending of data in input registers and the output register.Input register can temporarily be deposited the signal that receives from the first rectangular window device of front and the second rectangular window device, as video window useful signal xy_in_video, cursor window useful signal xy_in_cursor etc.For graphics fifo and video FIFO, when the current data of output that need among the FIFO have been placed on the FIFO port, wait for when subordinate's module reads that the figure waiting signal G_fifo_lasting of graphics fifo is high, perhaps the video waiting signal V_fifo_lasting of video FIFO is high.If the protocol analysis device receives graphical window useful signal xy_in_graphic and effective figure readable signal G_fifo_lasting simultaneously, can send one to figure readable signal G_fifo_reading that should graphics fifo, and take the data on the graphics fifo port away.When if the protocol analysis device receives video window useful signal xy_in_video and video waiting signal V_fifo_lasting simultaneously, can send one to figure readable signal V_fifo_reading that should graphics fifo, and take the data on the video FIFO port away.
Reading buffer unit is connected with the ALPHA mixing arrangement with conversion equipment simultaneously.Conversion equipment can be the data transaction of rgb format to yuv format.In one embodiment of the invention, when the data in reading buffer unit were temporary layer, promptly when background layer, graph layer and cursor layer, these data were sent into conversion equipment earlier, are transformed into yuv format from rgb format, send into the ALPHA mixing arrangement again.When the data in reading buffer unit were video layer, these data were directly sent into the ALPHA mixing arrangement.
The ALPHA mixing arrangement carries out the ALPHA married operation to video pixel on the current coordinate and temporary layer pixel.Usually can take following formula to calculate:
dst=A*src1+(1-A)*src2
=A*(src1-src2)+src2
Src1 and src2 represent the layer that participates in mixing respectively in the formula, suppose src1 on src2, and wherein A is the ALPHA value, expression " opacity ", and span is 0~1, value is 0 o'clock, represents transparent fully; Value is 1 o'clock, represents opaque fully.
The ALPHA mixing arrangement can comprise ALPHA value adjuster (not shown), is used for adjusting the ALPHA value.For example, for certain picture element, src1 is a graph layer, and src2 is a video layer, and when the video layer data were above graph layer, the ALPHA value adjuster was made as 0 to the ALPHA value, and then this picture element is mixing the complete cover graphics layer of rear video layer.
Figure 12 is the screen display mixed method flow chart of one embodiment of the invention, and by shown in Figure 12, mixed method of the present invention may further comprise the steps:
Step S1. is provided with a plurality of windows, and is each window definition the window's position coordinate.Comprise video window, graphical window and cursor window in a plurality of windows.
Step S2. scans screen, and send coordinate scanning to flow to the first and second rectangular window devices.In the present embodiment, the screen coordinate scanning means scans screen, and the form that the current scanning element that obtains is flowed with coordinate scanning is sent to the first rectangular window device and the second rectangular window device.
The window's position coordinate of each window compares in the current scanning element of step S3. and the above-mentioned first rectangular window device and the second rectangular window device, to determine the window at current scanning element place.In the present embodiment, the first rectangular window device and the second rectangular window device compare the window's position coordinate of each window in current scanning element and the module respectively, to determine the window at current scanning element place, wherein the first rectangular window device carries out the selection of multiselect one to data such as figure, cursor, backgrounds, form one deck temporary layer, the second rectangular window device compares current scanning element and video window, to determine whether current scanning element is positioned at video window.
Step S4. transmits data to and reads buffer unit according to current scanning element place window.In the present embodiment, if current scanning element at graphical window, the first rectangular window device from graphics fifo transmitting graphics data to reading buffer unit; If current scanning element is at video window, the second rectangular window device from video FIFO transmitting video data to reading buffer unit; If current scanning element at the cursor window, just directly reads cursor data to reading buffer unit from system's engine,, then from system's engine, read background data to reading buffer unit if current scanning element does not drop on defined coordinate window.
Step S5. judges whether the data of reading in the buffer unit are temporary layer.In the present embodiment, when judgement is read data in the buffer unit and is temporary layer, promptly when background, figure or cursor data,, these data are sent into conversion equipment earlier, be transformed into yuv format, send into the ALPHA mixing arrangement again from rgb format at step S6; Read data in the buffer unit when the temporary layer when judgement, when promptly being defaulted as video layer, these data are directly sent into the ALPHA mixing arrangement.
Step S6.ALPHA mixes.In the present embodiment, the temporary layer data in YUV territory and video layer data being carried out ALPHA mixes.
Among the step S2, the screen coordinate scanning means stably sends coordinate scanning stream according to the parity field sequential of video, and this coordinate stream scanning is handled by each rectangular window device concurrently, is to be positioned within which window thereby judge current scanning element.
Background data elder generation among the step S4 in system's engine, is read from system's engine and reads buffer unit at rgb format by software setting.
Among the step S6 background layer, graph layer and cursor layer on hardware paths a shared RGB color gamut to the transform engine of YUV color gamut.
Figure 13 is the screen display mixed method flow chart of another embodiment of the present invention, be with difference embodiment illustrated in fig. 12, background layer wherein is not as temporary layer, but in system's engine, directly be set to yuv format by software, do not need to carry out the conversion of RGB to YUV, just can from system's engine, read buffer unit, participate in the ALPHA married operation directly.By shown in Figure 13, among the step S3 ' of the mixed method of this embodiment wherein the first rectangular window device only data such as figure, cursor are carried out the selection of multiselect one, form one deck temporary layer.
As a kind of conversion, in one embodiment of the invention, above-mentioned mixing module also can substitute with the module of traditional chain sheet form or the module of multiwindow form.
The foregoing description is just in order further more clearly to describe the present invention, but not limitation of the present invention.Be to be understood that the present invention is not limited to the elaboration that above embodiment does, anyly all should be encompassed within the spirit and scope of claim of the present invention based on modification of the present invention and equivalent of the present invention.

Claims (7)

1. control system for screen display comprises:
The 2D module in order to carry out the alpha premixed to comprising OSD layer, GUI layer and subtitle layer at interior multi-layer data, forms full frame graph layer;
Mixing module carries out the conversion of RGB territory to the YUV territory in order to the graph layer that premixed is formed, and the graph layer after will change carries out alpha with video layer and mix the data in formation YUV territory afterwards, and described mixing module comprises:
The screen coordinate scanning means, the scanning screen produces with the streamed current scanning element of coordinate scanning;
The first rectangular window device, judge that according to described coordinate scanning stream current scanning element is arranged in a window of a plurality of windows that comprise graphical window and cursor window, and the data that comprise graph layer and cursor layer are carried out the temporary layer in a RGB territory of selection formation of multiselect one;
The second rectangular window device judges that according to described coordinate scanning stream current scanning element is positioned at a video window;
Read buffer unit,, receive graph layer data of being transmitted and the video layer data of being transmitted from the reception of the second rectangular window device from the first rectangular window device respectively according to the window at current scanning element place;
Conversion equipment carries out the format conversion of RGB territory to the YUV territory to the temporary layer data in described RGB territory;
The Alpha mixing arrangement carries out Alpha to the temporary layer data and the video layer data in YUV territory and mixes.
2. control system for screen display as claimed in claim 1 is characterized in that, described 2D module comprises:
Data DMA comprises OSD layer, GUI layer and subtitle layer at interior multi-layer data in order to take out from SDRAM;
The multiple source buffer receives the data of different layers respectively from data DMA;
2D alpha mixed cell carries out the alpha premixed to the data from the different layers of multiple source buffer;
2D output FIFO and 2D return FIFO, in order to the data after the premixed are sent back to SDRAM via data DMA.
3. control system for screen display as claimed in claim 2 is characterized in that, described 2D module also comprises in order to different pixel format conversion is become the format conversion unit of unified pixel format.
4. control system for screen display as claimed in claim 1 is characterized in that, the temporary layer in described RGB territory is the temporary layer that the data that comprise graph layer, cursor layer and background layer is carried out the RGB territory that the selection of multiselect one forms.
5. control system for screen display as claimed in claim 1, it is characterized in that, the described first rectangular window device and the second rectangular window device are equipped with the window judgment means, this window judgment means comprises in order to depositing the window's position coordinate register of the window's position coordinate, and the window comparison means in order to described coordinate scanning stream and described the window's position coordinate are compared.
6. control system for screen display as claimed in claim 1 is characterized in that, the described buffer unit of reading comprises in order to deposit cursor layer data and/or background layer memory of data.
7. control system for screen display as claimed in claim 1 is characterized in that, describedly reads that buffer unit comprises input register, output register and in order to coordinate the protocol analysis device that reads and send of data in input register and the output register.
CNB200510110141XA 2005-11-09 2005-11-09 A control system for screen display Expired - Fee Related CN100414981C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510110141XA CN100414981C (en) 2005-11-09 2005-11-09 A control system for screen display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510110141XA CN100414981C (en) 2005-11-09 2005-11-09 A control system for screen display

Publications (2)

Publication Number Publication Date
CN1964442A CN1964442A (en) 2007-05-16
CN100414981C true CN100414981C (en) 2008-08-27

Family

ID=38083293

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510110141XA Expired - Fee Related CN100414981C (en) 2005-11-09 2005-11-09 A control system for screen display

Country Status (1)

Country Link
CN (1) CN100414981C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350896B (en) * 2007-12-12 2011-01-12 深圳创维数字技术股份有限公司 Method for solving dynamic switch of GUI graphical system under various display standard
CN102110430A (en) * 2009-12-23 2011-06-29 富士通株式会社 Method and system for multi-window display
CN102566952B (en) * 2010-12-20 2014-11-26 福建星网视易信息系统有限公司 Display system and display method applied to embedded digital entertainment on-demand system
CN102103463B (en) * 2011-02-17 2013-03-13 浙江宇视科技有限公司 Processing method and equipment of user interface information with transparency
CN102368211A (en) * 2011-06-28 2012-03-07 上海盈方微电子有限公司 Method for implementing hardware mouse by using acceleration of OSD (on-screen display)
CN103974006A (en) * 2013-01-29 2014-08-06 北京哲朗科技有限公司 High-performance OSD design
WO2016004859A1 (en) * 2014-07-07 2016-01-14 乐视网信息技术(北京)股份有限公司 Method and device for video barrage display
CN108132786B (en) * 2017-12-21 2021-03-30 广州路派电子科技有限公司 GUI design method based on OSD
CN112616083A (en) * 2020-12-11 2021-04-06 湖南国科微电子股份有限公司 Video display layer superposition processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0840277A2 (en) * 1996-11-01 1998-05-06 Texas Instruments Incorporated Window processing in an on screen display system
JPH10200873A (en) * 1997-01-16 1998-07-31 Sharp Corp Video telephone system
CN1445984A (en) * 2003-04-14 2003-10-01 浙江大学 Method for fast picking up picture with any image as background in digital image process
CN1472703A (en) * 2002-07-03 2004-02-04 ��ʢ���ӹɷ����޹�˾ Apparatus and method for digital image alpha mix
EP1441512A1 (en) * 2003-01-17 2004-07-28 Thomson Licensing S.A. Electronic apparatus generating video signals and process for generating video signals
CN1558664A (en) * 2004-01-17 2004-12-29 上海交通大学 A high definition digital television program caption and background image synthesis method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0840277A2 (en) * 1996-11-01 1998-05-06 Texas Instruments Incorporated Window processing in an on screen display system
JPH10200873A (en) * 1997-01-16 1998-07-31 Sharp Corp Video telephone system
CN1472703A (en) * 2002-07-03 2004-02-04 ��ʢ���ӹɷ����޹�˾ Apparatus and method for digital image alpha mix
EP1441512A1 (en) * 2003-01-17 2004-07-28 Thomson Licensing S.A. Electronic apparatus generating video signals and process for generating video signals
CN1445984A (en) * 2003-04-14 2003-10-01 浙江大学 Method for fast picking up picture with any image as background in digital image process
CN1558664A (en) * 2004-01-17 2004-12-29 上海交通大学 A high definition digital television program caption and background image synthesis method

Also Published As

Publication number Publication date
CN1964442A (en) 2007-05-16

Similar Documents

Publication Publication Date Title
CN100414981C (en) A control system for screen display
CN100556085C (en) Screen display hybrid system and mixed method
CN101299331B (en) Display controller for displaying multiple windows and method for the same
CN1871851B (en) Display system having improved multiple modes for displaying image data from multiple input source formats
US5745095A (en) Compositing digital information on a display screen based on screen descriptor
US8184127B2 (en) Apparatus for and method of generating graphic data, and information recording medium
JP2007264141A (en) Video display apparatus
US20070146547A1 (en) Image processing apparatus and method
CN101778226B (en) High-definition image sawtooth-prevention method, device and digital television receiving terminal
US7554608B2 (en) Video composition circuit for performing vertical filtering to α-blended video data and successively input video data
CN101276574A (en) Video compositing device and video output device
US20080151115A1 (en) Image processing apparatus
CN102957875A (en) Image processing method, device and system
CN101986384A (en) Method for processing display of multi-layer picture in picture for DLP multi-screen splicing display wall
CN110928513A (en) Super-resolution synthesis command application system
CN1949888B (en) System and method for producing high resolution television test signal
CN103813124A (en) Image processing device and image processing method
CN116248956A (en) Method and device for flexibly optimizing bandwidth and superposing multiple OSD videos
US6714256B2 (en) Video signal processing system
US7295249B2 (en) Digital television display control apparatus and method
TWI313563B (en) A display mixer and the method thereof
US8488897B2 (en) Method and device for image filtering
JP2003189262A (en) Method for integrating three-dimensional y/c comb line filter and interlace/progressive converter into single chip and system thereof
US7474311B2 (en) Device and method for processing video and graphics data
CN110248225A (en) A kind of Multi-screen display system

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

Granted publication date: 20080827

Termination date: 20111109