Image processing chip, testing device and testing system

By designing an image processing chip for display testing, the compressed image data is used to decompress the output, which solves the problem of high FPGA test costs, and achieves the effect of reducing storage space and cost.

CN119383284APending Publication Date: 2025-01-28SHENZHEN XIHUA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411309141.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the prior art, the cost of using FPGAs for display screen testing is high, and the image processing chip outputs uncompressed images, resulting in high storage space and cost.

Method used

Design a image processing chip, including processing units, first memory, second memory, first decompression module and image output module. The storage space and cost are reduced by storing the compressed image data and unziping the original image data when needed.

Benefits of technology

By using compressed image data, the storage space and cost of the image processing chip are reduced, and effective testing of the display screen is achieved. Compared with the FPGA test, it has cost advantages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383284A_ABST
    Figure CN119383284A_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image display, and provides an image processing chip, a test device and a test system, the image processing chip comprising: a first memory for storing compressed image data; the processing unit is connected to the first memory and the second memory and is used for reading the compressed image data stored in the first memory and outputting the compressed image data to the second memory; the second memory is connected to the first decompression module and is used for receiving and storing the compressed image data; the first decompression module is connected to the image output module and is used for reading the compressed image data from the second memory, decompressing the compressed image data into original image data and outputting the original image data to the image output module; and the image output module is used for receiving the original image data and outputting the original image data to external equipment. The image processing chip outputs the original image data to the external device according to the compressed image data, the display screen can be tested through the image processing chip, and compared with testing through an FPGA, the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image display, and in particular to an image processing chip, a testing device and a testing system. Background Art

[0002] After the display screen is produced, various functions of the display screen need to be tested.

[0003] In the related art, a Field Programmable Gate Array (FPGA) is generally used to test the display screen, but the cost of FPGA is relatively high. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present application provides an image processing chip, a testing device and a testing system, which are helpful in reducing the cost of testing display screens.

[0005] To solve the above problems, the present invention provides the following technical solutions: In a first aspect, an embodiment of the present application provides an image processing chip, the image processing chip comprising: a processing unit, a first memory, a second memory, a first decompression module and an image output module; wherein, The first memory is used to store compressed image data; The processing unit is connected to the first memory and the second memory, and is used to read the compressed image data stored in the first memory and output the compressed image data to the second memory; The second memory is connected to the first decompression module and is used to receive and store the compressed image data; The first decompression module is connected to the image output module, and is used to read the compressed image data from the second memory, decompress the compressed image data into original image data, and output the original image data to the image output module; The image output module is used to receive the original image data and output it to an external device.

[0006] In some embodiments, the chip further includes: a second decompression module; The second decompression module is connected to the processing unit and the second memory, and is used to read the first compression unit in the compressed image data stored in the second memory, decompress the first compression unit to obtain a decompression unit, and send the decompression unit to the processing unit.

[0007] In some embodiments, the processing unit is further used to receive the decompression unit, rewrite the decompression unit to obtain a rewrite unit, compress the rewrite unit into a second compression unit, and write the second compression unit into the second memory.

[0008] In a second aspect, an embodiment of the present application provides a testing device, comprising an image processing chip as in the first aspect.

[0009] In a third aspect, an embodiment of the present application provides a test system, the test system comprising: a display device and the test apparatus of the second aspect; wherein, The testing device is connected to the display device and is used to output the original image data to the display device; The display device is used for receiving the original image data and displaying an image according to the original image data.

[0010] In some embodiments, the display device includes a driver chip and a display screen; wherein, The driving chip is used to receive the original image data and control the display screen to display an image according to the original image data.

[0011] In some embodiments, the driving chip is connected to the processing unit; When the display screen is touched, the driver chip is used to obtain touch data and send an interrupt signal to the processing unit; The processing unit is used for interrupting the operation being executed and acquiring the touch data after receiving the interrupt signal; The processing unit is further configured to determine a storage location of the first target compression unit in the second memory according to the touch data, and read the first target compression unit to the second decompression unit in the second memory according to the storage location; The second decompression unit is used to receive the first target compression unit, decompress the first target compression unit to obtain first image data, and send the first image data to the processing unit.

[0012] In some embodiments, the processing unit is also used to rewrite the first image data to obtain second image data, compress the second image data into a second target compression unit, and write the second target compression unit into the second memory to update the compressed image data stored in the second memory.

