Background technology
In the prior art, on television set or personal computer equipment such as (PC, Personal Computer), need use the OSD technology through regular meeting, promptly a kind of screen menu type regulative mode.On television set or PC screen, eject rectangle menu through triggering corresponding button about each item regulatory function information of display; And through each item working index of this menu to display; Comprise that color and pattern etc. regulate, thereby reach best user mode.
For instance, when the user changes platform, when regulating operation such as volume or image quality, just can on screen, demonstrate user's operational status information in real time through the OSD technology television set, usually the information that is shown is called osd information.Difference according to reality is provided with can show said osd information in the optional position on screen.
Below in conjunction with the structure of image display system the concrete realization of OSD technology once is described.
Fig. 1 is the structural representation of conventional images display system.As shown in Figure 1, mainly comprise parts such as interface unit, OSD editing machine, OSD buffer, image loader, video mixer and image display in this system.
The user can carry out a series of setting through interface unit; Comprise: be provided with the image of image loader input size, display position and the size of osd information on screen is set, color that osd information shows is set, whether OSD is set available, and the size etc. that the OSD buffer is set.
The image loader is used for input and wants the images displayed data, is that unit imports usually with the frame, and in addition, this view data can be the dynamic data from transducer (Sensor) input, also can be the static data of preserving in the memory.
The OSD buffer is used for depositing osd data, and the big I of its occupation space is decided according to the actual requirements, such as wide be 320 bits (Bit), height is 16 bits, the corresponding pixel of each bit.According to the difference of osd information to be shown, the value of each pixel is also with difference.Such as; Suppose that the user regulates the volume of television set, the osd information that shows on the screen is as shown in Figure 2, and rectangle 1 is wherein represented screen size; Rectangle 2 is represented display position and the size of osd information on screen; Hatched example areas in the rectangle 2 is represented volume, and hatched example areas proportion in rectangle 2 is big more, and the expression volume is big more; In the OSD buffer, corresponding to the pixel on the frame of hatched example areas in the rectangle 2 and whole rectangle 2, its value can be set to 1 so, and for other pixel, but then value is 0.It is follow-up when image display shows osd information; Can be according to the difference of the value of each pixel; Correspondence is shown as various colors; Specifically, value is the Show Color that 1 pixel then is shown as the osd information that is provided with in advance, and value is that 0 pixel then can be shown as the color on black or the transparent video screen.
In practical application, can in the OSD buffer, write data through the OSD editing machine, write at every turn 1 row, according to order from left to right, promptly from the 1st be listed as the 320th row order, write successively 320 row.Wherein, the OSD editing machine can obtain osd data through interface unit.
Whether video mixer is used for the OSD that search interface unit is provided with available; If it is available; Then the view data of image loader output and the osd data of OSD buffer output are merged; And the data after will merging export to image display, if unavailable, then only the view data of image loader output are exported to image display.Afterwards, image display carries out the image demonstration according to the data that receive.
But can there be certain problem in above-mentioned processing mode in practical application, such as; The user is when regulating the volume of television set; The osd information that is shown on the screen that is to say that in real-time change the osd data of depositing in the OSD buffer is also in real-time change.And according to before introduction can know that osd data is write by the OSD editing machine, and existing OSD editing machine is when writing osd data, acquiescence all starts anew to edit, promptly each all with 320 columns according to writing again successively one time according to from left to right order.But can find out in conjunction with Fig. 2; Under a lot of situation, what change possibly be the osd data in the part rows (like the 250th~300 row), such as; The user transfers the volume of television set big; Corresponding to so among Fig. 2 is that hatched example areas has increased a part on former basis, and original hatched example areas is that any variation does not take place, and promptly each corresponding row osd data of this zone does not change.
It is thus clear that existing OSD editing machine there is no need the mode that all osd datas all write again, and has reduced the editing speed of OSD buffer, and then has reduced the processing speed of entire image display system.
Embodiment
To the problem that exists in the prior art; A kind of improved OSD buffer edit scenario is proposed among the present invention; Promptly when needs are edited the OSD buffer; Required osd data compared when the required osd data of the editor OSD buffer that at first will get access to was edited the OSD buffer with the previous moment of being preserved, and confirmed the row that change; Only in the row that change, write osd data then again.Compared with prior art, scheme according to the invention need not all row in the OSD buffer are all write again, has therefore improved the editing speed of OSD buffer.
In addition, in the prior art, when in the OSD buffer, writing osd data; Usually all be in each row, to write osd data successively according to from left to right order; And in the scheme according to the invention, the Inbound of writing of osd data can be set arbitrarily, promptly both can be from left to right; Also can be from right to left, thereby be user-friendly to.
For making the object of the invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is done to specify further.
Fig. 3 is the composition structural representation of OSD buffer editing device embodiment of the present invention.As shown in Figure 3, comprising: comparing unit 31 and edit cell 32.
Wherein, Comparing unit 31 is used to obtain editor's OSD buffer required osd data, and required osd data compares when the osd data that gets access to edited the OSD buffer with the previous moment of being preserved; Confirm the row that change, and notice edit cell 32;
Edit cell 32 is used for only writing osd data again to the row that change.
In the present embodiment; Required osd data (whole 320 row osd datas) in the time of need preserving the last editor OSD buffer in the comparing unit 31 all the time; When needing once more the OSD buffer to be edited, can need in which row, write osd data again through relatively finding out with box lunch.At every turn to after the OSD buffer composed, all with the osd data of being preserved before the required osd data replacement of current editor.
Wherein, can further comprise in the edit cell 32 and subelement 321 is set and writes subelement 322.
According to the difference that reality requires, device shown in Figure 3 can carry out work respectively in such a way:
1) mode one
Comparing unit 31 obtains editor's OSD buffer required osd data, and required osd data compares when the osd data that gets access to edited the OSD buffer with the previous moment of being preserved, and confirm the row that change, and notice is provided with subelement 321.
Subelement 321 is set after the notice that receives from comparing unit 31; OSD to being provided with in advance edits indicating bit setting, need edit the OSD buffer with sign, such as; Identify and to edit with 1, do not identify and need edit with 0; Simultaneously; The row sign of a certain row in the row that the editor position indicating bit that is provided with in advance is set to change; And after in the row that this row sign is identified, writing osd data again when the OSD editing machine; Editor position indicating bit is set to the row sign of another row that change, and in the row that all change, all writes osd data again, and OSD edits indicating bit and is set to need not edit the OSD buffer.
Usually, mostly the row that change are some row that numbering is continuous, in this mode, can successively the row sign that is provided with on the indicating bit of editor position be upgraded according to numbering order from small to large.
Write subelement 322 and read OSD and edit indicating bit, confirm and to edit the OSD buffer, read editor position indicating bit; Definite row that need write osd data again, and write finish after, read OSD once more and edit indicating bit; Need to continue the OSD buffer is edited if confirm; Then read editor's position indicating bit once more, if need not edit to the OSD buffer, end process then.
2) mode two
Comparing unit 31 obtains the required osd data of editor's OSD buffer; And required osd data compares when the osd data that gets access to and the previous moment of being preserved edited the OSD buffer; Confirm the row that change, and notice is provided with subelement 321.
Subelement 321 is set after the notice that receives from comparing unit 31; OSD to being provided with in advance edits indicating bit setting; Need edit the OSD buffer with sign; The row sign of the row of numbering minimum in the row that the editor position indicating bit that is provided with in advance simultaneously is set to change, the columns that is provided with in advance changes total columns that indicating bit is set to change.
Writing subelement 322 reads OSD and edits indicating bit; Confirm and to edit the OSD buffer; And reading editor's position indicating bit and columns variation indicating bit, the row that identified from the row sign that reads begin, according to order from left to right; In the N continuous row, write osd data again, total columns that the value of N equals to change successively.
3) mode three
Comparing unit 31 obtains editor's OSD buffer required osd data, and required osd data compares when the osd data that gets access to edited the OSD buffer with the previous moment of being preserved, and confirm the row that change, and notice is provided with subelement 321.
Subelement 321 is set after the notice that receives from comparing unit 31; OSD to being provided with in advance edits indicating bit setting; Need edit the OSD buffer with sign; The editor position indicating bit that is provided with in advance simultaneously is set to the row sign of specify columns, and the columns that is provided with in advance changes total columns that indicating bit is set to change, and the direction indicating bit is set to the Inbound of writing of appointment.
Writing subelement 322 reads OSD and edits indicating bit; Confirm and to edit the OSD buffer; Read editor position indicating bit, columns variation indicating bit and direction indicating bit, the row that identified from the row sign that reads begin, according to the Inbound of writing of appointment; In the N continuous row, write osd data again, total columns that the value of N equals to change successively.
Wherein, said appointment write Inbound for from left to right write Inbound or from right to left write Inbound; When writing Inbound for from left to right the time, the minimum row of numbering in the row that change are classified in said appointment as; When writing Inbound for from right to left the time, the maximum row of numbering in the row that change are classified in said appointment as.
Can find out; Above-mentioned three kinds of modes all are the same from essence; Promptly all be to indicate and write subelement 322 which row variation has taken place, write subelement 322 then and in these row, write osd data again by subelement 321 is set, but different again on the concrete indicating mode.
Wherein, be the row sign of each row that changes to be indicated successively write subelement 322 in the mode one, write subelement 322 and in indicated row, write osd data successively again.Such as, what change classifies the 250th~255 row as, so at first indicates the 250th row that variation taken place; Write subelement 322 and in the 250th row, write osd data again, afterwards, indicate the 251st row that variation has taken place; Write subelement 322 and in the 251st row, write osd data again, and the like.
And be that row sign of numbering minimum row in the row that change and the total columns that changes are indicated to writing subelement 322 in the mode two; Writing subelement 322 then begins from numbering minimum row; According to order from left to right, in each row that changes, write osd data again successively.For instance; Change classify as the 250th~255 row; So the row sign of the 250th row and the total columns 6 that changes are indicated to writing subelement 322; Write subelement 322 then since the 250th row, in the 250th row, the 251st row, the 252nd row, the 253rd row, the 254th row and the 255th row, write osd data again successively.
In the mode two, write subelement 322 acquiescence and in the row that respectively change, write osd data successively again according to from left to right order.
Mode three then on the basis of mode two, has further increased a kind of flexible processing mode, promptly both can write according to order from left to right, also can write according to order from right to left.
In practical application; Can select a kind of in above-mentioned three kinds of modes as required, reaching better treatment effect, such as; If respectively being listed on the numbering of changing is continuous; But so then optimal way two or mode three, if respectively being listed on the numbering of changing is discontinuous, but optimal way three then.
In addition, in the foregoing description, writing subelement 322, how to obtain osd data be prior art, repeats no more.
Based on said apparatus, Fig. 4 is the flow chart of the edit methods embodiment of OSD buffer of the present invention.As shown in Figure 4, may further comprise the steps:
Step 41: obtain editor's OSD buffer required osd data, and required osd data compares when the osd data that gets access to edited the OSD buffer with the previous moment of being preserved, and confirms the row that change.
Step 42: only in the row that change, write osd data again.
In this step, the mode that in the row that change, writes osd data again can be:
OSD to being provided with in advance edits indicating bit setting; Need edit the OSD buffer with sign; Simultaneously; The row sign of the row in the row that the editor position indicating bit that is provided with in advance is set to change, and after writing osd data again in the row that identified to this row sign, editor position indicating bit is set to the row sign of another row that change; In the row that all change, all write osd data again, OSD edits indicating bit and is set to need not edit the OSD buffer; Read OSD and edit indicating bit, confirm and to edit the OSD buffer, read editor position indicating bit; Definite row that need write osd data again, and write finish after, read OSD once more and edit indicating bit; Need edit the OSD buffer if confirm; Then read editor's position indicating bit once more, if need not edit to the OSD buffer, end process then.
Perhaps; OSD to being provided with in advance edits indicating bit setting; Need edit the OSD buffer with sign; The row sign of the row of numbering minimum in the row that the editor position indicating bit that is provided with in advance simultaneously is set to change, the columns that is provided with in advance changes total columns that indicating bit is set to change; Read OSD and edit indicating bit; Confirm and to edit the OSD buffer; And reading editor's position indicating bit and columns variation indicating bit, the row that identified from the row sign that reads begin, according to order from left to right; In the N continuous row, write osd data again, total columns that the value of N equals to change successively.
Again perhaps; OSD to being provided with in advance edits indicating bit setting; Need edit the OSD buffer with sign; The editor position indicating bit that is provided with in advance simultaneously is set to the row sign of specify columns, and the columns that is provided with in advance changes total columns that indicating bit is set to change, and the direction indicating bit is set to the Inbound of writing of appointment; Read OSD and edit indicating bit; Confirm and to edit the OSD buffer; Read editor position indicating bit, columns variation indicating bit and direction indicating bit, the row that identified from the row sign that reads begin, according to the Inbound of writing of appointment; In the N continuous row, write osd data again, total columns that the value of N equals to change successively.
Wherein, appointment write Inbound for from left to right write Inbound or from right to left write Inbound;
When writing Inbound for from left to right the time, the minimum row of numbering in the row that change are classified in said appointment as; When writing Inbound for from right to left the time, the maximum row of numbering in the row that change are classified in said appointment as.
The concrete workflow of method embodiment shown in Figure 4 please with reference to the respective description among the device embodiment shown in Figure 3, repeats no more here.
In a word, adopt technical scheme of the present invention, improved the editing speed of OSD buffer.And; When the OSD buffer is edited; A kind of writing mode more flexibly is provided; Can be provided with according to from left to right order and in each row that changes, write data, also can in each row that changes, write data according to order from right to left, thus convenient for users.
In sum, more than being merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.