Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The embodiment of the invention provides a data processing method.
Fig. 1 is a flow chart of a data processing method according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step S102, a target data set is obtained.
In the technical solution provided in step S102, the target data set includes a plurality of extended display identification data files, and each extended display identification data file is used to indicate a video format of the target chip to be tested.
In this embodiment, the target data set may be an EDID set including a plurality of EDIDs, which is a VESA standard data format including parameters regarding the monitor and its performance, vendor information, maximum image size, color settings, vendor presets, limits on frequency ranges, and strings of display names and serial numbers, etc.
The target chip of the embodiment is a chip to be tested, and the target chip can be applied to the field of analog display and can also be applied to the field of digital display. Each EDID of this embodiment is used to indicate one video format of the target chip, that is, each EDID supports only one video format that can be placed in the first Detailed Timing Description Block (Detailed Timing Description Block) of the EDID file.
Each EDID file in the object data set of the embodiment includes a rich video format, and may include a typical video format and an extended video format generated according to the typical video format, so as to better determine the support characteristics of the object chip for different video formats under different display cards.
And step S104, traversing a plurality of extension display identification data files in the target data set.
In the technical solution provided in step S104, after the target data set is obtained, the extended display identification data files are traversed in the target data set, one EDID file may be sequentially extracted from the target data set each time, and the target chip is tested through the extracted EDID file.
And step S106, testing the target chip through the target display card under the condition that the target chip is in the target video format indicated by the traversed extended display data file, and outputting a test result through the target chip.
In the technical solution provided in step S106, the test result is used to indicate the support performance of the target chip for the target video format.
In this embodiment, when testing the target chip, the target graphics card performs multiple tests on a certain video format or certain video formats in the target chip. In this embodiment, the traversed EDID file only indicates one target video format, the target chip is set to the target video format, and the target chip in the target video format is tested by the target display card to obtain a test result, where the test result is used to indicate the support performance of the target chip on the target video format, such as a resolution mode supported by the target chip, a supported refresh frequency, a supported line-field frequency range, a product model, a manufacturer, and the like, and may also not support a fixed Timing (Established Timing), a standard Timing Identification (Timing Identification), and the like, and the video format sent by the target display card is the fixed target video format, so that the purpose of testing the video format of the target chip by using each EDID in the EDID set is achieved, and the support performance of the target chip on different video formats in the target video card is better determined.
Through the steps S102 to S106, a target data set is obtained, where the target data set includes a plurality of extended display identification data files, and each extended display identification data file is used to indicate a video format of a target chip to be tested; traversing a plurality of extended display identification data files in a target data set; and under the condition that the target chip is in the target video format indicated by the traversed extended display data file, testing the target chip through the target display card, and outputting a test result through the target chip, wherein the test result is used for indicating the support performance of the target chip on the target video format. That is to say, an EDID set is established, each EDID supports a video format, and when any one EDID in the set is used, the video format sent by the display card is fixed, so that the test on the video format of the chip has certain pertinence, the technical problem of low test efficiency of the video format of the chip is solved, and the technical effect of improving the test efficiency of the video format of the chip is achieved.
As an optional implementation manner, before acquiring the target data set in step S102, the method further includes: collecting information of a plurality of video formats; and creating a first extended display identification data file corresponding to each video format based on the information of each video format to obtain a plurality of first extended display identification data files, wherein the plurality of extended display identification data files comprise a plurality of first extended display identification data files.
In this embodiment, the target data set needs to be established before it is acquired. Optionally, the information of a plurality of video formats may be acquired, and may be acquired in a typical video format, for example, the information of a standard video format acquired from various pre-established standards, or may be acquired in all video formats that may be sent when each display card is connected to a different display in the process of testing the target chip. Alternatively, the information of each video format of this embodiment is collected and recorded by the target chip, and the information of the video format may include a pixel clock (pixel clock), the number of active pixels of the display device in the horizontal direction (Hactive), the total number of pixels of each row (Htotal), the number of active pixels of the display device in the vertical direction (Vactive), the total number of pixels of each column (Vtotal), and the like, which is not limited herein.
After acquiring information of a plurality of video formats, a first extended display identification data file corresponding to each video format may be created based on the information of each video format, for example, a new EDID file may be created for each typical video format. The embodiment may store the information of the video format in the first detailed time sequence description module in the first extended display identification data file, and the information of other video formats may not be selectively supported, for example, neither fixed time sequence nor standard time sequence identification may be selectively supported, so as to obtain a plurality of first extended display identification data files by the above method, and the target data set of the embodiment may include a plurality of first extended display identification data files.
As an optional implementation, after collecting the information of the plurality of video formats, the method further comprises: expanding the information of the plurality of video formats to obtain expanded information of the plurality of expanded video formats; and creating a second extended display identification data file corresponding to each extended video format based on the information of each extended video format to obtain a plurality of second extended display identification data files, wherein the plurality of extended display identification data files comprise a plurality of second extended display identification data files.
In this embodiment, when the target data set is established, information of a plurality of video formats, that is, EDID information, may also be extended. Optionally, the embodiment sorts the information of the multiple extended video formats, and in the sorted information of the multiple video formats, the information of each two adjacent video formats is extended, and the information of each two adjacent video formats may be extended based on the resolution of the pixel clock (pixel clock) of each two adjacent video formats, so as to obtain the extended information of the multiple extended video formats. The frequency of the pixel clock is related to the operation mode of the liquid crystal panel, and the higher the resolution of the liquid crystal panel, the higher the frequency of the pixel clock.
After the information of the plurality of video formats is expanded to obtain the expanded information of the plurality of expanded video formats, a second expanded display identification data file corresponding to each expanded video format may be created based on the information of each expanded video format, for example, a new EDID file may be created for each expanded video format. The embodiment may store the information of the extended video format in the first detailed time sequence description module in the second extended display identification data file, and the information of other video formats may not be selectively supported, for example, neither fixed time sequence nor standard time sequence identification may be selectively supported, so as to obtain a plurality of second extended display identification data files by the above method, and the target data set of the embodiment may include a plurality of second extended display identification data files. Optionally, in this embodiment, the target data set is formed by the multiple first extended display identification data files and the multiple second extended display identification data files, so that the video formats in the target data set are richer, the support characteristics of the target chip to different video formats under different display cards can be better determined, and the efficiency of detecting the target video is improved.
As an optional implementation, the expanding the information in the plurality of video formats, and obtaining the expanded information in the plurality of expanded video formats includes: sequencing information of a plurality of video formats according to a pixel clock of each video format, wherein the information of the video formats comprises the pixel clock; selecting adjacent information of a first video format and information of a second video format from the sequenced information of the plurality of video formats; acquiring a first resolution of a first pixel clock in the information of the first video format and a second resolution of a second pixel clock in the information of the second video format, wherein the first resolution is less than the second resolution; acquiring a change step length from the first resolution to the second resolution; determining a third resolution of a third pixel clock of the target number according to the first resolution and the change step length; and determining the third resolution of each third pixel clock and the information except the first resolution in the information of the first video format as the information of each extended video format.
In this embodiment, when the information in the plurality of video formats is expanded to obtain the expanded information in the plurality of expanded video formats, the pixel clock may be extracted from the information in each video format, the information in the plurality of video formats may be sorted according to the size of the pixel clock in each video format, and the information in the plurality of video formats may be sorted according to the order from small to large of the pixel clock in each video format. The information of the first video format and the information of the second video format that are adjacent to each other are selected from the sorted information of the plurality of video formats, for example, the information of the a video format and the information of the B video format that are adjacent to each other are selected, and the information of the first video format and the information of the second video format that are adjacent to each other may be any two adjacent information of the plurality of information of the video formats. After the information of the first video format and the information of the second video format are selected to be adjacent, a first resolution of a first pixel clock in the information of the first video format and a second resolution of a second pixel clock in the information of the second video format are acquired, and the first resolution is smaller than the second resolution, for example, the first resolution Pa of the first pixel clock, the first resolution Pb of the second pixel clock, and Pa < Pb.
After acquiring the first resolution of the first pixel clock and the second resolution of the second pixel clock, acquiring a change step (len) from the first resolution to the second resolution, wherein the change step can be a change step of a third resolution of the pixel clocks of the plurality of extended video formats, and determining a target number of the third resolution of the third pixel clock according to the first resolution and the change step, wherein the target number can be determined by the first resolution, the second resolution and the change step, and the target number is also the number of the plurality of extended video formats. The embodiment may determine the third resolution of each third pixel clock and the information of the first video format other than the first resolution as the information of each extended video format, that is, when the information of the adjacent first video format and the information of the second video format are extended, the information of each extended video format other than the third resolution of the third pixel clock is the same as the information of the first video format.
As an alternative embodiment, the determining the third resolution of the third pixel clock of the target number according to the first resolution and the change step includes: a determination step of determining a sum of the first resolution and the change step size as a third resolution; and a detecting step of judging whether the determined number of the third resolution is smaller than the target number, if so, taking the third resolution as the first resolution, and continuing to execute the determining step until the determined number of the third resolution is equal to the target number.
In this embodiment, when determining the third resolution of the target number of third pixel clocks based on the first resolution and the change step, it may be determined whether the sum between the first resolution and the change step is less than the target number, that is, it may be determined whether the third resolution information of the third pixel clocks of the plurality of extended video formats is all determined, and if not, it may be determined that the third resolution is the first resolution, and it may be continued to be determined as the third resolution until the determined number of the third resolution is equal to the target number, thereby achieving the purpose of determining the third resolution of the target number of third pixel clocks based on the first resolution and the change step, wherein information other than the first resolution in the third resolution of each of the third pixel clocks and the information of the first video format, information for each augmented video format is determined.
Optionally, in this embodiment, after the third resolution of the target number of third pixel clocks is completely determined, the third resolution of each third pixel clock and the information of the first video format other than the first resolution may be determined as the information of each extended video format; or, each time the third resolution of a third pixel clock is determined, determining the currently determined third resolution of a third pixel clock and the information of the first video format except the first resolution as the information of one extended video format, then determining the third resolution of the next third pixel clock, determining the determined third resolution of a third pixel clock and the information of the first video format except the first resolution as the information of another extended video format, and so on until the target number of extended video formats are determined.
Optionally, if i is 0, determining whether i is smaller than the target number N, if i is smaller than the target number N, determining a third resolution of the extended video format to be Pa + i × len, where Pa is used to indicate the first resolution and len is used to indicate the change step size, and other parameters of the extended video format are the same as those of the a video format, and then i + +, and determining each extended video format according to the above method, thereby determining N extended video formats.
As an alternative embodiment, before determining the third resolution of the target number of third pixel clocks according to the first resolution and the change step, the method further includes: acquiring a difference between the second resolution and the first resolution; obtaining a quotient between the difference and the change step length; the target number is determined based on the quotient.
In this embodiment, the target number is determined before the third resolution of the third pixel clock of the target number is determined according to the first resolution and the change step. This embodiment may acquire the difference between the second resolution Pb and the first resolution Pa, that is, Pb-Pa, and then acquire the quotient between the difference and the change step, for example, N ═ Pb-Pa)/len, rounding N ═ Pb-Pa)/len, and may determine N-1 as the target number N.
It should be noted that, in this embodiment, the above method for expanding information of multiple video formats may be performed between every two adjacent video formats, and description is not repeated here, so that information of multiple expanded video formats is obtained.
As an optional implementation, the method further comprises: setting a target byte in a second extended display identification data file as a first value under the condition that a target chip is used in a first target scene; and under the condition that the target chip is used in the second target scene, setting the target byte in the second extended display identification data file as a second value.
In this embodiment, the first target scenario may be a simulation display scenario, and in the case that the target chip is used in the first target scenario, the target byte in the second extended display identification data file is set to a first value, for example, the target byte in the second extended display identification data file is byte [14H ] bit7, which is set to a first value of 1.
Optionally, the second target scenario of this embodiment may be a digital display scenario, and in a case that the target chip is used in the second target scenario, the target byte in the second extended display identification data file is set to a second value, for example, the target byte [14H ] bit7 is set to the second value of 0, and is finally saved as an EDID file in the target data set.
As an optional implementation, the method further comprises: and naming a second extended display identification data file corresponding to each extended video format through the first target information of each extended video format.
In this embodiment, the first target information may be main information of the extended video format, and for example, may include a pixel clock (pixel clock), the number of active pixels of the display device in the horizontal direction (Hactive), the total number of pixels of each row (Htotal), the number of active pixels of the display device in the vertical direction (Vactive), the total number of pixels of each column (Vtotal), and the like. And naming a second extended display identification data file corresponding to each extended video format through the first target information of each extended video format.
As an optional implementation, the method further comprises: setting a target byte in a first extended display identification data file as a first value under the condition that a target chip is used in a first target scene; and under the condition that the target chip is used in the second target scene, setting the target byte in the first extended display identification data file as a second value.
In this embodiment, the first target scenario may be a simulation display scenario, and in a case where the target chip is used in the first target scenario, the target byte in the first extended display identification data file is set to a first value, for example, the target byte in the first extended display identification data file is byte [14H ] bit7, which is set to a first value of 1.
Optionally, the second target scenario of this embodiment may be a digital display scenario, and in the case that the target chip is used in the first target scenario, the target byte in the first extended display identification data file is set to a second value, for example, the target byte [14H ] bit7 is set to the second value of 0, and is finally saved into the EDID file in the target data set.
As an optional implementation, the method further comprises: and naming a first extended display identification data file corresponding to each video format through the second target information of each video format.
In this embodiment, the second target information of each video format may be main information of the video format, and may include, for example, a pixel clock (pixel clock), a number of active pixels of the display device in a horizontal direction (Hactive), a total number of pixels of each row (Htotal), a number of active pixels of the display device in a vertical direction (Vactive), a total number of pixels of each column (Vtotal), and the like. And naming a first extended display identification data file corresponding to each video format through the second target information of each video format.
As an optional implementation, the collecting information of a plurality of video formats includes: collecting information of a plurality of preset first video formats; and/or acquiring information of a plurality of second video formats sent by the target display card to the display, wherein the display is used for displaying videos corresponding to the information of the target video formats.
In this embodiment, acquiring information of a plurality of video formats refers to acquiring information of a typical video format, that is, information of a typical common video format, and may acquire information of a plurality of preset first video formats, for example, information of standard video formats acquired from various preset standards. Optionally, in the embodiment, in the test process of the target chip, the target display card further acquires information of a plurality of second video formats sent to the display, for example, when each target display card is connected to a different display, the plurality of second video formats are all video formats that may be sent, and the information of the video formats is acquired and recorded by the target chip, so that the purpose of acquiring the information of the plurality of video formats is achieved.
In this embodiment, a collection of EDIDs is created which contains typical video formats and extended video formats generated according to the typical video formats, and in each EDID, only one video format is supported, which can be placed in the first detailed time sequence description module of the EDID. Each EDID in the set of EDIDs of the embodiment not only covers a typical common video format, but also includes an extended video format, so that the support characteristics of the target chip to different traversed video formats under different display cards can be better determined, and when any one EDID in the set is used, the video format sent by the display card is fixed, so that the test on the video format of the target chip has certain pertinence, the technical problem of low test efficiency of the video format of the chip is solved, and the technical effect of improving the test efficiency of the video format of the chip is achieved.
Example 2
The technical solution of the present invention will be described below by way of example with reference to preferred embodiments.
Fig. 2 is a flowchart of a method for establishing an EDID collection according to an embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step S201, collecting information of a plurality of typical video formats.
In this embodiment, the collection of a plurality of pieces of information in typical video formats, that is, the collection of EDID, mainly includes two major parts, one of which is standard video format information collected from various preset standards; the other part is all video formats which can be sent out when each display card is connected with different displays in the chip testing process, and the information of the video formats can be collected and recorded by the chip.
The embodiment creates a new EDID file for each typical video format, stores the information of the video format in the first detailed timing description module in the EDID, and does not select and support other information of the video format, such as fixed timing and standard timing identification. Alternatively, the Byte [14H ] bit7 of the EDID may be set to 1 if the chip to be tested is applied to the analog display field, and the Byte [14H ] bit7 of the EDI may be set to 0 if the chip to be tested is applied to the digital display field, and finally saved as the EDID file. The naming of the EDID file of this embodiment needs to contain main information of the video format, such as a pixel clock (pixel clock) including the video format, the number of active pixels of the display device in the horizontal direction (Hactive), the total number of pixels of each line (Htotal), the number of active pixels of the display device in the vertical direction (Vactive), the total number of pixels of each column (Vtotal), and the like.
Step S202, a plurality of pieces of collected typical video format information are expanded.
In this embodiment, after the information of the plurality of typical video formats is collected, the collected information of the typical video formats, that is, the EDID information may be augmented.
In this embodiment, the collected information of the typical video format may be sorted according to the size of the pixel clock (pixel clock) in the information of the typical video format, for example, the information of the typical video format may be sorted according to the order from small to large of the pixel clock (pixel clock) in the information of the typical video format
Among the sorted information of the typical video formats, information of adjacent consecutive typical video formats is selected, for example, the selected adjacent two typical video formats are a and B, respectively, the resolutions of the corresponding pixel clocks are Pa and Pb, respectively, and Pb > Pa. Alternatively, the selected expansion step size of this embodiment may be len, and the number of resolutions of the expansion video format that can be expanded between the two adjacent typical video formats may be determined according to the rounded (Pb-Pa)/len.
Fig. 3 is a flow chart of a method of extending resolution between two video formats in accordance with an embodiment of the present invention. As shown in fig. 3, the method comprises the steps of:
step S301, setting i to 0;
step S302, judge whether i is less than n.
If i is less than n, go to step S312; if the judgment result shows that i is not less than n, the execution flow is ended.
Step S303, determining the information of the extended video format i.
In this embodiment, the pixel clock Pa + i × len is equal to Pa when i is 0, that is, the resolution of the pixel clock of the a typical video format. When i is 1 to n-1, a pixel clock is used to indicate the resolution of the pixel clocks of the n-1 extended video formats, and other information of each extended video format, except the resolution of the pixel clock, may be the same as that of the typical video format a.
Step S304, i + +.
In this embodiment, after the information of one extended video format is acquired, i + +, step S302 is executed, that is, the process of creating the next extended video format is started until i is greater than or equal to n.
In this embodiment, a new EDID file is created according to each extended video format, information of the extended video format is stored in the first detailed timing description module of the EDID file, and information of other video formats, such as fixed timing and standard timing identification, are not selected to be supported. Alternatively, if the chip to be tested is applied to the analog display field, byte [14H ] bit7 of EDID may be set to 1; if the chip to be tested is applied to the digital display field, EDIDByte [14H ] bit7 can be set to 0 and finally saved as an EDID file. Optionally, the naming of the file of this embodiment includes the main information of the video format, for example, including pixel clock, hash, Htotal, Vactive, Vtotal, etc., which is not limited herein.
In this embodiment, the determination of each two adjacent EDID files in the typical video format may be determined according to the methods in steps S301 to S302, which is not described herein again.
In the embodiment, information of a plurality of typical video formats is collected, a plurality of EDI files are created according to the information of the plurality of typical video formats, the collected information of the plurality of typical video formats is expanded to obtain information of a plurality of expanded video formats, a plurality of EDI files are created according to the information of the plurality of expanded video formats, and finally an EDID set is formed.
In the embodiment, an EDID collection is established, the video formats contained in the EDID collection are rich, the EDID collection not only contains typical video formats, but also can contain extended video formats generated according to the typical video formats, and therefore the support characteristics of the chip on different video cards traversed by different video formats can be better determined. In each EDID, only one video format is supported, the video format can be placed in the first detailed time sequence description module of the EDID, and when the EDID is used, the video format sent by the display card is determined, so that when different display cards use each EDID, because each EDID only supports one video format, only one video format is sent, the performance of the different display cards under the video format supported by the EDID can be tested, and the efficiency of testing the chip is improved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Example 3
The embodiment of the invention also provides a data processing device. It should be noted that the data processing apparatus of this embodiment may be used to execute the data processing method of the embodiment of the present invention.
Fig. 4 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention. As shown in fig. 4, the data processing apparatus 400 may include: an acquisition unit 10, a traversal unit 20 and a processing unit 30.
The device comprises an obtaining unit 10, configured to obtain a target data set, where the target data set includes multiple extended display identification data files, and each extended display identification data file is used to indicate a video format of a target chip to be tested.
And a traversing unit 20, configured to traverse the plurality of extended display identification data files in the target data set.
And the processing unit 30 is configured to test the target chip through the target graphics card when the target chip is in the target video format indicated by the traversed extended display data file, and output a test result through the target chip, where the test result is used to indicate a support performance of the target chip on the target video format.
In the embodiment, an EDID set is established, each EDID supports one video format, and when any one EDID in the set is used, the video format sent by the display card is fixed, so that the video format test of the target chip has certain pertinence, the technical problem of low test efficiency of the video format of the chip is solved, and the technical effect of improving the test efficiency of the video format of the chip is achieved.
Example 4
The embodiment of the invention also provides a storage medium. The storage medium includes a stored program, wherein the apparatus in which the storage medium is located is controlled to execute the data processing method in the embodiment of the present invention when the program runs.
Example 5
The embodiment of the invention also provides a processor. The processor is used for running a program, wherein the program executes the data processing method in the embodiment of the invention when running.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.