[0013] In some embodiments, after the processing unit writes the second target compression unit into the second memory; The first decompression module is used to read the updated compressed image data stored in the second memory, decompress the updated compressed image data into original image data, and output the original image data to the image output module; The image output module is used to receive the original image data and output it to the driving chip; The driving chip is used to update the image displayed on the display screen according to the original image data.

[0014] In some embodiments, the first target compression unit and the second target compression unit are stored in the same location in the second memory.

[0015] The present application provides an image processing chip, a test device and a test system, wherein the image processing chip includes: a processing unit, a first memory, a second memory, a first decompression module and an image output module; wherein the first memory is used to store compressed image data; the processing unit is connected to the first memory and the second memory, and is used to read the compressed image data stored in the first memory, and output the compressed image data to the second memory; the second memory is connected to the first decompression module, and is used to receive and store the compressed image data; the first decompression module is connected to the image output module, and is used to read the compressed image data from the second memory, decompress the compressed image data into original image data, and output the original image data to the image output module; the image output module is used to receive the original image data and output it to an external device. In the present application, the image processing chip outputs the original image data to the external device according to the compressed image data, and the display screen can be tested by the image processing chip, which reduces the cost compared with the test using FPGA. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a structural schematic diagram of an image processing chip provided in an embodiment of the present application.

[0017] Figure 2 It is a structural schematic diagram of a testing device provided in an embodiment of the present application.

[0018] Figure 3 This is a first schematic diagram of a test system provided in an embodiment of the present application.

[0019] Figure 4 This is a second schematic diagram of a test system provided in an embodiment of the present application.

[0020] Figure 5 It is a flowchart of an image display method provided in an embodiment of the present application.

[0021] Figure 6 It is a schematic diagram of the distribution of compression units in a display screen provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0024] After the display screen is produced, it is necessary to test various functions of the display screen, such as testing the image display function and the touch function of the display screen. Currently, a test device is usually used to test the display screen.

[0025] In the related art, the testing device generally uses a Field Programmable Gate Array (FPGA) to test the display screen, but the cost of FPGA is relatively high.

[0026] The cost can be reduced by using image processing chips, such as Scaler chips, instead of FPGA for testing. However, current image processing chips generally output uncompressed images, such as images in BMP (bitmap) format, to the display screen for testing. As a result, the first memory and the second memory in the image processing chip require a larger storage space, and the cost remains high.

[0027] Based on the above-mentioned defects, the present application provides an image processing chip, a testing device and a testing system.

[0028] See also Figure 1 , Figure 1 Schematic diagram of the structure of an image processing chip provided in an embodiment of the present application. Figure 1 As shown, the image processing chip 1 includes: a processing unit 10 , a first memory 20 , a second memory 30 , a first decompression module 40 and an image output module 50 .

[0029] In some implementations, the image processing chip includes a Scaler chip and a digital signal processing technology chip (Digital Signal Processing, DSP), etc.

[0030] Preferably, the image processing chip is a Scaler chip, which is an integrated circuit used for video signal processing. It can convert the input analog video signal into a digital signal, and decode, encode, adjust and process it, and finally output it to a display device. The functions of the Scaler chip include adjusting the resolution of the video signal, and performing operations such as zooming in, zooming out, and cropping the image.

[0031] Furthermore, although FPGA also has image processing functions, it is not specially designed for the conversion between analog video signals and digital signals. Although FPGA can theoretically realize some functions of the Scaler chip through programming, in actual applications, FPGA needs to be programmed and configured in a complex manner according to the specific video signal format, encoding standard and processing requirements. This may require a lot of development time and resources, and may not achieve the optimization effect of the Scaler chip in terms of performance, power consumption and cost.

[0032] In some implementations, the first memory 20 is used to store compressed image data.

[0033] Optionally, the first storage 20 is a flash memory.

[0034] Furthermore, the first storage 20 can be a NOR flash memory, which is a non-volatile memory used to store program code, firmware, operating system and other data. NOR Flash has a lower storage density and higher cost, but has a faster read speed, lower read latency and better random access performance.

[0035] In some implementations, the processing unit 10 communicates with the first memory 20 via a serial peripheral interface (SPI).

[0036] In some embodiments, compressed image data is stored in the first storage 20, and the format of the uncompressed image is, for example, BMP (bitmap) format. BMP uses a bit-mapped storage format and does not use any other compression except for the optional image depth. Therefore, the space occupied by the BMP file is very large.

[0037] Optionally, the format of the compressed image data stored in the first storage 20 includes a display stream compression (DSC) format, a free lossless image format (FLIF) format, a WebP format, and the like.

