Pixel data processing method and device, and computer device

By processing pixel data according to the display module mode, the problem of long development cycle in traditional methods is solved, and the detection efficiency is improved by quickly adapting to multiple display modules.

CN117316124BActive Publication Date: 2026-01-23SUZHOU HUAXING YUANCHUANG TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311362754.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2026-01-23
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

Traditional pixel data processing programs have long development cycles and cannot quickly support the display of different display modules, resulting in low detection efficiency.

Method used

Based on the display mode of the target display module, the appropriate processing method is selected to process the source pixel data, including operations such as recombination, splicing, and segmentation, to generate target pixel data, which is then output to the display module for normal display.

Benefits of technology

It shortens the testing cycle, improves testing efficiency, adapts to different types of display modules, and reduces the need to develop different processing programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117316124B_ABST
    Figure CN117316124B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a pixel data processing method and device, and a computer device. The method comprises: obtaining source pixel data corresponding to an image to be displayed by a target display module; selecting a corresponding processing mode to process the source pixel data according to a display mode of the target display module to obtain target pixel data; and outputting the target pixel data to the target display module to instruct the target display module to display an image according to the target pixel data. The present method can quickly support the display of different display modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and in particular to a method, apparatus, and computer device for processing pixel data. Background Technology

[0002] With the development of display technology, the testing of display modules has become particularly important. In the testing of display modules, due to the different driving signal standards (such as MIPI, LVDS, V-BY-ONE, etc.), the different display resolutions (such as from 240P to 8K), and the different display module driver ICs (Integrated Circuits) from different manufacturers, the arrangement of display pixel data and the storage method of image pixel data in memory will be quite different. Therefore, the pixel data of various images in memory need to be processed differently before they can be displayed normally in the display module.

[0003] In traditional pixel data processing, corresponding processing programs are usually developed for different display modules to support the display of different display modules.

[0004] However, traditional pixel data processing programs suffer from lengthy development and debugging cycles, and each display module requires its own corresponding processing program, making it difficult to quickly support the display of different display modules. Summary of the Invention

[0005] Therefore, it is necessary to provide a method, apparatus, and computer device for rapidly processing pixel data that supports the display of different display modules, in order to address the aforementioned technical problems.

[0006] In a first aspect, this disclosure provides a method for processing pixel data, the method comprising:

[0007] Acquire source pixel data, which is the pixel data corresponding to the image that the target display module needs to display;

[0008] Based on the display mode of the target display module, the corresponding processing method is selected to process the source pixel data to obtain the target pixel data;

[0009] The target pixel data is output to the target display module to instruct the target display module to display an image based on the target pixel data.

[0010] In one embodiment, the step of selecting a corresponding processing method to process the source pixel data according to the display mode of the target display module to obtain target pixel data includes:

[0011] Based on the display mode of the target display module, at least one processing method is selected and the processing order of each processing method is determined. The processing methods include: recombination method, splicing method, segmentation method, and region combination method.

[0012] The source pixel data is processed sequentially according to the processing order to obtain the target pixel data; wherein, the output of the processing method at the first position in the processing order is the input of the processing method at the second position, the first position and the second position are adjacent, and the order of the first position is higher than the order of the second position.

[0013] In one embodiment, the method further includes:

[0014] In response to the processing method being a row pixel data recombination method, the pixel data in the corresponding row of the source pixel data is adjusted according to the recombination control parameters relative to the recombination method;

[0015] In response to the processing method of stitching row pixel data, the pixel data in the corresponding row of the source pixel data is adjusted according to the stitching control parameters corresponding to the stitching method.

[0016] In one embodiment, the method further includes:

[0017] In response to the processing method being a segmentation method, the source pixel data is segmented according to the segmentation offset corresponding to the segmentation method;

[0018] In response to the processing method being a region combination method, a preset number of adjacent pixel data are selected from the source pixel data;

[0019] Adjust the arrangement of the preset number of adjacent pixel data according to the adjustment method corresponding to the region combination method.

[0020] In one embodiment, the step of selecting a preset number of adjacent pixel data from the source pixel data and adjusting the arrangement of the preset number of adjacent pixel data according to the adjustment method corresponding to the region combination method includes:

[0021] A basic operation unit of a preset size is selected from the source pixel data, and the basic operation unit includes a preset number of adjacent pixel data;

[0022] The preset number of adjacent pixel data in the basic operation unit are traversed in the source pixel data, and the arrangement of the preset number of adjacent pixel data is adjusted.

[0023] In one embodiment, the method further includes:

