[go: up one dir, main page]

CN114245030B - Method, device and image signal generator for displaying test images on a host computer - Google Patents

Method, device and image signal generator for displaying test images on a host computer Download PDF

Info

Publication number
CN114245030B
CN114245030B CN202111565331.6A CN202111565331A CN114245030B CN 114245030 B CN114245030 B CN 114245030B CN 202111565331 A CN202111565331 A CN 202111565331A CN 114245030 B CN114245030 B CN 114245030B
Authority
CN
China
Prior art keywords
image file
preset
depth value
color depth
data
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.)
Active
Application number
CN202111565331.6A
Other languages
Chinese (zh)
Other versions
CN114245030A (en
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 CN202111565331.6A priority Critical patent/CN114245030B/en
Publication of CN114245030A publication Critical patent/CN114245030A/en
Application granted granted Critical
Publication of CN114245030B publication Critical patent/CN114245030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/703SSIS architectures incorporating pixels for producing signals other than image signals
    • H04N25/705Pixels for depth measurement, e.g. RGBZ
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明公开了一种上位机显示测试图像的方法、装置及图像信号发生器。该方法包括:获取步骤:获取预设图像文件;预设图像文件包括数据头和用于存储实际数据的实际数据存储区,数据头包括位深值和色深值;解析步骤:解析预设图像文件,以得到色深值和位深值;读取步骤:根据色深值和位深值在实际数据存储区读取预设图像文件中每个像素的每个子像素的第一有效数据;转换步骤:将第一有效数据转换成标准图像文件中的第二有效数据;根据第二有效数据生成标准图像文件,以便显示该标准图像文件。本发明可以使得上位机系统能正确显示色深为非8bit的图像文件的方法,以适应对不同色深类型的待测显示模组输出相应色深的测试图像的场景。

The present invention discloses a method, device and image signal generator for displaying a test image on a host computer. The method comprises: an acquisition step: acquiring a preset image file; the preset image file comprises a data header and an actual data storage area for storing actual data, and the data header comprises a bit depth value and a color depth value; a parsing step: parsing the preset image file to obtain the color depth value and the bit depth value; a reading step: reading the first valid data of each sub-pixel of each pixel in the preset image file in the actual data storage area according to the color depth value and the bit depth value; a conversion step: converting the first valid data into the second valid data in the standard image file; generating a standard image file according to the second valid data so as to display the standard image file. The present invention can enable the host computer system to correctly display an image file with a color depth other than 8 bits, so as to adapt to the scenario of outputting a test image with a corresponding color depth for a display module to be tested of different color depth types.

Description

Method and device for displaying test image by upper computer and image signal generator
Technical Field
The invention relates to the field of display equipment detection, in particular to a method and a device for displaying a test image by an upper computer and an image signal generator.
Background
The types of display panels are many in the prior art, and different display panels support displaying images with different color depths. The single channel color depth of one component in the color system of the image pixel (Red Green Blue, RGB for short) may be 6, 8, 10, 12 bits (binarydigit, bit for short). In the field of display devices, the color depth of a pixel is generally described by a single channel color depth expression of one component of RGB, that is, a single channel color depth.
In the technical field of display equipment detection, a test image is required to be output to a display module to be detected through an image signal generator (Pattern Generator, PG), and after the display equipment to be detected is subjected to screen pointing, a corresponding preview image is required to be displayed by an upper computer system of the PG equipment, wherein the preview image is a thumbnail preview image corresponding to the image, so that a user can observe the thumbnail preview image on the upper computer system conveniently to view the current test image, and a UI control and an associated program library of the upper computer equipment called by the upper computer system can only correctly read an image file with the conventional color depth of 8bit standard types, and then the thumbnail preview image is displayed. The UI control cannot correctly analyze and correctly read the image data with the color depth of 6, 10 and 12 bits, and the thumbnail preview image cannot be correctly displayed.
Specifically, in practical application, (1) an image file with a color depth of 6 bits is similar to an image file with a color depth of 8 bits, but the highest 2 bits in each byte of RGB of the image file with a color depth of 6 bits is 0, when an image file with a color depth of 6 bits is opened by a common picture player, the image file with a color depth of 24 bits (color depth of 8 bits) can be opened, but the color displayed by opening is not the original color that the file really should display. (2) When an image file with a color depth of 10 bits is opened by a common picture player, the image file can be opened as a bmp picture with a bit depth of 32 bits in an RGBA format, but the color displayed by opening is not the original color which the file really should display. (3) For an image file with a color depth of 12 bits, a typical picture player is not opened.
Therefore, a method for correctly displaying an image file with a color depth of not 8 bits by using an upper computer system is urgently needed at present, so as to output scenes of test images with corresponding color depths to display modules to be tested with different color depth types.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for displaying a test image by an upper computer and an image signal generator, which are used for solving the problem that the upper computer in the prior art cannot accurately display an image file.
In order to achieve the above object, a first aspect of the present invention provides a method for displaying a test image on a host computer, the method comprising:
The method comprises the steps of 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 the preset image file to obtain a color depth value and a bit depth value;
reading the first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value;
And a conversion step of converting the first effective data into second effective data in the standard image file and generating the standard image file according to the second effective data so as to facilitate the standard image file.
In the embodiment of the present invention, the obtaining step further includes:
judging whether the suffix name of the current image file is a preset mark or not;
under the condition that the suffix name of the current image file is a preset identifier, judging that the current image file is a preset image file, and entering an analysis step;
And under the condition that the suffix name of the current image file is not a preset identifier, judging that the current image file is a standard image file, and directly displaying the preset image file.
In the embodiment of the present invention, the parsing step further includes:
judging whether the analyzed color depth value is an initial value or not;
and if the color depth value is not the initial value, entering a reading step.
In an embodiment of the present invention, the data header further includes a preset byte offset, an image height and an image width,
Analyzing the preset image file to obtain preset byte offset, image height and image width;
the reading step further comprises the steps of determining the initial position of the actual data storage area according to the preset byte offset, and reading the first effective data of each sub-pixel of each pixel in the preset image file from the initial 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 head further comprises a preset byte offset and a file size;
Analyzing the preset image file to obtain the file size and the preset byte offset;
The reading step further comprises the steps of determining the initial position of the actual data storage area according to the preset byte offset, and reading the first effective data of each sub-pixel of each pixel in the preset image file from the actual data storage area according to the file size, the bit depth value and the color depth value from the initial position.
In an embodiment of the present invention, the data header further includes a subpixel color sequence of the pixels;
analyzing the preset image file to obtain a sub-pixel color sequence;
The conversion step further includes converting the first valid data into second valid data in the standard image file according to the sub-pixel color sequence, and generating the standard image file according to the second valid data so as to display the standard image file.
In an embodiment of the present invention, the method further includes:
and generating the thumbnail according to the standard image file and displaying the thumbnail.
The second aspect of the present invention provides an apparatus for displaying a test image on a host computer, the apparatus comprising:
the device comprises an acquisition module, a color depth acquisition module and a color depth acquisition 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 color depth value and a bit depth value;
The reading module is used for reading the first effective data of each sub-pixel of each pixel in the preset image file in the actual data storage area according to the color depth value and the bit depth value;
And the conversion module is used for converting the first effective data into second effective data in the standard image file, and generating the standard image file according to the second effective data so as to facilitate the standard image file.
A third aspect of the present invention provides an image signal generator comprising:
a memory configured to store instructions, and
And the processor is configured to call the instruction from the memory and can realize the method for displaying the test image by the upper computer when executing the instruction.
A fourth aspect of the present invention provides a machine-readable storage medium having stored thereon instructions for causing a machine to perform a method of displaying a test image according to the above-described host computer.
According to the technical scheme, the preset image file is analyzed to obtain the color depth value and the bit depth value, the first effective data of each sub-pixel of each pixel in the preset image file are read in the actual data storage area according to the color depth value and the bit depth value, the first effective data are further converted into the second effective data in the standard image file, the standard image file is generated according to the second effective data, and the standard image file is displayed. Therefore, the upper computer system can correctly display the image file with the color depth of not 8 bits, so that the upper computer and the display module to be tested display the same test image in the test, and the upper computer can synchronously display the test image in the scene of outputting the test image with the corresponding color depth to the display module to be tested with different color depth types.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of 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, without limitation, the embodiments of the invention. In the drawings:
fig. 1 schematically shows a flowchart of a method for displaying a test image by a host computer according to an embodiment of the invention;
Fig. 2 schematically illustrates a structural diagram of a preset image file according to an embodiment of the present invention;
fig. 3 schematically illustrates a structural diagram of an apparatus for displaying a test image by a host computer according to an embodiment of the present invention;
fig. 4 schematically shows a block diagram of an image signal generator according to an embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it should be understood that the detailed description described herein is merely for illustrating and explaining the embodiments of the present invention, and is not intended to limit the embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and rear are referred to in the embodiments of the present invention), the directional indications are merely used to explain the relative positional relationship, movement conditions, and the like between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments 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 a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
Fig. 1 schematically shows a flowchart of a method for displaying a test image by a host computer according to an embodiment of the invention. As shown in fig. 1, an embodiment of the present invention provides a method for displaying a test image on a host computer, which may include the following steps:
The method comprises the steps of obtaining 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 step 104, analyzing the preset image file to obtain a color depth value and a bit depth value;
A reading step 106 of reading first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value;
And a conversion step 108 of converting the first effective data into second effective data in the standard image file and generating the standard image file according to the second effective data so as to display the standard image file.
In the embodiment of the invention, the preset image file refers to a preset image file generated according to the display module to be tested. Wherein the preset image file includes a data header and an actual data storage area for storing an actual area. That is, the real data storage area, which is an area with respect to the non-real data stored in the data header, and the data header, which defines two fields for storing the color depth value and the bit depth value, respectively, are spliced to form the preset image file.
The data head comprises a color depth value matched with the display module to be tested and a bit depth value corresponding to the color depth value, specifically, when the color depth of an image required by the display module to be tested is 8 bits, the corresponding set bit depth value is 24 bits (under RGB scene) or 32 bits (under RGBX scene), when the color depth of the image required by the display module to be tested is 6 bits, the corresponding set bit depth value is 24 bits, when the color depth of the image required by the display module to be tested is 10 bits, the corresponding set bit depth value is 32 bits, and when the color depth of the image required by the display module to be tested is 12 bits, the corresponding set bit depth value is 40 bits.
Fig. 2 schematically illustrates 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) sequence, a file size, an image width, an image height, and a bit depth value, among others. The color depth value refers to the number of bits of each color channel, the bit depth value refers to the number of bits occupied by each pixel and the unit of a preset byte offset is bytes, the unit is the number of bytes from the initial storage position of a data head to the initial storage position of an actual data storage area, the image height and the image width represent the number of rows and columns of transmission pixels, namely the resolution size of an image, the unit of the file size is bytes, and the file size is the number of bytes of the preset byte offset+the number of bytes occupied by the image with the resolution size represented by the image width and the height.
In the embodiment of the invention, the preset image file can be obtained by the upper computer by analyzing the preset image file by sending the preset image file to the image signal generator in the form of a test file packet, or can be directly generated by the image signal generator, or 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 the user can set related parameters on an image editing interface according to an image requirement required by the display module to be tested, for example, whether to generate a standard image file or a preset image file, and generate 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), a preset image pattern (a common picture 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 bit depth value is 24 bits (under an RGB scene) or 32 bits (under an RGBX scene), and 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 and outputting a preset image file format and setting a bit 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 and outputting the preset image file format and setting the bit depth value to be 32 bits, and when the color depth of the image required by the display module to be tested is 12 bits, selecting and outputting the preset image file format and setting the bit depth value to be 40 bits.
After the first effective data is read, the processor converts the first effective data into second effective data in the standard image file, so that the standard image file is generated according to the second effective data, and the standard image file is displayed, so that the upper computer system can correctly display the preset image file. Specifically, the color depth, RGB order, and preset storage mode (which may be a manner of splicing sequentially from low order to high order) of each pixel, etc. of the standard image file are known, so that the first valid data is converted into the second valid data corresponding to the standard image file according to the known related information of the standard image file, and then the standard image file is generated according to the second valid data and the format of the standard image file.
According to the technical scheme, the preset image file is analyzed to obtain the color depth value and the bit depth value, the first effective data of each sub-pixel of each pixel in the preset image file are read in the actual data storage area according to the color depth value and the bit depth value, the first effective data are further converted into the second effective data in the standard image file, the standard image file is generated according to the second effective data, and the standard image file is displayed. Therefore, the upper computer system can correctly display the image file with the color depth of not 8 bits, so that the upper computer and the display module to be tested display the same test image in the test, and the upper computer can synchronously display the test image in the scene of outputting the test image with the corresponding color depth to the display module to be tested with different color depth types.
In an embodiment of the present invention, the obtaining step 102 may further include:
judging whether the suffix name of the current image file is a preset mark or not;
under the condition that the suffix name of the current image file is a preset identifier, judging that the current image file is a preset image file, and entering an analysis step;
And under the condition that the suffix name of the current image file is not a preset mark, judging that the current image file is a standard image file, and directly displaying the image file.
Specifically, the suffix names of the standard image file and the preset image file may each contain an identification, for example, the standard image file and the preset image file are distinguished by the suffix names. In the embodiment of the present invention, the preset image file may include a preset identifier. The processor may determine whether the current image file is a preset image file according to whether the suffix name of the current image file is a preset identifier. And under the condition that the suffix name of the current image file is a preset identifier, judging that the current image file is the preset image file, entering an analysis step, otherwise, indicating that the current image file is a standard image file, and directly displaying the image file. By judging whether the current image file is a preset image file or not, the mode of processing can be selected better and quickly according to the type of the current image file, and the efficiency of displaying the test image by the upper computer is improved.
In an embodiment of the present invention, the parsing step 104 may further include:
judging whether the analyzed color depth value is an initial value or not;
and if the color depth value is not the initial value, entering a reading step.
Specifically, the processor reads and analyzes the preset image file to obtain a data head of the preset image file. It is determined whether the color depth value contained in the data header is an initial value, for example, 0. And under the condition that the color depth value is not 0, indicating that the assignment of the color depth value forms a preset image file, and entering a reading step to improve the image processing efficiency.
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 parsing step 104 may further include parsing the preset image file to obtain the preset byte offset, the image height, and the image width;
The reading step 106 may further comprise determining a starting position of the real data storage area according to the preset byte offset, and reading the first valid data of each sub-pixel of each pixel in the preset image file from the starting position according to the image height, the image width, the bit depth value and the color depth value in the real data storage area.
In particular, the data header may include a preset byte offset, an image height, an image width. The processor can obtain the preset byte offset, the image height and the image width after analyzing the preset image file. Therefore, the initial position of the actual data storage area can be determined according to the preset byte offset, and then the first effective data of each sub-pixel of all pixels are read in the actual data storage area from the initial position according to the image height, the image width, the bit depth value and the color depth value. The principle of the method is that the initial position of actual data is known, the total number of stored pixels is also 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 a preset image file according to the color depth, the bit depth and the preset pixel storage mode (the mode of splicing from low order to high order in sequence), and the effective data is the first effective data.
In the embodiment of the invention, the data head can also comprise a preset byte offset and a file size;
The parsing step 104 may further include parsing a preset image file to obtain a file size and a preset byte offset;
The reading step 106 may further include determining a start position of the real data storage area according to the preset byte offset, and reading the first valid data of each sub-pixel of each pixel in the preset image file from the real data storage area according to the file size, the bit depth value, and the color depth value from the start position.
Specifically, the data header may further include a preset byte offset and a file size. The file size may be automatically calculated from the image height and the image width, which are set by the user based on the properties 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 the starting position of the actual data storage area can be determined according to the preset byte offset. And reading the first effective data of each sub-pixel of all pixels from the actual data storage area from the starting position according to the file size, the color depth value and the bit depth value. The principle of the method is that the initial position and total data byte number of actual data storage are known, and the color depth value and 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 according to the color depth, the bit depth and the preset pixel storage mode to serve as first effective data. Of course, in practical application, the data head may further include an image height and an image width, so that the data head may be obtained by parsing the preset image file when the image height and the image width are required in the back-end development process, thereby having good adaptability.
In an embodiment of the present invention, the data header may further include a subpixel color sequence of the pixels;
The parsing step 104 may further include parsing the preset image file to obtain a subpixel color sequence;
The converting step 108 may further include converting the first valid data into second valid data in the standard image file according to the subpixel color sequence and generating the standard image file according to the second valid data so as to display the standard image file.
Specifically, since the color sequence of the sub-pixels of the standard image file is known, such as RGB, and the color sequence of the sub-pixels analyzed in step 104 is GBR, in step 108, the first valid data of the sub-pixels G of the preset image file needs to be converted into the second valid data of the standard image file, and similarly, the sub-pixels B and R of the preset image file also need to be converted into the second valid data of the standard image file, and finally the actual data of the standard image file can be obtained by splicing the second valid data respectively converted from GBR according to the RGB sequence of the standard image file and the known pixel storage mode, and the standard image file can be obtained according to the actual data.
It is understood that the data header may also include a sub-pixel color (RGB) sequence. Thus, RGB sequence can be obtained when the preset image file is analyzed, and setting the RGB sequence can enable the format of the preset image file to be more universal. If the hardware has requirements on the sequence of RGB (for example, a certain chip IP is designed according to a certain RGB sequence) when implementing image transmission or other processing, the format expansion of the preset image file can be adapted to various requirements of the related field. When the preset image file is generated, the method can be directly generated according to the required RGB sequence, and when effective data is read from the preset image file, no additional conversion or processing is needed, so that the data can be conveniently obtained and the development of a user is facilitated. When developing according to the format of the preset image file, the third party user can flexibly set the 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 an embodiment of the present invention, the method may further include:
and generating the thumbnail according to the standard image file and displaying the thumbnail.
Specifically, the processor generates a standard image file according to the effective data of each pixel of the standard image, controls the UI space call library function to generate a thumbnail from the standard image file, and displays the thumbnail.
The method for displaying the test image by the upper computer can be applied to the method for displaying the test image by the upper computer before testing the display module to be tested, the standard image file converted by the preset image file is stored, the upper computer acquires the standard image file corresponding to the current test image file in real time and displays the standard image file when testing the display module to be tested, and further, the thumbnail is generated by the standard image file converted by the preset image file and stored, and the thumbnail of the standard image file corresponding to the current test image file is acquired and displayed by the upper computer in real time when testing the display module to be tested. Therefore, in some special scenes, the user needs to develop the upper computer according to own business, and the thumbnail can be normally displayed by the upper computer by using the mode.
Fig. 3 schematically shows a schematic structural diagram of an apparatus for displaying a test image by a host computer according to an embodiment of the present invention. As shown in fig. 3, an embodiment of the present invention provides an apparatus for displaying a test image on a host computer, where the apparatus may include:
the acquisition module 302 is configured to acquire 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 a preset image file to obtain a color depth value and a bit depth value;
A reading module 306, configured to read, in the actual data storage area, the first valid data of each sub-pixel of each pixel in the preset image file according to the color depth value and the bit depth value;
the conversion module 308 is configured to convert the first valid data into second valid data in the standard image file, and generate the standard image file according to the second valid data so as to facilitate the standard image file.
In the embodiment of the 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 for storing an actual area, and the data head comprises a bit depth value and a color depth value of the preset image file. That is, the real data storage area, which is an area with respect to the non-real data stored in the data header, and the data header, which defines two fields for storing the color depth value and the bit depth value, respectively, are spliced to form the preset image file.
The data head comprises a color depth value matched with the display module to be tested and a bit depth value corresponding to the color depth value, specifically, when the color depth of an image required by the display module to be tested is 8 bits, the corresponding set bit depth value is 24 bits (under RGB scene) or 32 bits (under RGBX scene), when the color depth of the image required by the display module to be tested is 6 bits, the corresponding set bit depth value is 24 bits, when the color depth of the image required by the display module to be tested is 10 bits, the corresponding set bit depth value is 32 bits, and when the color depth of the image required by the display module to be tested is 12 bits, the corresponding set bit depth value is 40 bits.
As shown in fig. 2, the preset image file of the embodiment of the present invention may include a data header and an actual data storage area. The data header may include, but is not limited to, a preset byte offset, a color depth value, a sub-pixel color (RGB) sequence, an identification number, a file size, an image width, an image height, and a bit depth value, among others. The color depth value refers to the number of bits of each color channel, the bit depth value refers to the number of bits occupied by each pixel and the unit of a preset byte offset is bytes, the unit is the number of bytes from the initial storage position of a data head to the initial storage position of an actual data storage area, the image height and the image width represent the number of rows and columns of transmission pixels, namely the resolution size of an image, the unit of the file size is bytes, and the file size is the number of bytes of the preset byte offset+the number of bytes occupied by the image with the resolution size represented by the image width and the height.
In the embodiment of the invention, the preset image file can be obtained by the upper computer by analyzing the preset image file by sending the preset image file to the image signal generator in the form of a test file packet, or can be directly generated by the image signal generator, or 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 the user can set related parameters on an image editing interface according to an image requirement required by the display module to be tested, for example, whether to generate a standard image file or a preset image file, and generate 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), a preset image pattern (a common picture 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 bit depth value is 24 bits (under an RGB scene) or 32 bits (under an RGBX scene), and 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 and outputting a preset image file format and setting a bit 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 and outputting the preset image file format and setting the bit depth value to be 32 bits, and when the color depth of the image required by the display module to be tested is 12 bits, selecting and outputting the preset image file format and setting the bit depth value to be 40 bits.
After the first effective data is read, the processor converts the first effective data into second effective data in the standard image file, so that the standard image file is generated according to the second effective data, and the standard image file is displayed, so that the upper computer system can correctly display the preset image file. Specifically, the color depth, RGB order, and preset storage mode (which may be a manner of splicing sequentially from low order to high order) of each pixel, etc. of the standard image file are known, so that the first valid data is converted into the second valid data corresponding to the standard image file according to the known related information of the standard image file, and then the standard image file is generated according to the second valid data and the format of the standard image file.
According to the technical scheme, the preset image file is analyzed to obtain the color depth value and the bit depth value, the first effective data of each sub-pixel of each pixel in the preset image file are read in the actual data storage area according to the color depth value and the bit depth value, the first effective data are further converted into the second effective data in the standard image file, the standard image file is generated according to the second effective data, and the standard image file is displayed. Therefore, the upper computer system can correctly display the image file with the color depth of not 8 bits, so that the upper computer and the display module to be tested display the same test image in the test, and the upper computer can synchronously display the test image in the scene of outputting the test image with the corresponding color depth to the display module to be tested with different color depth types.
Fig. 4 schematically shows a block diagram of an image signal generator according to an embodiment of the invention. As shown in fig. 4, an embodiment of the present invention provides an image signal generator including:
A memory 410 configured to store instructions, and
The processor 420 is configured to call instructions from the memory 410 and to implement the above-described method of displaying test images by the host computer when executing the instructions.
In an embodiment of the present invention, the processor 420 may be configured to:
The method comprises the steps of 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 the preset image file to obtain a color depth value and a bit depth value;
reading the first effective data of each sub-pixel of each pixel in a preset image file in an actual data storage area according to the color depth value and the bit depth value;
And a conversion step of converting the first effective data into second effective data in the standard image file, and generating the standard image file according to the second effective data so as to display the standard image file.
Further, the processor 420 may be further configured to:
The obtaining step further comprises:
judging whether the suffix name of the current image file is a preset mark or not;
under the condition that the suffix name of the current image file is a preset identifier, judging that the current image file is a preset image file, and entering an analysis step;
And under the condition that the suffix name of the current image file is not a preset identifier, judging that the current image file is a standard image file, and directly displaying the preset image file.
Further, the processor 420 may be further configured to:
the parsing step further includes:
judging whether the analyzed color depth value is an initial value or not;
and if the color depth value is not the initial value, entering a reading step.
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:
Analyzing the preset image file to obtain preset byte offset, image height and image width;
the reading step further comprises the steps of determining the initial position of the actual data storage area according to the preset byte offset, and reading the first effective data of each sub-pixel of each pixel in the preset image file from the initial position according to the image height, the image width, the bit depth value and the color depth value.
Further, the data header also includes a preset byte offset and a file size, and further, the processor 420 may be further configured to:
Analyzing the preset image file to obtain the file size and the preset byte offset;
The reading step further comprises the steps of determining the initial position of the actual data storage area according to the preset byte offset, and reading the first effective data of each sub-pixel of each pixel in the preset image file from the actual data storage area according to the file size, the bit depth value and the color depth value from the initial position.
Further, the data header also includes a subpixel color order of the pixels, further, the processor 420 may be further configured to:
analyzing the preset image file to obtain a sub-pixel color sequence;
The conversion step further includes converting the first valid data into second valid data in the standard image file according to the sub-pixel color sequence, and generating the standard image file according to the second valid data so as to display the standard image file.
Further, the processor 420 may be further configured to:
and generating the thumbnail according to the standard image file and displaying the thumbnail.
According to the technical scheme, the preset image file is analyzed to obtain the color depth value and the bit depth value, the first effective data of each sub-pixel of each pixel in the preset image file are read in the actual data storage area according to the color depth value and the bit depth value, the first effective data are further converted into the second effective data in the standard image file, the standard image file is generated according to the second effective data, and the standard image file is displayed. Therefore, the upper computer system can correctly display the image file with the color depth of not 8 bits to enable the upper computer and the display module to be tested to display the same test image during testing, and the upper computer can synchronously display the test image under the scene that the upper computer system can output the test image with the corresponding color depth to the display module to be tested with different color depth types.
The embodiment of the invention also provides a machine-readable storage medium, which stores instructions for causing a machine to execute the method for displaying test images according to the upper computer.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. 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 storage media for a computer 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 disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.

Claims (9)

1. A method for displaying a test image on a host computer, the method comprising:
The method comprises the steps of acquiring a preset image file, judging whether the suffix name of the current image file is a preset mark or not, judging that the current image file is the preset image file when the suffix name of the current image file is the preset mark, and entering an analysis step, judging that the current image file is a standard image file when the suffix name of the current image file is not the preset mark, and directly displaying the image file;
Analyzing the preset image file to obtain the color depth value and the bit depth value;
reading the first effective data of each sub-pixel of each pixel in the preset image file in an actual data storage area according to the color depth value and the bit depth value;
A conversion step of converting the first effective data into second effective data in a standard image file, generating the standard image file according to the second effective data so as to display the standard image file;
The method is applied to converting the preset image file into the standard image file and storing the standard image file before testing the display module to be tested, an upper computer acquires the standard image file corresponding to the current test image file in real time and displays the standard image file when testing the display module to be tested, the upper computer comprises an image editing module, and whether the standard image file or the preset image file is generated or not is determined according to image requirements required by the display module to be tested and related parameters set by the image editing module.
2. The method of claim 1, wherein the parsing step further comprises:
judging whether the analyzed color depth value is an initial value or not;
And if the color depth value is not the initial value, entering the reading step.
3. The method of claim 1, wherein the data header further comprises a preset byte offset, an image height, and an image width,
The parsing step further includes parsing the preset image file to obtain the preset byte offset, the image height and the image width;
The reading step further comprises the steps of determining a starting position of the actual data storage area according to the preset byte offset, and reading first effective data of each sub-pixel of each pixel in the preset image file from the actual data storage area according to the image height, the image width, the bit depth value and the color depth value from the starting position.
4. The method of claim 1, wherein the header further comprises a preset byte offset and file size;
the parsing step further includes parsing the preset image file to obtain the file size and the preset byte offset;
The reading step further comprises the steps of determining the initial position of the actual data storage area according to the preset byte offset, and reading the first valid data of each sub-pixel of each pixel in the preset image file from the actual data storage area according to the file size, the bit depth value and the color depth value from the initial position.
5. The method of claim 1, wherein the data header further comprises a subpixel color sequence of pixels;
The analyzing step further comprises the step of analyzing the preset image file to obtain a sub-pixel color sequence;
The conversion step further comprises the steps of converting the first effective data into second effective data in a standard image file according to the color sequence of the sub-pixels, and generating the standard image file according to the second effective data so as to display the standard image file.
6. The method according to claim 1, wherein the method further comprises:
And generating a thumbnail according to the standard image file and displaying the thumbnail.
7. An apparatus for displaying a test image on a host computer, the apparatus comprising:
The device comprises an acquisition module, a judgment module and an analysis 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 the color depth value and the bit depth value;
The reading module is used for reading the first effective data of each sub-pixel of each pixel in the preset image file in an actual data storage area according to the color depth value and the bit depth value;
The conversion module is used for converting the first effective data into second effective data in a standard image file, and generating the standard image file according to the second effective data so as to display the standard image file;
The device is applied to converting the preset image file into the standard image file and storing the standard image file before testing the display module to be tested, an upper computer acquires the standard image file corresponding to the current test image file in real time and displays the standard image file when testing the display module to be tested, the upper computer comprises an image editing module, and whether the standard image file or the preset image file is generated or not is determined according to the image requirement required by the display module to be tested and related parameters set by the image editing module.
8. An image signal generator, comprising:
a memory configured to store instructions, and
A processor configured to invoke the instructions from the memory and when executing the instructions is capable of implementing a method of displaying test images in accordance with any one of claims 1 to 6.
9. A machine-readable storage medium having stored thereon instructions for causing a machine to perform the method of displaying test images on a host computer according to any one of claims 1 to 6.
CN202111565331.6A 2021-12-20 2021-12-20 Method, device and image signal generator for displaying test images on a host computer Active CN114245030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111565331.6A CN114245030B (en) 2021-12-20 2021-12-20 Method, device and image signal generator for displaying test images on a host computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111565331.6A CN114245030B (en) 2021-12-20 2021-12-20 Method, device and image signal generator for displaying test images on a host computer

Publications (2)

Publication Number Publication Date
CN114245030A CN114245030A (en) 2022-03-25
CN114245030B true CN114245030B (en) 2025-03-07

Family

ID=80759725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111565331.6A Active CN114245030B (en) 2021-12-20 2021-12-20 Method, device and image signal generator for displaying test images on a host computer

Country Status (1)

Country Link
CN (1) CN114245030B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689139A (en) * 2021-03-11 2021-04-20 北京小鸟科技股份有限公司 Video image color depth transformation method, system and equipment

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020027603A1 (en) * 2000-09-01 2002-03-07 Seiko Epson Corporation Apparatus, method, signal and computer program product configured to provide output image adjustment for image files
JP4470800B2 (en) * 2005-04-19 2010-06-02 富士フイルム株式会社 Image processing method, image processing system, and image processing program
KR20060112411A (en) * 2005-04-27 2006-11-01 엘지전자 주식회사 Bitmap file conversion device and method
WO2009089091A2 (en) * 2008-01-04 2009-07-16 Silicon Image, Inc. Testing of color output of display devices
US8432413B2 (en) * 2008-11-17 2013-04-30 Xrfiles, Inc. System and method for the display of extended bit depth high resolution images
US8411970B2 (en) * 2010-03-16 2013-04-02 Pixia Corp. Method and system for determining statistical data for image pixels having a higher bit depth per band
US8988552B2 (en) * 2011-09-26 2015-03-24 Dolby Laboratories Licensing Corporation Image formats and related methods and apparatuses
CN103186544B (en) * 2011-12-28 2017-11-14 广东新岸线计算机系统芯片有限公司 A kind of color bits depth access method and system
US9769446B1 (en) * 2015-03-10 2017-09-19 Lentix, Inc. Digital image dynamic range processing apparatus and method
CN108141505B (en) * 2015-10-30 2020-11-06 爱克发医疗保健公司 Compression and decompression methods for high-bit-depth medical grayscale images
CN105912591A (en) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 Method and device for looking back image documents and mobile terminal
CN106341670B (en) * 2016-11-29 2017-09-22 广东欧珀移动通信有限公司 Control method, control device and electronic installation
US10593248B2 (en) * 2017-02-07 2020-03-17 Samsung Display Co., Ltd. Method and apparatus for a sink device to receive and process sub-sampled pixel data
KR102509132B1 (en) * 2017-06-09 2023-03-13 소니 세미컨덕터 솔루션즈 가부시키가이샤 Video transmitter and video receiver
CN108810507B (en) * 2018-06-15 2019-10-29 京东方科技集团股份有限公司 A kind of gamut conversion method and gamut converter, display device
WO2020215182A1 (en) * 2019-04-22 2020-10-29 深圳市大疆创新科技有限公司 Image data processing method, transmission method, transmission apparatus and data interface switching apparatus
CN115066897A (en) * 2019-11-14 2022-09-16 抖音视界有限公司 Coding and decoding of low bit depth visual media data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689139A (en) * 2021-03-11 2021-04-20 北京小鸟科技股份有限公司 Video image color depth transformation method, system and equipment

Also Published As

Publication number Publication date
CN114245030A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US10033931B2 (en) Image processing apparatus and image processing method for processing still image data
EP3522527B1 (en) Reproduction method, creation method, reproduction device, and creation device
US9258458B2 (en) Displaying an image with an available effect applied
CN102469258A (en) Image processor, method of controlling the same, and storage medium
US20030184812A1 (en) Image processing apparatus and method
WO2015166644A1 (en) Information processing apparatus, information recording medium, image processing method, and program
US8400527B2 (en) Image capture apparatus
CN105589667B (en) Method and device for capturing display image of display equipment
CN112601031A (en) Method and device for uploading correction coefficient of LED pixel, storage medium and processor
JP5355190B2 (en) Image display apparatus and method, and program
CN114245030B (en) Method, device and image signal generator for displaying test images on a host computer
CN114244968B (en) Image conversion method, image conversion device and image signal generator
US5170253A (en) Subtitling apparatus with memory control codes interspersed with graphic data
CN108627695B (en) Abnormal signal display method, spectrum analysis system and digital spectrum analyzer
CN114428869B (en) Test image output display method, device and image signal generator
US20220253183A1 (en) Display device and display method thereof
JP4298386B2 (en) Image display apparatus and method, and program
JP7458806B2 (en) Image processing device and image processing method
JP2006041586A (en) Video reproducing and displaying apparatus
CN101472127B (en) Image file generating apparatus, image file generating method and image file repair apparatus
KR102676321B1 (en) Electronic apparatus for measuring and analyzing the level of molten metal in the ladle, and operating method thereof
CN117635802B (en) Graphics card rendering test method, device, electronic device and storage medium
WO2022107635A1 (en) Imaging device, image production method, and recording medium
JP7140511B2 (en) Electronics
KR0172391B1 (en) Image Insertion Method and Image Processing Apparatus Implementing It

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
GR01 Patent grant
GR01 Patent grant