[0038] By using compressed image data, the storage space required for the first memory 20 and the second memory 30 can be reduced.

[0039] Preferably, the format of the compressed image data stored in the first storage 20 is DSC format, and the compression ratio is 1:4, so that the storage space required for the first storage 20 and the second storage 30 is reduced by 3 / 4, thereby reducing the hardware cost of the first storage 20 and the second storage 30.

[0040] In some embodiments, the compressed image data stored in the first storage 20 is in DSC format; wherein, image compression transmission is to compress the image data before transmission, so that high-resolution content can be output with low bandwidth, and the compressed picture performance is visually distortion-free and low-latency. Therefore, using images in DSC format can not only reduce costs, but also ensure the display effect of the display screen.

[0041] In some embodiments, the processing unit 10 is connected to the first memory 20 and the second memory 30 , and is configured to read the compressed image data stored in the first memory 20 , and output the compressed image data to the second memory 30 .

[0042] Optionally, the processing unit 10 is a micro controller unit (MCU).

[0043] In some implementations, the second memory 30 is connected to the first decompression module 40 and is used to receive and store the compressed image data.

[0044] Optionally, the second memory 30 includes a static random-access memory (RAM).

[0045] Furthermore, the second memory 30 is a static random access memory (SRAM).

[0046] In some embodiments, the first decompression module 40 is connected to the image output module 50 and is used to read the compressed image data from the second memory 30 , decompress the compressed image data into original image data, and output the original image data to the image output module 50 .

[0047] In some embodiments, the specific type of the first decompression module 40 depends on the format of the compressed image data stored in the first memory 20; illustratively, when the format of the compressed image data stored in the first memory 20 is the DSC format, the first decompression module 40 is a DSC decoder.

[0048] In some implementations, the image output module 50 is used to receive the original image data and output it to an external device.

[0049] In some embodiments, the image output module 50 includes a display interface (DisplayPort), a high-definition multimedia interface (HDMI), a mobile industry processor interface (Mobile Industry Processor Interface, MIPI), etc.

[0050] Preferably, the image output module 50 is a MIPI interface.

[0051] Optionally, the external device has a display screen, and after the image output module 50 outputs the original image data to the external device, the display screen in the external device displays an image corresponding to the original image data.

[0052] Through the above chip architecture, the image processing chip can store compressed image data in the first memory, decompress the compressed image data through the first decompression module, and output the decompressed original image data to the external device. Compared with the use of FPGA chips, it not only reduces the cost but also improves the image display effect. Moreover, compared with storing uncompressed image data in the first memory, the required storage space of the first memory and the second memory in the above chip architecture is small, which further reduces the cost.

[0053] Furthermore, in the above chip architecture, the image processing chip can output images to a display screen to test the image display function of the display screen.

[0054] However, current image processing chips usually output uncompressed images. Taking an RGB image as an example, each pixel of the RGB image includes three sub-pixels. The data of the three sub-pixels of each pixel of the uncompressed RGB image will be stored in the second memory, that is, the second memory stores data in units of pixels. Therefore, if the display screen is to be touch detected, the sub-pixel data of the pixel can be directly rewritten in the second memory to change the color of the pixel. When the display screen is touch detected, by changing the color of the pixel corresponding to the touch position, it can be detected whether the touch function of the display screen is intact.

[0055] However, when using compressed images, data is stored in the second memory in compression units, which do not include complete sub-pixel data of each pixel. Therefore, the touch detection function can no longer be achieved by directly rewriting the sub-pixel data of the pixel in the second memory.

[0056] The use of uncompressed images will cause the related storage devices in the test device, such as the above-mentioned flash memory and SRAM, to require a larger storage space, which is not only costly but also slow in data transmission speed.

[0057] Based on this, in some embodiments, the image processing chip 1 also includes: a second decompression module 60, connected to the processing unit 10 and the second memory 30, for reading the first compression unit in the compressed image data stored in the second memory 30, decompressing the first compression unit to obtain a decompression unit, and sending the decompression unit to the processing unit.

[0058] In some embodiments, the type of the second decompression module 60 corresponds to the format of the compressed image data stored in the second memory 30. For example, when the format of the compressed image data stored in the second memory 30 is not in DSC format, the second decompression module 60 is a DSC decoder.