[0024] In response to the need for the target display module to perform a region refresh, a refresh region in the target display module is determined, and pixel data to be refreshed in the refresh region and target refresh pixel data to be refreshed in the refresh region are determined.

[0025] Replace the pixel data to be refreshed in the source pixel data with the target refresh pixel data.

[0026] In one embodiment, determining the pixel data to be refreshed in the refresh area and the target refresh pixel data to be refreshed in the refresh area includes:

[0027] The pixel data to be refreshed in the refresh area is determined based on the refresh area in the target display module;

[0028] Based on the correspondence between the pixel data to be refreshed, the pixel data displayed in the target display module, and the source pixel data, the target refresh pixel data that needs to be refreshed in the refresh area of ​​the source pixel data is determined.

[0029] In one embodiment, acquiring the source pixel data includes:

[0030] The source pixel data is obtained based on the storage information of the source pixel data, wherein the storage information includes: storage space information, file name information, mapping address information, and shared memory identifier information.

[0031] Secondly, this disclosure also provides a pixel data processing apparatus. The apparatus includes:

[0032] The data acquisition module is used to acquire source pixel data, which is the pixel data corresponding to the image that the target display module needs to display;

[0033] The data processing module is used to select the corresponding processing method to process the source pixel data according to the display mode of the target display module, so as to obtain the target pixel data;

[0034] The data output module is used to output the target pixel data to the target display module to instruct the target display module to display an image based on the target pixel data.

[0035] Thirdly, this disclosure also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps in any of the above method embodiments.

[0036] Fourthly, this disclosure also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps in any of the above method embodiments.

[0037] Fifthly, this disclosure also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0038] In the above embodiments, since there are various types of target display modules, when it is necessary to test the target display module using source pixel data, the corresponding processing method can be selected to process the source pixel data according to the display mode of the target display module, ensuring that the processed target pixel data can support the normal display of the target display module. Then, the target pixel data can be output to the target display module to instruct it to display an image based on the target pixel data. During the detection process, different types of target display modules can be adapted, enabling the target display module to quickly display images and ensuring the detection efficiency. Furthermore, since the source pixel data is processed according to the display mode, there is no need to develop different processing programs, reducing the detection cycle and time, and further improving detection efficiency. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0040] Figure 1 This is an application environment diagram of a pixel data processing method in one embodiment;

[0041] Figure 2 This is a flowchart illustrating a pixel data processing method in one embodiment;

[0042] Figure 3 This is a flowchart illustrating step S204 in one embodiment;

[0043] Figure 4 This is a schematic diagram illustrating the segmentation and recombination methods in one embodiment;

[0044] Figure 5 This is a flowchart illustrating the recombination and splicing methods in one embodiment;

[0045] Figure 6This is a flowchart illustrating the steps of region refresh in one embodiment;

[0046] Figure 7 This is a flowchart illustrating the segmentation and region combination methods in one embodiment;

[0047] Figure 8 This is a flowchart illustrating a pixel data processing method in another embodiment;

[0048] Figure 9 This is a structural block diagram of a pixel data processing device in one embodiment;

[0049] Figure 10 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this disclosure.

[0051] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings herein are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, apparatus, product, or device that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0052] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0053] As described in the background section, in traditional technologies, the pixel data is typically arranged in a consistent order, such as A, B, C, D, E. During reading, the data is usually read and written in this order. The order in which the data is written to the display module is also typically the same as the pixel data arrangement order. However, due to differences in display modules, many modules cannot display data correctly according to the pixel data arrangement order, which affects the detection of display modules. Furthermore, since the detection equipment needs to test various types of display modules, setting up a corresponding processing program for each type of display module would be extremely time-consuming. Therefore, there is an urgent need for a method that can quickly process pixel data during the display module detection process, enabling it to rapidly support the display of different display modules.

[0054] To address the aforementioned problems, embodiments of this disclosure provide a pixel data processing method, which can be applied to, for example... Figure 1 In the application environment shown, the test machine 102 communicates with the test server 104 via a network. The test machine 102 is used to test the display module. The test machine 102 can acquire source pixel data, which is the pixel data corresponding to the image that the target display module needs to display. The test machine 102 can select a corresponding processing method to process the source pixel data according to the display mode of the target display module to obtain the target pixel data. The test machine 102 can output the target pixel data to the target display module to instruct the target display module to display the image according to the target pixel data. The test server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0055] In one embodiment, such as Figure 2 As shown, a method for processing pixel data is provided, which can be applied to... Figure 1 Taking the test machine 102 as an example, the following steps are included:

[0056] S202, Obtain source pixel data, wherein the source pixel data is the pixel data corresponding to the image that the target display module needs to display.

