CN114428869A - Test image output display method and device and image signal generator - Google Patents

Test image output display method and device and image signal generator Download PDF

Info

Publication number
CN114428869A
CN114428869A CN202111565310.4A CN202111565310A CN114428869A CN 114428869 A CN114428869 A CN 114428869A CN 202111565310 A CN202111565310 A CN 202111565310A CN 114428869 A CN114428869 A CN 114428869A
Authority
CN
China
Prior art keywords
depth value
preset
image file
image
preset image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111565310.4A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mgga Technology Co ltd
Original Assignee
Beijing Mgga Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Mgga Technology Co ltd filed Critical Beijing Mgga Technology Co ltd
Priority to CN202111565310.4A priority Critical patent/CN114428869A/en
Publication of CN114428869A publication Critical patent/CN114428869A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5838Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses an output display method and device of a test image and an image signal generator. The output display method comprises the following steps: an acquisition step: acquiring a preset image file, wherein the preset image file comprises a data head and an actual data storage area for storing actual data, and the data head comprises a bit depth value and a color depth value; and (3) analyzing: analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file; a reading step: reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file; a sending step: and sending the effective data to the display module to be tested. According to the invention, the preset image file is generated according to the image data required by the display module to be tested, so that the color depth of each sub-pixel data in the image transmitted to the display module to be tested by the image signal generator is consistent with the color depth required by the display module to be tested, and the efficiency and accuracy of the output display of the test image are improved.

Description