[0059] Through the second decompression module 60, the processing unit 10 can obtain the decompression unit obtained by decompressing the first compression unit. Through the decompression unit, the value of the sub-pixel of each pixel point included in the first compression unit can be viewed, modified, and verified, which not only facilitates the management of image data, but also can rewrite the color of the pixel point.

[0060] In some embodiments, the processing unit 10 is further used to receive the decompression unit, rewrite the decompression unit to obtain a rewrite unit, compress the rewrite unit into a second compression unit, and write the second compression unit into the second memory 30.

[0061] Optionally, the processing unit 10 rewrites the pixel values ​​of one or more pixel points in the decompression unit into pixel values ​​corresponding to a preset color. Exemplarily, the preset color is red.

[0062] Optionally, after the second compression unit is written into the second memory 30, the image is re-output to an external display screen for display, and the user can observe image changes in a certain area of ​​the output image on the display screen.

[0063] In some embodiments, the processing unit obtains touch position information transmitted externally, and the touch position information is used to reflect the position where the display screen is touched. The processing unit determines the first compression unit that needs to be read in the second memory based on the touch position information, thereby reading and rewriting the first compression unit, so that the image of the touched position in the display screen changes, such as color changes, image changes, brightness changes, etc.

[0064] By means of the above method, the image processing chip can realize the pixel rewriting function when using uncompressed image data when using compressed image data, so that the image processing chip can detect the touch function of the display screen when testing the display screen.

[0065] See also Figure 2 , Figure 2 Schematic diagram of a test device provided in an embodiment of the present application. Figure 2 As shown, the testing device 100 includes the above-mentioned image processing chip 1 .

[0066] In some embodiments, the testing device 100 includes a liquid crystal module (LCM) testing box, an organic light-emitting diode display (OLED) testing box, a flexible display screen testing box, and the like.

[0067] In some embodiments, see Figure 3 , Figure 3 is a first schematic diagram of a test system provided in an embodiment of the present application. Figure 3 As shown, the test system 2 includes: the above-mentioned test device 100 and a display device 200 .

[0068] In some embodiments, the display device 200 includes a display screen, and the types of display screens include a liquid crystal display (LCD), a cathode ray tube display (CRT), an organic light-emitting diode display (OLED), and a light-emitting diode display (LED).

[0069] The display screen 200 corresponds to the type of the testing device 100 , for example, when the display screen 200 is an LCD screen, the testing device is an LCM testing box.

[0070] In some embodiments, the testing device 100 is connected to the display device 200 and is used to output raw image data to the display device 200; the display device 200 is used to receive the raw image data and display an image according to the raw image data.

[0071] In some embodiments, see Figure 4 , Figure 4 is a second schematic diagram of a test system provided in an embodiment of the present application. Figure 4 As shown, the test system 2 includes the above-mentioned test device 100 and a display device 200 .

[0072] In some embodiments, the display device 200 includes a driver chip 210 and a display screen 220 ; the driver chip 210 is used to receive the original image data and control the display screen 220 to display an image according to the original image data.

[0073] In order to realize the touch detection function of the display screen, the test device needs to determine the specific touch position when the display screen is touched. Based on this, in some embodiments, the driver chip 210 is connected to the processing unit 10; when the display screen 220 is touched, the driver chip 210 is used to obtain touch data and send an interrupt signal to the processing unit 10.

[0074] The processing unit 10 is used to interrupt the operation being executed and obtain the touch data after receiving the interrupt signal; the processing unit 10 is also used to determine the storage position of the first target compression unit in the second memory 30 according to the touch data, and read the first target compression unit to the second decompression unit 60 in the second memory 30 according to the storage position.

[0075] The second decompression unit 60 is used to receive the first target compression unit, decompress the first target compression unit to obtain first image data, and send the first image data to the processing unit 10 .

[0076] In some implementations, the processing unit 10 communicates with the driving chip 210 via a bidirectional serial communication bus (Inter-Integrated Circuit, I2C).

[0077] In some implementations, the second memory 20 stores a plurality of compression units, each of which includes a plurality of pixels, and the data of the plurality of pixels are compressed into one compression unit according to a compression algorithm.

[0078] Through the above method, the compression unit corresponding to the user touch position can be determined, and the pixel point data corresponding to the user touch position can be decompressed, so as to facilitate subsequent viewing, rewriting and other processing of the data.

[0079] In some embodiments, the processing unit 10 is also used to rewrite the first image data to obtain second image data, compress the second image data into a second target compression unit, and write the second target compression unit into the second memory 60 to update the compressed image data stored in the second memory 60.