[0057] In some embodiments of this disclosure, the target display module is typically an OLED (Organic Light-Emitting Diode) module panel, and specifically the OLED module panel to be detected. The source pixel data can be pixel data arranged in a certain order; typically, the source pixel data can be arranged according to the order of the pixel data corresponding to the displayed image. For example, if the pixel data in the image to be displayed are A, B, C, and D, their arrangement order is... Then the source pixel data can usually also be Arrange the images. The images to be displayed are typically those needed for detection during the detection process.

[0058] Specifically, under normal circumstances, the test machine 102 can obtain instructions issued by the test server 104, or obtain a configuration file pre-stored in the test machine 102, and retrieve source pixel data from the instructions or configuration file. Typically, in some embodiments of this disclosure, the source pixel data is usually in matrix form, which facilitates processing and reading.

[0059] In some exemplary embodiments, acquiring the source pixel data includes:

[0060] The source pixel data is obtained based on the storage information of the source pixel data, wherein the storage information includes: storage space information, file name information, mapping address information, and shared memory identifier information.

[0061] Specifically, source pixel data can exist in files, mappings, storage spaces, or shared memory. Source pixel data can be retrieved using file names, storage space information, mapping address information, shared memory identifier information, etc.

[0062] S204, according to the display mode of the target display module, select the corresponding processing method to process the source pixel data to obtain the target pixel data.

[0063] The display mode can include: 1. Displaying pixel data of a normal image; 2. Displaying pixel data in a specific order within each row; 3. Displaying pixel data according to certain preset rules; 4. Refreshing the display of pixel data; 5. Displaying certain areas according to certain preset rules, etc. The target pixel data is typically pixel data obtained by processing pixel data sequentially. The display mode can be provided in advance by the target display module manufacturer, or it can be obtained through testing before inspecting the target display module. The display mode can also include the resolution of the pixel data.

[0064] Specifically, the target display module can be tested first to determine its display mode. Alternatively, the display mode can be determined based on information provided by the target display module manufacturer. Based on the target display module's display mode, a corresponding processing method is selected to process the source pixel data, thereby obtaining the target pixel data.

[0065] For example, pixel data The input is given to the target display module, and the pixel data displayed in the target display module is... This allows us to determine the display mode, where pixel data in each row is displayed in a specific order. We can then choose a reorganization method to process the data and obtain the target pixel data. It's important to understand that the above is merely an illustrative example. For instance, pixel data can be... The input is given to the target display module, and the pixel data displayed in the target display module is... This allows us to determine that the display mode is to display pixel data according to certain preset rules, and we can choose a region combination method for processing. It is understood that the above is only for illustrative purposes.

[0066] S206, the target pixel data is output to the target display module to instruct the target display module to display an image based on the target pixel data.

[0067] Specifically, the target pixel data can be output to the target display module. The target display module can read the target pixel data and then display an image based on the target pixel data.

[0068] Additionally, the test machine can store the target pixel data as a contiguous framebuffer or a region of memory, either in the ARM's DDR, the ARM's framebuffer, or the FPGA's DDR, depending on the predefined target location. Other elements include the offset address or offset address list of the target pixel data relative to the source pixel data, and the size of the matrix representing the target pixel data relative to the source pixel data.

[0069] For example, the target pixel data is The target display module displays pixel data in a specific order for each row. Because this order is used, after reading the target pixel data, the target display module can display the following pixel data: This allows the image to be displayed correctly and used for testing. For example, the target pixel data is... Because its display mode involves displaying pixel data according to certain preset rules, the target display module can only display a limited amount of pixel data after reading the target pixel data. The image can be displayed correctly and used for testing. It is understood that the above is for illustrative purposes only.

[0070] In the above pixel data processing method, since there are various types of target display modules, when it is necessary to test the target display module using source pixel data, the corresponding processing method can be selected according to the display mode of the target display module to process the source pixel data, ensuring that the processed target pixel data can support the normal display of the target display module. Then, the target pixel data can be output to the target display module to instruct it to display an image based on the target pixel data. During the detection process, it can adapt to different types of target display modules, enabling the target display module to quickly display images and ensuring the detection efficiency. Furthermore, since the source pixel data is processed according to the display mode, there is no need to develop different processing programs, reducing the detection cycle and time, and further improving detection efficiency.

[0071] In one embodiment, such as Figure 3 As shown, the step of selecting a corresponding processing method to process the source pixel data according to the display mode of the target display module to obtain the target pixel data includes:

[0072] S302, based on the display mode of the target display module, select at least one processing method and determine the processing order of each processing method. The processing methods include: reassembly method, splicing method, area refresh method, segmentation method, and area combination method.

