Be applied to subtitle window output method and relevant apparatus on the television system
Technical field
The present invention relates to a kind of subtitle window output method and relevant apparatus, relate in particular to a kind of subtitle window output method and relevant apparatus that is applied on the Digital Television.
Background technology
Along with the digitized trend of global TV programme, the demand of Digital Television also increases day by day.And the standard of Digital Television mainly is to be divided into two big main flows at present: Europe rule digital television standard (DVB) and U.S. rule digital television standard (ATSC).And in U.S.'s rule digital television standard, being in particular hearing has the spectators of obstacle to define a kind of captions specification, promptly so-called Digital Television closed caption (Digital Television Closed Caption is hereinafter to be referred as DTVCC).Mainly be under quiet state, except the conversation content that shows the personage, also current picture institute occurrence described in some descriptive statements of transmission display, for example occurs situations such as background sound in the picture, and then the person can further understand the story of a play or opera to help hearing to have the obstacle.
Send or read the signal of video signal of being exported behind the Video CD with closed caption by the head-end system (Head-end) of Digital Television by digital laser video disk machine, be attended by window definition command (Define Window command) in order to define above-mentioned Digital Television closed caption, and see through general U.S. rule Digital Television the decoding of built-in closed caption code translator, can in display frame, demonstrate closed caption.The closed caption code translator is finished with special chip independently in the prior art mostly.
And in the DTVCC specification, allow the head-end system of Digital Television send or the signal of video signal by digital laser video disk machine output in can comprise 8 window definition command DF0 to DF7 at most.In other words, just when the system resource of Digital Television can be supported fully, can show 8 caption windows simultaneously on the display of Digital Television.But in the life of reality is used, the situation that shows 3 caption windows simultaneously is rare, therefore in the minimal function of Digital Television requires, system only can show simultaneously that 4 caption windows classify necessity as, just on some Digital Television, when comprising above 4 caption windows in the signal of video signal, having partly, caption window will not be shown.
And be in surpassing 4 caption windows, to determine the caption window that is not shown, following technological means just is developed.In the DTVCC specification, definition has many fields in the window definition command shown in first figure, for example represents window identification code (window ID) field of window uniqueness, wherein can insert 0 to 7 numerical value.Also have priority (priority) field in addition, wherein can insert 0 to 7 numerical value,, wherein 0 represent highest priority, and 7 represent lowest priority in order to represent the demonstration priority of caption window.Thus, the Digital Television caption window that just can decide not to be shown according to the numerical value in the priority field.But, in many cases, the priority of a plurality of caption windows that head-end system is sent all is set as the highest, therefore the means of commonly using of only using in the priority field 0 to 7 numerical value to sort can't effectively determine the caption window that is not shown, the mistake that causes caption window to show, and how to improve many disappearances of above-mentioned prior art, be for developing topmost purpose of the present invention.
Summary of the invention
Technical problem to be solved by this invention provide a kind of be applied on the Digital Television subtitle window output method, the captions that it can improve Digital Television show Problem-Error.In addition, another technical problem to be solved by this invention provides a kind of digital television apparatus, and the captions that it can improve Digital Television show Problem-Error.
In order to solve above technical problem, the invention provides following technical scheme:
A kind of subtitle window output method is applied on the digital television apparatus, receives first window definition command in very first time point; Receive second window definition command in second time point; And in response to the magnitude relationship of the second full priority value of the first full priority value of first window definition command and second window definition command, the output state of decision window definition command, the first full priority value comprises the first priority numerical value and the first age parameter in first window definition command, and the second full priority value comprises second priority value and the second age parameter in second window definition command, and the first age parameter and the second age parameter correlation are in the sequencing of very first time point with second time point.The output state of window definition command is the overlapping order of the caption window of window definition command.Preferably, the output state of window definition command is the caption window that whether shows corresponding window definition command on digital television apparatus.Preferably, the output state of window definition command is the overlapping order of the caption window of window definition command.Preferably, priority value system is positioned at the high position of full priority value, and the age parameter word is in the low level of full priority value.Preferably, set the first picture frame buffer and the second picture frame buffer according to the very first time point and the sequencing of second time point, and the first age parameter and the second age parameter correlation are in the numbering of picture frame buffer.
The present invention has adopted subtitle window output method and the relevant apparatus that is applied on the television system, overcome the means of commonly using of only using in the priority field 0 to 7 numerical value to sort and effectively to have determined the mistake that the caption window that is not shown causes caption window to show, improved many disappearances of prior art.
Description of drawings
Fig. 1 is the field schematic diagram of window definition command.
Fig. 2 shows the television system function block schematic diagram according to the subtitle window output method carried out of the specific embodiment of the invention.
Fig. 3 (a) (b) shows the action schematic diagram that window shows that carries out according to the specific embodiment of the invention.
Fig. 4 shows the subtitle window output method flow process according to the specific embodiment of the invention.
Fig. 5 shows the subtitle window output method flow process of another specific embodiment according to the present invention.
Each the column of assemblies formula that is comprised in graphic is as follows:
TV chip 10 Installed System Memories 11
Microcontroller 101 graphics engines 102
Memory interface unit 104 figure output processors 103
Embodiment
See also Fig. 2, it is the television system function block schematic diagram that can carry out the subtitle window output method that this case develops out, wherein comprise TV chip 10 with being independent of outside the TV chip 10 Installed System Memory 11 that is provided with, for example be DRAM (Dynamic Random Access Memory), TV chip 10 comprises microcontroller 101, graphics engine 102, figure output processor 103, memory interface unit 104 and display 105.And be to improve the above-mentioned disappearance of commonly using, this case system imports " age " (age) notion, in order to express the birth order of this window definition command.And during the window definition command of TV chip 10 in receiving signal of video signal, just according to the birth of window definition command order, and behind this original priority (priority) numerical value, add an age parameter again, and then represent a full priority value, the reference when providing subsequent diagram output processor 103 to show running.
For instance, owing to can comprise the window definition command DF0 to DF7 of 8 different windows identification codes (window ID) in the signal of video signal at most, therefore original priority value is P0 to P7, therefore express available 3 positions, and the age parameter that present embodiment is introduced also can be the maximum with window definition command " 8 " consistent, so the age parameter also is to express with 3 positions, its 0 window definition command of representing the 1st birth, 7 then represent the window definition command of the 8th birth.Then both are synthesized a full priority value, and 3 wherein higher positions are original priority value, then are the age parameter as for 3 lower positions.Thus, when figure output processor 103 will with these window definition command the corresponding caption window that produces when exporting display 105 to and showing, just can export 4 caption windows of highest ranking according to the ordering of these full priority value, take place and do not have the mistake that can't judge, and the overlapping order of the ordering of these full priority value also can be applied to window and show the time.For example the caption window of higher level can cover on the caption window that is shown in lower grade.
(b) show the action exemplary plot that window shows of carrying out referring to Fig. 3 (a) according to the specific embodiment of the invention, Fig. 3 (a) expresses the example of a succession of window definition command that is received by the external world, and shown in Fig. 3 (b), TV chip disposes (allocate) in regular turn with respect to these window definition command and goes out corresponding a plurality of picture frame buffer (frame buffer) in Installed System Memory 11.And the numbering F0 of picture frame buffer ~ F7 sets in regular turn in response to the appearance order of this window definition command, for example, first window definition command of receiving (for example the window identification code is DF0) will be sent to the picture frame buffer F0 that numbers No. 0 and store, and original priority value P0 back adds that the full priority value of 3 age parameter representatives also will be deposited among the picture frame buffer F0.Therefore follow-up to receive the window definition command that the window identification code is DF0 (for example DF0 in DF3 after among the figure) can be new and old window by identification just but not open new window, so still be sent to picture frame buffer F0 storage.If but the window identification code changes, for example become DF7, then it is considered as second window definition command of receiving, store and it is changed the picture frame buffer F1 that is sent to No. 1, numbering, and original priority value P1 back adds that the full priority value of 3 age parameter representatives also will be deposited among the picture frame buffer F1.The rest may be inferred, window definition command at emerging window identification code just can be according to the appearance order, and be sent to corresponding picture frame buffer F0 to F7, and the priority value Pn back that it is original adds 3 age parameters, to represent corresponding full priority value.And because the numbering of this picture frame buffer is the appearance order in response to this window definition command, just the meaning with above-mentioned age parameter conforms to, in this embodiment, utilize the numbering of pairing this picture frame buffer of window definition command to represent this age parameter, for example, being numbered No. 0 of the corresponding picture frame buffer of first window definition command of receiving, therefore 3 age parameter also just is set at 0, and therefore the end in 6 full priority value that produced by original priority value P0 (000) and age parameter just is 000 for 3 yards.Window identification code as for second window definition command of receiving is 1, therefore corresponding picture frame buffer is numbered No. 1, therefore 3 age parameter also just is set at 1, and therefore the end in 6 full priority value that produced by original priority value P1 and age parameter just is 001 for 3 yards.The rest may be inferred, end in 6 full priority value of the 3rd window definition command of receiving just is 010 for 3 yards, end in 6 full priority value of the 4th window definition command of receiving just is 011 for 3 yards, end in 6 full priority value of the 5th window definition command of receiving just is 100 for 3 yards, end in 6 full priority value of the 6th window definition command of receiving just is 101 for 3 yards, 3 yards at end in 6 full priority value of the 7th window definition command of receiving just is that the end in 6 full priority value of 110, the eight window definition command of receiving just is 111 for 3 yards.Thus, when figure output processor 103 utilizes full priority value to export ordering, even original priority value P0 ~ P7 all is made as identical numerical value, still can decide four preferential caption window W0, W1, W2, W3 that show according to 3 yards at end.
Fig. 4 shows the subtitle window output method flow process according to the specific embodiment of the invention, can be applicable on the digital television apparatus, and this flow process begins from step 400; Step 410 receives first window definition command in very first time point; Step 420 receives second window definition command in second time point; Step 430, magnitude relationship in response to the second full priority value of the first full priority value of first window definition command and second window definition command, determine the output state of window definition command according to this, the first full priority value comprises the first priority numerical value and the first age parameter in first window definition command, and the second full priority value comprises second priority value and the second age parameter in second window definition command, and the first age parameter and the second age parameter correlation are in the sequencing of very first time point with second time point.For example, the output state of window definition command is the overlapping order of the caption window of window definition command.Step 440, the method ends flow process.
Fig. 5 shows the subtitle window output method flow process of another specific embodiment according to the present invention, can be applicable on the digital television apparatus, and this flow process begins from step 500; Step 510 receives first window definition command that includes first priority numerical value in very first time point; Step 520 receives second window definition command that includes second priority value in second time point; Step 530 produces the first age parameter in response to the very first time point of this first window definition command, and with first priority numerical value and the synthetic first full priority value of the first age parameter; Step 540 produces the second age parameter in response to second time point of this second window definition command, and with second priority value and the synthetic second full priority value of the second age parameter; Step 550 in response to the magnitude relationship of the first full priority value and the second full priority value, determines the output state of these window definition command according to this.The preferably, priority value is represented the high position of full priority value, and the age parameter is represented the low level of full priority value.Step 560, the method ends flow process.
The said method flow process can be implemented in the hardware structure of Fig. 2, therefore, the present invention discloses a kind of digital television apparatus that utilizes full priority to carry out window output, comprise: TV chip, it lies in very first time point and receives first window definition command, and receive second window definition command in second time point, and in response to the magnitude relationship of the second full priority value of the first full priority value of first window definition command and second window definition command, determine the output state of these window definition command according to this, the first full priority value comprises the first priority numerical value and the first age parameter in first window definition command, and the second full priority value comprises second priority value and the second age parameter in second window definition command; And Installed System Memory, be electrically connected on TV chip, dispose the first picture frame buffer and the second picture frame buffer in order to sequencing, and the first age parameter and the second age system of parameters are relevant to the numbering of these picture frame buffers according to the very first time point and second time point.
In sum, the present invention can improve many disappearances of above-mentioned prior art, reaches development topmost purpose of the present invention.According to the concrete announcement of above-mentioned specific embodiment, the present invention must be appointed by the person of ordinary skill in the field and executes that the craftsman thinks and be to modify the protection range of right neither disengaging claim as all.