[0080] By rewriting the first image data and updating the compressed image data stored in the second memory 60, it is advantageous to change the color of the user's touch position when the image in the display screen 220 is updated, thereby realizing the touch detection function.

[0081] In some embodiments, after the processing unit 10 writes the second target compression unit into the second memory 30; the first decompression module 40 is used to read the updated compressed image data stored in the second memory 30, decompress the updated compressed image data into original image data, and output the original image data to the image output module 50; The image output module 50 is used to receive the original image data and output it to the driving chip 210 .

[0082] The driving chip 210 is used to update the image displayed on the display screen 220 according to the original image data.

[0083] In some embodiments, the first target compression unit and the second target compression unit are stored at the same location in the second memory.

[0084] Through the above method, the display image of the display screen is updated according to the rewritten image data. If the touch function at the touch position of the display screen is valid, the color of the touch position will change after the image is updated. If the touch function at the touch position of the display screen is invalid, the color of the touch position will not change after the image is updated, thereby realizing the touch detection function of the test device on the display screen.

[0085] Specifically, the following part of the specification further describes the steps performed by the processing unit, please refer to Figure 5 , Figure 5 FIG. 1 is a flow chart of an image display method provided in an embodiment of the present application. Figure 5 As shown, the image display method 300 includes: steps 310 to 390.

[0086] Step 310: Acquire touch data generated when the display screen is touched.

[0087] In some implementations, the touch data includes at least: Coordinates of the touch point: Indicates the location of the touch event on the screen. The coordinates are usually in pixels and include X-axis and Y-axis values.

[0088] Optionally, the coordinate origin of the touch point's coordinates is the lower left corner of the screen, the positive direction of the X-axis points from the left side of the screen to the right side of the screen, and the positive direction of the Y-axis points from the bottom side of the screen to the top side of the screen.

[0089] In some implementations, the touch data further includes: 1. Touch type: The touch type may include single-point touch, multi-point touch (such as pinch-to-zoom or gesture operation), etc. Based on the number of touch points, it can be determined what type of touch operation the user is performing.

[0090] 2. Touch pressure: Some touch screens support pressure sensing, which can identify the strength of the user's touch on the screen. This information can be used for more sophisticated interactions, such as adjusting the thickness of handwriting in drawing applications.

[0091] 3. Touch duration: The duration of a touch event is also one of the important data. It can be used to distinguish between short click operations and long press operations.

[0092] 4. Touch speed: For a moving touch point, its moving speed is also useful data, which can be used to identify the speed and acceleration of the sliding operation.

[0093] 5. Touch event type: including touch start (down), touch move (move), touch end (up) and other event types, which are used to track the entire life cycle of touch operations.

[0094] Step 320: Determine the touch position according to the touch data.

[0095] In some implementations, coordinates of a touch point in the touch data are identified, and the touch position is determined according to the coordinates of the touch point.

[0096] In some implementations, the coordinates of the touch points and the touch type in the touch data are identified, and when the touch type is multi-point touch, the coordinates of each touch point are acquired respectively.

[0097] In some embodiments, at least one of touch pressure, touch duration, and touch event type in touch data is identified; when at least one of the touch pressure, touch duration, and touch event type meets preset conditions, the coordinates of the touch point in the touch data are identified, and the touch position is determined based on the coordinates of the touch point.

[0098] Optionally, the preset condition includes at least one of a touch pressure greater than a preset pressure threshold, a touch duration greater than a preset duration threshold, and a touch event being a non-touch end event.

[0099] By judging whether the touch data meets the preset conditions, it is possible to identify whether the display screen is accidentally touched. In the case of an accidental touch, subsequent operations are not performed, thus saving computing resources.

[0100] Step 330: Determine a first target compression unit in a second memory according to the touch position; wherein the memory includes a plurality of compression units, each of which is used to determine the colors of a plurality of pixel points in an image.

[0101] See also Figure 6 , Figure 6 Schematic diagram of the distribution of compression units in the display screen provided by the embodiment of the present application. Figure 6 As shown, Figure 6 The image displayed in the middle display screen 220 can be divided into 45 compression units, each compression unit includes N*M pixels, wherein N and M are both positive integers and both greater than 1, N is the pixel length of the compression unit, and M is the pixel width of the compression unit.

[0102] For ease of explanation, Figure 6 The pixel length and pixel width of each compression unit are the same, but this application does not limit the pixel length and pixel width of the compression unit.