[0073] Specifically, since the target display modules may have different display modes, multiple processing methods may be required to enable the target display modules to display normally. Therefore, at least one processing method can be selected according to the display mode of the target display module. In addition, the final pixel data arrangement result will also be different due to the different processing order. Therefore, it is also necessary to determine the processing order of each processing method.

[0074] For example, a target display module needs to first process the target pixel data according to certain preset rules, and then process the pixel data of each row in a certain order before it can be displayed normally. Therefore, the processing order can be to first perform the area combination method and then the recombination method.

[0075] S304, the source pixel data is processed sequentially according to the processing order by selecting the corresponding processing method to obtain the target pixel data; wherein, the output result of the processing method at the first position in the processing order is the input result of the processing method at the second position, the first position and the second position are adjacent, and the order of the first position is higher than the order of the second position.

[0076] Specifically, when determining the processing order, there are usually at least two processing methods. Therefore, the source pixel data can be processed sequentially according to the processing order to obtain the target pixel data. Typically, the output of the previous processing method can be used as the input of the next processing method.

[0077] For example, such as Figure 4 As shown, the processing methods are in the following order: segmentation and recombination. The segmentation method is processed first, and then the result of the segmentation method is used as the input for the result of the recombination method.

[0078] In this embodiment, by combining different processing methods and determining the order of processing methods, it is possible to adapt to the display modes of different target display modules, ensuring that the target display modules can display images normally, thereby ensuring the accuracy of detection.

[0079] In one embodiment, such as Figure 5 As shown, the method further includes:

[0080] S402, in response to the processing method being a row pixel data recombination method, the pixel data in the corresponding row of the source pixel data is adjusted according to the recombination control parameters relative to the recombination method.

[0081] The recombination control parameters are typically parameters that control how the recombination is performed. For example, the third to fifth pixel data in each row may be recombinated. How the pixel data in each row is recombined can be determined by those skilled in the art based on the display mode. Therefore, in some embodiments of this disclosure, the recombination control parameters are not limited.

[0082] Specifically, when the processing method is reconstruction, the pixel data of each row is typically reconstructed. The pixel data of each row in the source pixel data can be adjusted according to the reconstruction control parameters corresponding to the reconstruction method.

[0083] In some exemplary embodiments, taking a target display module driven by dual MIPI ICs as an example, the odd and even pixels displayed by the target display module are output by two driver ICs respectively. However, each driver IC receives source pixel data from the left and right halves respectively. This means that a complete image cannot be displayed correctly in the target display module without processing. Therefore, this situation requires processing by reassembling the row pixel data. For example, if a row of source pixel data has 16 pixels, they can be identified as ABCDEFGHIJKLMNOP, where each letter represents one RGB pixel. Due to differences in drive signals, they may need to be stored in the FrameBuffer in the form of AIBJCKDLEMFNGOHP or ABIJCDKLEFMNGHOP (pixel coordinate adjustment). Taking a common two-channel MIPI dual-driver IC drive module as an example, the coordinate correspondence between the output pixel data and the input pixel data is as follows:

[0084] The input source pixel data matrix coordinates are (x, y), (x≥0, y≥0), and the corresponding output pixel data matrix coordinates are (m, n), (m≥0, n≥0). The size of the input source pixel data matrix is ​​X×Y. Following this correspondence, the pixel data in each row can be adjusted. This ensures that the adjusted pixel data in each row is input into the target display module, allowing the target display module to correctly display the corresponding pixel data for that row.

[0085] S404, in response to the processing method being a row pixel data splicing method, adjust the pixel data in the corresponding row of the source pixel data according to the splicing control parameters corresponding to the splicing method.

[0086] The splicing control parameters typically control how the data is reassembled. For example, splicing the first and third pixel data in each row, splicing the second and fourth pixel data, and so on.

[0087] Specifically, the stitching method is similar to the recombination method. When the processing method is recombination, it typically involves stitching together the pixel data of each row. The pixel data of each row in the source pixel data can be adjusted according to the stitching control parameters corresponding to the stitching method.

[0088] For example, continuing with a target display module driven by dual MIPI ICs, the splicing method is the opposite of the reconstruction method. The left and right display areas of the target display module are output by different driver ICs, and the data received by each driver IC from the source pixels is distributed according to the parity of the pixel data. In this case, splicing is required. A specific example of the splicing operation can be found by referring to the reverse of the reconstruction method described above, and will not be repeated here. Typically, the splicing and reconstruction methods are opposite and therefore cannot be performed consecutively simultaneously; for example, splicing followed by reconstruction, or vice versa.

