Summary of the invention
The invention provides a kind of method for quick and system of video resolution, by being benchmark with the horizontal-drive signal cycle, the lock-out pulse counting of calculated level synchronizing signal and vertical synchronizing signal and continuous and effective level counting etc., reduced detecting the demand of clock frequency, reduce the count value of horizontal-drive signal and vertical synchronizing signal simultaneously, reduced the resource requirement of detection system.
A kind of method for quick of video resolution comprises:
Set up resolution information grouping form, divide into groups according to a plurality of resolution informations, described resolution information comprise the horizontal-drive signal of resolution and vertical synchronizing signal data, corresponding to the lock-out pulse counting of the lock-out pulse counting of horizontal-drive signal in the described resolution data and/or continuous and effective level counting and vertical synchronizing signal and/or continuous and effective level counting and/or sweep time counting;
Analyze the information in the resolution information grouping form, determine the difference that information allows;
Information according in the resolution information grouping form detects unknown video resolution, obtains testing result;
Information in the testing result that obtains and the resolution information grouping form is mated, obtain the resolution of unknown video.
In the described method, described horizontal-drive signal data comprises: lock-out pulse time, continuous and effective level time and sweep time;
The vertical synchronizing signal data comprises: lock-out pulse time, continuous and effective level time and sweep time.
In the described method, the value of synchronous arteries and veins counting for once obtaining at a clock signal period counting of described horizontal-drive signal according to the horizontal-drive signal lock-out pulse time;
The value of continuous and effective level counting for once obtaining at a clock signal period counting of described horizontal-drive signal according to horizontal-drive signal continuous and effective level time;
The lock-out pulse of described vertical synchronizing signal counting is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, the value that once obtains at a clock signal period counting according to the vertical synchronizing signal lock-out pulse time;
The continuous and effective level counting of described vertical synchronizing signal is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, counts the value that once obtains a clock cycle according to vertical synchronizing signal continuous and effective level time;
Counting sweep time of described vertical synchronizing signal is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, according to calculating sweep time vertical synchronizing signal sweep time and horizontal-drive signal.
In the described method, described information in the testing result that obtains and the resolution information grouping form is mated, obtains the resolution of unknown video, comprising:
Resolution information difference relatively in testing result and the resolution information grouping form is in the difference range that allows.
A kind of device for fast detecting of video resolution comprises:
Memory cell, be used for storing the resolution information grouping form of foundation, divide into groups according to a plurality of resolution informations, described resolution information comprise the horizontal-drive signal of resolution and vertical synchronizing signal data, corresponding to the lock-out pulse counting of the lock-out pulse counting of horizontal-drive signal in the described resolution data and/or continuous and effective level counting and vertical synchronizing signal and/or continuous and effective level counting and/or sweep time counting;
Analytic unit is analyzed the information in the resolution information grouping form, determines the difference that information allows;
Detecting unit, the information according in the resolution information grouping form detects unknown video resolution, obtains testing result;
Matching unit, the information that is used for testing result that detecting unit is obtained and resolution information grouping form is mated, and obtains the resolution of unknown video.
In the described device, described horizontal-drive signal data comprises: lock-out pulse time, continuous and effective level time and sweep time;
The vertical synchronizing signal data comprises: lock-out pulse time, continuous and effective level time and sweep time.
In the described device, the value of synchronous arteries and veins counting for once obtaining at a clock signal period counting of described horizontal-drive signal according to the horizontal-drive signal lock-out pulse time;
The value of continuous and effective level counting for once obtaining at a clock signal period counting of described horizontal-drive signal according to horizontal-drive signal continuous and effective level time;
The lock-out pulse of described vertical synchronizing signal counting is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, the value that once obtains at a clock signal period counting according to the vertical synchronizing signal lock-out pulse time;
The continuous and effective level counting of described vertical synchronizing signal is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, counts the value that once obtains a clock cycle according to vertical synchronizing signal continuous and effective level time;
Counting sweep time of described vertical synchronizing signal is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, according to calculating sweep time vertical synchronizing signal sweep time and horizontal-drive signal.
In the described device, the information in testing result that described matching unit obtains detecting unit and the resolution information grouping form is mated, and obtains the resolution of unknown video, comprising:
Resolution information difference relatively in testing result and the resolution information grouping form is in the difference range that allows.
The invention provides a kind of method for quick and device of video resolution, wherein method comprises: set up resolution information grouping form, divide into groups according to a plurality of resolution informations, described resolution information comprises the horizontal-drive signal and the vertical synchronizing signal data of resolution; According to the information in the resolution information grouping form, determine the difference that information allows; Information according in the resolution information grouping form detects unknown video resolution, obtains testing result; Information in the testing result that obtains and the resolution information grouping form is mated, obtain unknown video resolution.Described device comprises memory cell, analytic unit, detecting unit and matching unit.By method provided by the invention and device, by using the counting of same reference clock to the horizontal-drive signal and the vertical synchronizing signal of unknown resolution, reduced requirement, reduced the count value of level and vertical synchronizing signal simultaneously, saved system resource the checkout equipment clock frequency.
Embodiment
In order to make those skilled in the art person understand technical scheme in the embodiment of the invention better, and above-mentioned purpose of the present invention, feature and advantage can be become apparent more, technical scheme among the present invention is described in further detail below in conjunction with accompanying drawing.
The invention provides a kind of method for quick and system of video resolution, by being benchmark with the horizontal-drive signal cycle, the lock-out pulse counting of calculated level synchronizing signal and vertical synchronizing signal and continuous and effective level counting etc., reduced detecting the demand of clock frequency, reduce the count value of horizontal-drive signal and vertical synchronizing signal simultaneously, reduced the resource requirement of detection system.
In the embodiments of the invention, as shown in Figure 1, when being 50MHz for the frequency of video resolution checkout gear, its can detection resolution and renewal frequency be 1920*1440 or the higher resolution and the signal of renewal frequency.With 640*480@60 is example, and wherein 640*480 is the video resolution value, and 60 is the vertical scanning frequency of video.
A kind of method for quick of video resolution as shown in Figure 2, comprising:
S201: set up resolution information grouping form, divide into groups according to a plurality of resolution informations, described resolution information comprise the horizontal-drive signal of resolution and vertical synchronizing signal data, corresponding to the lock-out pulse counting of the lock-out pulse counting of horizontal-drive signal in the described resolution data and/or continuous and effective level counting and vertical synchronizing signal and/or continuous and effective level counting and/or sweep time counting;
Described resolution information grouping form can be chosen horizontal-drive signal lock-out pulse counting and continuous and effective level and count one or all as resolution information; Described resolution information form can be chosen in vertical synchronizing signal lock-out pulse counting, continuous and effective level counting and the sweep time counting one or all as resolution information; Resolution information in the resolution information grouping form is many more, and the resource of consumption is many more, and the accuracy that unknown video resolution is detected is high more simultaneously.
S202: analyze the information in the resolution information grouping form, determine the difference that information allows;
S203: the information according in the resolution information grouping form, unknown video resolution is detected, obtain testing result;
Described unknown resolution is detected the whole resolution informations in can detection resolution information block form or the part resolution information of horizontal-drive signal and vertical synchronizing signal;
S204: the information in the testing result that obtains and the resolution information grouping form is mated, obtain the resolution of unknown video.
In the described method, described horizontal-drive signal data comprises: lock-out pulse time, continuous and effective level time and sweep time;
The vertical synchronizing signal data comprises: lock-out pulse time, continuous and effective level time and sweep time.
In the described method, the value of synchronous arteries and veins counting for once obtaining at a clock signal period counting of described horizontal-drive signal according to the horizontal-drive signal lock-out pulse time;
For instance, as shown in Figure 1, under the system frequency of 50MHz for the counting benchmark, a clock signal period is 20ns, and the horizontal-drive signal lock-out pulse time, then horizontal-drive signal lock-out pulse counting was 3813ns/20ns=190 when being 3813ns;
The value of continuous and effective level counting for once obtaining at a clock signal period counting of described horizontal-drive signal according to horizontal-drive signal continuous and effective level time;
The lock-out pulse of described vertical synchronizing signal counting is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, the value that once obtains at a clock signal period counting according to the vertical synchronizing signal lock-out pulse time;
The continuous and effective level counting of described vertical synchronizing signal is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, counts the value that once obtains a clock cycle according to vertical synchronizing signal continuous and effective level time;
Sweep time of described vertical synchronizing signal, counting was, with horizontal-drive signal cycle of described vertical synchronizing signal be benchmark, according to calculating sweep time vertical synchronizing signal sweep time and horizontal-drive signal;
For instance, as shown in Figure 1, under the system frequency of 50MHz for the counting benchmark, vertical synchronizing signal sweep time is 16683218ns, horizontal-drive signal sweep time of the same period is 31777ns, and then vertical synchronizing signal count value sweep time is 16683217ns/31777ns=525.
In the described method, described information in the testing result that obtains and the resolution information grouping form is mated, obtains unknown video resolution, comprising:
Resolution information difference relatively in testing result and the resolution information grouping form is in the difference range that allows;
Since detect the testing result obtain not necessarily with resolution information grouping form in resolution information in full accord, therefore as long as the difference of the two can think that in certain scope the match is successful, described difference can be determined according to the clock frequency of checkout gear and the data in the resolution information grouping form, data in the assurance resolution information grouping form add or reduce difference and can not repeat with other data with grouping, even or data add or reduce after the difference and other data of same grouping repeat, but the judgement of the data by other groupings can be determined unique resolution and gets final product.
A kind of device for fast detecting of video resolution as shown in Figure 3, comprising:
Memory cell 301, be used for storing the resolution information grouping form of foundation, divide into groups according to a plurality of resolution informations, described resolution information comprise the horizontal-drive signal of resolution and vertical synchronizing signal data, corresponding to the lock-out pulse counting of the lock-out pulse counting of horizontal-drive signal in the described resolution data and/or continuous and effective level counting and vertical synchronizing signal and/or continuous and effective level counting and/or sweep time counting;
Analytic unit 302 is analyzed the information in the resolution information grouping form, determines the difference that information allows;
Detecting unit 303, the information according in the resolution information grouping form detects unknown video resolution, obtains testing result;
Matching unit 304, the information that is used for testing result that detecting unit is obtained and resolution information grouping form is mated, and obtains the resolution of unknown video.
In the described device, described horizontal-drive signal data comprises: lock-out pulse time, continuous and effective level time and sweep time;
The vertical synchronizing signal data comprises: lock-out pulse time, continuous and effective level time and sweep time.
In the described device, the value of synchronous arteries and veins counting for once obtaining at a clock signal period counting of described horizontal-drive signal according to the horizontal-drive signal lock-out pulse time;
The value of continuous and effective level counting for once obtaining at a clock signal period counting of described horizontal-drive signal according to horizontal-drive signal continuous and effective level time;
The lock-out pulse of described vertical synchronizing signal counting is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, the value that once obtains at a clock signal period counting according to the vertical synchronizing signal lock-out pulse time;
The continuous and effective level counting of described vertical synchronizing signal is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, counts the value that once obtains a clock cycle according to vertical synchronizing signal continuous and effective level time;
Counting sweep time of described vertical synchronizing signal is a benchmark for the horizontal-drive signal cycle with described vertical synchronizing signal, according to calculating sweep time vertical synchronizing signal sweep time and horizontal-drive signal.
In the described device, the information in testing result that described matching unit obtains detecting unit and the resolution information grouping form is mated, and obtains unknown video resolution, comprising:
Resolution information difference relatively in testing result and the resolution information grouping form is in the difference range that allows.
The invention provides a kind of method for quick and device of video resolution, wherein method comprises: set up resolution information grouping form, divide into groups according to a plurality of resolution informations, described resolution information comprises the horizontal-drive signal and the vertical synchronizing signal data of resolution; According to the information in the resolution information grouping form, determine the difference that information allows; Information according in the resolution information grouping form detects unknown video resolution, obtains testing result; Information in the testing result that obtains and the resolution information grouping form is mated, obtain unknown video resolution.Described device comprises memory cell, analytic unit, detecting unit and matching unit.By method provided by the invention and device, by using the counting of same reference clock to the horizontal-drive signal and the vertical synchronizing signal of unknown resolution, reduced requirement, reduced the count value of level and vertical synchronizing signal simultaneously, saved system resource the checkout equipment clock frequency.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.