Summary of the invention
The technical problem to be solved in the present invention is: a kind of digital video transform method and device are provided, can realize the adaptive of digital video converting means and its receiving terminal better.
For achieving the above object, first aspect, the embodiment of the invention provide a kind of digital video transform method, and described method comprises step:
According to the selection of times output format that receives the output format switching command;
According to selected output format digital signal to be converted is carried out conversion.
In conjunction with first aspect, in first kind of possible implementation, described method also comprises step:
Alternative output format and the corresponding relation that receives the number of times of described order are set.
In conjunction with first aspect, in second kind of possible implementation, the step that described basis receives the selection of times output format of output format switching command further comprises:
The frequency n that initialization receives described order is 0, and to select described frequency n be 0 corresponding output format;
When receiving described order, described frequency n is designated as n=n+1, and selects the output format of described frequency n correspondence.
In conjunction with second kind of first aspect possible implementation, in the third possible implementation, described method also comprises step:
After described frequency n equals the quantity of alternative output format and selects the output format of described frequency n correspondence, with described frequency n zero clearing.
Above-mentioned any possible implementation in conjunction with first aspect or first aspect, in the 4th kind of possible implementation, described output format switching command is voice signal, touching signals, the combination by one or more signals in the signal of pressing at least one button input.
Second aspect, the embodiment of the invention also provide a kind of digital video converting means, and described device comprises:
Identification module is used for according to the selection of times output format that receives the output format switching command;
Modular converter is used for according to the output format that described identification module is selected digital signal to be transformed being carried out conversion.
In conjunction with second aspect, in first kind of possible implementation, described device also comprises:
Module is set, is used for arranging alternative output format and the corresponding relation that receives the number of times of described order.
In conjunction with second aspect, in second kind of possible implementation, described identification module further comprises:
Initialization unit, being used for the frequency n that initialization receives described order is 0, and to select described frequency n be 0 corresponding output format;
Adaptation unit is used for described frequency n being designated as n=n+1, and selecting the output format of described frequency n correspondence when receiving described order.
In conjunction with second kind of second aspect possible implementation, in the third possible implementation, described device also comprises:
Reseting module is used at described adaptation unit after described frequency n equals the quantity of alternative output format and selects the output format of described frequency n correspondence, with described frequency n zero clearing.
In conjunction with above-mentioned any possible implementation of second aspect or second aspect, in the 4th kind of possible implementation, described device also comprises:
Control module be used for receiving described output format switching command, and the described output format switching command that will receive is sent to described identification module.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, described control module comprises with in the lower unit one or more:
The audio frequency receiving element is for the output format switching command that receives the voice signal form;
Touch unit is for the output format switching command that receives the touching signals form;
Push-button unit is used for receiving by pressing the described output format switching command of at least one button input.
In conjunction with the 4th kind of possible implementation of second aspect, in the 6th kind of possible implementation, described digital video converting means is set-top box.
In conjunction with the 6th kind of possible implementation of second aspect, in the 7th kind of possible implementation, described control module is the remote controller of described set-top box.
The method of the embodiment of the invention and device can be selected the output format of digital video signal to be converted according to the number of times that receives the output format switching command, initiatively and fast select best output format, and then (for example realize the digital video converting means, set-top box) adaptive with its receiving terminal (for example, television set).
Embodiment
Digital video transform method of the present invention and device reach embodiment by reference to the accompanying drawings and are described in detail as follows.
Use the method for the embodiment of the invention, can realize the adaptive of digital video converting means (for example, set-top box) and its receiving terminal (for example, television set).As shown in Figure 1, the digital video transform method that provides of the embodiment of the invention comprises step:
S101. according to the selection of times output format that receives the output format switching command;
S102. according to selected output format digital signal to be converted is changed.
Tool is sayed it, and the method for the embodiment of the invention can be selected the output format of digital video signal to be converted according to the number of times that receives the output format switching command, initiatively and fast selects best output format.
Before carrying out above-mentioned steps, can set in advance alternative output format and the corresponding relation that receives the number of times of described order.
Carry out in the digital video conversion process in the method for using the embodiment of the invention, can determine whether carrying out the switching of output format according to the output display effect of the signal after the conversion, at initial time, the output format that can give tacit consent to is carried out the conversion of digital signal.Tool is sayed it, and step S101 further comprises:
S1011. to receive the frequency n of described order be 0 in initialization, and to select described frequency n be 0 corresponding output format;
S1012. when receiving described order, described frequency n is designated as n=n+1, and selects the output format of described frequency n correspondence.
Below only be a kind of example of counting mode of the number of times of output format switching command, also can select other technical approach for use, for example, initial time n=1 is n=n+2 with the frequency n counting when receiving the output format switching command at every turn, etc.
In addition, in the method for the embodiment of the invention, after frequency n equals the quantity of alternative output format and selects the output format of described frequency n correspondence, with described frequency n zero clearing.
Need to prove that in the method for the embodiment of the invention, this output format switching command is voice signal, touching signals or by pressing the signal of at least one button input.For example, this output format switching command is by pressing the signal of at least two buttons inputs.
As shown in Figure 2, the embodiment of the invention also provides a kind of digital video converting means 200, and this device comprises:
Identification module 201 is used for according to the selection of times output format that receives the output format switching command;
Modular converter 202 is used for according to the output format that described identification module 201 is selected digital signal to be converted being changed.
The device of the embodiment of the invention can be selected the output format of digital video signal to be converted according to the number of times that receives the output format switching command, initiatively and fast select best output format, can realize the adaptive of digital video converting means (for example, set-top box) and its receiving terminal (television set).
In addition, the device of the embodiment of the invention also can comprise:
Module 203 is set, is used for arranging alternative output format and the corresponding relation that receives the number of times of described order.
The device of the embodiment of the invention carries out in the digital video conversion process, can determine whether carrying out the switching of output format according to the output display effect of the signal after the conversion, and at initial time, the output format that can give tacit consent to is changed.Tool is sayed it, shown in identification module 201 can further comprise:
Initialization unit 2011, being used for the frequency n that initialization receives described order is 0, and to select described frequency n be 0 corresponding output format.
Adaptation unit 2012 is used for described frequency n being designated as n=n+1, and selecting the output format of described frequency n correspondence when receiving described order.
Below only be a kind of example of counting mode of the number of times of output format switching command, also can select other technical approach for use, for example, initial time n=1 is n=n+2 with the frequency n counting when receiving the output format switching command at every turn, etc.
The device of the embodiment of the invention also can comprise:
Reseting module 204 is used at described adaptation unit 2012 after described frequency n equals the quantity of alternative output format and selects the output format of described frequency n correspondence, with described frequency n zero clearing.
The device of the embodiment of the invention also can comprise:
Control module 205 be used for receiving described output format switching command, and the described output format switching command that will receive is sent to described identification module 201.
Need to prove that in the device of the embodiment of the invention, this output format switching command is voice signal, touching signals, by in the signal of pressing at least one button input one or more.For example, this output format switching command is by pressing the signal of at least two buttons inputs.
When this output format switching command was voice signal, control module 204 can comprise: the audio frequency receiving element, for the output format switching command that receives the voice signal form; When this output format switching command was touching signals, control module 204 can comprise: touch unit (for example, touch-screen), for the output format switching command that receives the touching signals form; When this output format switching command for when pressing the signal of at least one button input, control module 204 can comprise: button is used for receiving by pressing the described output format switching command of at least one described button input.Control module 204 also can have the unit of above-mentioned any one or this output format switching command of multiple reception simultaneously, and also namely this output format switching command also can be the combination of any kind in the above-mentioned various signal form.
Be digital video transform method and the device that example further specifies the embodiment of the invention below with the set-top box, the remote controller of this set-top box is the control module of this digital video converting means, and except each part of the digital video converting means of the embodiment of the invention, this set-top box and have other requisite part well-known to those skilled in the art, for example, input connecting interface with digital signal, the interface that is connected with digital signal receiving terminal (television set), control button etc.The inner predefine N(N of this set-top box is preferably more than and equals 2 natural number) plant the HDMI output format as alternative output format, also i.e. this set-top box and the adaptive alternative output format of HDTV (High-Definition Television) that is mated, the number of times that counter n(0≤n≤N) is used for record output format switching command is set in set-top box inside, each time behind the set-top box electrification reset (set-top box is opened at every turn), with this counter O reset, i.e. n=0.
Whether user's output of checking machine top box on TV normally shows, if it is undesired, can change the output format of set-top box by remote controller input/output format switching command, set-top box is selected corresponding output format according to the number of times of the output format switching command that receives from alternative output format, carry out the conversion of digital signal and export corresponding HDMI signal according to it, in this manner, the user constantly attempts various predefined alternate formats, normally shows on TV up to set-top box signal.Detailed process is as shown in Figure 3:
S301. set-top box and set-top box remote controller initialization.Tool is sayed it, when opening set-top box, is the output format of acquiescence with the corresponding output format of n=0.
Whether the demonstration that S302. detects TV is normal, if show that normally then the user does not carry out the input of output format switching command, carries out the conversion of digital signal according to existing output format, otherwise, execution in step S303.
S303. by remote controller input/output format switching command.
Preferably, in the set-top box of the embodiment of the invention, can be provided for the independent button that output format is switched on its remote controller, the user whenever presses once (or in setting-up time continuous several times) this button and just imports the output format switching command one time.But, consider more and more miniaturization of present set-top box and remote controller, integrated, the trend that button resources on the remote controller is very limited, the set-top box of the embodiment of the invention more preferably, exporting specific key assignments when any two or two selected buttons on its remote controller are pressed at the same time comes the announcement machine top box to switch output format, also be, in this step, the user is to press the mode input/output format switching command of Macintosh, thereby do not increase cost and the volume of set-top box remote controller, and have simple operation, develop simple advantage.
S304. remote controller sends key assignments to set-top box.
S305. set-top box receives the key assignments that remote controller sends, and the counting of the counter in the set-top box is added 1, namely makes n=n+1, and according to the HDMI output format of current n correspondence to TV output HDMI signal.
S306. judge whether current n equals N, if equal N, with the n zero clearing, i.e. n=0, and return execution in step S302, otherwise, direct execution in step S302.
To sum up, when the user finds that the output of set-top box can't normally show on TV, press the set-top box remote controller combination button simultaneously, set-top box is after receiving the special key assignments of combination button, to select a kind of alternative output format, and according to this form output HDMI signal.The problem of incorrect, the indeterminate or display format that disappearance can't adaptive TV be supported of TV HDMI EDID information to such an extent as to the set-top box of the embodiment of the invention can effectively solve, can utilize simultaneously the hardware device of existing remote controller, saved cost and the volume of set-top box remote controller, and had simple operation, develop simple advantage.
Those of ordinary skills can recognize, unit and the method step of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions still are that software mode is carried out with hardware actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for using distinct methods to realize described function to each, but this realization should not thought and exceeds scope of the present invention.
If described function realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
Above execution mode only is used for explanation the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.