[0089] In this embodiment, by processing through recombination or splicing, it can be ensured that the target display module can display a complete image.

[0090] In one embodiment, such as Figure 6 As shown, the method further includes:

[0091] S502, in response to the target display module needing to perform a region refresh, a refresh region in the target display module is determined, and pixel data to be refreshed in the refresh region and target refresh pixel data to be refreshed in the refresh region are determined.

[0092] S504, replace the pixel data to be refreshed in the source pixel data with the target refresh pixel data.

[0093] The refresh area can be the entire display area or a portion of the display area in the target display module. The target refresh pixel data can be the pixel data that needs to be refreshed.

[0094] Specifically, when a refresh is needed in the target display module, the area to be refreshed can be determined first. Then, the pixels to be refreshed within the refresh area can be identified. These pixels can be replaced with the target refresh pixel data, and then the replaced pixel data in the source pixel data can be displayed according to the processing method corresponding to the target display module, thus completing the area refresh of the target display module.

[0095] In some embodiments, determining the pixel data to be refreshed in the refresh area and the target refresh pixel data to be refreshed in the refresh area includes:

[0096] The pixel data to be refreshed in the refresh area is determined based on the refresh area in the target display module;

[0097] Based on the correspondence between the pixel data to be refreshed, the pixel data displayed in the target display module, and the source pixel data, the target refresh pixel data that needs to be refreshed in the refresh area of ​​the source pixel data is determined.

[0098] The correspondence can be determined based on information provided by the target display module manufacturer, or it can be determined by testing the target display module during the testing phase.

[0099] Specifically, since the arrangement of displayed pixel data differs significantly from the way image pixel data is stored in memory, the pixel data to be refreshed in the refresh area can be determined first based on the refresh area in the target display module. Then, based on the correspondence between the pixel data displayed in the target display module and the source pixel data, as well as the pixel data to be refreshed, the target refresh pixel data that needs to be refreshed in the refresh area of ​​the source pixel data is determined.

[0100] In some exemplary embodiments, the example of a target display module driven by dual MIPI ICs will continue to be used for illustration. If the area to be refreshed in the source pixel data is [(x, y), (x+h, y+v)] with a starting point of (x, y), and the width and height to be refreshed are h and v respectively, then the target display module's... or

[0101] Then, the refresh area in the corresponding target display module can be:

[0102] Based on the above conditions, the correspondence between the area to be refreshed and the actual refresh area of ​​the target display module can be determined. Based on this relationship, the pixel data to be refreshed in the source pixel data corresponding to the area to be refreshed can be determined, and then the corresponding pixel data to be refreshed can be replaced with the target pixel data.

[0103] In other exemplary embodiments, for example, after determining the area to be refreshed in the target display module, the pixel data corresponding to the area to be refreshed is found. For example, the pixels stored in the source pixel data are: The data is processed according to the specified method, and after the target display module is displayed, the pixel data displayed by the target display module is... If A2 and A4 constitute the refresh area that needs to be refreshed, then the pixel data at position A2 in the source pixel data and the pixel data at position A4 in the source pixel data need to be replaced. Only in this way can the area formed by the pixel data of A2 and A4 in the target display module after replacement be refreshed.

[0104] In one embodiment, such as Figure 7 As shown, the method further includes:

[0105] S602, in response to the processing method being a segmentation method, the source pixel data is segmented according to the segmentation offset corresponding to the segmentation method.

[0106] The segmentation offset can be determined based on the display mode.

[0107] Specifically, in some scenarios, due to different ways of the target display module reading pixel data. For example, the pixel data is , and its order is A0, A1, A4, A3, A6, A7, A2, A5, A8. Only after such reading can it be displayed normally. Therefore, the display mode can be determined by the reading order, and then the processing method can be determined as the segmentation method. Therefore, the source pixel data can be segmented according to the segmentation offset corresponding to the segmentation method. For the above example of pixel data, the source pixel data can be segmented into two parts according to the segmentation offsets 2 and 1 respectively and .

[0108] In some exemplary embodiments, for example, in the scenario where a V-BY-ONE multi-Driver IC drives target display modules in different regions, the source pixel data needs to be segmented into 4 pieces in a 'field' shape so that the target display modules in different regions can be combined and displayed normally. Therefore, the source pixel data can be segmented according to the segmentation offsets 0, X×Y×3 / 4, X×Y×3×2 / 4, X×Y×3×3 / 4, where X is the width of the matrix in the source pixel data and Y is the length of the matrix in the source pixel data.

[0109] S604. In response to the processing method being the area combination method, select a preset number of adjacent pixel data from the source pixel data.