[0103] In some embodiments, Figure 6 The coordinate origin of the touch point is the lower left corner of the screen, the positive direction of the X-axis is from the left side of the screen to the right side of the screen, and the positive direction of the Y-axis is from the bottom side of the screen to the top side of the screen.

[0104] In some embodiments, data of all compression units constitute a complete image displayed on the display screen, and each compression unit corresponds to a portion of the complete image.

[0105] Furthermore, the compression method of compressing N*M pixels into compression units determines the format of the image. The image formats include DSC, FLIF, WebP, etc. For details, please refer to the introduction in the above part of the specification, which will not be repeated here.

[0106] In some implementations, step 330 includes the following steps.

[0107] (1) Obtain the pixel length and pixel width of each compression unit.

[0108] (2) Determine the first target compression unit according to the touch coordinates, the pixel length, and the pixel width.

[0109] Specifically, the touch coordinates are in pixels, and the position of the first target compression unit corresponding to the pixel point corresponding to the touch position can be determined according to the touch coordinates, the pixel length, and the pixel width.

[0110] In some implementations, the step of determining the first target compression unit according to the touch coordinates, the pixel length, and the pixel width includes the following steps.

[0111] (2.1) determining the number of columns of the first target compression unit according to a quotient of a horizontal coordinate in the touch coordinate divided by the pixel length; (2.2) determining the number of rows of the first target compression unit according to a quotient of a vertical coordinate in the touch coordinate divided by the pixel width; (2.3) Determine a sequence number of the first target compression unit according to the number of rows and the number of columns, and determine the first target compression unit according to the sequence number.

[0112] In some embodiments, if the quotient of the horizontal coordinate in the touch coordinate divided by the pixel length is an integer, the number of columns of the first target compression unit is equal to the quotient; if the quotient of the horizontal coordinate in the touch coordinate divided by the pixel length is not an integer, the number of columns of the first target compression unit is equal to the integer part of the quotient plus one.

[0113] In some embodiments, if the quotient of the vertical coordinate in the touch coordinate divided by the pixel width is an integer, the number of rows of the first target compression unit is equal to the quotient; if the quotient of the vertical coordinate in the touch coordinate divided by the pixel width is not an integer, the number of rows of the first target compression unit is equal to the integer part of the quotient plus one.

[0114] For example, Figure 6 For example, suppose Figure 6 The pixel length and pixel width of the compression unit are both 4, the touch coordinates are (11, 20), the quotient of the horizontal coordinate in the touch coordinates divided by the pixel length is 2.75, which is not an integer, then the number of columns of the first target compression unit is equal to the integer part of the quotient plus one, that is, equal to 3; the quotient of the vertical coordinate in the touch coordinates divided by the pixel width is equal to 5, which is an integer, then the number of rows of the first target compression unit is equal to the quotient; thus, it is determined that the first target compression unit is located in the fifth row and third column, Figure 6 The sequence number of the compression unit in the fifth row and third column is 3.

[0115] In the above manner, the serial number of the compression unit touched by the user can be determined by the touch coordinates, so that the first target compression unit is determined in the memory according to the serial number, and the touch detection function when using the compressed image can be realized in combination with the subsequent steps.

[0116] Step 340: Read the first target compression unit.

[0117] In some implementations, the step of determining the first target compression unit according to the sequence number comprises the following steps.

[0118] (1) determining a start address and an end address of the first target compression unit according to the sequence number; At this time, step 340 includes the following steps.

[0119] (2) Reading the first target compression unit according to the start address and the end address.

[0120] In some embodiments, after the image is compressed into a compressed image, each compression unit in the compressed image will be numbered. When the compressed image is written to the memory, the serial number of each compression unit and the correspondence table of the start address and the end address will be written at the same time. The start address and the end address of the first target compression unit can be determined based on the serial number and the correspondence table.

[0121] Optionally, the compressed image and the correspondence table do not need to be written at the same time, but the compressed image is written first and the correspondence table is written later; or the correspondence table is written first and the compressed image is written later.

[0122] Optionally, the correspondence table may not be written into the second memory, but may be written into the first memory; or may be written into an electronic device that is communicatively connected to the test device, such as a computer or a tablet computer.

[0123] Step 350: Decompress the first target compression unit to obtain first image data.

[0124] In some implementations, the processing unit reads the data of the first target compression unit to the second decompression unit for decompression, the second decompression unit decompresses to obtain the first image data, and sends the first image data to the processing unit.

[0125] Step 360: rewrite the first image data to obtain second image data.