Test image output display method and device and image signal generator
Technical Field
The invention relates to the technical field of display equipment detection, in particular to an output display method and device of a test image and an image signal generator.
Background
The types of the current display panels are many, and different display panels support displaying images with different color depths. The single channel color depth of one component in the color system (Red Green Blue, RGB) of an image pixel may be 6, 8, 10, 12 bits (bit). In the field of display devices, the color depth of a pixel is generally described by using a single-channel color depth of one component of RGB, that is, the single-channel color depth.
In the technical field of display device detection, a test image needs to be output to a display module to be tested through an image signal Generator (PG), and if the display module to be tested is to normally display the test image, it needs to be ensured that the color depth of each sub-pixel data in the image transmitted to the display module to be tested by the PG is consistent with the color depth required by the display device.
At present, the common format of the image file is 8 bits (i.e. the color depth of a single channel is 8 bits). When the common image file format is transmitted to a display module to be tested with the color depth of 6, 10 or 12 bits, the image file format cannot be correctly displayed. Therefore, in the prior art, the display module to be tested has the problem that the test image cannot be normally displayed.
Disclosure of Invention
The embodiment of the invention aims to provide a test image output display method, a test image output display device and an image signal generator, which are used for solving the problem that a display module to be tested in the prior art cannot normally display a test image.
In order to achieve the above object, a first aspect of the present invention provides an output display method of a test image, the output display method including:
an acquisition step: acquiring a preset image file, wherein the preset image file comprises a data head and an actual data storage area for storing actual data, and the data head comprises a bit depth value and a color depth value;
and (3) analyzing: analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file;
a reading step: reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file;
a sending step: and sending the effective data to the display module to be tested.
In the 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:
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; valid data of each sub-pixel of all pixels is read in the real data storage area from the start position 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;
the analyzing step further comprises: analyzing a preset image file to obtain the file size and the preset byte offset;
a reading step, further comprising: and determining the initial position of the actual data storage area according to the preset byte offset, and reading the effective data of each sub-pixel of all pixels from the actual data storage area from the initial position according to the file size, the bit depth value and the color depth value.
In an embodiment of the present invention, the data header further includes a sub-pixel color order of the pixels.
In an embodiment of the present invention, the output display method further includes:
a preset image file generating step:
receiving an input color depth value of a test image required by a display module to be tested and a bit depth value corresponding to the color depth value;
generating a data header of a 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 pattern;
and generating a preset image file according to the data head, the actual data and the actual data storage area.
In the embodiment of the present invention, the step of generating the preset image file further includes:
determining the initial position of an actual data storage area according to the preset byte offset;
receiving an input image height and an image width;
generating a data header of a preset image file according to the color depth value, the bit depth value, the preset byte offset, the image height and the image width;
storing the actual data of all pixels from the initial position according to the image height and the image width;
and generating a preset image file according to the data header and the actual data storage area.
In the embodiment of the present invention, the step of generating the preset image file further includes:
determining the initial position of an actual data storage area according to the preset byte offset;
receiving an input image height and an image width;
generating a file size according to the image height and the image width;
generating a data header of a preset image file according to the color depth value, the bit depth value, the preset byte offset and the file size;
storing the actual data of all pixels from the initial position according to the image height and the image width;
and generating a preset image file according to the data header and the actual data storage area.
In the embodiment of the present invention, the step of generating the preset image file further includes:
receiving an input sub-pixel color order of a pixel;
and generating a data header of a preset image file according to the color depth value, the bit depth value and the color sequence of the sub-pixels.
In the embodiment of the present invention, the obtaining step includes:
acquiring a test file packet sent by an upper computer;
and analyzing the test file package to obtain a preset image file.
A second aspect of the present invention provides an output display device of a test image, the output display device comprising:
the device comprises an acquisition module, a storage module and a processing module, wherein 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 used for storing actual data, and the data head comprises a bit depth value and a color depth value;
the analysis module is used for analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file;
the reading module is used for reading effective data of each sub-pixel of the preset image file in the actual data storage area according to the bit depth value and the color depth value of the preset image file;
and the sending module is used for sending the effective data to the display module to be tested.
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 to realize the output display method of the test image 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 the above-described output display method of a test image.
According to the technical scheme, the preset image file comprising the data head and the actual data storage area for storing actual data is obtained, wherein the data head comprises a bit depth value and a color depth value; further analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file; and reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file, so that the effective data is sent to the display module to be tested. The preset image file is set to be the image file matched with the color depth required by the display module to be tested, the image signal generator can accurately read the effective data of each sub-pixel according to the analyzed color depth and bit depth and transmit the effective data to the display module to be tested, so that the display module to be tested can normally display the test image.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
fig. 1 schematically shows a flowchart of an output display method of a test image according to an embodiment of the present invention;
fig. 2 schematically shows a structural diagram of a preset image file according to an embodiment of the present invention;
FIG. 3 schematically shows a schematic structural diagram of an output display device for a test image according to an embodiment of the present invention;
fig. 4 schematically shows a block diagram of the image signal generator according to an embodiment of the present invention.
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 schematically shows a flowchart of an output display method of a test image according to an embodiment of the present invention. As shown in fig. 1, an embodiment of the present invention provides an output display method for a test image, where the output display method may include the following steps:
an obtaining step 102, obtaining a preset image file, wherein the preset image file comprises a data head and an actual data storage area for storing actual data, and the data head comprises a bit depth value and a color depth value;
analyzing 104, analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file;
a reading step 106, reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file;
and a sending step 108 of sending the effective data to the display module to be tested.
In the embodiment of the invention, the preset image file refers to an 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.
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.
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 package 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.
In the embodiment of the present invention, after acquiring the test file packet, the processor of the image signal generator decompresses the test file packet to obtain the preset image file, the test image list configuration file, the timing configuration file, the power configuration file, and the like, 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).
The processor analyzes specific names of the test image list configuration file, the time sequence configuration file and the power supply configuration file from the config.ini file of the test file package, and then acquires the corresponding configuration file from each fixed folder of the test file package. The test image list configuration file records information such as file name, type, resolution, bit number, lock second and the like of a picture for test, wherein some information is obtained by analyzing an image file (a standard image file or a preset image file) when the image file is added to a test file package, and some information is manually set.
The image signal generator reads the content of the picture under the picture directory of the test file package according to the file name of the read test picture, the content comprises a data header of the picture and effective data in an effective data storage area, and the content can be obtained from the data header: file size, color depth value, subpixel color order, file start to preset byte offset of image data, image width, image height, bit depth value, etc. And finally, the image signal generator sends the effective data to the display module to be tested for normal display according to the preset image file analyzed by the test file packet and the effective data obtained after the preset image file is analyzed.
According to the technical scheme, the preset image file comprising the data head and the actual data storage area for storing actual data is obtained, wherein the data head comprises a color depth value and a bit depth value corresponding to the color depth; further analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file; and reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file, so that the effective data is sent to the display module to be tested. The preset image file is set to be the image file matched with the color depth required by the display module to be tested, the image signal generator can accurately read the effective data of each sub-pixel according to the analyzed color depth and bit depth and transmit the effective data to the display module to be tested, so that the display module to be tested can normally display the test image.
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 output display method may further include:
the parsing step 104 further includes: analyzing a preset image file to obtain a preset byte offset, an image height and an image width; the unit of the preset byte offset is a byte, and the representation is the byte number from the initial storage position of the data head to the initial storage position of the actual data storage area.
The reading step 106 further comprises: determining the initial position of an actual data storage area according to the preset byte offset; valid data of each sub-pixel of all pixels is read in the real data storage area from the start position according to the image height, the image width, the bit depth value, and the color depth value.
Specifically, the data header may include a byte offset, an image height, and an image width, where the preset byte offset is a number of bytes from an initial storage location of the data header to an initial storage location 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 processor can obtain the 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 byte offset, and the effective data of each sub-pixel of all pixels can be 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 not only the initial position of the actual data is known, but also the total number of the stored pixels is known, and the color depth value and the bit depth are also known, so that the effective data of each sub-pixel can be read in the actual data storage area of the preset image file to the memory cache 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 finally the data in the memory cache is read and transmitted to the display module to be tested for display.
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: and determining the initial position of the actual data storage area according to the preset byte offset, and reading the effective data of each sub-pixel of all pixels from the actual data storage area from the initial position according to the file size, the bit depth value and the 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 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: the initial position and total number of data bytes of actual data storage are known, and the color depth value and the bit depth are also known, so that the effective data of each sub-pixel can be read in the actual data storage area of the preset image file to the memory cache according to the color depth, the bit depth and the preset pixel storage mode, and finally the data in the memory cache is read and transmitted to the display module to be tested for display.
In an embodiment of the present invention, the data header may further include a sub-pixel color order of the pixels.
Specifically, the data header may further include an RGB sequence, so that the RGB sequence may be obtained during parsing, and setting the RGB sequence may make the format of the preset image file more versatile. 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 output display method may further include a preset image file generating step:
receiving an input color depth value and a bit depth value of a test image required by a display module to be tested;
generating a data header of a 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 pattern;
and generating a preset image file according to the data head, the actual data and the actual data storage area.
In the embodiment of the invention, a user can input the color depth value of the image to be tested required by the display module to be tested and the bit depth value corresponding to the color depth on the display interface of the image editing module of the upper computer. And after receiving the input color depth value and the bit depth value required by the display module to be tested, the processor generates a data header of a preset image file according to the color depth value and the bit depth value. Wherein the data header includes a color depth value and a bit depth value corresponding thereto. And generating actual data of each pixel according to the color depth value, the bit depth value and the required image style, and generating a preset image file according to the data header, the actual data and the actual data storage area. The preset image pattern is preset, for example, the preset image pattern can be a pattern such as a chess and card grid, and a preset image file of the chess and card grid can be generated according to the color depth value, the bit depth value and the generation rule of the chess and card grid image.
In this embodiment of the present invention, the step of generating the preset image file may further include:
determining the initial position of an actual data storage area according to the preset byte offset;
receiving an input image height and an image width;
generating a data header of a preset image file according to the color depth value, the bit depth value, the preset byte offset, the image height and the image width;
storing the actual data of all pixels from the initial position according to the image height and the image width;
and generating a preset image file according to the data header and the actual data storage area.
In particular, the data header may include preset byte offsets, an image height, an image width, a bit depth value, and a color depth value. The processor can determine the start of the actual data storage area based on the byte offset. And obtaining the 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. And storing the actual data of all pixels from the initial position according to the image height and the image width until the actual data of all pixels with the resolution size represented by the image height and the image width are all stored in an actual data storage area, so that a preset image file can be obtained according to the data header and the actual data storage area.
In this embodiment of the present invention, the step of generating the preset image file may further include:
determining the initial position of an actual data storage area according to the preset byte offset;
receiving an input image height and an image width;
generating a file size according to the image height and the image width;
generating a data header of a preset image file according to the color depth value, the bit depth value, the preset byte offset and the file size;
storing the actual data of all pixels from the initial position according to the image height and the image width;
and generating a preset image file according to the data header and the actual data storage area.
Specifically, the file size may be automatically generated by the image width and the image height, the unit of the preset byte offset is bytes, the unit of the file size is bytes, and the file size is the number of bytes of the preset byte offset plus the number of bytes occupied by the image with the resolution size represented by the image width and the height. The processor may determine the start location of the actual data storage area based on 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, and certainly, in practical application, the data header can also comprise the image height and the 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 needed in the back-end development process, and the adaptability is good. And storing the actual data of all pixels from the initial position according to the image height and the image width until the preset image file reaches the size of the file, so that the preset image file can be obtained according to the data header and the actual data storage area.
In this embodiment of the present invention, the step of generating the preset image file may further include:
receiving an input sub-pixel color order of a pixel;
and generating a data header of a preset image file according to the color depth value, the bit depth value and the color sequence of the sub-pixels.
In particular, the data header may further include an 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 this embodiment of the present invention, the obtaining step 102 may include:
acquiring a test file packet sent by an upper computer;
and analyzing the test file package to obtain a preset image file.
Although the preset image file is obtained by sending the test file packet and decompressing the test file packet through the upper computer in the embodiment, the invention is not limited to this, and in practical application, the preset image file may be sent to the PG signal generator through a control box electrically connected to the image signal generator, of course, the preset image file may be generated on the control box through user operation, or the preset image file in a storage device connected to the control box may be obtained through the control box and sent to the PG signal generator.
Fig. 3 schematically shows a structural diagram of an output display device of a test image according to an embodiment of the present invention. As shown in fig. 3, an embodiment of the present invention provides an output display device for a test image, which may include:
an obtaining module 302, configured to obtain a preset image file, where the preset image file includes a data header and an actual data storage area for storing actual data, and the data header includes a bit depth value and a color depth value;
the parsing module 304 is configured to parse the preset image file to obtain a bit depth value and a color depth value of the preset image file;
the reading module 306 is 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 the color depth value of the preset image file;
and the sending module 308 is configured to send the valid data to the display module to be tested.
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.
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.
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 color channel of the preset image file, a bit number (i.e., a bit depth) occupied by 1 pixel, a preset image pattern (a checkerboard and other common image patterns), 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, the format of a preset image file can be selected, 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, the user can also generate a standard format image with the color depth of 8 bits. 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 10 bits, selecting to output a preset image file format, and correspondingly setting the set depth value to be 32 bits; 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.
The output display device for a test image provided by the embodiment of the present invention is an embodiment of a device corresponding to the output display method for a test image provided by the above embodiment, and specific contents thereof may refer to the above embodiment.
According to the technical scheme, the preset image file comprising the data head and the actual data storage area for storing actual data is obtained, wherein the data head comprises a bit depth value and a color depth value; further analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file; and reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file, so that the effective data is sent to the display module to be tested. The preset image file is set to be the image file matched with the color depth required by the display module to be tested, the image signal generator can accurately read the effective data of each sub-pixel according to the analyzed color depth and bit depth and transmit the effective data to the display module to be tested, so that the display module to be tested can normally display the test image.
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, which may include:
a memory 410 configured to store instructions; and
a processor 420 configured to call the instructions from the memory 410 and when executing the instructions, to implement the output display method of the test image described above.
In embodiments of the invention, the processor 420 may be configured to:
an acquisition step: acquiring a preset image file, wherein the preset image file comprises a data head and an actual data storage area for storing actual data, and the data head comprises a bit depth value and a color depth value;
and (3) analyzing: analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file;
a reading step: reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file;
a sending step: and sending the effective data to the display module to be tested.
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; valid data of each sub-pixel of all pixels is read in the real data storage area from the start position 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; the processor 420 may also be configured to:
the analyzing step further comprises: analyzing a preset image file to obtain the file size and the preset byte offset;
the reading step further comprises: and determining the initial position of the actual data storage area according to the preset byte offset, and reading the effective data of each sub-pixel of all pixels from the actual data storage area from the initial position according to the file size, the bit depth value and the color depth value.
In an embodiment of the present invention, the data header further includes a sub-pixel color order of the pixels.
Further, the processor 420 may be further configured to:
a preset image file generating step:
receiving an input color depth value and a bit depth value of a test image required by a display module to be tested;
generating a data header of a 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 pattern;
and generating a preset image file according to the data header, the actual data and the actual data storage area.
Further, the processor 420 may be further configured to:
the step of generating the preset image file further comprises the following steps:
determining the initial position of an actual data storage area according to the preset byte offset;
receiving an input image height and an image width;
generating a data header of a preset image file according to the color depth value, the bit depth value, the preset byte offset, the image height and the image width;
storing the actual data of all pixels from the initial position according to the image height and the image width;
and generating a preset image file according to the data header and the actual data storage area.
Further, the processor 420 may be further configured to:
the preset image file generating step further comprises:
determining the initial position of an actual data storage area according to the preset byte offset;
receiving an input image height and an image width;
generating a file size according to the image height and the image width;
generating a data header of a preset image file according to the color depth value, the bit depth value, the preset byte offset and the file size;
storing the actual data of all pixels from the initial position according to the image height and the image width;
and generating a preset image file according to the data header and the actual data storage area.
Further, the processor 420 may be further configured to:
the preset image file generating step further comprises:
receiving an input sub-pixel color order of a pixel;
and generating a data header of a preset image file according to the color depth value, the bit depth value and the color sequence of the sub-pixels.
Further, the processor 420 may be further configured to:
an acquisition step comprising:
acquiring a test file packet sent by an upper computer;
and analyzing the test file package to obtain a preset image file.
According to the technical scheme, the preset image file comprising the data head and the actual data storage area for storing actual data is obtained, wherein the data head comprises a bit depth value and a color depth value; further analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file; and reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file, so that the effective data is sent to the display module to be tested. The preset image file is set to be the image file matched with the color depth required by the display module to be tested, the image signal generator can accurately read the effective data of each sub-pixel according to the analyzed color depth and bit depth and transmit the effective data to the display module to be tested, so that the display module to be tested can normally display the test image.
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 output display method of the test image.
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 has been 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.