[0110] S606. Adjust the arrangement of the preset number of adjacent pixel data according to the adjustment method corresponding to the area combination method.

[0111] Specifically, the tester cannot be compatible with all display modules. Therefore, in some scenarios where the line sequences do not correspond, for example, the tester only has a lane1 interface, while the target display module has lane1 and lane2 interfaces. At this time, since all the source pixel data is transmitted to the target display module through the lane1 interface, when transmitting the source pixel data at this time, the pixel data transmitted through the lane1 interface needs to be adjusted. Or, in the actual usage scenario, the input and output definitions of the connection wires do not have a unified standard, and it may occur that lane2 corresponds to lane4 and lane3 corresponds to lane5. Therefore, the connection order of the line sequences will also cause the target display module to not be able to display video data normally. To save hardware costs, it can be directly processed by software in the tester. At this time, a preset number of adjacent pixel data can be selected from the source pixel data. For example, a part of the pixel data can be selected, or all the pixel data can be selected. The specific number of selections can be determined according to the wiring method of the actual target display module. Adjust the arrangement of the preset number of adjacent pixel data according to the adjustment method corresponding to the area combination method.

[0112] For example, the source pixel data is When the target display module receives the data, due to a problem with the wiring sequence, the displayed pixel data is... In this case, the incorrect pixel data positions of A1, A2, A4, and A5 will cause the image to be displayed incorrectly in that area. Therefore, the preset adjacent pixel data can be determined as follows: The pixel data is iterated and adjusted until the image is displayed correctly, and then the final result is adjusted to... Then the adjusted pixel data is transmitted to the target display module.

[0113] In some embodiments, selecting a preset number of adjacent pixel data from the source pixel data and adjusting the arrangement of the preset number of adjacent pixel data according to the adjustment method corresponding to the region combination method includes:

[0114] A basic operation unit of a preset size is selected from the source pixel data, and the basic operation unit includes a preset number of adjacent pixel data;

[0115] The preset number of adjacent pixel data in the basic operation unit are traversed in the source pixel data, and the arrangement of the preset number of adjacent pixel data is adjusted.

[0116] Specifically, a region can be selected from the source pixel data. This region can be a basic operation unit of a preset size, which includes a preset number of adjacent pixel data. The pixel data in the basic operation unit can be all the source pixel data or a portion of the source pixel data, depending on the actual needs. When there is a problem with the entire line sequence, all the source pixel data can be selected to form the basic operation unit. When there is a problem with a portion of the line sequence, a portion of the source pixel data can be selected to form the basic operation unit. Then, the preset number of adjacent pixel data in the basic operation unit can be traversed in the source pixel data, reading the pixel data in the basic operation unit in a specific way, and then continuously adjusting the arrangement of the preset number of adjacent pixel data based on the reading stage.

[0117] In some exemplary embodiments, typically, a basic operation unit (N×M) matrix can be selected in the source pixel data (where n is divisible by the width h of the source pixel data matrix, and m is divisible by the height v of the source pixel data matrix). The pixel arrangement within the N×M matrix is ​​adjusted, and then the N×M matrix is ​​traversed within the source pixel data matrix. Taking the adjustment of the line sequence for a v-by-one 8-lane signal as an example, an 8-pixel sliding window is processed on the source pixel data matrix, and the entire source pixel data matrix is ​​traversed to adjust pixels ABCDEFGH to AEFBCHGD.

[0118] In this embodiment, by adjusting the source pixel data through segmentation or region combination, it is possible to adapt to various display scenarios of different target display modules, thereby ensuring the accuracy of detection.

[0119] In one embodiment, the processing methods and region refresh operations described in some of the above embodiments can be implemented using different iterators. For example, the recombination method, the splicing method, and the region refresh can be implemented using a row iterator. The segmentation method is implemented using a segment iterator. The region combination method is implemented using a region combination iterator. Iterators can take the form of plugins and modules, and can be flexibly configured according to different needs.

[0120] In one embodiment, such as Figure 8 As shown, this disclosure also provides another method for processing pixel data, the method comprising:

[0121] S702, Obtain source pixel data, wherein the source pixel data is the pixel data corresponding to the image that the target display module needs to display.

[0122] S704, select at least one processing method and determine the processing order of each processing method according to the display mode of the target display module.

[0123] S706, in response to the processing method being a row pixel data recombination method, the pixel data in the corresponding row of the source pixel data is adjusted according to the recombination control parameters relative to the recombination method.

[0124] S708, in response to the processing method being a row pixel data splicing method, the pixel data in the corresponding row of the source pixel data is adjusted according to the splicing control parameters corresponding to the splicing method.