[0126] In some embodiments, one way to implement the touch detection function is to change the color of the image at the position where the user touches the screen after the user touches the screen. For example, in the initial state, the display screen displays a completely black image. After the user touches the screen, the color of the image at the position where the user touches the screen changes to white. At this time, the tester can know that the touch function of the screen at that location is intact.

[0127] In some implementations, step 360 includes the following steps.

[0128] (1) Determine a target pixel point in the first image data according to the touch position.

[0129] (2) Rewriting the values ​​of the sub-pixels included in the target pixel to obtain second image data.

[0130] In some embodiments, each compression unit corresponds to a reference coordinate, and the horizontal coordinate of the touch coordinate of the touch position is subtracted from the horizontal coordinate of the reference coordinate to obtain the horizontal coordinate of the position coordinate, and the vertical coordinate of the touch coordinate of the touch position is subtracted from the vertical coordinate of the reference coordinate to obtain the vertical coordinate of the position coordinate. The horizontal coordinate of the position coordinate is the column number of the target pixel point in the first target compression unit, and the vertical coordinate of the position coordinate is the row number of the target pixel point in the first target compression unit.

[0131] For example, Figure 6 For example, Figure 6 The reference coordinates of the compression unit 37 are (0, 0). If the touch coordinates are (1, 1), the position coordinates are (1, 1), which means that the target pixel point is in the first row and first column in the compression unit 37, and so on.

[0132] In some implementations, rewriting the values ​​of the sub-pixels included in the target pixel may change the color of the target pixel.

[0133] In some implementations, the screen is usually an RGB screen, and the target pixel includes a red sub-pixel, a green sub-pixel, and a blue sub-pixel, which are three sub-pixels in total.

[0134] However, the present application is not limited thereto. For example, when the screen is an RGBG screen, the target pixel includes a red sub-pixel, a green sub-pixel, a blue sub-pixel, and a green sub-pixel, a total of four sub-pixels.

[0135] In some embodiments, all pixels in the first image data have the same color, the brightness corresponding to each pixel is B0, the brightness of the rewritten target pixel in the second image data is B1, and the Weber contrast calculated by B0 and B1 is greater than the preset contrast, wherein the calculation formula of the Weber contrast C is as follows: C = (B1-B0) / B0 Optionally, the larger the value of the Weber contrast C is, the more obvious the difference between the two colors is. The size of the preset contrast can be selected as needed, and this application does not impose any limitation.

[0136] By making the Weber contrast calculated by B0 and B1 greater than the preset contrast, it can be ensured that the user can significantly observe the color change of the target pixel point, so as to intuitively judge whether the touch function at the touch position of the display screen is intact.

[0137] In some implementations, the step of determining a target pixel in the first image data according to the touch position includes the following steps.

[0138] (1) Determine a starting address of a target pixel point in the first image data according to the touch position.

[0139] Based on this, the step of rewriting the value of the sub-pixel included in the target pixel point to obtain the second image data includes the following steps.

[0140] (2) Obtain a first sub-pixel value, a second sub-pixel value, and a third sub-pixel value corresponding to a preset color.

[0141] (3) Rewriting the value of the starting address into the first sub-pixel value to rewrite the value of the first sub-pixel included in the target pixel.

[0142] (4) Rewriting the value of the first address after the start address into the second sub-pixel value, so as to rewrite the value of the second sub-pixel included in the target pixel.

[0143] (5) Rewriting the value of the second address after the start address into the third sub-pixel value, so as to rewrite the value of the third sub-pixel included in the target pixel.

[0144] Through the above method, the color of the target pixel point can be made the same as the preset color, so as to realize the touch detection function of the test device.

[0145] Step 370: compress the second image data to obtain a second target compression unit.

[0146] Step 380: Write the second target compression unit into the second memory.

[0147] In some embodiments, step 380 includes the following steps.

[0148] The second target compression unit is written into the memory according to the start address.

[0149] Among them, the starting address is the starting address in the memory before the first target compression unit is read. In this application, the first image data is rewritten and no data is added or deleted. Therefore, the second target compression unit and the first target compression unit are the same size, and the second target compression unit is directly written back to the original position of the first target compression unit.

[0150] Step 390: Update the image displayed on the display screen according to the compression unit in the second memory.

[0151] Specifically, the image needs to be re-output to the display screen so that the user can observe the color change at the touch position to determine whether the touch function of the display screen is intact.

