The present invention relates to image detection, and in particular to a method and device for detecting resolution.
A keyboard/Video/Mouse (KVM) management system enables system inspection and recovery for remote computer devices through the network, such as the local area network (LAN) or the wide area network (WAN). Additionally, the KVM system also provides the described services through the Internet, referring to KVM access over Internet Protocol (IP), supported in a console mode or graphic user interface (GUI).
Video images are transferred from remote computer devices to local display devices using a KVM system. Image resolution of a display device is changed, however, resulting in incorrect resolution determination and unstable image signals when clocks thereof skew. Thus, a rapid resolution detection method is desirable, overcoming the described problems.
Accordingly, an object of the present invention is to provide a method for detecting resolution, classifying resolution data entries of a display device into a plurality of counting groups for accurate resolution detection.
Another object of the invention is to provide a method for detecting resolution, calculating the time difference while resolution variation according to polarities corresponding to resolution data entries of a display device for rapid resolution detection.
According to the object described, embodiments of the present invention provide a method for detecting resolution. A display resolution table comprising a plurality of resolution data entries corresponding to a display device is established, each resolution data entry corresponding to a first timing count and a second timing count respectively.
The resolution data entries are classified into a plurality of first counting groups according to each first timing count, each first counting group comprising at least one resolution data entry and one first timing count and one second timing count corresponding to the resolution data entry. Next, the resolution data entries are classified into a plurality of second counting groups according to each second timing count, each second counting group comprising at least one resolution data entry and one first timing count and one second timing count corresponding to the resolution data entry. The resolution data entries stored in a first counting group are stored in different second counting groups respectively.
Next, image signals from a video source are detected, acquiring a first counting group and a second counting group respectively corresponding to the image signals according to the resolution data entries stored in the display resolution table. The image signals corresponding to a resolution data entry existing in the first and second counting groups simultaneously are displayed. Finally, polarities corresponding to the resolution data entries are identified for waveform change.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The present invention discloses a method and device for detecting resolution.
Embodiments of the invention detect image resolution by determining horizontal and vertical synchronization signals based on Video Graphics Array (VGA) of Video Electronics Standards Association (VESA) standards complying with Monitor Timing Specifications.
In the embodiment of the invention, a used system frequency of a detection device is 81 MHz, supporting the highest image resolution and a vertical scanning frequency of 1600×1200@60.
Resolution data entries used in the embodiment of the invention is described in the following: 640×400@70, 640×480@60, 640×480@72, 640×480@75, 640×480@85, 800×600@56, 800×600@60, 800×600@72, 800×600@75, 800×600@85, 1024×768@60, 1024×768@70, 1024×768@75, 1024×768@85, 1152×864@75, 1280×960@60, 1280×960@85, 1280×1024@60, 1280×1024@75, 1280×1024@85, 1600×1200@60.
A counter calculates horizontal scanning time counts (H_Total_Time_Count) and vertical scanning time counts (V_Total_Time_Count) according to horizontal scanning times (H_Total_Time) and vertical scanning times (V_Total_Time) corresponding to VESA standards, within a system frequency, for example, 81 MHz, and a clock period. Horizontal scanning time, for example, is 31778 ns, a clock period is 12.346 ns, so the horizontal scanning time count is 31778 ns/12.346 ns=2574.
A display device determines image resolution according to the H_Total‘Time_Count and V_Total_Time_Coun. As shown in
Values of horizontal and vertical scanning time counts are exclusive respectively, which resolution data entries stored in a first counting group are stored in different second counting groups. Two resolution data entries of 640×480@72 and 800×600@60, for example, are classified into the firs counting group 6 according to the horizontal scanning time counts, and are classified into second counting groups 3 and 4 respectively according to the horizontal scanning time counts.
Further, the resolution data entries have different polarities respectively, simply resulting in incorrect resolution judgment while resolution variation.
Accordingly, embodiments of the invention utilize an counter for calculating a traveling time of waveform of a clock period. Theoretically, for example, traveling times of waveform of each clock period at a fixed image resolution are identical. As shown in
Each resolution data entry has a corresponding polarity in accordance with the VESA standards. Embodiments of the invention enable a display device to display accurate image resolution according to polarities using a time counter.
Next, the resolution data entries are classified into a plurality of second counting groups according to each second timing count, each second counting group comprising at least one resolution data entry and one first timing count and one second timing count corresponding to the resolution data entry (step S3). The resolution data entries stored in a first counting group are stored in different second counting groups respectively. Next, image signals from a video source are detected, acquiring a first counting group and a second counting group respectively corresponding to the image signals according to the resolution data entries stored in the display resolution table (step S4).
It is determined whether the first counting group of the detected image signals has the only resolution data entry (step S5), and, if so, the process goes to step S61, and, if not, to step S62. When the only resolution data entry corresponding to the image signals is included in the first counting group, the image signals corresponding to the resolution data entry are displayed (step S61). When a first resolution data entry and at least one second resolution data entry are included in the first counting group and only the first resolution data entry is included in the second counting group, displaying the image signals corresponding to the first resolution data entry (step S62).
Next, a time counter and a polarity corresponding to the current resolution data entry are defined, and image signals corresponding to the polarity are displayed (step S71). The time counter calculates a traveling time of a first waveform corresponding to the current resolution data entry (step S72). When the traveling time is equivalent to a life cycle of the first waveform and the first waveform is changed to a second waveform corresponding to another resolution data entry, the image signals corresponding to the second waveform according to a polarities thereof are displayed (step S8).
Detection device 40 receives image signals from a video source 50. Storage medium 47 stores a display resolution table corresponding to a display device, in which the table comprises a plurality of resolution data entries and polarities corresponding to the resolution data entries.
Resolution classifying device 43 classifies the resolution data entries into a plurality of first counting groups according to each first timing count, each first counting group comprising at least one resolution data entry and one first timing count and one second timing count corresponding to the resolution data entry. Further, resolution classifying device 43 classifies the resolution data entries into a plurality of second counting groups according to each second timing count, each second counting group comprising at least one resolution data entry and one first timing count and one second timing count corresponding to the resolution data entry. The resolution data entries stored in a first counting group are stored in different second counting groups respectively.
Video analysis unit 41 further comprises a video detection unit (not shown), obtaining the image signals from video source 50, acquiring a first counting group and a second counting group respectively corresponding to the image signals according to the resolution data entries stored in -the display resolution table. Video analysis unit 41 then determines whether the first counting group of the detected image signals has the only resolution data entry. When the only resolution data entry corresponding to the image signals is included in the first counting group, the image signals corresponding to the resolution data entry are displayed. When a first resolution data entry and at least one second resolution data entry are included in the first counting group and only the first resolution data entry is included in the second counting group, displaying the image signals corresponding to the first resolution data entry..
Further, time counter 45 calculates a traveling time of a first waveform corresponding to the current resolution data entry. When the traveling time is equivalent to a life cycle of the first waveform and the first waveform is changed to a second waveform corresponding to another resolution data entry, the image signals corresponding to the second waveform according to a polarities thereof are displayed.
The device further comprises a peripheral control unit 60, applying corresponding operations according to the image signals and sending control signals corresponding to the operations to remote computer devices.
The device further comprises an image conversion device 70 for image encoding, enabling rapid data transmission to remote computer devices.
Embodiments of the invention classify resolution data entries of a display device into a plurality of counting groups for accurate resolution detection, in which -the resolution data entries stored in a first counting group are stored in different second counting groups respectively. In addition, embodiments of the invention calculates the time difference while resolution variation according to polarities corresponding to resolution data entries of a display device for rapid resolution detection.
While embodiments of the invention have been described by way of example and in terms of preferred embodiments, it is to be understood that the invention is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
| Number | Date | Country | Kind |
|---|---|---|---|
| 92137053 | Dec 2003 | TW | national |