[0125] S710, in response to the processing mode being a segmentation mode, the source pixel data is segmented according to the segmentation offset corresponding to the segmentation mode.

[0126] S712, in response to the processing mode being a region combination mode, a preset number of adjacent pixel data are selected from the source pixel data.

[0127] S714, adjust the arrangement of the preset number of adjacent pixel data according to the adjustment method corresponding to the region combination method.

[0128] S716 obtains the target pixel data based on the adjustment results corresponding to the processing order and processing method.

[0129] S718, the target pixel data is output to the target display module to instruct the target display module to display an image based on the target pixel data.

[0130] S720, in response to the target display module needing to perform a region refresh, a refresh region in the target display module is determined, and pixel data to be refreshed in the refresh region and target refresh pixel data to be refreshed in the refresh region are determined.

[0131] S722, replace the pixel data to be refreshed in the source pixel data with the target refresh pixel data.

[0132] For specific implementation methods and limitations in this embodiment, please refer to the above embodiments, which will not be repeated here.

[0133] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0134] Based on the same inventive concept, this disclosure also provides a pixel data processing apparatus for implementing the pixel data processing method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more pixel data processing apparatus embodiments provided below can be found in the limitations of the pixel data processing method described above, and will not be repeated here.

[0135] In one embodiment, such as Figure 9As shown, a pixel data processing device 800 is provided, including: a data acquisition module 802, a data processing module 804, and a data output module 806, wherein:

[0136] The data acquisition module 802 is used to acquire source pixel data, which is the pixel data corresponding to the image that the target display module needs to display;

[0137] The data processing module 804 is used to select a corresponding processing method to process the source pixel data according to the display mode of the target display module to obtain the target pixel data;

[0138] The data output module 806 is used to output the target pixel data to the target display module to instruct the target display module to display an image based on the target pixel data.

[0139] In one embodiment of the device, the data processing module 804 includes:

[0140] The processing method determination module is used to select at least one processing method and determine the processing order of each processing method according to the display mode of the target display module. The processing methods include: recombination method, splicing method, segmentation method, and region combination method.

[0141] The processing submodule is used to process the source pixel data by sequentially selecting the corresponding processing method according to the processing order to obtain the target pixel data; wherein, the output result of the processing method at the first position in the processing order is the input result of the processing method at the second position, the first position and the second position are adjacent in order, and the order of the first position is higher than the order of the second position.

[0142] In one embodiment of the device, the device further includes:

[0143] The recombination module is used to adjust the pixel data in the corresponding row of the source pixel data according to the recombination control parameters relative to the recombination method in response to the recombination method of row pixel data.

[0144] The stitching module is used to respond to the stitching method of row pixel data and adjust the pixel data in the corresponding row of the source pixel data according to the stitching control parameters corresponding to the stitching method.

[0145] In one embodiment of the device, the device further includes:

[0146] A segmentation module is used to segment the source pixel data according to the segmentation offset corresponding to the segmentation method in response to the processing method being a segmentation method.

[0147] The region combination module is used to select a preset number of adjacent pixel data from the source pixel data in response to the processing method being region combination mode, and adjust the arrangement of the preset number of adjacent pixel data according to the adjustment method corresponding to the region combination mode.

[0148] In one embodiment of the device, the region combination module is further configured to select a basic operation unit of a preset size in the source pixel data, the basic operation unit including a preset number of adjacent pixel data; traverse the preset number of adjacent pixel data in the basic operation unit in the source pixel data, and adjust the arrangement of the preset number of adjacent pixel data.

[0149] In one embodiment of the device, the device further includes: a region refresh module, configured to, in response to the need for region refresh of the target display module, determine a refresh region in the target display module, and determine pixel data to be refreshed in the refresh region and target refresh pixel data to be refreshed in the refresh region; and replace the pixel data to be refreshed in the source pixel data with the target refresh pixel data.

[0150] In one embodiment of the device, the area refresh module is further configured to determine the pixel data to be refreshed in the refresh area according to the refresh area in the target display module; and to determine the target refresh pixel data that needs to be refreshed in the refresh area of ​​the source pixel data according to the correspondence between the pixel data to be refreshed, the pixel data displayed in the target display module, and the source pixel data.

[0151] In one embodiment of the device, the data acquisition module 802 is further configured to acquire the source pixel data based on the storage information of the source pixel data, wherein the storage information includes: storage space information, file name information, mapping address information, and shared memory identifier information.

[0152] Each module in the aforementioned pixel data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0153] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores source pixel data and target pixel data. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a pixel data processing method.

[0154] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the computer device to which the present disclosure is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0155] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in any of the above method embodiments.

