Test image output display method, device and image signal generator
By analyzing and reading the bit depth value and color depth value of the preset image file, the problem that the display module to be tested cannot display the test image normally, and the correct transmission and display of any color depth image is achieved.
Patent Information
- Application Number
- CN202111565310.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2041-12-20
AI Technical Summary
In the prior art, the display module to be tested cannot display the test image normally because the 8-bit color depth of the image file format does not match the supported color depth.
By obtaining the preset image file, analyzing its bit depth value and color depth value, and reading the valid data of each sub-pixel in the actual data storage area based on these values, and sending it to the display module to be tested.
It realizes the ability of the display module to be tested to display the test image normally, and is suitable for test images of any color depth, improving applicability.
Smart Images

Figure CN114428869B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display device detection, and in particular to a test image output display method, device and image signal generator. Background Art
[0002] There are many types of display panels at present, and different display panels support displaying images with different color depths. The single-channel color depth of a component in the color system (Red Green Blue, RGB) of an image pixel can be 6, 8, 10, or 12 bits (binary digit, bit). In the field of display devices, when describing the color depth of a pixel, it is generally expressed by the single-channel color depth of a single RGB component, that is, single-channel color depth.
[0003] In the technical field of display device detection, it is necessary to output a test image to the display module to be tested through an image signal generator (Pattern Generator, PG). If the display module to be tested is to display the test image normally, it is necessary to ensure that the color depth of each sub-pixel data in the image transmitted by PG to the display module to be tested is consistent with the color depth required by the display device.
[0004] At present, the commonly used image file format is 8-bit (i.e., the color depth of a single channel is 8-bit). The commonly used image file format cannot be correctly displayed when transmitted to the display module to be tested with a color depth of 6, 10, or 12 bits. Therefore, in the prior art, the display module to be tested has the problem of being unable to display the test image normally. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a method and device for outputting and displaying a test image, and an image signal generator, so as to solve the problem in the prior art that a display module to be tested cannot normally display a test image.
[0006] In order to achieve the above object, the present invention provides a method for outputting and displaying a test image in a first aspect, the method comprising:
[0007] Acquisition step: acquiring a preset image file, the preset image file comprising a data header and an actual data storage area for storing actual data, the data header comprising a bit depth value and a color depth value;
[0008] Parsing step: parsing the preset image file to obtain the bit depth value and color depth value of the preset image file;
[0009] Reading step: reading valid data of each sub-pixel of the preset image file in the actual data storage area according to the bit depth value and color depth value of the preset image file;
[0010] Sending step: Send valid data to the display module to be tested.
[0011] In an embodiment of the present invention, the data header further includes a preset byte offset, an image height, and an image width, and the output display method further includes:
[0012] The parsing step further includes: parsing a preset image file to obtain a preset byte offset, image height, and image width;
[0013] The reading step also includes: determining the starting position of the actual data storage area according to a preset byte offset; reading valid data of each sub-pixel of all pixels in the actual data storage area from the starting position according to the image height, image width, bit depth value and color depth value.
[0014] In an embodiment of the present invention, the data header also includes a preset byte offset and a file size;
[0015] The parsing step further includes: parsing a preset image file to obtain a file size and a preset byte offset;
[0016] The reading step also includes: determining the starting position of the actual data storage area according to a preset byte offset, and reading valid data of each sub-pixel of all pixels from the actual data storage area starting from the starting position according to the file size, bit depth value and color depth value.
[0017] In an embodiment of the present invention, the data header further includes the sub-pixel color sequence of the pixel.
[0018] In an embodiment of the present invention, the output display method further includes:
[0019] Steps to generate preset image files:
[0020] Receive the color depth value of the test image required by the display module to be tested and the bit depth value corresponding to the color depth value;
[0021] Generate a data header of a preset image file according to a color depth value and a bit depth value;
[0022] Generate actual data for each pixel based on color depth value, bit depth value and required image style;
[0023] Generates a preset image file based on the data header, actual data, and actual data storage area.
[0024] In the embodiment of the present invention, the preset image file generation step further includes:
[0025] Determine the starting position of the actual data storage area according to the preset byte offset;
[0026] Receive input image height and image width;
[0027] Generate a data header of a preset image file according to a color depth value, a bit depth value, a preset byte offset, an image height, and an image width;
[0028] According to the image height and image width, the actual data of all pixels are stored from the starting position;
[0029] Generates a preset image file based on the data header and the actual data storage area.
[0030] In the embodiment of the present invention, the preset image file generation step further includes:
[0031] Determine the starting position of the actual data storage area according to the preset byte offset;
[0032] Receive input image height and image width;
[0033] Generate file size based on image height and image width;
[0034] Generate a data header of a preset image file according to a color depth value, a bit depth value, a preset byte offset and a file size;
[0035] According to the image height and image width, the actual data of all pixels are stored from the starting position;
[0036] Generates a preset image file based on the data header and the actual data storage area.
[0037] In the embodiment of the present invention, the preset image file generation step further includes:
[0038] receiving the sub-pixel color order of the input pixel;
[0039] A data header of a preset image file is generated according to a color depth value, a bit depth value and a sub-pixel color sequence.
[0040] In an embodiment of the present invention, the obtaining step includes:
[0041] Get the test file package sent by the host computer;
[0042] Parse the test file package to get the preset image file.
[0043] A second aspect of the present invention provides a test image output display device, the output display device comprising:
[0044] An acquisition module, used for acquiring a preset image file, the preset image file includes a data header and an actual data storage area for storing actual data, the data header includes a bit depth value and a color depth value;
[0045] A parsing module, used for parsing a preset image file to obtain a bit depth value and a color depth value of the preset image file;
[0046] A reading module, used for reading valid data of each sub-pixel of the preset image file in the actual data storage area according to the bit depth value and color depth value of the preset image file;
[0047] The sending module is used to send valid data to the display module to be tested.
[0048] A third aspect of the present invention provides an image signal generator, comprising:
[0049] a memory configured to store instructions; and
[0050] The processor is configured to call instructions from the memory and implement the above-mentioned test image output display method when executing the instructions.
[0051] A fourth aspect of the present invention provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the above-mentioned method for outputting and displaying a test image.
[0052] Through the above technical scheme, a preset image file including a data header and an actual data storage area for storing actual data is obtained, wherein the data header includes a bit depth value and a color depth value; the preset image file is further parsed to obtain the bit depth value and the color depth value of the preset image file; and then the valid data of each sub-pixel of the preset image file is read in the actual data storage area according to the bit depth value and the color depth value of the preset image file, thereby sending the valid data to the display module to be tested. The preset image file of the present invention is set to an image file that matches the color depth required by the display module to be tested, and the image signal generator can accurately read the valid data of each sub-pixel according to the parsed color depth and bit depth, and transmit the valid data to the display module to be tested, thereby realizing that the display module to be tested displays the test image normally, and since the color depth and bit depth of the preset image file can be customized, the test image of any color depth can be correctly transmitted to the display module to be tested and displayed normally, so that the applicability is high.
[0053] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0055] Figure 1 A schematic diagram schematically shows a flow chart of a method for outputting and displaying a test image according to an embodiment of the present invention;
[0056] Figure 2A schematic diagram of the structure of a preset image file according to an embodiment of the present invention is shown;
[0057] Figure 3 A schematic diagram of the structure of a device for outputting and displaying a test image according to an embodiment of the present invention is shown;
[0058] Figure 4 The structure block diagram of the image signal generator according to the embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0060] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0061] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0062] Figure 1 The flowchart of the method for outputting and displaying a test image according to an embodiment of the present invention is schematically shown. Figure 1 As shown, an embodiment of the present invention provides a method for outputting and displaying a test image, and the method for outputting and displaying the test image may include the following steps:
[0063] Acquisition step 102, acquiring a preset image file, the preset image file comprising a data header and an actual data storage area for storing actual data, the data header comprising a bit depth value and a color depth value;
[0064] Parsing step 104: parsing the preset image file to obtain a bit depth value and a color depth value of the preset image file;
[0065] Reading step 106, reading valid data of each sub-pixel of the preset image file in the actual data storage area according to the bit depth value and color depth value of the preset image file;
[0066] Sending step 108, sending the valid data to the display module to be tested.
[0067] In an embodiment of the present invention, the preset image file refers to an image file generated according to the display module to be tested. The preset image file includes a data header and an actual data storage area for storing the actual area, and the data header includes a bit depth value and a color depth value of the preset image file. In other words, 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 in the data header. The data header defines two fields, which store the color depth value and the bit depth value respectively.
[0068] Figure 2 The structure diagram of the preset image file according to the embodiment of the present invention is schematically shown. Figure 2 As shown, 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.
[0069] In an embodiment of the present invention, obtaining the preset image file can be obtained by the host computer sending it to the image signal generator in the form of a test file package for parsing, or the image signal generator directly generates the preset image file, or the external control box sends the preset image file to the image signal generator. In one example, the host computer system has an image editing module, and the user can set relevant parameters on the image editing interface according to the image requirements required by the display module to be tested, such as whether to generate a standard image file or a preset image file, the number of bits (i.e., color depth) of a single color channel of the preset image file, the number of bits occupied by each pixel (i.e., bit depth), the preset image style (common picture styles such as chessboard), image width, image height, etc. When the color depth of the image required by the display module to be tested is 8bit, the output preset image file format can also be selected, wherein the corresponding bit depth value is set to 24bit (in RGB scene) or 32bit (in RGBX scene); when the color depth of the display module to be tested is 8bit, a standard image format with a color depth of 8bit can be generated. When the color depth of the image required by the display module to be tested is 6 bits, select the output preset image file format and set the bit depth value to 24 bits; when the color depth of the image required by the display module to be tested is 10 bits, select the output preset image file format and set the bit depth value to 32 bits; when the color depth of the image required by the display module to be tested is 12 bits, select the output preset image file format and set the bit depth value to 40 bits.
[0070] In an embodiment of the present invention, after obtaining the test file package, the processor of the image signal generator decompresses the test file package to obtain a preset image file, a test image list configuration file, a timing configuration file, a power configuration file, etc., and decompresses the preset image file to read the corresponding actual data (i.e., the valid data of each sub-pixel of the preset image file).
[0071] The processor parses the specific names of the test image list configuration file, timing configuration file, and power configuration file from the config.ini file of the test file package, and then obtains the corresponding configuration files from each fixed folder of the test file package. Among them, the test image list configuration file records the file name, type, resolution, bit number, lock second and other information of the test image. Some of this information is obtained by parsing the image file when adding the image file (standard image file or preset image file) to the test file package, and some is set manually.
[0072] The image signal generator reads the contents of the image from the image directory of the test file package according to the file name of the read test image, including the data header of the image and the valid data in the valid data storage area. From the data header, the following information can be obtained: file size, color depth value, sub-pixel color sequence, preset byte offset from the beginning of the file to the image data, image width, image height, bit depth value, etc. Finally, the image signal generator sends the valid data to the display module to be tested for normal display according to the preset image file parsed by the test file package and the valid data obtained after the preset image file is parsed.
[0073] Through the above technical solution, a preset image file including a data header and an actual data storage area for storing actual data is obtained, wherein the data header includes a color depth value and a bit depth value corresponding to the color depth; the preset image file is further parsed to obtain the bit depth value and color depth value of the preset image file; and then the valid data of each sub-pixel of the preset image file is read in the actual data storage area according to the bit depth value and color depth value of the preset image file, thereby sending the valid data to the display module to be tested. The preset image file of the present invention is set to an image file that matches the color depth required by the display module to be tested, and the image signal generator can accurately read the valid data of each sub-pixel according to the parsed color depth and bit depth, and transmit the valid data to the display module to be tested, thereby realizing that the display module to be tested displays the test image normally, and since the color depth and bit depth of the preset image file can be customized, the test image of any color depth can be correctly transmitted to the display module to be tested and displayed normally, so that the applicability is high.
[0074] In the embodiment of the present invention, the data header may further include a preset byte offset, an image height, and an image width, and the output display method may further include:
[0075] The parsing step 104 also includes: parsing the preset image file to obtain a preset byte offset, image height and image width; wherein the preset byte offset is in bytes, representing the number of bytes from the starting storage position of the data header to the starting storage position of the actual data storage area.
[0076] Reading step 106 also includes: determining the starting position of the actual data storage area according to a preset byte offset; reading valid data of each sub-pixel of all pixels in the actual data storage area from the starting position according to the image height, image width, bit depth value and color depth value.
[0077] Specifically, the data header may include a byte offset, an image height, and an image width. The preset byte offset refers to the number of bytes from the initial storage position of the data header to the initial storage position of the actual data storage area; the image height and the image width represent the number of rows and columns of the transmitted pixels, that is, the resolution size of the image. After the processor parses the preset image file, the byte offset, the image height, and the image width can be obtained. Therefore, the starting position of the actual data storage area can be determined according to the byte offset, and then the valid data of each sub-pixel of all pixels can be read from the starting position in the actual data storage area according to the image height, image width, bit depth value, and color depth value. The principle of adopting this method is that both the starting position of the actual data and the total number of pixels stored are known, and the color depth value and bit depth are also known. In this way, according to the color depth, bit depth, and the preset pixel storage method (which can be a method of splicing from low to high in sequence), the valid data of each sub-pixel can be read from the actual data storage area of the preset image file to the memory cache, and finally the data in the memory cache is read and transmitted to the display module to be tested for display.
[0078] In an embodiment of the present invention, the data header may further include a preset byte offset and a file size;
[0079] The parsing step 104 may also include: parsing a preset image file to obtain a file size and a preset byte offset;
[0080] The reading step 106 may further include: determining the starting position of the actual data storage area according to a preset byte offset, and reading valid data of each sub-pixel of all pixels from the actual data storage area starting from the starting position according to the file size, bit depth value and color depth value.
[0081] Specifically, the data header may also include a preset byte offset and a file size. The file size may be automatically calculated from the image height and image width, while the image height and image width are set by the user based on the properties of the display module to be tested. The processor parses the preset image file to obtain the file size and the preset byte offset, and the starting position of the actual data storage area may be determined according to the preset byte offset. Then, according to the file size, color depth value and bit depth value, the valid data of each sub-pixel of all pixels is read from the actual data storage area from the starting position. The principle of adopting this method is: knowing the starting position of the actual data storage and the total number of data bytes, and also knowing the color depth value and bit depth, so that according to the color depth, bit depth and preset pixel storage method, the valid data of each sub-pixel can be read from the actual data storage area of the preset image file into the memory cache, and finally the data in the memory cache is read and transmitted to the display module to be tested for display.
[0082] In the embodiment of the present invention, the data header may further include the sub-pixel color sequence of the pixel.
[0083] Specifically, the data header may also include an RGB sequence, so that the RGB sequence can be obtained during parsing, and setting the RGB sequence can make the format of the preset image file more universal. If the hardware has requirements for the RGB sequence when implementing image transmission or other processing (for example, a chip IP is designed according to a certain RGB sequence), the format of the preset image file can be expanded to adapt to various requirements in related fields. When generating a preset image file, it can be generated directly according to the required RGB sequence, and no additional conversion or processing is required when reading valid data from the preset image file, which facilitates data acquisition and user development. When developing according to the format of the preset image file, third-party users can flexibly set the default RGB sequence, so that when generating a preset image file, the pixel valid data of the image is stored in the default RGB sequence.
[0084] In an embodiment of the present invention, the output display method may further include a preset image file generation step:
[0085] Receive the color depth value and bit depth value of the test image required by the display module to be tested;
[0086] Generate a data header of a preset image file according to a color depth value and a bit depth value;
[0087] Generate actual data for each pixel based on color depth value, bit depth value and required image style;
[0088] Generates a preset image file based on the data header, actual data, and actual data storage area.
[0089] In an embodiment of the present invention, a user can input the color depth value of the test image required for the display module to be tested and the bit depth value corresponding to the color depth in the display interface of the image editing module of the host computer. After the processor receives the color depth value and bit depth value required by the input display module to be tested, it generates a data header of the preset image file according to the color depth value and the bit depth value. The data header includes the color depth value and the bit depth value corresponding thereto. The actual data of each pixel can be generated according to the color depth value, the bit depth value and the required image style, and then the preset image file is generated according to the data header, the actual data and the actual data storage area. Among them, the preset image style is pre-set, for example, it can be a chess and card grid style, and the preset image file of the chessboard grid can be generated according to the color depth value and the bit depth value and the generation rule of the chess and card grid image.
[0090] In the embodiment of the present invention, the step of generating a preset image file may further include:
[0091] Determine the starting position of the actual data storage area according to the preset byte offset;
[0092] Receive input image height and image width;
[0093] Generate a data header of a preset image file according to a color depth value, a bit depth value, a preset byte offset, an image height, and an image width;
[0094] According to the image height and image width, the actual data of all pixels are stored from the starting position;
[0095] Generates a preset image file based on the data header and the actual data storage area.
[0096] Specifically, the data header may include a preset byte offset, an image height, an image width, a bit depth value, and a color depth value. The processor may determine the starting position of the actual data storage area according to the byte offset. The data header of the preset image file may be obtained according to the color depth value, the bit depth value, the preset byte offset, the image height, and the image width. According to the image height and the image width, the actual data of all pixels are stored from the starting position until the actual data of all pixels of the resolution size represented by the image height and the image width are stored in the actual data storage area, so that the preset image file may be obtained according to the data header and the actual data storage area.
[0097] In the embodiment of the present invention, the step of generating a preset image file may further include:
[0098] Determine the starting position of the actual data storage area according to the preset byte offset;
[0099] Receive input image height and image width;
[0100] Generate file size based on image height and image width;
[0101] Generate a data header of a preset image file according to a color depth value, a bit depth value, a preset byte offset and a file size;
[0102] According to the image height and image width, the actual data of all pixels are stored from the starting position;
[0103] Generates a preset image file based on the data header and the actual data storage area.
[0104] Specifically, the file size can be automatically generated by the image width and image height, the unit of the preset byte offset is byte, the unit of the file size is byte, and the file size is the number of bytes of the preset byte offset + the number of bytes occupied by the image of the resolution size represented by the image width and height. The processor can determine the starting position of the actual data storage area according to the byte offset. The data header of the preset image file can be obtained according to the color depth value, the bit depth value, the preset byte offset, and the file size. Of course, in practical applications, the data header can also include the image height and the image width, so that when the image height and the image width are needed in the back-end development process, they can be obtained by parsing the preset image file, thereby having good adaptability. According to the image height and the image width, the actual data of all pixels are stored from the starting position until the preset image file reaches the file size, so that the preset image file can be obtained according to the data header and the actual data storage area.
[0105] In the embodiment of the present invention, the step of generating a preset image file may further include:
[0106] receiving the sub-pixel color order of the input pixel;
[0107] A data header of a preset image file is generated according to a color depth value, a bit depth value and a sub-pixel color sequence.
[0108] Specifically, the data header may also include an RGB sequence. In this way, the RGB sequence can be obtained when parsing the preset image file, and setting the RGB sequence can make the format of the preset image file more universal. If the hardware has requirements for the RGB sequence when implementing image transmission or other processing (for example, a chip IP is designed according to a certain RGB sequence), the format of the preset image file can be expanded to adapt to various requirements in related fields. When generating a preset image file, it can be generated directly according to the required RGB sequence, and no additional conversion or processing is required when reading valid data from the preset image file, which facilitates data acquisition and user development. When developing according to the format of the preset image file, third-party users can flexibly set the default RGB sequence, so that when generating a preset image file, the pixel valid data of the image is stored in the default RGB sequence.
[0109] In the embodiment of the present invention, the obtaining step 102 may include:
[0110] Get the test file package sent by the host computer;
[0111] Parse the test file package to get the preset image file.
[0112] Although the present embodiment adopts the method of obtaining the preset image file by sending the test file package through the host computer and decompressing it, the present invention is not limited to this. In practical applications, the preset image file can also be sent to the PG signal generator through a control box electrically connected to the image signal generator. Of course, the preset image file can also be generated on the control box through user operation, and the preset image file in the storage device connected thereto can also be obtained through the control box and sent to the PG signal generator.
[0113] Figure 3 The structure diagram of the output display device of the test image according to the embodiment of the present invention is schematically shown. Figure 3 As shown, an embodiment of the present invention provides a test image output display device, which may include:
[0114] An acquisition module 302 is used to acquire a preset image file, the preset image file includes a data header and an actual data storage area for storing actual data, the data header includes a bit depth value and a color depth value;
[0115] A parsing module 304 is used to parse a preset image file to obtain a bit depth value and a color depth value of the preset image file;
[0116] A reading module 306, configured to read valid data of each sub-pixel of the preset image file in the actual data storage area according to the bit depth value and color depth value of the preset image file;
[0117] The sending module 308 is used to send valid data to the display module to be tested.
[0118] In an 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 includes a data header and an actual data storage area for storing the actual area, and the data header includes a bit depth value and a color depth value of the preset image file. In other words, 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 in the data header. The data header defines two fields, which store the color depth value and the bit depth value respectively.
[0119] like Figure 2 As shown, 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) sequence, an identification number, a file size, an image width, an image height, and a bit depth value.
[0120] In an embodiment of the present invention, obtaining the preset image file can be obtained by the host computer sending it to the image signal generator in the form of a test file package for parsing, or the image signal generator directly generates the preset image file, or an external control box sends the preset image file to the image signal generator. In one example, the host computer system has an image editing module, and the user can set relevant parameters on the image editing interface according to the image requirements required by the display module to be tested, such as whether to generate a standard image file or a preset image file, the number of bits of the color channel of the preset image file (i.e., color depth), the number of bits occupied by 1 pixel (i.e., bit depth), the preset image style (commonly used image styles such as checkerboard), image width, image height, etc.
[0121] When the color depth of the image required by the display module to be tested is 8 bits, you can also select the format of the preset image file, where the corresponding bit depth value is set to 24 bits (in RGB scenario) or 32 bits (in RGBX scenario); when the color depth of the display module to be tested is 8 bits, the user can also generate a standard format image with a color depth of 8 bits. When the color depth of the image required by the display module to be tested is 6 bits, select the output preset image file format and set the bit depth value to 24 bits; when the color depth of the image required by the display module to be tested is 10 bits, select the output preset image file format and set the bit depth value to 32 bits; when the color depth of the image required by the display module to be tested is 12 bits, select the output preset image file format and set the bit depth value to 40 bits.
[0122] The test image output and display device provided in the embodiment of the present invention is a device embodiment corresponding to the test image output and display method provided in the above embodiment, and the specific contents may refer to the above embodiment.
[0123] Through the above technical scheme, a preset image file including a data header and an actual data storage area for storing actual data is obtained, wherein the data header includes a bit depth value and a color depth value; the preset image file is further parsed to obtain the bit depth value and the color depth value of the preset image file; and then the valid data of each sub-pixel of the preset image file is read in the actual data storage area according to the bit depth value and the color depth value of the preset image file, thereby sending the valid data to the display module to be tested. The preset image file of the present invention is set to an image file that matches the color depth required by the display module to be tested, and the image signal generator can accurately read the valid data of each sub-pixel according to the parsed color depth and bit depth, and transmit the valid data to the display module to be tested, thereby realizing that the display module to be tested displays the test image normally, and since the color depth and bit depth of the preset image file can be customized, the test image of any color depth can be correctly transmitted to the display module to be tested and displayed normally, so that the applicability is high.
[0124] Figure 4 The structure block diagram of the image signal generator according to the embodiment of the present invention is schematically shown. Figure 4 As shown, an embodiment of the present invention provides an image signal generator, which may include:
[0125] Memory 410, configured to store instructions; and
[0126] The processor 420 is configured to call instructions from the memory 410 and implement the above-mentioned test image output display method when executing the instructions.
[0127] In the embodiment of the present invention, the processor 420 may be configured to:
[0128] Acquisition step: acquiring a preset image file, the preset image file comprising a data header and an actual data storage area for storing actual data, the data header comprising a bit depth value and a color depth value;
[0129] Parsing step: parsing the preset image file to obtain the bit depth value and color depth value of the preset image file;
[0130] Reading step: reading valid data of each sub-pixel of the preset image file in the actual data storage area according to the bit depth value and color depth value of the preset image file;
[0131] Sending step: Send valid data to the display module to be tested.
[0132] Furthermore, the data header also includes a preset byte offset, an image height, and an image width. The processor 420 may also be configured as follows:
[0133] The parsing step further includes: parsing a preset image file to obtain a preset byte offset, image height, and image width;
[0134] The reading step also includes: determining the starting position of the actual data storage area according to a preset byte offset; reading valid data of each sub-pixel of all pixels in the actual data storage area from the starting position according to the image height, image width, bit depth value and color depth value.
[0135] Furthermore, the data header also includes a preset byte offset and a file size; the processor 420 may also be configured to:
[0136] The parsing step further includes: parsing a preset image file to obtain a file size and a preset byte offset;
[0137] The reading step also includes: determining the starting position of the actual data storage area according to a preset byte offset, and reading valid data of each sub-pixel of all pixels from the actual data storage area starting from the starting position according to the file size, bit depth value and color depth value.
[0138] In an embodiment of the present invention, the data header further includes the sub-pixel color sequence of the pixel.
[0139] Furthermore, the processor 420 may be configured to:
[0140] Steps to generate preset image files:
[0141] Receive the color depth value and bit depth value of the test image required by the display module to be tested;
[0142] Generate a data header of a preset image file according to a color depth value and a bit depth value;
[0143] Generate actual data for each pixel based on color depth value, bit depth value and required image style;
[0144] Generates a preset image file based on the data header, actual data, and actual data storage area.
[0145] Furthermore, the processor 420 may be configured to:
[0146] The step of generating the preset image file also includes:
[0147] Determine the starting position of the actual data storage area according to the preset byte offset;
[0148] Receive input image height and image width;
[0149] Generate a data header of a preset image file according to a color depth value, a bit depth value, a preset byte offset, an image height, and an image width;
[0150] According to the image height and image width, the actual data of all pixels are stored from the starting position;
[0151] Generates a preset image file based on the data header and the actual data storage area.
[0152] Furthermore, the processor 420 may be configured to:
[0153] The step of generating the preset image file also includes:
[0154] Determine the starting position of the actual data storage area according to the preset byte offset;
[0155] Receive input image height and image width;
[0156] Generate file size based on image height and image width;
[0157] Generate a data header of a preset image file according to a color depth value, a bit depth value, a preset byte offset and a file size;
[0158] According to the image height and image width, the actual data of all pixels are stored from the starting position;
[0159] Generates a preset image file based on the data header and the actual data storage area.
[0160] Furthermore, the processor 420 may be configured to:
[0161] The step of generating the preset image file also includes:
[0162] Receive the sub-pixel color order of the input pixel;
[0163] A data header of a preset image file is generated according to a color depth value, a bit depth value and a sub-pixel color sequence.
[0164] Furthermore, the processor 420 may be configured to:
[0165] The acquisition steps include:
[0166] Get the test file package sent by the host computer;
[0167] Parse the test file package to get the preset image file.
[0168] Through the above technical scheme, a preset image file including a data header and an actual data storage area for storing actual data is obtained, wherein the data header includes a bit depth value and a color depth value; the preset image file is further parsed to obtain the bit depth value and the color depth value of the preset image file; and then the valid data of each sub-pixel of the preset image file is read in the actual data storage area according to the bit depth value and the color depth value of the preset image file, thereby sending the valid data to the display module to be tested. The preset image file of the present invention is set to an image file that matches the color depth required by the display module to be tested, and the image signal generator can accurately read the valid data of each sub-pixel according to the parsed color depth and bit depth, and transmit the valid data to the display module to be tested, thereby realizing that the display module to be tested displays the test image normally, and since the color depth and bit depth of the preset image file can be customized, the test image of any color depth can be correctly transmitted to the display module to be tested and displayed normally, so that the applicability is high.
[0169] An embodiment of the present invention further provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned test image output and display method.
[0170] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0171] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0172] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0173] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0174] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0175] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0176] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0177] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0178] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, 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.
Claims
1. A method for outputting and displaying a test image, characterized in that: The output display method comprises: The preset image file generation step includes: receiving the color depth value of the test image required by the display module to be tested and the bit depth value corresponding to the color depth; generating a data header of the preset image file according to the color depth value and the bit depth value; generating actual data of each pixel according to the color depth value, the bit depth value and the required image style; generating the preset image file according to the data header, the actual data and the actual data storage area; Acquisition step: acquiring a preset image file, wherein the preset image file comprises a data header and an actual data storage area for storing actual data, wherein the data header comprises a bit depth value and a color depth value; Parsing step: parsing the preset image file to obtain a bit depth value and a color depth value of the preset image file, wherein the color depth value of the preset image file is the same as the color depth value of the test image required by the display module to be tested; Reading step: reading valid data of each sub-pixel of the preset image file in the actual data storage area according to the bit depth value and color depth value of the preset image file; Sending step: sending the valid data to the display module to be tested.
2. The output display method according to claim 1, characterized in that: The data header also includes a preset byte offset, an image height, and an image width, and the output display method also includes: The parsing step further includes: parsing the preset image file to obtain the preset byte offset, image height and image width; The reading step also includes: determining the starting position of the actual data storage area according to the preset byte offset; and reading valid data of each sub-pixel of all pixels in the actual data storage area from the starting position according to the image height, the image width, the bit depth value and the color depth value.
3. The output display method according to claim 1, characterized in that: The data header also includes a preset byte offset and a file size; The parsing step further includes: parsing the preset image file to obtain the file size and preset byte offset; The reading step also includes: determining the starting position of the actual data storage area according to the preset byte offset, and reading valid data of each sub-pixel of all pixels from the actual data storage area starting from the starting position according to the file size, the bit depth value and the color depth value.
4. The output display method according to claim 1, characterized in that: The data header also includes the sub-pixel color order of the pixel.
5. The output display method according to claim 1, characterized in that: The step of generating the preset image file further includes: Determine the starting position of the actual data storage area according to a preset byte offset; Receive input image height and image width; Generate a data header of the preset image file according to the color depth value, the bit depth value, the preset byte offset, the image height and the image width; According to the image height and image width, the actual data of all pixels are stored starting from the starting position; The preset image file is generated according to the data header and the actual data storage area.
6. The output display method according to claim 1, characterized in that: The step of generating the preset image file further includes: Determine the starting position of the actual data storage area according to a preset byte offset; Receive input image height and image width; generating a file size according to the image height and the image width; Generate a data header of the preset image file according to the color depth value, the bit depth value, the preset byte offset and the file size; According to the image height and the image width, the actual data of all pixels are stored starting from the starting position; The preset image file is generated according to the data header and the actual data storage area.
7. The output display method according to claim 1, characterized in that: The step of generating the preset image file further includes: receiving the sub-pixel color order of the input pixel; A data header of the preset image file is generated according to the color depth value, the bit depth value and the sub-pixel color sequence.
8. The output display method according to claim 1, characterized in that: The obtaining step comprises: Get the test file package sent by the host computer; The test file package is parsed to obtain the preset image file.
9. A test image output display device, characterized in that: The output display device comprises: A preset image file generation module is used to receive the color depth value of the test image required by the display module to be tested and the bit depth value corresponding to the color depth; generate a data header of the preset image file according to the color depth value and the bit depth value; generate actual data of each pixel according to the color depth value, the bit depth value and the required image style; generate the preset image file according to the data header, the actual data and the actual data storage area; An acquisition module, used for acquiring a preset image file, wherein the preset image file comprises a data header and an actual data storage area for storing actual data, wherein the data header comprises a bit depth value and a color depth value; A parsing module, used for parsing the preset image file to obtain a bit depth value and a color depth value of the preset image file, wherein the color depth value of the preset image file is the same as the color depth value of the test image required by the display module to be tested; A reading module, used for reading valid data of each sub-pixel of the preset image file in the actual data storage area according to the bit depth value and color depth value of the preset image file; The sending module is used to send the valid data to the display module to be tested.
10. An image signal generator, characterized in that: include: a memory configured to store instructions; as well as A processor is configured to call the instruction from the memory and implement the test image output display method according to any one of claims 1 to 8 when executing the instruction.
11. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions, which are used to enable a machine to execute the test image output and display method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Video image color depth conversion method, system and device
CN112689139A