Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for displaying a test image by an upper computer and an image signal generator, which are used for solving the problem that the upper computer in the prior art cannot accurately display an image file.
In order to achieve the above object, a first aspect of the present invention provides a method for displaying a test image by an upper computer, the method comprising:
an acquisition step: acquiring a preset image file; the preset image file comprises a data head and an actual data storage area for storing actual data, wherein the data head comprises a bit depth value and a color depth value;
and (3) analyzing: analyzing a preset image file to obtain a color depth value and a bit depth value;
a reading step: reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value;
a conversion step: converting the first valid data into second valid data in a standard image file; and generating a standard image file according to the second effective data so as to obtain the standard image file.
In the embodiment of the present invention, the obtaining step further includes:
judging whether the suffix name of the current image file is a preset identifier or not;
under the condition that the suffix name of the current image file is a preset identifier, judging that the current image file is a preset image file, and entering an analysis step;
and under the condition that the suffix name of the current image file is not the preset identifier, judging that the current image file is a standard image file, and directly displaying the preset image file.
In the embodiment of the present invention, the parsing step further includes:
judging whether the analyzed color depth value is an initial value or not;
and entering a reading step under the condition that the color depth value is not an initial value.
In an embodiment of the present invention, the data header further includes a preset byte offset, an image height and an image width,
the analyzing step further comprises: analyzing a preset image file to obtain a preset byte offset, an image height and an image width;
the reading step further comprises: determining the initial position of an actual data storage area according to the preset byte offset; reading first effective data of each sub-pixel of each pixel in a preset image file from a starting position in an actual data storage area according to the image height, the image width, the bit depth value and the color depth value.
In the embodiment of the invention, the data header also comprises a preset byte offset and a file size;
and (3) analyzing: further comprising: analyzing a preset image file to obtain the file size and the preset byte offset;
the reading step further comprises: determining the initial position of an actual data storage area according to the preset byte offset; reading first valid data of each sub-pixel of each pixel in a preset image file from an actual data storage area from a start position according to a file size, a bit depth value and a color depth value.
In an embodiment of the present invention, the data header further includes a sub-pixel color order of the pixels;
the analyzing step further comprises: analyzing a preset image file to obtain a color sequence of the sub-pixels;
the conversion step further comprises: converting the first valid data into second valid data in the standard image file according to the color sequence of the sub-pixels; and generating a standard image file according to the second effective data so as to display the standard image file.
In an embodiment of the present invention, the method further includes:
and generating a thumbnail according to the standard image file and displaying the thumbnail.
The second aspect of the present invention provides an apparatus for displaying a test image by an upper computer, the apparatus comprising:
the acquisition module is used for acquiring a preset image file; the preset image file comprises a data head and an actual data storage area for storing actual data, wherein the data head comprises a bit depth value and a color depth value;
the analysis module is used for analyzing a preset image file to obtain a color depth value and a bit depth value;
the reading module is used for reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value;
the conversion module is used for converting the first effective data into second effective data in the standard image file; and generating a standard image file according to the second effective data so as to obtain the standard image file.
A third aspect of the present invention provides an image signal generator comprising:
a memory configured to store instructions; and
and the processor is configured to call the instruction from the memory and can realize the method for displaying the test image by the upper computer when the instruction is executed.
A fourth aspect of the present invention provides a machine-readable storage medium having stored thereon instructions for causing a machine to execute a method of displaying a test image according to the above-described upper computer.
Analyzing a preset image file to obtain a color depth value and a bit depth value by the technical scheme; reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value; further converting the first valid data into second valid data in a standard image file; and generating a standard image file according to the second effective data, and displaying the standard image file. Therefore, the upper computer system can correctly display the image file with the color depth being not 8 bits, so that the upper computer and the display module to be tested can display the same test image during testing, and the upper computer can synchronously display the test image under the scene that the display module to be tested with different color depth types outputs the test image with corresponding color depth.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions of the embodiments of the present invention will be described below with reference to the drawings of the embodiments of the present invention, and it should be understood that the specific embodiments described herein are only used for illustrating and explaining the embodiments of the present invention, and are not used for limiting the embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic flow chart illustrating a method for displaying a test image by an upper computer according to an embodiment of the present invention. As shown in fig. 1, an embodiment of the present invention provides a method for displaying a test image by an upper computer, where the method may include the following steps:
an obtaining step 102 of obtaining a preset image file; the preset image file comprises a data head and an actual data storage area for storing actual data, wherein the data head comprises a bit depth value and a color depth value;
analyzing 104, analyzing the preset image file to obtain a color depth value and a bit depth value;
a reading step 106, reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value;
a conversion step 108, converting the first effective data into second effective data in a standard image file; and generating a standard image file according to the second effective data so as to display the standard image file.
In the embodiment of the present invention, the preset image file refers to a preset image file generated according to the display module to be tested. Wherein the preset image file includes a data header and an actual data storage area for storing the actual area. That is to say, the actual data storage area and the data header are spliced to form the preset image file, the actual data storage area is an area relative to the non-actual data stored by the data header, and the data header defines two fields for respectively storing the color depth value and the bit depth value.
The data head comprises a color depth value matched with the display module to be tested and a bit depth value corresponding to the color depth value, and specifically, when the color depth of an image required by the display module to be tested is 8 bits, the bit depth value is correspondingly set to be 24 bits (in an RGB scene) or 32 bits (in an RGBX scene); when the color depth of the image required by the display module to be tested is 6 bits, correspondingly setting the bit depth value to be 24 bits; when the color depth of the image required by the display module to be tested is 10bit, correspondingly setting the bit depth value to be 32 bit; when the color depth of the image required by the display module to be tested is 12 bits, the corresponding set bit depth value is 40 bits.
Fig. 2 schematically shows a structural diagram of a preset image file according to an embodiment of the present invention. As shown in fig. 2, the preset image file of the embodiment of the present invention may include a data header and an actual data storage area. The data header may include, but is not limited to, a preset byte offset, a color depth value, a sub-pixel color (RGB) order, a file size, an image width, an image height, and a bit depth value, among others. Wherein, the color depth value refers to the number of bits of each color channel; the bit depth value refers to the number of bits occupied by each pixel and the unit of a preset byte offset as bytes, and represents the number of bytes from the initial storage position of the data head to the initial storage position of the actual data storage area; the image height, image width represent the number of rows and columns of transfer pixels, i.e., the resolution size of the image; the unit of the file size is bytes, and the file size is the byte number of the preset byte offset plus the byte number occupied by the image with the resolution size represented by the image width and the height.
In the embodiment of the invention, the preset image file can be obtained by an upper computer through analysis by sending the preset image file to the image signal generator in a test file packet mode, or the preset image file can be directly generated by the image signal generator, or the preset image file can be sent to the image signal generator by an external control box. In one example, the upper computer system has an image editing module, and a user may set related parameters on an image editing interface according to an image requirement required by the display module to be tested, such as whether to generate a standard image file or a preset image file, a bit number (i.e., a color depth) of a single color channel of the preset image file, a bit number (i.e., a bit depth) occupied by each pixel, a preset image pattern (a common image pattern such as a checkerboard), an image width, an image height, and the like. When the color depth of the image required by the display module to be tested is 8 bits, a preset image file format can be selected and output, wherein the corresponding set depth value is 24 bits (in an RGB scene) or 32 bits (in an RGBX scene); when the color depth of the display module to be tested is 8 bits, a standard image format with the color depth of 8 bits can be generated. When the color depth of the image required by the display module to be tested is 6 bits, selecting to output a preset image file format, and correspondingly setting the depth value to be 24 bits; when the color depth of the image required by the display module to be tested is 10bit, selecting to output a preset image file format, and correspondingly setting the bit depth value to be 32 bit; when the color depth of the image required by the display module to be tested is 12 bits, the preset image file format is selected and output, and the corresponding set depth value is 40 bits.
After reading the first effective data, the processor converts the first effective data into second effective data in a standard image file; so as to generate a standard image file according to the second effective data and display the standard image file, thereby enabling the upper computer system to correctly display the preset image file. Specifically, the color depth, the RGB order, and the preset storage mode (which may be a mode of sequentially splicing from a lower order to a higher order) of each pixel of the standard image file are known, and therefore, the first valid data is converted into the second valid data corresponding to the standard image file according to the known related information of the standard image file, and the standard image file is generated according to the format of the second valid data and the standard image file.
Analyzing a preset image file to obtain a color depth value and a bit depth value by the technical scheme; reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value; further converting the first valid data into second valid data in a standard image file; and generating a standard image file according to the second effective data, and displaying the standard image file. Therefore, the upper computer system can correctly display the image file with the color depth being not 8 bits, so that the upper computer and the display module to be tested can display the same test image during testing, and the upper computer can synchronously display the test image under the scene that the display module to be tested with different color depth types outputs the test image with corresponding color depth.
In this embodiment of the present invention, the obtaining step 102 may further include:
judging whether the suffix name of the current image file is a preset identifier or not;
under the condition that the suffix name of the current image file is a preset identifier, judging that the current image file is a preset image file, and entering an analysis step;
and under the condition that the suffix name of the current image file is not the preset identifier, judging that the current image file is a standard image file, and directly displaying the image file.
Specifically, the suffix names of the standard image file and the preset image file may each contain an identification, for example, by which the standard image file and the preset image file are distinguished. In the embodiment of the present invention, the preset image file may include a preset identifier. The processor may determine whether the current image file is a preset image file according to whether the suffix name of the current image file is a preset identifier. And under the condition that the suffix name of the current image file is a preset identifier, judging the current image file to be a preset image file, and entering an analysis step, otherwise, indicating that the current image file is a standard image file, and directly displaying the image file. By judging whether the current image file is the preset image file or not, the processing mode can be selected better and quickly according to the type of the current image file, and the efficiency of displaying the test image by the upper computer is improved.
In this embodiment of the present invention, the parsing step 104 may further include:
judging whether the analyzed color depth value is an initial value or not;
and entering a reading step under the condition that the color depth value is not an initial value.
Specifically, the processor reads and analyzes the preset image file to obtain a data header of the preset image file. It is determined whether the color depth value included in the data header is an initial value, for example, 0. And under the condition that the color depth value is not 0, the color depth value is assigned to form a preset image file, and then the reading step is carried out to improve the image processing efficiency.
In this embodiment of the present invention, the data header may further include a preset byte offset, an image height, and an image width, and the parsing step 104 may further include: analyzing a preset image file to obtain a preset byte offset, an image height and an image width;
the reading step 106 may further include: determining the initial position of an actual data storage area according to the preset byte offset; reading first effective data of each sub-pixel of each pixel in a preset image file from a starting position in an actual data storage area according to the image height, the image width, the bit depth value and the color depth value.
Specifically, the data header may include a preset byte offset, an image height, and an image width. The processor can obtain the preset byte offset, the image height and the image width after analyzing the preset image file. Therefore, the initial position of the actual data storage area can be determined according to the preset byte offset, and the first effective data of each sub-pixel of all pixels is read in the actual data storage area from the initial position according to the image height, the image width, the bit depth value and the color depth value. The principle of the method is that the initial position of the actual data, the total number of the stored pixels and the color depth value and the bit depth are known, so that the effective data of each sub-pixel can be read in the actual data storage area of the preset image file according to the color depth, the bit depth and the preset pixel storage mode (which can be a mode of sequentially splicing from a low bit to a high bit), and the effective data is the first effective data.
In the embodiment of the present invention, the data header may further include a preset byte offset and a file size;
the parsing step 104 may further include: analyzing a preset image file to obtain the file size and the preset byte offset;
the reading step 106 may further include: determining the initial position of an actual data storage area according to the preset byte offset; reading first valid data of each sub-pixel of each pixel in a preset image file from an actual data storage area from a start position according to a file size, a bit depth value and a color depth value.
Specifically, the data header may further include a preset byte offset and a file size. The file size can be automatically calculated by the image height and the image width, and the image height and the image width are set by a user based on the attribute of the display module to be tested. The processor analyzes the preset image file to obtain the file size and the preset byte offset, and can determine the initial position of the actual data storage area according to the preset byte offset. And reading the first effective data of each sub-pixel of all the pixels from the actual data storage area from the initial position according to the file size, the color depth value and the bit depth value. The principle of adopting the mode is as follows: not only the initial position and total number of data bytes of actual data storage are known, but also the color depth value and the bit depth are known, so that the effective data of each sub-pixel can be read in the actual data storage area of the preset image file as the first effective data according to the color depth, the bit depth and the preset pixel storage mode. Certainly, in practical application, the data header may further include an image height and an image width, so that the data header can be obtained by analyzing the preset image file when the image height and the image width are required in a back-end development process, and thus the adaptability is good.
In the embodiment of the present invention, the data header may further include a sub-pixel color order of the pixels;
the parsing step 104 may further include: analyzing a preset image file to obtain a color sequence of the sub-pixels;
the converting step 108 may further include: converting the first valid data into second valid data in the standard image file according to the color sequence of the sub-pixels; and generating a standard image file according to the second effective data so as to display the standard image file.
Specifically, since the color sequence of the sub-pixels of the standard image file is known, such as RGB, and the color sequence of the sub-pixels analyzed in step 104 is GBR, in step 108, the first valid data of the sub-pixels G of the preset image file needs to be converted into the second valid data of the standard image file; similarly, the sub-pixels B and R of the preset image file also need to be converted into second effective data of the standard image file, and finally the second effective data converted by the GBR are spliced according to the RGB sequence of the standard image file and the known pixel storage manner to obtain actual data of the standard image file, and the standard image file can be obtained according to the actual data.
It will be appreciated that the data header may also include a sub-pixel color (RGB) sequence. Therefore, the RGB sequence can be obtained when the preset image file is analyzed, and the format of the preset image file has universality by setting the RGB sequence. If the hardware realizes image transmission or other processing, the RGB sequence is required (for example, a chip IP is designed according to a certain RGB sequence), so that the format extension of the preset image file can be adapted to various requirements of the related field. When the preset image file is generated, the image file can be directly generated according to the required RGB sequence, and when effective data is read from the preset image file, additional conversion or processing is not needed, so that data acquisition and user development are facilitated. When developing according to the format of the preset image file, a third-party user can flexibly set a default RGB sequence, so that the pixel effective data of the image is stored according to the default RGB sequence when the preset image file is generated.
In the embodiment of the present invention, the method may further include:
and generating a thumbnail according to the standard image file and displaying the thumbnail.
Specifically, the processor generates a standard image file according to the effective data of each pixel of the standard image, controls the UI space to call the library function to generate a thumbnail of the standard image file, and displays the thumbnail.
The method for displaying the test image by the upper computer can be applied to storing the standard image file converted from the preset image file before testing the display module to be tested, and the upper computer acquires and displays the standard image file corresponding to the current test image file in real time when testing the display module to be tested; furthermore, a thumbnail is generated from the standard image file converted from the preset image file, the thumbnail is stored, and when the display module to be tested is tested, the upper computer acquires and displays the thumbnail of the standard image file corresponding to the current test image file in real time. Therefore, under some special scenes, a user needs to develop the upper computer according to own services, and the thumbnail can be normally displayed by the upper computer by using the mode.
Fig. 3 is a schematic structural diagram of an apparatus for displaying a test image by an upper computer according to an embodiment of the present invention. As shown in fig. 3, an embodiment of the present invention provides an apparatus for displaying a test image by an upper computer, where the apparatus may include:
an obtaining module 302, configured to obtain a preset image file; the preset image file comprises a data head and an actual data storage area for storing actual data, wherein the data head comprises a bit depth value and a color depth value;
the analysis module 304 is configured to analyze a preset image file to obtain a color depth value and a bit depth value;
a reading module 306, configured to read, in an actual data storage area, first valid data of each sub-pixel of each pixel in a preset image file according to the color depth value and the bit depth value;
a conversion module 308 for converting the first valid data into second valid data in a standard image file; and generating a standard image file according to the second effective data so as to obtain the standard image file.
In the embodiment of the present invention, the preset image file refers to a preset image file generated according to the display module to be tested. The preset image file comprises a data head and an actual data storage area used for storing the actual area, and the data head comprises a bit depth value and a color depth value of the preset image file. That is to say, the actual data storage area and the data header are spliced to form the preset image file, the actual data storage area is an area relative to the non-actual data stored by the data header, and the data header defines two fields for respectively storing the color depth value and the bit depth value.
The data head comprises a color depth value matched with the display module to be tested and a bit depth value corresponding to the color depth value, and specifically, when the color depth of an image required by the display module to be tested is 8 bits, the bit depth value is correspondingly set to be 24 bits (in an RGB scene) or 32 bits (in an RGBX scene); when the color depth of the image required by the display module to be tested is 6 bits, correspondingly setting the bit depth value to be 24 bits; when the color depth of the image required by the display module to be tested is 10bit, correspondingly setting the bit depth value to be 32 bit; when the color depth of the image required by the display module to be tested is 12 bits, the corresponding set bit depth value is 40 bits.
As shown in fig. 2, the preset image file of the embodiment of the present invention may include a data header and an actual data storage area. The data header may include, but is not limited to, a preset byte offset, a color depth value, a sub-pixel color (RGB) order, an identification number, a file size, an image width, an image height, and a bit depth value, among others. Wherein, the color depth value refers to the number of bits of each color channel; the bit depth value refers to the number of bits occupied by each pixel and the unit of a preset byte offset as bytes, and represents the number of bytes from the initial storage position of the data head to the initial storage position of the actual data storage area; the image height, image width represent the number of rows and columns of transfer pixels, i.e., the resolution size of the image; the unit of the file size is bytes, and the file size is the byte number of the preset byte offset plus the byte number occupied by the image with the resolution size represented by the image width and the height.
In the embodiment of the invention, the preset image file can be obtained by an upper computer through analysis by sending the preset image file to the image signal generator in a test file packet mode, or the preset image file can be directly generated by the image signal generator, or the preset image file can be sent to the image signal generator by an external control box. In one example, the upper computer system has an image editing module, and a user may set related parameters on an image editing interface according to an image requirement required by the display module to be tested, such as whether to generate a standard image file or a preset image file, a bit number (i.e., a color depth) of a single color channel of the preset image file, a bit number (i.e., a bit depth) occupied by each pixel, a preset image pattern (a common image pattern such as a checkerboard), an image width, an image height, and the like. When the color depth of the image required by the display module to be tested is 8 bits, a preset image file format can be selected and output, wherein the corresponding set depth value is 24 bits (in an RGB scene) or 32 bits (in an RGBX scene); when the color depth of the display module to be tested is 8 bits, a standard image format with the color depth of 8 bits can be generated. When the color depth of the image required by the display module to be tested is 6 bits, selecting to output a preset image file format, and correspondingly setting the depth value to be 24 bits; when the color depth of the image required by the display module to be tested is 10bit, selecting to output a preset image file format, and correspondingly setting the bit depth value to be 32 bit; when the color depth of the image required by the display module to be tested is 12 bits, the preset image file format is selected and output, and the corresponding set depth value is 40 bits.
After reading the first effective data, the processor converts the first effective data into second effective data in a standard image file; so as to generate a standard image file according to the second effective data and display the standard image file, thereby enabling the upper computer system to correctly display the preset image file. Specifically, the color depth, the RGB order, and the preset storage mode (which may be a mode of sequentially splicing from a lower order to a higher order) of each pixel of the standard image file are known, and therefore, the first valid data is converted into the second valid data corresponding to the standard image file according to the known related information of the standard image file, and the standard image file is generated according to the format of the second valid data and the standard image file.
Analyzing a preset image file to obtain a color depth value and a bit depth value by the technical scheme; reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value; further converting the first valid data into second valid data in a standard image file; and generating a standard image file according to the second effective data, and displaying the standard image file. Therefore, the upper computer system can correctly display the image file with the color depth being not 8 bits, so that the upper computer and the display module to be tested can display the same test image during testing, and the upper computer can synchronously display the test image under the scene that the display module to be tested with different color depth types outputs the test image with corresponding color depth.
Fig. 4 schematically shows a block diagram of the image signal generator according to an embodiment of the present invention. As shown in fig. 4, an embodiment of the present invention provides an image signal generator, including:
a memory 410 configured to store instructions; and
and a processor 420 configured to call the instructions from the memory 410 and to implement the method for displaying the test image by the upper computer when the instructions are executed.
In embodiments of the invention, the processor 420 may be configured to:
an acquisition step: acquiring a preset image file; the preset image file comprises a data head and an actual data storage area for storing actual data, wherein the data head comprises a bit depth value and a color depth value;
and (3) analyzing: analyzing a preset image file to obtain a color depth value and a bit depth value;
a reading step: reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value;
a conversion step: converting the first valid data into second valid data in a standard image file; and generating a standard image file according to the second effective data so as to display the standard image file.
Further, the processor 420 may be further configured to:
the obtaining step further comprises:
judging whether the suffix name of the current image file is a preset identifier or not;
under the condition that the suffix name of the current image file is a preset identifier, judging that the current image file is a preset image file, and entering an analysis step;
and under the condition that the suffix name of the current image file is not the preset identifier, judging that the current image file is a standard image file, and directly displaying the preset image file.
Further, the processor 420 may be further configured to:
the analyzing step further comprises:
judging whether the analyzed color depth value is an initial value or not;
and entering a reading step under the condition that the color depth value is not an initial value.
Further, the data header further includes a preset byte offset, an image height, and an image width, and the processor 420 may be further configured to:
the analyzing step further comprises: analyzing a preset image file to obtain a preset byte offset, an image height and an image width;
the reading step further comprises: determining the initial position of an actual data storage area according to the preset byte offset; reading first effective data of each sub-pixel of each pixel in a preset image file from a starting position in an actual data storage area according to the image height, the image width, the bit depth value and the color depth value.
Further, the data header also comprises a preset byte offset and a file size; further, the processor 420 may be further configured to:
and (3) analyzing: further comprising: analyzing a preset image file to obtain the file size and the preset byte offset;
the reading step further comprises: determining the initial position of an actual data storage area according to the preset byte offset; reading first valid data of each sub-pixel of each pixel in a preset image file from an actual data storage area from a start position according to a file size, a bit depth value and a color depth value.
Further, the data head also comprises a sub-pixel color order of the pixels; further, the processor 420 may be further configured to:
the analyzing step further comprises: analyzing a preset image file to obtain a color sequence of the sub-pixels;
the conversion step further comprises: converting the first valid data into second valid data in the standard image file according to the color sequence of the sub-pixels; and generating a standard image file according to the second effective data so as to display the standard image file.
Further, the processor 420 may be further configured to:
and generating a thumbnail according to the standard image file and displaying the thumbnail.
Analyzing a preset image file to obtain a color depth value and a bit depth value by the technical scheme; reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value; further converting the first valid data into second valid data in a standard image file; and generating a standard image file according to the second effective data, and displaying the standard image file. Therefore, the upper computer system can correctly display the image file with the color depth being not 8 bits to enable the upper computer and the display module to be tested to display the same test image during testing, and the upper computer can synchronously display the test image under the scene that the display module to be tested with different color depth types outputs the test image with corresponding color depth.
The embodiment of the invention also provides a machine-readable storage medium, wherein the machine-readable storage medium is stored with instructions, and the instructions are used for enabling a machine to execute the method for displaying the test image by the upper computer.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.