[0152] The present application rewrites the compression unit corresponding to the touch position when the display screen is touched, so that the image color at the touch position in the display screen changes, so that the test device supports the use of compressed images to implement the test function, reduces costs and improves data transmission speed.

[0153] Furthermore, in the above embodiment, one touch position is used as an example, but the above part of the specification has mentioned that the user may have multi-finger touch operations. In this case, the image display method provided in the embodiment of the present application also includes the following steps.

[0154] (1) Acquire touch data generated when a display screen is touched, and identify the touch type in the touch data.

[0155] (2) When the touch type is a multi-point touch, identifying a first touch position and a second touch position in the touch data.

[0156] (3) Execute steps 330 to 380 based on the first touch position, and execute steps 330 to 380 based on the second touch position.

[0157] (4) Updating the image displayed on the display screen according to the compression unit in the second memory.

[0158] Through the above method, the touch detection function when the user performs multi-finger touch can be supported.

[0159] In summary, the present application provides an image processing chip, a test device and a test system, wherein the image processing chip includes: a first memory for storing compressed image data; a processing unit connected to the first memory and the second memory, for reading the compressed image data stored in the first memory and outputting it to the second memory; a second memory connected to a first decompression module, for receiving and storing compressed image data; a first decompression module connected to an image output module, for reading compressed image data from the second memory, decompressing the compressed image data into original image data, and outputting it to the image output module; an image output module for receiving original image data and outputting it to an external device. In the present application, the image processing chip outputs original image data to an external device according to the compressed image data, and the display screen can be tested by the image processing chip, which reduces the cost compared to testing using FPGA.

[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An image processing chip, characterized in that: The image processing chip includes: a processing unit, a first memory, a second memory, a first decompression module and an image output module; wherein, The first memory is used to store compressed image data; The processing unit is connected to the first memory and the second memory, and is used to read the compressed image data stored in the first memory and output the compressed image data to the second memory; The second memory is connected to the first decompression module and is used to receive and store the compressed image data; The first decompression module is connected to the image output module, and is used to read the compressed image data from the second memory, decompress the compressed image data into original image data, and output the original image data to the image output module; The image output module is used to receive the original image data and output it to an external device.

2. The image processing chip according to claim 1, characterized in that: The chip further includes: a second decompression module; The second decompression module is connected to the processing unit and the second memory, and is used to read the first compression unit in the compressed image data stored in the second memory, decompress the first compression unit to obtain a decompression unit, and send the decompression unit to the processing unit.

3. The image processing chip according to claim 2, characterized in that: The processing unit is further configured to receive the decompression unit, rewrite the decompression unit to obtain a rewriting unit, compress the rewriting unit into a second compression unit, and write the second compression unit into the second memory.

4. A testing device, characterized in that: Comprising the image processing chip as described in any one of claims 1-3.

5. A testing system, characterized in that: The test system comprises: a display device and a test apparatus as claimed in claim 4; wherein, The testing device is connected to the display device and is used to output the original image data to the display device; The display device is used for receiving the original image data and displaying an image according to the original image data.

6. The test system according to claim 5, characterized in that: The display device includes a driving chip and a display screen; wherein, The driving chip is used to receive the original image data and control the display screen to display an image according to the original image data.

7. The test system according to claim 6, characterized in that: The driving chip is connected to the processing unit; When the display screen is touched, the driver chip is used to obtain touch data and send an interrupt signal to the processing unit; The processing unit is used for interrupting the operation being executed and acquiring the touch data after receiving the interrupt signal; The processing unit is further configured to determine a storage location of the first target compression unit in the second memory according to the touch data, and read the first target compression unit to the second decompression unit in the second memory according to the storage location; The second decompression unit is used to receive the first target compression unit, decompress the first target compression unit to obtain first image data, and send the first image data to the processing unit.

8. The test system according to claim 7, characterized in that: The processing unit is also used to rewrite the first image data to obtain second image data, compress the second image data into a second target compression unit, and write the second target compression unit into the second memory to update the compressed image data stored in the second memory.

9. The test system according to claim 8, characterized in that: after the processing unit writes the second target compression unit into the second memory; The first decompression module is used to read the updated compressed image data stored in the second memory, decompress the updated compressed image data into original image data, and output the original image data to the image output module; The image output module is used to receive the original image data and output it to the driving chip; The driving chip is used to update the image displayed on the display screen according to the original image data.

10. The test system according to claim 7, characterized in that: The first target compression unit and the second target compression unit are stored in the same location in the second memory.