Data processing method, display device and computer program product
By filtering data writing and reading in the AMOLED display, the problem of high power consumption during data processing is solved, reducing device heat and improving user experience.
Patent Information
- Application Number
- CN202510663552.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-09-02
AI Technical Summary
In the prior art, AMOLED displays consume high power in data processing, resulting in overheating of equipment, increasing costs and affecting normal use.
By determining the mark data of pixel points in the memory, filtering out the pixel points of different data for writing, and reading the data according to processing requirements, reducing the read and write operations of the memory.
It effectively reduces power consumption during data processing, reduces heat generation, optimizes device performance and improves user experience.
Smart Images

Figure CN120580957A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display control technology, and in particular to a data processing method, a display device, and a computer program product. Background Art
[0002] AMOLED (Active-Matrix Organic Light-Emitting Diode) has the advantages of self-luminous technology, bright color display, fast response speed, high contrast, low power consumption, wide viewing angle, high refresh rate, and light weight. Therefore, AMOLED displays are used in various types of electronic devices.
[0003] Currently, in the field of display ICs (Integrated Circuits), especially in data paths, many algorithms store a row of data in line RAM (Random Access Memory) for subsequent row processing. They also store multiple rows of data in multiple line RAMs for subsequent row processing. When the entire line RAM is running, data at each pixel address in the line RAM needs to be read and written, resulting in high power consumption during processing. High power consumption generates more heat, requiring complex cooling solutions in electronic devices, increasing device costs. Overheating can also cause chip frequency reduction, device lag, accelerated component aging, and other adverse conditions, affecting the normal use of electronic devices. Summary of the Invention
[0004] In view of this, an object of the embodiments of the present application is to provide a data processing method, a display device, and a computer program product to improve the problem of high power consumption during data processing in the prior art.
[0005] In order to solve the above problems, in a first aspect, an embodiment of the present application provides a data processing method, the method comprising:
[0006] Determining flag data of a plurality of pixel points corresponding to a plurality of addresses in a memory; wherein the flag data represents a data comparison result between the pixel point and an adjacent previous pixel point, the data comparison result including data being the same or different;
[0007] Writing the pixel data of the pixel point having different characterization data as the flag data into the target address of the memory;
[0008] According to processing requirements, the pixel data of the required pixel point is read from the memory.
[0009] In the above implementation process, the memory has multiple addresses for storing data. In order to reduce the read and write operations in the memory, before the data is written, the flag data of the multiple pixel points that need to be stored corresponding to the multiple addresses in the memory can be determined to determine the data comparison results between each pixel point and the adjacent previous pixel point, so as to determine the color change between the pixel points based on the flag data. In the case where the flag data represents that the data between the pixel point and the adjacent previous pixel point is different, it indicates that there is a color change between the pixel point and the previous pixel point. Only the pixel data of this type of pixel point with color change can be written into the target address in the memory. If the flag data represents that the data between the pixel point and the adjacent previous pixel point is the same, it indicates that there is no color change between the pixel point and the previous pixel point, and there is no need to write the pixel data of this type of pixel point without color change. When processing, based on the actual processing requirements, the pixel data of the required pixel point is read in the memory for processing and use. It can perform targeted screening data writing based on the similarities and differences in data between pixel points, effectively reducing the number of operations when writing data, thereby reducing the power consumption required for data processing and effectively reducing the heat generated by power consumption, thereby optimizing the performance of the device and improving the user experience.
[0010] Optionally, the flag data includes: a first type of flag and a second type of flag, the first type of flag represents the data comparison result of the same data, and the second type of flag represents the data comparison result of the different data;
[0011] The flag data is stored in a flag register;
[0012] The bit width of the flag register is the same as the address length of the memory.
[0013] In the above implementation, in order to distinguish between different types of data comparison results, the flag data may include a first type of flag representing data comparison results with identical data and a second type of flag representing data comparison results with different data. A corresponding flag register may be provided to store multi-bit flag data. Furthermore, considering the association between the flag data and each address in the memory, the bit width of the flag register is the same as the address length of the memory, so that multiple flag data are associated with each address. This effectively improves the efficiency and accuracy of writing pixels to the target address in the memory based on the flag data, thereby improving the efficiency of subsequent reading and processing of the data stored in the memory.
[0014] Optionally, determining the flag data of the plurality of pixel points corresponding to the plurality of addresses in the memory includes:
[0015] If it is determined that the current pixel point is the first pixel corresponding to the first address in the memory, determining that the flag data of the first pixel is the second type flag;
[0016] If it is determined that the current pixel point is a subsequent pixel other than the first pixel, the current pixel data of the current pixel point is compared with the previous pixel data of the previous pixel point adjacent to the current pixel point, and the first category flag or the second category flag of the current pixel point is determined based on the data comparison result between the current pixel data and the previous pixel data.
[0017] In the above implementation process, when determining the flag data of multiple pixel points that need to be stored in the memory, considering that the first pixel corresponding to the first address in the memory may not have an adjacent previous pixel point, it is possible to first determine whether the current pixel point is the first pixel. In the case that the current pixel point is the first pixel, its flag data can be directly set to the second type of flag that needs to be written with data, so as to process the first pixel as the initial reference pixel. In the case that the current pixel point is a subsequent pixel that is not the first pixel, the current pixel data of the current pixel point can be compared with the previous pixel data of the previous pixel point adjacent to the current pixel point to determine the first type of flag or the second type of flag of the current pixel point based on the data comparison result between the current pixel data and the previous pixel data. The actual flag data can be determined according to the actual position of the current pixel point and the specific data situation, which effectively improves the effectiveness of the data changes between the pixels fed back by the flag data.
[0018] Optionally, writing the mark data as pixel data of the pixel point having different representation data into a target address of the memory includes:
[0019] Filtering the plurality of mark data to obtain target pixel points corresponding to the second type of marks;
[0020] Determining the target address corresponding to the target pixel position in the memory;
[0021] The pixel data of the target pixel point is written into the target address.
[0022] In the above implementation process, when writing data, multiple marker data can be first screened to obtain the second type of marker and its corresponding pixel point as the target pixel point for data writing, and the target address corresponding to the target pixel point position is determined in the memory to write the pixel data of each target pixel point into the corresponding target address in a targeted manner, thereby realizing screened writing of data. The pixel data of the pixel points of the second type of marker can be selectively written to the corresponding address to record the change of data, that is, the change of color, without writing the pixel data of the pixel points of the first type of marker. That is, multiple pixels with the same data and no change of color can share the pixel data within the same address, effectively reducing the number of operations when writing data, thereby reducing the power consumption required when writing data.
[0023] Optionally, reading the pixel data of the required pixel point from the memory according to the processing requirement includes:
[0024] determining said processing requirements of a processing algorithm;
[0025] Based on the processing requirement, determining the required pixel point from the plurality of pixel points corresponding to the memory;
[0026] The pixel data is read from the memory according to the flag data of the required pixel point.
[0027] In the above implementation process, considering that many processing algorithms need to use the pixel data previously stored in the memory to process subsequent pixel points, the specific processing requirements of the processing algorithm can be determined. The processing requirements can be related conditions for which pixel data of which row or rows needs to be called for processing. Then, based on the processing requirements, the required pixel points required for processing are determined from the multiple pixel points corresponding to the memory. Then, based on the flag data of the required pixel points, the corresponding pixel data is read from the memory for subsequent data processing. The stored pixel data can be read accordingly according to the processing requirements corresponding to the actual algorithm, meeting the use requirements of a variety of different processing algorithms and being suitable for a variety of different types of display application scenarios.
[0028] Optionally, reading the pixel data from the memory according to the flag data of the required pixel point includes:
[0029] If it is determined that the flag data of the required pixel point is the first type of flag, then determining the pixel point whose flag data before the required pixel point is the second type of flag as the valid pixel point;
[0030] The pixel data of the effective pixel point is read from the memory.
[0031] In the above implementation process, when reading data, if the flag data of the required pixel point is determined to be a first-class flag, that is, it indicates that the required pixel point to be read has the same data and the same color, the pixel data of the required pixel point has not been written into the memory, but the pixel point in front of the required pixel point has the same data as the required pixel point and the data is written into it, therefore, the pixel point with the flag data closest to the required pixel point as the second-class flag can be determined as the valid pixel point, the valid pixel point has the same pixel data as the required pixel point, and the pixel data of the valid pixel point is written into the memory, therefore, the pixel data of the valid pixel point can be read from the address corresponding to the valid pixel point in the memory as the pixel data of the required pixel point for subsequent data processing. For the required pixel point that has not been written into the data, the pixel point with the corresponding data and the same color can be determined to read the corresponding pixel data for subsequent data processing, which effectively improves the reliability of data reading and reduces the number of operations when reading data, thereby reducing the power consumption required when reading data.
[0032] Optionally, reading the pixel data from the memory according to the flag data of the required pixel point includes:
[0033] If it is determined that the flag data of the required pixel point is the second type of flag, the pixel data of the required pixel point is read from the memory.
[0034] In the above implementation process, when reading data, if the flag data of the desired pixel is determined to be a second-class flag, indicating that the desired pixel to be read has different data or a different color, and the pixel data of the desired pixel has been written into the memory, the pixel data can be directly read from the address corresponding to the desired pixel in the memory for subsequent data processing. For the desired pixel that has data written into it, the pixel data at the corresponding address can be directly read for subsequent data processing, effectively improving the efficiency of data reading.
[0035] Optionally, the number of the memories is the same as the number of the flag registers;
[0036] The amount of memory is determined based on the processing requirements.
[0037] In the above implementation process, taking into account that different processing algorithms have different processing requirements, and the number of pixels that each memory can store is limited, in order to realize the corresponding memory multiplexing function and data reading function, the number of memories can be determined according to the actual processing requirements. Taking into account the association characteristics between the memory and the flag register, the number of flag registers can be set to the same as the number of memories, so that according to the actual processing requirements, an appropriate number of memories and flag registers can be set to write and read data, thereby reducing the power consumption required for data processing while meeting the normal data processing.
[0038] In a second aspect, an embodiment of the present application further provides a display device, the display device comprising: a processor, a driving device, and a display device;
[0039] The driving device is connected to the processor and the display device;
[0040] The driving device is provided with a memory, and the processor is used to control the operation of the driving device, and the driving device is used to:
[0041] Determining flag data of a plurality of pixels in the display device corresponding to a plurality of addresses in a memory; wherein the flag data represents a data comparison result between the pixel and an adjacent previous pixel, the data comparison result including data being the same or different;
[0042] Writing the pixel data of the pixel point having different characterization data as the flag data into the target address of the memory;
[0043] According to processing requirements, the pixel data of the required pixel point is read from the memory.
[0044] In the above implementation process, the memory provided in the driver device has a plurality of addresses for storing data. In order to reduce the read and write operations in the memory, before the data is written, the processor can control the operation of the driver device to determine the flag data of the plurality of pixel points that need to be stored corresponding to the plurality of addresses in the memory, so as to determine the data comparison result between each pixel point and the adjacent previous pixel point, thereby determining the color change between the pixel points based on the flag data. In the case where the flag data indicates that the data between the pixel point and the adjacent previous pixel point is different, it indicates that there is a color change between the pixel point and the previous pixel point, and only the pixel data of the pixel point with color change can be written into the target address in the memory. If the flag data indicates that the data between the pixel point and the adjacent previous pixel point is the same, it indicates that there is no color change between the pixel point and the previous pixel point, and there is no need to write the pixel data of the pixel point with no color change. When processing, based on the actual processing requirements, the pixel data of the required pixel point is read from the memory for processing and use. It can perform targeted screening data writing based on the similarities and differences in data between pixel points, effectively reducing the number of operations when writing data, thereby reducing the power consumption required for data processing, effectively reducing the heat generated by power consumption, thereby reducing the heat dissipation cost of the display device, and reducing device abnormalities caused by overheating, optimizing the performance of the display device, and improving the user experience.
[0045] In a third aspect, an embodiment of the present application further provides a computer program product, which includes a computer program / instructions, and when the computer program / instructions are executed by a processor, the steps of any one of the above-mentioned data processing methods are implemented.
[0046] In summary, the embodiments of the present application provide a data processing method, a display device, and a computer program product, which can perform targeted screening data writing based on the similarities and differences in data between pixel points, effectively reducing the number of operations during data writing, thereby reducing the power consumption required for data processing, and effectively reducing the heat generated by power consumption, thereby optimizing the performance of the device and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0048] Figure 1A flowchart of a data processing method provided in an embodiment of the present application;
[0049] Figure 2 A detailed flowchart of step S100 provided in an embodiment of the present application;
[0050] Figure 3 A detailed flowchart of step S200 provided in an embodiment of the present application;
[0051] Figure 4 A detailed flowchart of step S300 provided in an embodiment of the present application;
[0052] Figure 5 A detailed flowchart of step S330 provided in an embodiment of the present application;
[0053] Figure 6 A schematic structural diagram of a display device provided in an embodiment of the present application.
[0054] Icons: 410 - processor; 420 - driver device; 421 - memory; 430 - display device. DETAILED DESCRIPTION
[0055] 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 embodiments described are only part of the embodiments of the present application, not all of them. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the embodiments of the present application.
[0056] Currently, when the entire line RAM is running, it is necessary to read and write data at each pixel address in the line RAM. For example, the pixel data of each pixel point is written to the corresponding address in the line RAM, or the pixel data of each pixel point is read from the line RAM for processing. This processing method has frequent read and write operations, resulting in high power consumption during processing. High power consumption generates more heat, requiring the installation of complex heat dissipation solutions in electronic devices, increasing equipment costs. Overheating can also cause chip frequency reduction, equipment freezes, accelerated component aging, and other adverse conditions, affecting the normal use of electronic devices.
[0057] Therefore, in order to solve the above problems, an embodiment of the present application provides a data processing method, which is applied to a display device. The display device can be an electronic device including a display device with display function such as a display screen and a monitor. The electronic device can include a server, a personal computer (PC), a tablet computer, a smart phone, a personal digital assistant (PDA), and other electronic devices with logical calculation functions. It can perform targeted screening data writing based on the similarities and differences in data between pixel points, effectively reducing the number of operations during data writing, thereby reducing the power consumption required for data processing, and effectively reducing the heat generated by power consumption, thereby optimizing the performance of the device and improving the user experience.
[0058] See also Figure 1 , Figure 1 A flowchart of a data processing method provided in an embodiment of the present application is provided. The method may include steps S100-S300.
[0059] Step S100: determining the mark data of a plurality of pixel points corresponding to a plurality of addresses in a memory.
[0060] Among them, the memory has multiple addresses for storing data. In order to reduce the read and write operations in the memory, before the data is written, the flag data of the multiple pixel points that need to be stored corresponding to the multiple addresses in the memory can be determined to determine the data comparison result between each pixel point and the adjacent previous pixel point, so as to determine the color change between the pixel points based on the flag data. The flag data represents the data comparison result between the pixel point and the adjacent previous pixel point. For example, a row of pixel points can be sorted from left to right by serial number. The flag data of the nth pixel point is the data comparison result of the pixel data between the nth pixel point and the n-1th pixel point. The data comparison result includes the same data and different data. When the data comparison result is the same data, it represents that the pixel data between the two pixels is the same, the two pixel points have the same color, and there is no color change. When the data comparison result is different data, it represents that the pixel data between the two pixels is different, the two pixel points have different colors, and there is a color change.
[0061] It should be noted that the memory used in the embodiment of the present application can be set as a corresponding line memory, i.e., line RAM, which can store pixel data of an entire row in the display screen corresponding to the display device. The number of addresses in the line memory can be the same as the number of row pixels of the display device to improve the correspondence between the storage address and the pixel position.
[0062] Optionally, the memory may also be other types of memory for storing pixel data, which may be selected and set according to actual conditions and requirements.
[0063] Step S200 , writing the pixel data of the pixel points with different marking data into the target address of the memory.
[0064] Among them, since there are two different types of data comparison results in the flag data, namely, the data is the same and the data is different, therefore, when writing data, the pixel data of multiple pixels can be selectively written according to the actual situation of the flag data. In the case where the flag data indicates that the data between the pixel point and the adjacent previous pixel point is different, it indicates that there is a color change between the pixel point and the previous pixel point, and only the pixel data of this type of pixel point with color change can be written into the target address in the memory. In the case where the flag data indicates that the data between the pixel point and the adjacent previous pixel point is the same, it indicates that there is no color change between the pixel point and the previous pixel point, and there is no need to write the pixel data of this type of pixel point without color change. By adopting the screening writing method, there is no need to write the pixel data of each pixel point, which effectively reduces the number of operations for writing data to the pixel data.
[0065] Step S300: Read pixel data of a required pixel point from a memory according to processing requirements.
[0066] Among them, taking the memory as a line memory as an example, considering that some current processing algorithms will use the data of the previous row stored in the line memory to provide data basis for the data of the subsequent row, therefore, when processing, the pixel data of the required pixel points can be read in the memory for processing and use based on actual processing needs.
[0067] exist Figure 1 In the embodiment shown, targeted screening data writing can be performed based on the similarities and differences in data between pixel points, effectively reducing the number of operations when writing data, thereby reducing the power consumption required for data processing, and effectively reducing the heat generated by power consumption, thereby optimizing the performance of the device and improving the user experience.
[0068] It should be noted that, in order to distinguish different types of data comparison results, the flag data may include: a first type of flag and a second type of flag. The first type of flag represents the data comparison results with the same data, and the second type of flag represents the data comparison results with different data.
[0069] For example, in order to further reduce the storage space required for the flag data, identification information with fewer bits may be used as the flag data, for example, 0 may be used as the first type of flag data and 1 may be used as the second type of flag data.
[0070] Alternatively, taking a row memory as an example, in order to store the flag data for each pixel in a row, a corresponding flag register can be set, and the flag data is stored in the flag register. Furthermore, considering the correlation between each flag data in the flag memory, the pixel, and the address in the memory, the bit width of the flag register is the same as the address length of the memory, so that multiple flag data are associated with each address, effectively improving the efficiency and accuracy of writing pixels to the target address in the memory based on the flag data, thereby improving the efficiency of subsequent reading and processing of the data stored in the memory.
[0071] For example, the bit width of the flag register can be the bit width of a bit, and the address length of the memory can be determined based on the number of pixels in each row of the display device. For example, when the number of pixels in a row is 1920, the address length of the memory is 1920, and the bit width of the flag register is also 1920, so as to improve the accuracy of data writing.
[0072] Optionally, see Figure 2 , Figure 2 A detailed flowchart of step S100 is provided in an embodiment of the present application. Step S100 may include steps S110-S120.
[0073] In step S110 , if it is determined that the current pixel is the first pixel corresponding to the first address in the memory, the flag data of the first pixel is determined to be a second type flag.
[0074] Among them, when determining the flag data of multiple pixels that need to be stored in the memory, it is taken into account that the first pixel corresponding to the first address in the memory may not have an adjacent previous pixel. For example, taking a row memory as an example, the first address in the row memory corresponds to the first pixel in the first position in a row. However, as the first pixel in the first position in a row, it does not have a corresponding adjacent previous pixel, and it is impossible to perform data comparison to determine the corresponding flag data. Therefore, for this special case, it is possible to first determine whether the current pixel is the first pixel. If the current pixel is the first pixel, the flag data of the first pixel can be directly set to the second type of flag to be written to the data, so that the first pixel is processed as the initial reference pixel.
[0075] In step S120, if the current pixel is determined to be a subsequent pixel other than the first pixel, the current pixel data of the current pixel is compared with the previous pixel data of the previous pixel adjacent to the current pixel, and the first category flag or the second category flag of the current pixel is determined based on the data comparison result between the current pixel data and the previous pixel data.
[0076] Among them, when the current pixel point is a subsequent pixel that is not the first pixel, the current pixel data of the current pixel point can be compared with the previous pixel data of the previous pixel point adjacent to the current pixel point to determine the first category flag or the second category flag of the current pixel point based on the data comparison result between the current pixel data and the previous pixel data.
[0077] Optionally, before writing and reading data, pixel data of each pixel in the current display page of the display device can be obtained for processing based on the connection with the display device. The pixel data may include various types of data such as RGB color information, transparency information, printing color information, grayscale information, brightness information + chromaticity information, color depth information, timestamp, pixel position, etc. of the pixel.
[0078] exist Figure 2 In the illustrated embodiment, actual marker data can be determined based on the actual position of the current pixel and specific data conditions, thereby effectively improving the validity of data changes between pixels fed back by the marker data.
[0079] Optionally, see Figure 3 , Figure 3 A detailed flow chart of step S200 is provided in an embodiment of the present application. Step S200 may include steps S210-S230.
[0080] Step S210 , filtering the plurality of marker data to obtain target pixel points corresponding to the second type of markers.
[0081] Step S220: determining a target address in the memory corresponding to the target pixel position.
[0082] Among them, when writing data, since there is a correlation between the mark data, pixel points and storage address, multiple mark data can be filtered first to obtain the second type of mark and its corresponding pixel points as the target pixel points for data writing, and determine the target address corresponding to the target pixel point position in the memory.
[0083] Optionally, the target pixel point and the target address corresponding to the target pixel point position in the memory may be determined according to the position of the second type flag in the flag memory.
[0084] Alternatively, using a row memory as an example, when writing to a row of pixels, one or more target pixels to be written, along with one or more corresponding target addresses, can be determined from the row of pixels. If the display device is displaying a solid-color scene, all pixels in a row have the same color, and the corresponding target pixel is the first pixel, only the first pixel needs to be written, saving significant power consumption.
[0085] It should be noted that, for pixel points whose mark data is the first type of mark, they are treated as non-target pixels, and no data writing and reading processing is performed on them, nor is there any need to flip their mark data, which effectively reduces the number of data reading and writing operations.
[0086] Step S230: writing pixel data of the target pixel into the target address.
[0087] Among them, the pixel data of the target pixel point can be determined from the multiple pixel data obtained based on the identity information such as the position and identification of the target pixel point, and the pixel data can be written to the target address corresponding to the target pixel point in the memory to realize the filtered writing of data.
[0088] exist Figure 3 In the embodiment shown, the pixel data of the pixel points of the second type of mark can be selectively written corresponding to the address to record the change in data, that is, the change in color, without writing the pixel data of the pixel points of the first type of mark, that is, multiple pixel points with the same data and no change in color can share the pixel data within the same address, effectively reducing the number of operations when writing data, thereby reducing the power consumption required when writing data.
[0089] Optionally, see Figure 4 , Figure 4 A detailed flow chart of step S300 is provided in an embodiment of the present application. Step S300 may include steps S310-S330.
[0090] Step S310: Determine the processing requirements of the processing algorithm.
[0091] Among them, considering that many processing algorithms need to use the pixel data previously stored in the memory to process subsequent pixel points, it is possible to determine the specific processing requirements of the processing algorithm. The processing algorithm can be a variety of algorithms that need to read the pixel data of the preceding pixel points for subsequent pixel points to be processed, such as algorithms based on spatial dependency (such as image filtering and convolution-related algorithms, various edge detection algorithms, etc.), algorithms based on scan line dependency (such as rasterization processing algorithms, image compression algorithms, recursive filtering algorithms in real-time rendering, etc.), adaptive threshold algorithms (adjusting the binarization threshold according to the local pixel mean / variance), real-time shadow rendering algorithms (relying on the rendered depth / normal buffer to calculate shadows), and other types of algorithms.
[0092] Optionally, the processing requirements may be conditions related to which specific row or rows of pixel data of which pixels need to be called for processing. For example, the processing requirements may be various types of requirements determined based on the processing algorithm, such as determining or adjusting the color of the pixel points, the duration of the pixel data, and other types of operating conditions.
[0093] Step S320: Based on the processing requirement, determine the required pixel point from the multiple pixel points corresponding to the memory.
[0094] Among them, according to the processing requirements, the required pixel points required for processing can be determined from the multiple pixel points corresponding to the memory.
[0095] For example, in an adaptive threshold algorithm that adjusts the binarization threshold based on the local pixel mean / variance, the processing requirement may be to select pixel data in the middle area of the first two rows (for example, the area with pixel numbers 500-1420) to perform color adjustment on the pixel points in the middle area of the current row. Therefore, the required pixel points determined may be multiple pixel points in the middle area of the first two rows (i.e., the area with pixel numbers 500-1420) stored in one or more memories.
[0096] Step S330: Read pixel data from the memory according to the flag data of the required pixel point.
[0097] Among them, since the data of each pixel point is not written in the embodiment of the present application, when reading, the corresponding address can be selected from the memory according to the flag data of the required pixel point to read the corresponding pixel data for subsequent data processing.
[0098] exist Figure 4 In the illustrated embodiment, the stored pixel data can be read accordingly according to the processing requirements corresponding to the actual algorithm, meeting the use requirements of various different processing algorithms and being applicable to various different types of display application scenarios.
[0099] Optionally, see Figure 5 , Figure 5 A detailed flow chart of step S330 is provided in an embodiment of the present application. Step S330 may include steps S331-S333.
[0100] In step S331 , if the flag data of the required pixel is determined to be a first-category flag, a pixel whose flag data before the required pixel is a second-category flag is determined to be a valid pixel.
[0101] Among them, when reading data, if the flag data of the required pixel point is determined to be the first type of flag, it means that the required pixel point to be read has the same data and the same color, and the pixel data of the required pixel point has not been written into the memory, but the pixel point in front of the required pixel point has the same data as the required pixel point and the data is written. Therefore, it can be determined that the pixel point with the closest flag data between the required pixel points is the second type of flag, which is the valid pixel point. The valid pixel point has the same pixel data as the required pixel point, and the pixel data of the valid pixel point is written into the memory.
[0102] Optionally, the required pixel point may be used as a starting point, and the flag data of each pixel point may be determined in sequence until a pixel point whose flag data is a second type of flag is found, and the pixel point is used as the corresponding valid pixel point.
[0103] Step S332: Read pixel data of valid pixels from the memory.
[0104] Among them, due to the correlation between the flag data, pixel points, and storage addresses, after determining the valid pixel points, the storage address corresponding to the valid pixel points in the memory can be determined, and the pixel data of the valid pixel points can be read from the storage address as the pixel data of the required pixel points for subsequent data processing. For the required pixel points that have not been written with data, the pixel points corresponding to the data and having the same color can be determined to read the corresponding pixel data for subsequent data processing, effectively improving the reliability of data reading and reducing the number of operations during data reading, thereby reducing the power consumption required for data reading.
[0105] Or, in step S333, if it is determined that the flag data of the required pixel point is a second type flag, the pixel data of the required pixel point is read from the memory.
[0106] During data reading, if the flag data for the desired pixel is determined to be a second-class flag, indicating that the desired pixel has different data or color, and the pixel data for the desired pixel has already been written to the memory, the pixel data can be directly read from the address corresponding to the desired pixel in the memory for subsequent data processing due to the correlation between the flag data, the pixel, and the storage address. For the desired pixel that has already had data written to it, the pixel data at the corresponding address can be directly read for subsequent data processing, effectively improving data reading efficiency.
[0107] exist Figure 5 In the illustrated embodiment, corresponding addresses can be selected in the memory to read data according to different situations of data being written or not written, thereby optimizing the reliability and efficiency of data reading.
[0108] It should be noted that, considering that different processing algorithms have different processing requirements, and the number of pixels that each memory can store is limited, taking the row memory as an example, each row memory can store the pixel data of a row of pixels, and some processing algorithms need to read the pixel data of multiple rows before processing, for example, reading the pixel data of the first three rows for processing, etc. Therefore, in order to realize the corresponding memory multiplexing function and data reading function, the number of memories is determined based on the processing requirements. The number of memories can be determined according to the actual processing requirements. For example, when the processing requirement is to read the pixel data of the first three rows for processing, three memories are set to store the pixel data of each row respectively. Taking into account the association characteristics between the memories and the flag registers, the number of memories is the same as the number of flag registers, so that according to the actual processing requirements, an appropriate number of memories and flag registers are set to write and read data, while meeting the normal data processing and reducing the power consumption required for data processing.
[0109] Optionally, the memory and the flag register may be multiplexed to effectively process multiple lines of data on a display interface in a display device.
[0110] See also Figure 6 , Figure 6 A schematic structural diagram of a display device provided in an embodiment of the present application, wherein the display device may include: a processor 410, a driving device 420, and a display device 430;
[0111] The driving device 420 is connected to the processor 410 and the display device 430;
[0112] The driver device 420 is provided with a memory 421. The processor 410 is used to control the operation of the driver device 420. The driver device 420 is used to:
[0113] Determine flag data of a plurality of pixels in the display device 430 corresponding to a plurality of addresses in the memory 421; wherein the flag data represents a data comparison result between the pixel and an adjacent previous pixel, the data comparison result including data being the same or different;
[0114] Writing the pixel data of the pixel points with different marking data into the target address of the memory 421;
[0115] According to the processing requirements, the pixel data of the required pixel point is read from the memory 421.
[0116] For example, the processor 410 can be an integrated circuit chip with signal processing capabilities. The processor 410 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor.
[0117] For example, the driver device 420 may be a driver IC chip provided with multiple processing algorithms and a memory 421, such as a DDIC (Display Driver IC), and the display device 430 may be various types of display screens, displays, and other devices, such as an AMOLED display screen.
[0118] Optionally, the driving device 420 is electrically connected to the processor 410 and the display device 430 to achieve transmission of control signals and data signals.
[0119] In an optional embodiment, the flag data includes: a first type of flag and a second type of flag, the first type of flag represents the data comparison result of the same data, and the second type of flag represents the data comparison result of different data; a flag register can also be provided in the driver device 420, and the flag data is stored in the flag register; the bit width of the flag register is the same as the address length of the memory 421.
[0120] In an optional embodiment, the driving device 420 is specifically used to: if the current pixel point is determined to be the first pixel corresponding to the first address in the memory 421, then determine that the flag data of the first pixel is the second type flag; if the current pixel point is determined to be a subsequent pixel other than the first pixel, then based on the current pixel data of the current pixel point, compare with the previous pixel data of the previous pixel point adjacent to the current pixel point, and determine the first type flag or the second type flag of the current pixel point based on the data comparison result between the current pixel data and the previous pixel data.
[0121] In an optional embodiment, the driving device 420 is specifically used to: filter and process multiple mark data to obtain the target pixel point corresponding to the second type of mark; determine the target address corresponding to the target pixel point position in the memory 421; and write the pixel data of the target pixel point into the target address.
[0122] In an optional embodiment, the driving device 420 is specifically used to: determine the processing requirements of the processing algorithm; based on the processing requirements, determine the required pixel point among the multiple pixel points corresponding to the memory 421; and read the pixel data from the memory 421 according to the flag data of the required pixel point.
[0123] In an optional embodiment, the driving device 420 is specifically used to: if it is determined that the mark data of the required pixel point is a first-class mark, then determine the pixel point whose mark data before the required pixel point is a second-class mark as the valid pixel point; and read the pixel data of the valid pixel point from the memory 421.
[0124] In an optional implementation, the driving device 420 is specifically configured to: if it is determined that the flag data of the required pixel point is a second type flag, read the pixel data of the required pixel point from the memory 421 .
[0125] In an optional embodiment, the number of memories 421 is the same as the number of flag registers; the number of memories 421 is determined based on processing requirements.
[0126] Since the principle of solving the problem by the display device in the embodiment of the present application is similar to that in the embodiment of the aforementioned data processing method, the implementation of the display device in this embodiment can refer to the description in the embodiment of the aforementioned data processing method, and the repeated parts will not be repeated.
[0127] An embodiment of the present application further provides a computer program product, which includes a computer program / instruction. When the computer program / instruction is executed by a processor, the steps of the data processing method in any of the above embodiments are implemented.
[0128] In the several embodiments provided in this application, it should be understood that the disclosed devices can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices according to the multiple embodiments of the present application. In this regard, each box in the block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram, and the combination of the block diagrams, can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0129] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0130] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0131] The foregoing is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included within the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined or explained in subsequent figures.
[0132] The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the scope of protection of the present application.
[0133] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.
Claims
1. A data processing method, characterized in that: The method comprises: Determining flag data of a plurality of pixel points corresponding to a plurality of addresses in a memory; wherein the flag data represents a data comparison result between the pixel point and an adjacent previous pixel point, the data comparison result including data being the same or different; Writing the pixel data of the pixel point having different representation data as the flag data into the target address of the memory; According to processing requirements, the pixel data of the required pixel point is read from the memory.
2. The method according to claim 1, characterized in that in, The flag data includes: a first type of flag and a second type of flag, the first type of flag represents the data comparison result of the same data, and the second type of flag represents the data comparison result of the different data; The flag data is stored in a flag register; The bit width of the flag register is the same as the address length of the memory.
3. The method according to claim 2, characterized in that The step of determining the flag data of a plurality of pixel points corresponding to a plurality of addresses in the memory includes: If it is determined that the current pixel point is the first pixel corresponding to the first address in the memory, determining that the flag data of the first pixel is the second type flag; If it is determined that the current pixel point is a subsequent pixel other than the first pixel, the current pixel data of the current pixel point is compared with the previous pixel data of the previous pixel point adjacent to the current pixel point, and the first category flag or the second category flag of the current pixel point is determined based on the data comparison result between the current pixel data and the previous pixel data.
4. The method according to claim 2, characterized in that Writing the pixel data of the pixel point having different representation data as the flag data into the target address of the memory includes: Filtering the plurality of mark data to obtain target pixel points corresponding to the second type of marks; Determining the target address corresponding to the target pixel position in the memory; The pixel data of the target pixel point is written into the target address.
5. The method according to claim 2, characterized in that The step of reading the pixel data of the required pixel point from the memory according to the processing requirement includes: determining said processing requirements of a processing algorithm; Based on the processing requirement, determining the required pixel point from the plurality of pixel points corresponding to the memory; The pixel data is read from the memory according to the flag data of the required pixel point.
6. The method according to claim 5, characterized in that The step of reading the pixel data from the memory according to the flag data of the required pixel point includes: If it is determined that the flag data of the required pixel point is the first type of flag, then determining the pixel point whose flag data before the required pixel point is the second type of flag as the valid pixel point; The pixel data of the effective pixel point is read from the memory.
7. The method according to claim 5, characterized in that The step of reading the pixel data from the memory according to the flag data of the required pixel point includes: If it is determined that the flag data of the required pixel point is the second type of flag, the pixel data of the required pixel point is read from the memory.
8. The method according to any one of claims 2 to 7, characterized in that in, The number of the memories is the same as the number of the flag registers; The amount of memory is determined based on the processing requirements.
9. A display device, characterized in that: The display device includes: a processor, a driving device and a display device; The driving device is connected to the processor and the display device; The driving device is provided with a memory, and the processor is used to control the operation of the driving device, and the driving device is used to: Determining flag data of a plurality of pixels in the display device corresponding to a plurality of addresses in a memory; wherein the flag data represents a data comparison result between the pixel and an adjacent previous pixel, the data comparison result including data being the same or different; Writing the pixel data of the pixel point having different representation data as the flag data into the target address of the memory; According to processing requirements, the pixel data of the required pixel point is read from the memory.
10. A computer program product, characterized in that The computer program product comprises a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps in the method according to any one of claims 1 to 8 are implemented.