Claims (12)

1. An output display method of a test image, the output display method comprising:
an acquisition step: acquiring a preset image file, wherein the preset image file comprises a data head and an actual data storage area for storing actual data, and the data head comprises a bit depth value and a color depth value;
and (3) analyzing: analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file;
a reading step: reading effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file;
a sending step: and sending the effective data to a display module to be tested.
2. The output display method of claim 1, wherein the data header further comprises a preset byte offset, an image height, and an image width, the output display method further comprising:
the analyzing step further includes: analyzing the preset image file to obtain the preset byte offset, the image height and the image width;
the reading step further includes: determining the initial 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 a starting position according to the image height, the image width, the bit depth value and the color depth value.
3. The output display method of claim 1, wherein the header further comprises a preset byte offset and a file size;
the analyzing step further includes: analyzing the preset image file to obtain the file size and a preset byte offset;
the reading step further includes: and determining the initial position of the actual data storage area according to the preset byte offset, and reading the effective data of each sub-pixel of all pixels from the actual data storage area from the initial position according to the file size, the bit depth value and the color depth value.
4. The output display method of claim 1, wherein the data header further comprises a sub-pixel color order of pixels.
5. The output display method of claim 1, further comprising:
a preset image file generating step:
receiving an input color depth value of a test image required by the display module to be tested and a 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 pattern;
and generating the preset image file according to the data header, the actual data and the actual data storage area.
6. The output display method according to claim 5, wherein the preset image file generating step further comprises:
determining the initial position of the actual data storage area according to the preset byte offset;
receiving an input image height and an image width;
generating 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;
storing the actual data of all pixels from the initial position according to the image height and the image width;
and generating the preset image file according to the data header and the actual data storage area.
7. The output display method according to claim 5, wherein the preset image file generating step further comprises:
determining the initial position of the actual data storage area according to the preset byte offset;
receiving an input image height and an image width;
generating a file size according to the image height and the image width;
generating 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;
storing the actual data of all pixels from the initial position according to the image height and the image width;
and generating the preset image file according to the data header and the actual data storage area.
8. The output display method according to claim 5, wherein the preset image file generating step further comprises:
receiving an input sub-pixel color order of a pixel;
and generating a data header of the preset image file according to the color depth value, the bit depth value and the color sequence of the sub-pixels.
9. The output display method according to claim 1, wherein the acquiring step includes:
acquiring a test file packet sent by an upper computer;
and analyzing the test file packet to obtain the preset image file.
10. An output display device for a test image, the output display device comprising:
the device comprises an acquisition module, a storage module and a processing module, wherein 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 used for storing actual data, and the data head comprises a bit depth value and a color depth value;
the analysis module is used for analyzing the preset image file to obtain a bit depth value and a color depth value of the preset image file;
the reading module is used for reading the effective data of each sub-pixel of the preset image file in an actual data storage area according to the bit depth value and the color depth value of the preset image file;
and the sending module is used for sending the effective data to the display module to be tested.
11. An image signal generator, comprising:
a memory configured to store instructions; and
a processor configured to invoke the instructions from the memory and to enable an output display method of a test image according to any one of claims 1 to 9 when executing the instructions.
12. A machine-readable storage medium having stored thereon instructions for causing a machine to perform a method of output display of a test image according to any one of claims 1 to 9.
CN202111565310.4A 2021-12-20 2021-12-20 Test image output display method and device and image signal generator Pending CN114428869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111565310.4A CN114428869A (en) 2021-12-20 2021-12-20 Test image output display method and device and image signal generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111565310.4A CN114428869A (en) 2021-12-20 2021-12-20 Test image output display method and device and image signal generator

