Embodiment
As shown in Figure 1, be the flow chart of the embodiment of video output control method of set-top box of the present invention, it may further comprise the steps:
Step 101, behind the set-top-box opening, browser starts according to normal boot sequence.
Step 102, browser obtains from operating system and shows resource and this demonstration resource is resolved, generate video data, and send to display chip in the operating system by the process/thread in the browser, each process/thread in the browser all has unique process/thread ID.
Step 103, display chip carries out digital-to-analogue conversion to video data and/or the image, text and data that browser sends, generate displayable output image, this output image comprises video image and/or still images such as literal, picture, and video image video flowing wherein can be by sending to television set respectively by each output port after the player plays.In addition, operating system generates the video flowing ID of the video flowing be used for identifying each output image that browser thread/process sends.
Under the initial situation, the video image of all output port outputs of display chip is all identical, so the initial picture of playing on each television set that set-top box connects is all identical.And, all having the control focus by the full video image of each output port output, that is: the picture on all television sets all can be chosen by the user, and all pictures all can be made same response action according to user's control operation.
Step 104, the user is by control panel, for example: remote controller, the browser in operating system sends playing request.
Step 105, browser indication player plays video image, or browser shows still image according to the image, text and data that obtains.If output image is video image, then in the process of displaying video image, player may call screen display device, and (On Screen Display is hereinafter to be referred as the OSD) caption information in the display video image.
At this moment, the process/thread ID of process/thread of OSD that is used for the caption information of the process/thread ID of the process/thread of unique identification displaying video stream, corresponding display video image in the player has certain incidence relation with the process/thread ID and the video flowing ID that call their browser in operating system.
Step 106, operating system, main control chip is all output images of corresponding same video flowing with display chip, comprise video image and/or still image, distribute an output port on the display chip, set up the process/thread ID of the player of handling same video flowing, the process/thread ID of OSD, the process/thread ID of browser, binding relationship between the video flowing ID of the output port ID of display chip and the described video flowing of sign, and will (for example: television set), the output image of corresponding each video flowing is exported to display device from different output ports respectively export to display device from the same output port of display chip from output image corresponding to each process/thread of same video flowing.
Because the output image of corresponding each video flowing is exported to display device from different output ports respectively, the user is by watching the different video on the same set-top box to flow on the different display devices, more flexible, free, can make full use of the video resource that set-top box provides.
As shown in Figure 2, flow chart for another embodiment of video output control method of set-top box of the present invention, this embodiment can select, control the different video image of set-top box output after step 106 shown in Figure 1 by following flow process, and this embodiment may further comprise the steps:
Step 201, each process/thread in the browser send to the focal position control module with process/thread ID separately respectively.
Particularly, step 201 and the step 102-106 sequence limit that can have no time both can also can be carried out this step 201 in any time of execution in step 102-106 execution in step 201 before step 102 or after the step 106.
Step 202, the focal position control module is according to each the process/thread ID in the browser and set up process/thread ID tabulation, obtains binding relationship and record between output port ID and the video flowing ID that identifies described video flowing of process/thread ID, display chip of process/thread ID, the browser of process/thread ID, the OSD of the player of handling same video flowing respectively from operating system.
Step 203, focal position control module receive the user by the control focal position switching command that is used for the switching controls focal position that control panel sends, and comprise the target output port information that the control focus is switched in this control focal position switching command.This target output port information can be target output port ID, also can be the relation information of the current output port at target output port and current control focus place, for example: next output port.When the target output port information that comprises in the control focal position switching command is the relation information of current output port at target output port and current control focus place, the focal position control module is obtained the current output port ID at current control focus place earlier, obtains target output port ID according to the relation information of the current output port at target output port and current control focus place.
Step 204, the focal position control module sends information to operating system, main control chip, display chip, and prompting operation system, main control chip, display chip user are controlling the focal position switches.
Particularly, the focal position control module can be according to the binding relationship of record, and acquisition and the corresponding video flowing ID of target output port ID that the user chooses by control panel can comprise a plurality of<video flowing ID, prompting message in the information〉right.For example: always have two output ports on the display chip to the television set output video image, if the video flowing ID of the first output port correspondence is 001, corresponding video flowing is chosen by the user, and the video flowing ID of the second output port correspondence is 002, corresponding video flowing is not chosen by the user, at this moment, the focal position control module to the indication information that operating system, main control chip, display chip send can be<001, " choose " with<002, " inefficacy " 〉.Accordingly, the display device that operating system, main control chip and display chip can be connected at first output port (for example: television set) go up and show " choosing " printed words, show " inefficacy " printed words on the display device that second output port connects.
Step 205, the focal position control module is according to the process/thread ID of the player of the same video flowing of processing of record, the process/thread ID of OSD, the process/thread ID of browser, the output port ID of display chip and the binding relationship between the video flowing ID, the process/thread ID of the player that acquisition is corresponding with the output port ID that the user chooses by control panel, the process/thread ID of OSD and the process/thread ID of browser, and to the process/thread of corresponding player, the process/thread of OSD and the process/thread of browser send obtains the order of control focus, to player, other process/thread of OSD and browser sends and discharges the order of control focus.
Afterwards, the user just can send the Play Control indication information to operating system by operation control panel, operating system is according to the output image of this Play Control indication information to choosing, that is: the video flowing at control focus place, carry out corresponding Play Control, for example: play, suspend and play, stop broadcast, repeat playing etc.
Particularly, operating system, main control chip and display chip can be to output image with control focus and the output image distinctive marks that does not have the control focus, and the output image of each video flowing distinctive mark, corresponding is exported to display device from different output ports respectively; Display device shows each output image with distinctive mark respectively.For example: with the output image that high brightness or blink states sign have the control focus, the user can see that the output image with control focus is in high brightness or blink states from display device.
By process/thread ID to player, the process/thread ID of OSD, the process/thread ID of browser, bind between the output port ID of display chip and the video flowing ID, the focal position control module can be provided with the process/thread of the player of the output port ID correspondence of choosing to the user according to the user, the process/thread of OSD and the process/thread of browser send obtains the order of control focus, to player, other process/thread of OSD and browser sends and discharges the order of control focus, thereby realize the switching of control focal position, the control focus is switched to different video output, realize control respectively different video output.
The user controls the focal position switching by control panel after, if some application module in the set-top box is not supported multi-process/thread work pattern, can only be with one process/thread operation, then this application module only can carry out respective handling to selected video flowing, and can not carry out respective handling to unchecked video flowing.For example: some application programs of playing built-in video pictures (this built-in video pictures just can show without OSD, player and browser) can only be moved with one process/thread in OSD or the set-top box, and these application programs will at first be registered as in operating system can only be with the one process mode operation.With OSD is example, if the user passes through control panel, for example: remote controller or set-top box panel, regulate volume and directly ask OSD to show volume adjusting information, because operating system, main control chip and display chip have obtained the output port ID that chosen by the user, operating system, main control chip will only superpose on the corresponding video flowing of the output port ID that is chosen by the user with display chip and show volume adjusting information at this moment, and carry out corresponding volume according to user's operation and regulate.The output of the video flowing correspondence of not selected output port ID correspondence then can not be affected, and neither can show volume adjusting information on the display device that the corresponding output end mouth connects, and can not carry out volume yet and regulate.
Can be by menu mode and round robin switching controls focus between different video stream.
Wherein, between the different video stream during switching controls focus, the user sends the order of switching controls focal position to the focal position control module by control panel by menu mode.Focal position control module indication operating system, main control chip, display chip increase the prompting menu data that generates in advance in all video flowings, like this, show this prompting menu on the display device that each output port of display chip connects.Wherein, the prompting contents of menus can comprise the clauses and subclauses of output port ID with all output ports of sign of each output port on the sign display chip.The user can be according to preestablishing, by upper and lower, left and right key or the numerical key on the control panel, select the target location of control focus, that is: the control focus is positioned on the output image of corresponding output end mouth output, and confirms the affirmation information of the target location of this control focus by the definite key on the control panel to the focal position control module.Operating system, after main control chip and display chip receive the affirmation information of user by the target location of the affirmation control focus of control panel transmission, in the output image at the place, position of controlling focus, show corresponding output port ID, and make this output port ID be in high brightness or blink states, so that knowing the control focus, the user is positioned at the output image of exporting on the output port of this output port ID sign, the user can carry out control corresponding to this output image, also can make the output image of exporting on the output port of this output port ID sign be in high brightness or blink states simultaneously, or to this video image increase special identifier, for example: this output image is increased grey shading sign.
Between the different video stream during switching controls focus, the user sends the order of switching controls focal position to the focal position control module by control panel by round robin.Focal position control module indication operating system, main control chip, display chip increase in (that is: have control focus) output image that the user chooses and are used to identify the identification information that this output image has the control focus, for example: " OK " or " choosing " or
Deng icon or literal, and on display device, show; Be used to identify the identification information that this video image does not have the control focus and in (that is: do not have control focus) output image that user not chooses, increase, for example: " Failure " or " inefficacy " or
Deng icon or literal, and on display device, show.Do not chosen if the output image of exporting on the same output port is double by the user, operating system, main control chip, display chip increase in the output image that user does not choose for the second time and are used to identify that this output image does not have the identification information of control focus and when showing by display device, can be earlier being used to of showing be for the first time identified the identification information that this output image do not have a control focus and remove, respective response has been carried out in user's operation so that the user can be known set-top box.
The user is undertaken when mutual by control panel and set-top box, if the display device of the current operation of user, for example: the television set that the user faces by remote controller, video flowing on the corresponding output port is not selected not to possess the control focus, operating system, main control chip, display chip will increase in this video image and be used to point out the user to select to control the information of focus and show on this display device, for example: " please controlling focus with acquisition " by the focus key, or be used to point out the information that this video flowing of user is not selected, do not have the control focus, for example:
Or
As shown in Figure 3, be the structural representation of an embodiment of set-top box of the present invention, the set-top box of this embodiment can realize the above-mentioned video output control method embodiment illustrated in fig. 1 as the present invention.The set-top box of the embodiment of the invention comprises operating system, main control chip and display chip, and operating system comprises: browser, OSD and player.Wherein, browser is used to receive playing request, the video image that the indication player plays generates according to video data, or according to still images such as the image, text and data display text that obtains, pictures; Operating system, main control chip and display chip also are used to all output images of corresponding same video flowing to distribute a output port on display chips, and the output image of the same video flowing of correspondence exported to display device from same output port, output image wherein comprises video image and/or still images such as literal, picture.
As shown in Figure 4, be the structural representation of another embodiment of set-top box of the present invention.The set-top box of this embodiment can realize the above-mentioned video output control method embodiment illustrated in fig. 2 as the present invention.It is on basis embodiment illustrated in fig. 3, also comprise the focal position control module, be used for receiving control focal position switching command, comprise the target output port information that the control focus switches in this control focal position switching command, this target output port information can be target output port ID, it also can be the relation information of the current output port at target output port and current control focus place, and according to the process/thread ID of the player of handling same video flowing, the process/thread ID of OSD, the process/thread ID of browser, binding relationship between the video flowing ID of the output port ID of display chip and the described video flowing of sign, process/thread to the player corresponding with target output port ID, the process/thread of OSD and the process/thread of browser send obtains the order of control focus, to player, other process/thread of OSD and browser sends and discharges the order of control focus.
Further, in Fig. 3 or set-top box embodiment illustrated in fig. 4, memory module can also be set, be used for the binding relationship between the video flowing ID of the output port ID of process/thread ID, display chip of process/thread ID, the browser of process/thread ID, the OSD of the player of the same video flowing of stores processor and the described video flowing of sign.Carry out video output for operating system, main control chip and display chip and use, and carry out the focal position switching for the focal position control module and use.As shown in Figure 5, be the structural representation of another embodiment of set-top box of the present invention.Particularly, this memory module can be a memory space in the set-top box internal memory.
Set-top box that the embodiment of the invention provides and video output control method thereof, can export different video flowings simultaneously by the different output ports on the same set-top box, make the user can watch different video content on the set-top box simultaneously, and can realize controlling the switching of focal position, the control focus is switched to different video output, realize control respectively different video output.
It should be noted last that: above embodiment is only in order to illustrating technical scheme of the present invention, but not the present invention is made restrictive sense.Although the present invention is had been described in detail with reference to above-mentioned preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and this modification or be equal to the spirit and scope that replacement does not break away from technical solution of the present invention.