1. Technical Field
Embodiments of the present disclosure relate generally to interface testing technologies of computing devices, and particularly to a system and method for testing a high-definition multimedia interface (HDMI) of a computing device.
2. Description of Related Art
A high-definition multimedia interface (HDMI) is a compact audio/video interface that is used for transmitting uncompressed digital data. The HDMI is a digital alternative to consumer analog standards, such as radio frequency (RF) coaxial cable, composite video, S-Video, component video, D-Terminal, or video graphics array (VGA). In a test method of the HDMI, test items of the HDMI are manually tested. Such a test method is not only time-consuming but also prone to incomplete testing.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
The test item selection module 100 selects one of test items to be tested of the HDMI 15. In the embodiment, the test items includes, for example, “legal codes test”, “basic protocol test”, “extended control period test”, “video format timing test”, “pixel repetition test”, “audio layout test”, and “pixel encoding test”. Each of the test items has a test ID. For example, as shown in
The source code obtaining module 101 obtains a source code file of the selected test item from the storage system 11. In the embodiment, the source code file includes a plurality of programmable codes written in a high-level programming language, such as, Java, C, or C++. Each of the test items corresponds to a source code file. For example, the source code file of the legal codes test is “EDID01.EDI”, the source code file of the basic protocol test is “EDID02.EDI”, the source code file of the legal codes test is “EDID01.EDI”,
The parameter setting module 102 sets parameters of the selected test item, and display resolutions of the display device 14 that are supported by the HDMI, such as, 640×480 pixels (p), 720×480p, 720×576p, 1280×720p, or 1920×1080p. In the embodiment, each test item of the HDMI 15 may include one or more parameters. For example, if the selected test item is the “pixel encoding test”, the parameters of the “pixel encoding test” may include, for example, color format and color depth. The color format may be set as RGB (red, green, blue), or YCbCr, and the color depth may be set as 24 bits, 32 bits, or 48 bits.
The execution module 103 executes the obtained source code file (e.g., complies the source code file and then executes the complied data) to apply the test of the selected test item to the HDMI according to the set parameters and the display resolutions.
In the embodiment, as shown in
The storing module 104 establishes a folder in the storage system 11, and stores the test file into the folder, the folder is named using the test ID of the particular test item.
The determination module 105 determines whether all of the test items of the HDMI 15 have been tested. If any test item of the HDMI 15 has not been tested, the test item selection module 100 selects the next test for the HDMI 15.
In block S10, the test item selection module 100 selects one of test items to be tested of the HDMI 15. In the embodiment, the possible test items include, for example, “legal codes test”, “basic protocol test”, “extended control period test”, “video format timing test”, “pixel repetition test”, “audio layout test”, and “pixel encoding test”. Each of the test items has its own test ID.
In block S11, the source code obtaining module 101 obtains the source code file of the selected test item from the storage system 11. In the embodiment, each of the test items corresponds to a source code file that includes a plurality of programmable codes.
In block S12, the parameter setting module 102 sets the parameters of the selected test item, and the display resolutions of the display device 14 which are supported by the HDMI 15, such as, 640×480 pixels (640×480p), 720×480p, 720×576p, 1280×720p, or 1920×1080p. In the embodiment, each of the tests may include one or more parameters.
In block S13, the execution module 103 executes the obtained source code file to apply the test of the selected test item to the HDMI 15 according to the set parameters and the display resolutions. In the embodiment, as shown in
In block S14, the storing module 104 establishes a folder in the storage system 11, and stores the test file into the folder, the folder is named using the test ID of the selected test item.
In block S15, the determination module 105 determines whether all of the test items of the HDMI 15 have been tested. If any test item has not been tested, block S10 is repeated. If all of the test items have been tested, ends the procedure.
All of the processes described above may be embodied in, and fully automated via, functional code modules executed by one or more general purpose computing devices or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110056345.5 | Mar 2011 | CN | national |