Publications (1)

Publication Number Publication Date
CN114428869A true CN114428869A (en) 2022-05-03

Family

ID=81311548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111565310.4A Pending CN114428869A (en) 2021-12-20 2021-12-20 Test image output display method and device and image signal generator

Country Status (1)

Country Link
CN (1) CN114428869A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008056327A2 (en) * 2006-11-10 2008-05-15 Comombo Gmbh Quality assurance method for use in system with limited memory
US20110229040A1 (en) * 2010-03-16 2011-09-22 Pixia Corp. Method and system for converting an image
US20110262037A1 (en) * 2010-04-23 2011-10-27 Kabushiki Kaisha Toshiba Image encoding apparatus and method for the same and image decoding apparatus and method for the same
CN102567936A (en) * 2010-12-30 2012-07-11 新奥特(北京)视频技术有限公司 Method and system for multi-digit depth multi-resolution ratio image editing
CN103186544A (en) * 2011-12-28 2013-07-03 广东新岸线计算机系统芯片有限公司 Method and system for accessing color bit depths
CN103210418A (en) * 2010-11-23 2013-07-17 杜比实验室特许公司 Content metadata enhancement of high dynamic range images
US20130241931A1 (en) * 2012-03-14 2013-09-19 Dolby Laboratiories Licensing Corporation Efficient Tone-Mapping Of High-Bit-Depth Video To Low-Bit-Depth Display
CN106162130A (en) * 2015-04-15 2016-11-23 深圳市中兴微电子技术有限公司 A kind of image processing method and device, terminal
WO2017072218A1 (en) * 2015-10-30 2017-05-04 Agfa Healthcare Compressing and uncompressing method for high bit-depth medical gray scale images
CN112689139A (en) * 2021-03-11 2021-04-20 北京小鸟科技股份有限公司 Video image color depth transformation method, system and equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008056327A2 (en) * 2006-11-10 2008-05-15 Comombo Gmbh Quality assurance method for use in system with limited memory
US20110229040A1 (en) * 2010-03-16 2011-09-22 Pixia Corp. Method and system for converting an image
US20110262037A1 (en) * 2010-04-23 2011-10-27 Kabushiki Kaisha Toshiba Image encoding apparatus and method for the same and image decoding apparatus and method for the same
CN103210418A (en) * 2010-11-23 2013-07-17 杜比实验室特许公司 Content metadata enhancement of high dynamic range images
CN102567936A (en) * 2010-12-30 2012-07-11 新奥特(北京)视频技术有限公司 Method and system for multi-digit depth multi-resolution ratio image editing
CN103186544A (en) * 2011-12-28 2013-07-03 广东新岸线计算机系统芯片有限公司 Method and system for accessing color bit depths
US20130241931A1 (en) * 2012-03-14 2013-09-19 Dolby Laboratiories Licensing Corporation Efficient Tone-Mapping Of High-Bit-Depth Video To Low-Bit-Depth Display
CN106162130A (en) * 2015-04-15 2016-11-23 深圳市中兴微电子技术有限公司 A kind of image processing method and device, terminal
WO2017072218A1 (en) * 2015-10-30 2017-05-04 Agfa Healthcare Compressing and uncompressing method for high bit-depth medical gray scale images
CN112689139A (en) * 2021-03-11 2021-04-20 北京小鸟科技股份有限公司 Video image color depth transformation method, system and equipment