[0156] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in any of the above method embodiments.

[0157] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0158] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this disclosure may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this disclosure may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0159] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0160] The embodiments described above are merely illustrative of several implementations of this disclosure, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent disclosure. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this disclosure, and these all fall within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the appended claims.

Claims

1. A method for processing pixel data, characterized in that, The method, implemented on a test machine for display modules, includes: Acquire source pixel data, which is the pixel data corresponding to the image that the target display module needs to display; Based on the display mode of the target display module, at least one processing method is selected and the processing order of each processing method is determined. The processing methods include: recombination method, splicing method, segmentation method, and region combination method. The output result of the processing method at the first position in the processing order is the input result of the processing method at the second position. The source pixel data is processed sequentially according to the processing order to obtain target pixel data. Specifically, in response to the processing method being a segmentation method, the source pixel data is segmented according to the segmentation offset corresponding to the segmentation method. In response to the processing method being a region combination method, a preset number of adjacent pixel data is selected from the source pixel data, and the arrangement of the preset number of adjacent pixel data is adjusted according to the adjustment method corresponding to the region combination method. The target pixel data is output to the target display module to instruct the target display module to display an image based on the target pixel data.

2. The method according to claim 1, characterized in that, The first position and the second position are adjacent in order, and the order of the first position is higher than the order of the second position.

3. The method according to claim 1, characterized in that, The method further includes: In response to the processing method being a row pixel data recombination method, the pixel data in the corresponding row of the source pixel data is adjusted according to the recombination control parameters relative to the recombination method; In response to the processing method of stitching row pixel data, the pixel data in the corresponding row of the source pixel data is adjusted according to the stitching control parameters corresponding to the stitching method.

4. The method according to claim 1, characterized in that, The step involves selecting a preset number of adjacent pixel data from the source pixel data; According to the adjustment method corresponding to the region combination method, the arrangement of the preset number of adjacent pixel data is adjusted, including: A basic operation unit of a preset size is selected from the source pixel data, and the basic operation unit includes a preset number of adjacent pixel data; The preset number of adjacent pixel data in the basic operation unit are traversed in the source pixel data, and the arrangement of the preset number of adjacent pixel data is adjusted.

5. The method according to claim 1, characterized in that, The method further includes: In response to the need for the target display module to perform a region refresh, a refresh region in the target display module is determined, and pixel data to be refreshed in the refresh region and target refresh pixel data to be refreshed in the refresh region are determined. Replace the pixel data to be refreshed in the source pixel data with the target refresh pixel data.

6. The method according to claim 5, characterized in that, Determining the pixel data to be refreshed in the refresh area and the target refresh pixel data to be refreshed in the refresh area includes: The pixel data to be refreshed in the refresh area is determined based on the refresh area in the target display module; Based on the correspondence between the pixel data to be refreshed, the pixel data displayed in the target display module, and the source pixel data, the target refresh pixel data that needs to be refreshed in the refresh area of ​​the source pixel data is determined.

7. The method according to claim 1, characterized in that, The acquisition of source pixel data includes: The source pixel data is obtained based on the storage information of the source pixel data, wherein the storage information includes: storage space information, file name information, mapping address information, and shared memory identifier information.

8. A pixel data processing apparatus, characterized in that, The device includes: The data acquisition module is used to acquire source pixel data, which is the pixel data corresponding to the image that the target display module needs to display; A data processing module is configured to select at least one processing method and determine the processing order of each processing method. The processing methods include: recombination, splicing, segmentation, and region combination. The output of the processing method at the first position in the processing order is the input result of the processing method at the second position. The module is also configured to sequentially select the corresponding processing methods according to the processing order to process the source pixel data to obtain target pixel data. Specifically, in response to the processing method being segmentation, the source pixel data is segmented according to the segmentation offset corresponding to the segmentation method. In response to the processing method being region combination, a preset number of adjacent pixel data is selected from the source pixel data, and the arrangement of the preset number of adjacent pixel data is adjusted according to the adjustment method corresponding to the region combination method. The data output module is used to output the target pixel data to the target display module to instruct the target display module to display an image based on the target pixel data.

9. The pixel data processing apparatus as described in claim 8, characterized in that, The data processing module is further configured to, in response to the processing method of row pixel data recombination, adjust the pixel data in the corresponding row of the source pixel data according to the recombination control parameters corresponding to the recombination method; and to, in response to the processing method of row pixel data splicing, adjust the pixel data in the corresponding row of the source pixel data according to the splicing control parameters corresponding to the splicing method.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Image processing method, image display method and image display system

    CN114520905A