Similar Documents

Publication Publication Date Title
EP3499410A1 (en) Image processing method and apparatus, and electronic device
CN110795095A (en) Method and system for establishing business logic component and business component and generating page
CN113628304B (en) Image processing method, image processing device, electronic equipment and storage medium
EP2086220A1 (en) Imaging device, image reproducing device, image printing device, imaging device control method, image correcting method for image reproducing device, and image correcting method for image printing device
CN106126423A (en) The method of testing of game application, Apparatus and system
CN106686333A (en) Method for producing video added watermarks for Android equipment
CN112601031A (en) Method and device for uploading correction coefficient of LED pixel, storage medium and processor
CN109801342B (en) Method and device for dynamically identifying mapping fit degree in running process on mobile equipment
US20170098427A1 (en) Information processing apparatus, information recording medium, image processing method, and program
US20030184812A1 (en) Image processing apparatus and method
CN112052000A (en) Component multiplexing and rendering method and device
CN105227873A (en) A kind of method of testing of on-chip study data and device
CN114244968B (en) Image conversion method, image conversion device and image signal generator
CN106022010A (en) File display method and device
CN111013131B (en) Delay data acquisition method, electronic device and storage medium
CN114428869A (en) Test image output display method and device and image signal generator
CN114245030A (en) Method and device for displaying test image by upper computer and image signal generator
US11599246B2 (en) Display device and display method thereof
US7259875B1 (en) Conversion of unformatted data to a viewable format using a plurality of plug-able formatters
CN108683842B (en) Panoramic camera and method and device for outputting panoramic video
CN114268704B (en) Image data conversion method, conversion device, signal generator, and storage medium
CN117573795B (en) Ground object display distinguishing method and device
JP2004166195A (en) Image data generating apparatus, image data reproducing apparatus, image data generating method, and image data reproducing method
CN111950727B (en) Neural network training and testing method and device for image data
JP7140511B2 (en) Electronics

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination