Image data processing rule determination method and device, chip and display system
By determining the target processing rules in the image processing chip, the problem of incompatibility of the RGB image type driver unit and the RGBG image type display screen is solved, and the compatibility and correct display of the display screen are achieved.
Patent Information
- Application Number
- CN202510373714.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-08-08
AI Technical Summary
In the prior art, the RGB image type display driver integrated circuit unit cannot directly replace the RGBG image type display screen, resulting in display errors and cannot be compatible with different types of display driver integrated circuit units.
By acquiring the driving rules and the data processing functions of the image processing chip, the target processing rules are determined and written to the image processing chip, so that it performs corresponding image data processing, and the display driver integrated circuit unit is controlled to correctly display the image, including black-black filling, flip and rearrangement steps.
The display screens of different image types are compatible with multiple display driver integrated circuit units, which facilitates maintenance personnel to select the appropriate driver unit for repair and ensure the correct display.
Smart Images

Figure CN120447978A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a method, device, chip and display system for determining image data processing rules. Background Art
[0002] In the field of display technology, a display driver integrated circuit (DDIC) unit is used to drive a display screen to display images. Display screens that display images of different image types are widely used in various display devices. Taking RGBG image type and RGB image type as examples, in a display screen of RGB image type, a pixel of one RGB image is divided into three sub-pixels for display. In a display screen of RGBG image type, a pixel of one RGBG image is divided into two sub-pixels for display. Due to the difference in the number and arrangement of sub-pixels, a display screen of RGBG image type can achieve higher resolution than a display screen of RGB image type at the same size, making the image clearer.
[0003] Currently, when a display module leaves the factory, it uses a dedicated RGBG image type display driver integrated circuit unit paired with an RGBG image type display screen. During subsequent use, the RGBG image type display driver integrated circuit unit may become damaged. When repairing a display module, due to the common RGB image type display driver integrated circuit units, RGB image type display driver integrated circuit units are often used to replace RGBG image type display driver integrated circuit units to drive the RGBG image type display screen due to various factors such as cost and supply chain considerations.
[0004] However, using an RGB image type display driver integrated circuit unit to drive an RGBG image type display screen requires that the number of sub-pixels that the RGB image type display driver integrated circuit unit can control must be equal to the number of sub-pixels of the RGBG image type display screen. Otherwise, some routing interfaces of the display driver integrated circuit unit will not be able to be electrically connected to the sub-pixel array of the display screen, and the displayed image will be erroneous. Summary of the Invention
[0005] In response to the shortcomings of the existing technology, the present application provides a method, device, chip and display system for determining image data processing rules. The method determines a target processing rule that is equivalent to the driving rule and supportable by the image processing chip based on the driving rule and the image data processing function, and writes the target processing rule into the image processing chip so that the image processing chip can execute the corresponding image data processing function according to the target processing rule to process the image data, and control the display driver integrated circuit unit to drive the display screen to display the image according to the processed image data. The display driver integrated circuit unit that is originally not suitable for driving the display screen can drive the display screen to display the correct image, so that the second image type display screen can be compatible with multiple display driver integrated circuit units of the first image type, which makes it easier for maintenance personnel to select available display driver integrated circuit units to repair the display module.
[0006] In order to solve the above problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a method for determining an image data processing rule, comprising: obtaining a driving rule for enabling a display driver integrated circuit unit of a first image type to drive a display screen of a second image type for display and an image data processing function supported by an image processing chip, wherein the first image type is different from the second image type; determining a target processing rule that is equivalent to the driving rule and supportable by the image processing chip based on the driving rule and the image data processing function; writing the target processing rule into the image processing chip so that the image processing chip executes the corresponding image data processing function to process the image data according to the target processing rule, and controls the display driver integrated circuit unit to drive the display screen to display an image according to the processed image data, wherein the processed image data obtained by the image processing chip processing the image data according to the target processing rule is the same as the processed image data obtained when the image data can be processed according to the driving rule.
[0008] In some embodiments, the display driver integrated circuit unit of the first image type may control the number of sub-pixels displayed to be greater than the number of sub-pixels that can be displayed on the display screen of the second image type.
[0009] In some embodiments, the first image type is an RGB image type, and the second image type is an RGBG image type.
[0010] In some embodiments, determining a target processing rule that is equivalent to the driving rule and supportable by the image processing chip based on the driving rule and the image data processing function includes: when it is determined based on the driving rule and the image data processing function that the image processing chip can implement the driving rule, determining the driving rule as the target processing rule; when it is determined based on the driving rule and the image data processing function that the image processing chip cannot implement the driving rule, modifying the driving rule based on the image data processing function to obtain the target processing rule.
[0011] In some embodiments, when it is determined based on the driving rule and the image data processing function that the image processing chip cannot implement the driving rule, the driving rule is modified based on the image data processing function to obtain the target processing rule, including: identifying the operation steps in the driving rule, the operation steps at least including a black filling step, a flipping step, and a rearrangement step, the black filling step is a step of inserting a black sub-pixel area into the image data, the flipping step is a step of swapping the positions of some sub-pixels in the image data, and the rearrangement step is a step of rearranging the positions of the sub-pixels in the image data; when it is determined based on the operation steps and the image data processing function that the image processing chip cannot implement the driving rule, the driving rule is modified based on the image data processing function to obtain the target processing rule.
[0012] In some embodiments, the image data processing function includes a function in which the execution priority of the black filling step is higher than the execution priority of the flipping step. When it is determined based on the operation steps and the image data processing function that the image processing chip cannot implement the driving rule, the driving rule is modified based on the image data processing function to obtain the target processing rule, including: when it is identified that the execution order of the black filling step in the driving rule is after the execution order of the flipping step, determining that the image processing chip cannot implement the black filling step and the flipping step in the driving rule using the image data processing function, and then determining that the image processing chip cannot implement the driving rule; determining the flipped sub-pixel area in the flipping step according to the flipping step, and determining the first position of the black sub-pixel area after executing the black filling step; in the driving rule, adjusting the execution order of the black filling step to before the execution order of the flipping step; when it is determined based on the first position that the black sub-pixel area is located in the middle of the flipped sub-pixel area, dividing the flipped sub-pixel area in the flipping step into a first flipped sub-pixel area and a second flipped sub-pixel area, and determining the second position of the black sub-pixel area in the first flipped sub-pixel area as the first flipped sub-pixel area. The method comprises the steps of: determining a head position or a tail position of a sub-pixel region, and determining that the second flipped sub-pixel region does not include the black sub-pixel region; when the black sub-pixel region is determined to be before the head of the flipped sub-pixel region according to the first position, determining the second position of the black sub-pixel region to be after the tail of the flipped sub-pixel region, and determining a modified flipped sub-pixel region including the black sub-pixel region; when the black sub-pixel region is determined to be after the tail of the flipped sub-pixel region according to the first position, determining the second position of the black sub-pixel region to be before the head of the flipped sub-pixel region, and determining a modified flipped sub-pixel region including the black sub-pixel region; replacing the position of the black sub-pixel region inserted in the black filling step from the first position to the second position in the driving rule; when the flipped sub-pixel region in the flipping step is divided into the first flipped sub-pixel region and the second flipped sub-pixel region, modifying the flipping step to flip the first flipped sub-pixel region and the second flipped sub-pixel region respectively; and when the modified flipped sub-pixel region has been determined, modifying the flipping step to flip the modified flipped sub-pixel region; and obtaining the target processing rule based on the modified driving rule.
[0013] In some embodiments, when it is determined based on the operation steps and the image data processing function that the image processing chip cannot implement the driving rule, the driving rule is modified based on the image data processing function to obtain the target processing rule, including: determining the rearranged sub-pixel area according to the sub-pixel rearrangement rule in the rearrangement step of the driving rule; when it is determined based on the rearranged sub-pixel area and the rearrangement function in the image data processing function that the image processing chip cannot implement the driving rule, the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified based on the image data processing function to obtain the target processing rule.
[0014] In some embodiments, the rearrangement function includes a function of completely rearranging or not rearranging all black sub-pixels in the black sub-pixel area inserted in the black filling step, and when it is judged that the image processing chip cannot implement the driving rule based on the rearrangement function in the rearrangement sub-pixel area and the image data processing function, the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified based on the image data processing function to obtain the target processing rule, including: when the rearrangement sub-pixel area includes part of the black sub-pixels in the black sub-pixel area, it is judged that the image processing chip cannot implement the rearrangement step in the driving rule using the rearrangement function, and then it is judged that the image processing chip cannot implement the driving rule; in the driving rule, part of the black sub-pixel area is added to the rearrangement sub-pixel area or the black sub-pixel area is deleted, so that the rearrangement sub-pixel area includes all of the black sub-pixel area or does not include the black sub-pixel area; the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified to obtain the target processing rule.
[0015] In some embodiments, the rearrangement function includes a function of performing a rearrangement operation on sub-pixels in the image data based on a rearrangement operation unit including a first preset number of sub-pixels, and when it is judged that the image processing chip cannot implement the driving rule based on the rearrangement sub-pixel area and the rearrangement function in the image data processing function, the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified based on the image data processing function to obtain the target processing rule, including: when the number of sub-pixels included in the rearrangement sub-pixel area is not an integer multiple of the first preset number, it is judged that the image processing chip cannot implement the rearrangement step in the driving rule using the rearrangement function, and further judged that the image processing chip cannot implement the driving rule; in the driving rule, part of the black sub-pixel area is added to the rearrangement sub-pixel area or the black sub-pixel area is deleted, and / or the rearrangement sub-pixel area is merged according to the sub-pixel rearrangement rule so that the number of sub-pixels included in the rearrangement sub-pixel area is an integer multiple of the first preset number; and the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified to obtain the target processing rule.
[0016] In some embodiments, the rearrangement function includes a function of performing a rearrangement operation on rearranged sub-pixel areas whose number is not greater than a second preset number according to a sub-pixel rearrangement rule corresponding to each of the rearranged sub-pixel areas, and when it is judged based on the rearrangement function in the rearranged sub-pixel areas and the image data processing function that the image processing chip cannot implement the driving rule, the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified based on the image data processing function to obtain the target processing rule, including: when the number of the rearranged sub-pixel areas is greater than the second preset number, it is judged that the image processing chip cannot implement the rearrangement step in the driving rule using the rearrangement function, and further judged that the image processing chip cannot implement the driving rule; in the driving rule, the rearranged sub-pixel areas are merged according to the sub-pixel rearrangement rule so that the number of the rearranged sub-pixel areas is not greater than the second preset number; and the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified to obtain the target processing rule.
[0017] In some embodiments, the sub-pixel rearrangement rule includes a correspondence between an original arrangement sequence number and a reordering sequence number of the rearranged sub-pixel area, and in the driving rule, merging the rearranged sub-pixel area according to the sub-pixel rearrangement rule includes: in the driving rule, when two rearranged sub-pixel areas are adjacent, determining whether the total number of sub-pixels included in the two rearranged sub-pixel areas is an integer multiple of a first preset number; when it is determined that the total number of sub-pixels included in the two rearranged sub-pixel areas is an integer multiple of the first preset number, and the correspondence between the original arrangement sequence number and the reordering sequence number of one rearranged sub-pixel area is a part of the head or tail of the correspondence between the original arrangement sequence number and the reordering sequence number of another rearranged sub-pixel area, and the reordering sequence of one rearranged sub-pixel area and the reordering sequence of the other rearranged sub-pixel area can be connected end to end and applied, merging the two rearranged sub-pixel areas.
[0018] In some embodiments, the rearrangement function includes a function of performing a rearrangement operation on the sub-pixels in the rearranged sub-pixel area based on a rearrangement operation unit including a first preset number of sub-pixels, the rearrangement operation including adjusting the sub-pixels in each of the rearrangement operation units from the position of the original arrangement number in the rearrangement operation unit to the position of the corresponding reorder number according to the correspondence between the original arrangement number and the reorder number of the rearrangement operation unit, the sub-pixel rearrangement rule in the rearrangement step of modifying the driving rule to obtain the target processing rule includes: in the driving rule, when the sub-pixel rearrangement rule includes performing a rearrangement operation on the sub-pixels in the rearranged sub-pixel area based on the rearrangement operation unit, constructing a first array including all reorder numbers of the reordering operation unit based on the sub-pixel rearrangement rule, wherein the index of the reorder number in the first array is the corresponding original arrangement number; when part of the black sub-pixel area is added to the rearranged sub-pixel area , determine a first number of black sub-pixels added to the rearranged sub-pixel area; determine a first circular shift mode of the first array based on the positions of the black sub-pixels added to the rearranged sub-pixel area; circularly shift the first array by the first number of bits according to the first circular shift mode to obtain a second array; when deleting the black sub-pixel area in the rearranged sub-pixel area, determine a second number of black sub-pixels deleted in the rearranged sub-pixel area; determine a second circular shift mode of the first array based on the positions of the black sub-pixels deleted in the rearranged sub-pixel area; circularly shift the first array by the second number of bits according to the second circular shift mode to obtain a third array; obtain the correspondence between the original arrangement sequence number and the reordering sequence number of the rearrangement operation unit in the modified sub-pixel rearrangement rule based on the second array or the third array, thereby obtaining the modified sub-pixel rearrangement rule in the rearrangement step of the driving rule; and obtain the target processing rule.
[0019] In some embodiments, obtaining the correspondence between the original arrangement sequence number and the reordered sequence number of the rearrangement operation unit in the modified sub-pixel rearrangement rule based on the second array or the third array, thereby obtaining the modified sub-pixel rearrangement rule in the rearrangement step of the driving rule, includes: when it is recognized that in the sub-pixel rearrangement rule before the modification of the driving rule, the rearrangement operation unit is divided into a plurality of sub-operation units, each of which has an independent correspondence between the original arrangement sequence number and the reordered sequence number, dividing the second array or the third array into a plurality of fourth arrays according to the sub-pixel rearrangement rule before the modification, each of the fourth arrays corresponding to a sub-operation The method comprises the following steps: determining the correspondence between the original arrangement number and the reorder number of the sub-operation unit; for each of the fourth arrays, determining the minimum reorder number in the fourth array and the minimum original arrangement number of the sub-operation unit of the corresponding group; subtracting the minimum original arrangement number corresponding to the fourth array from the minimum reorder number to obtain a first value; adding the first value to all the reorder numbers in the fourth array to obtain the updated fourth array; obtaining the correspondence between the original arrangement number and the reorder number of the reorder operation unit in the modified sub-pixel reorder rule based on all the updated fourth arrays, thereby obtaining the modified sub-pixel reorder rule in the reordering step of the driving rule.
[0020] In a second aspect, an embodiment of the present application provides an electronic device, comprising:
[0021] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for determining image data processing rules as described in the first aspect.
[0022] In a third aspect, an embodiment of the present application provides an image processing chip, which stores target processing rules determined by the method for determining image data processing rules described in the first aspect, and is used to execute corresponding image data processing functions according to the target processing rules to process image data, and control the display module to display images according to the processed image data.
[0023] In a fourth aspect, an embodiment of the present application provides a display system, comprising an image processing chip and a display module as described in the third aspect, wherein the display module comprises a display driver integrated circuit unit of a first image type and a display screen of a second image type, and the display driver integrated circuit unit is used to control the display screen to display an image according to a control signal sent by the image processing chip.
[0024] The present application provides a method, device, chip and display system for determining image data processing rules. The present application determines a target processing rule that is equivalent to the driving rule and supportable by the image processing chip based on the driving rule and the image data processing function, and writes the target processing rule into the image processing chip so that the image processing chip can execute the corresponding image data processing function according to the target processing rule to process the image data, and control the display driver integrated circuit unit to drive the display screen to display the image according to the processed image data. The display driver integrated circuit unit that is originally not suitable for driving the display screen can drive the display screen to display the correct image, so that the second image type display screen can be compatible with multiple display driver integrated circuit units of the first image type, making it convenient for maintenance personnel to select available display driver integrated circuit units to repair the display module. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flowchart of the method for determining image data processing rules provided in an embodiment of the present application.
[0026] Figure 2 yes Figure 1 Detailed flowchart of step S200.
[0027] Figure 3 yes Figure 2 Detailed flow chart of step S220.
[0028] Figure 4A This is a schematic diagram of two adjacent rows of sub-pixel image data provided by an embodiment of the present application.
[0029] Figure 4B 2 is a schematic diagram of two adjacent rows of sub-pixel image data after flipping provided in an embodiment of the present application.
[0030] Figure 4C This is a schematic diagram of two adjacent rows of sub-pixel image data after flipping and black filling provided by an embodiment of the present application.
[0031] Figure 5 yes Figure 3 Detailed flow chart of step S222 in FIG.
[0032] Figure 6A This is a schematic diagram of a first rearrangement of image data provided in an example embodiment of the present application. Figure 6B 3 is a schematic diagram of a second rearrangement of image data according to an example provided in an embodiment of the present application. Figure 6C 3 is a schematic diagram of the third rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6D 3 is a schematic diagram of the fourth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6E3 is a schematic diagram of the fifth rearrangement of the image data provided in the example of the embodiment of the present application. Figure 6F This is a schematic diagram of the sixth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6G 3 is a schematic diagram of the seventh rearrangement of the image data provided in the embodiment of the present application. Figure 6H This is a schematic diagram of the eighth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6I This is a schematic diagram of the ninth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6J This is a schematic diagram of the tenth rearrangement of the example image data provided in the embodiment of the present application. Figure 6K This is a schematic diagram of the eleventh rearrangement of the image data provided in the example of the embodiment of the present application. Figure 6L This is a schematic diagram of the twelfth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6M This is a schematic diagram of the thirteenth rearrangement of the image data of the example provided in the embodiment of the present application.
[0033] Figure 7 It is a structural diagram of the device for determining image data processing rules provided in an embodiment of the present application.
[0034] Figure 8 This is a structural diagram of an electronic device provided in an embodiment of the present application.
[0035] Figure 9 This is a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application.
[0036] Figure 10 It is a structural diagram of the display system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0038] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.
[0039] The present application provides a method, device, chip and display system for determining image data processing rules. The method determines a target processing rule that is equivalent to the driving rule and supportable by the image processing chip based on the driving rule and the image data processing function, and writes the target processing rule into the image processing chip so that the image processing chip can execute the corresponding image data processing function to process the image data according to the target processing rule, and control the display driver integrated circuit unit to drive the display screen to display the image based on the processed image data. The display driver integrated circuit unit that is originally not suitable for driving the display screen can drive the display screen to display the correct image, thereby making the second image type display screen compatible with multiple first image type display driver integrated circuit units, making it easier for maintenance personnel to select available display driver integrated circuit units to repair the display module.
[0040] The following will describe in detail the method for determining image data processing rules provided by this application with reference to the accompanying drawings.
[0041] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for determining image data processing rules provided in an embodiment of the present application. Figure 1 As shown, the method for determining the image data processing rule includes steps S100 to S300.
[0042] Step S100: obtaining a driving rule for enabling a display driver integrated circuit unit of a first image type to drive a display screen of a second image type to perform display and an image data processing function supported by an image processing chip.
[0043] The first image type is different from the second image type.
[0044] Optionally, the first image type is an RGB image type, and the second image type is an RGBG image type.
[0045] In some embodiments, the display driver integrated circuit unit of the first image type may control the number of sub-pixels displayed to be greater than or equal to the number of sub-pixels that can be displayed on the display screen of the second image type.
[0046] Step S200: determining a target processing rule that is equivalent to the driving rule and can be supported by the image processing chip based on the driving rule and the image data processing function.
[0047] See also Figure 2 , Figure 2 yes Figure 1 Detailed flow chart of step S200. Figure 2 As shown, in some embodiments, step S200 includes steps S210 to S220.
[0048] Step S210: When it is determined based on the driving rule and the image data processing function that the image processing chip can implement the driving rule, the driving rule is determined as the target processing rule.
[0049] Step S220: When it is determined based on the driving rule and the image data processing function that the image processing chip cannot implement the driving rule, the driving rule is modified based on the image data processing function to obtain a target processing rule.
[0050] See also Figure 3 , Figure 3 yes Figure 2 Detailed flow chart of step S220 in FIG. Figure 3 As shown, in some embodiments, step S220 includes step S221 and step S222.
[0051] Step S221: Identify the operation steps in the driving rules.
[0052] The operation step includes at least a black filling step, a flipping step, and a rearrangement step. The black filling step is a step of inserting a black sub-pixel region into the image data, the flipping step is a step of swapping the positions of some sub-pixels in the image data, and the rearrangement step is a step of rearranging the positions of the sub-pixels in the image data.
[0053] If the number of sub-pixels that can be controlled for display by the display driver integrated circuit unit of the first image type is equal to the number of sub-pixels that can be displayed by the display screen of the second image type, the image processing chip needs to perform a rearrangement step on the image data so that the display driver integrated circuit unit of the first image type can drive the display screen of the second image type to display a correct image. If the number of sub-pixels that can be controlled for display by the display driver integrated circuit unit of the first image type is greater than the number of sub-pixels that can be displayed by the display screen of the second image type, the image processing chip needs to perform a step including at least a black filling step and a rearrangement step on the image data so that the display driver integrated circuit unit of the first image type can drive the display screen of the second image type to display a correct image.
[0054] Step S222: When it is determined based on the operation steps and the image data processing function that the image processing chip cannot implement the driving rule, the driving rule is modified based on the image data processing function to obtain the target processing rule.
[0055] In some embodiments, the image processing chip is configured to process image data of the second image type according to target processing rules.
[0056] Optionally, the image processing chip is further configured to acquire image data of a first image type and convert the image data into image data of a second image type.
[0057] Optionally, the image processing chip is further configured to acquire image data of a second image type.
[0058] The following is an example of a driving rule, and based on the example driving rule, a specific implementation method of determining a target processing rule equivalent to the driving rule using the method for determining image data processing rules provided by this application is given. It is understandable that because there are many models of display driver integrated circuit units and display modules, and many combinations of them, the driving rules are also different. The following example should not be considered a limitation of this application. The method for determining image data processing rules provided by this application can also be used to determine target processing rules based on other driving rules.
[0059] The example driving rules are used to enable a display driver integrated circuit unit with an RGB image resolution of 900×2778 to drive a display screen with an RGBG image resolution of 1284×2778 to display an image. "900×2778" indicates that the display driver integrated circuit unit can control the display of an RGB image with 900 columns and 2778 rows of pixels. "1284×2778" indicates that the display screen can display an RGBG image with 1284 columns and 2778 rows of pixels.
[0060] On an RGB image display, a pixel of an RGB image is divided into three sub-pixels for display. On an RGBG image display, a pixel of an RGBG image is divided into two sub-pixels for display. Therefore, the number of sub-pixels that the display driver integrated circuit unit can control for display is 3×900×2778=7500600 sub-pixels, while the number of sub-pixels that the display can display is 2×1284×2778=7133904 sub-pixels. In this case, the number of sub-pixels that the display driver integrated circuit unit can control for display is greater than the number of sub-pixels that the display can display.
[0061] In an RGBG image display, each row has 1284 subpixels, so a row of 1284 pixels requires a total of 2×1284=2568 subpixels to display. In an RGB image display, a row of 900 pixels requires a total of 3×900=2700 subpixels to display. Therefore, an RGB image display driver integrated circuit unit has routing interfaces to control the 2700 subpixel array, while an RGBG image display only has 2568 subpixel arrays. When using an RGB image display driver integrated circuit unit to drive an RGBG image display, some routing interfaces will inevitably be disconnected from the subpixel array. In this case, the image processing chip inserts black subpixels into the RGBG image data. This ensures that the control signals corresponding to each of the 2700 subpixels in the RGBG image data row and the 2568 subpixels in each row (these 2568 subpixels are the valid subpixels to be displayed) are all output through the routing interfaces in the display driver integrated circuit unit that are electrically connected to the subpixel array, thereby displaying the correct image on the display. The supplementary black sub-pixels are inserted into locations corresponding to routing interfaces that are not electrically connected to the display's sub-pixel array. Therefore, the control signals corresponding to the black sub-pixels cannot be output to the display via the routing interfaces that are not electrically connected to the sub-pixel array. The supplementary black sub-pixels are not displayed on the display, and thus do not affect the correct display of the image. Each routing interface in an RGB image-type display driver integrated circuit unit must be electrically connected to the corresponding sub-pixel array according to pre-set connection rules.
[0062] Because the number of sub-pixels corresponding to a pixel in an RGB image differs from the number of sub-pixels corresponding to a pixel in an RGBG image, when an RGB image display driver integrated circuit unit is used to drive an RGBG image display screen, the sub-pixels' displayed positions on the display screen often differ from the positions in the RGBG image data. This results in a garbled image. Therefore, it is necessary to adjust the positions of the sub-pixels in the RGBG image data. This adjustment includes at least a flipping step and a rearrangement step.
[0063] In the example driving rule, only the rule for processing a group of two adjacent rows of sub-pixels in the RGBG image data is given. The same rule for processing other groups of two adjacent rows of sub-pixels in the RGBG image data is also provided. In the example driving rule, the flipping step, the black filling step, and the rearrangement step are performed in sequence.
[0064] Example driving rules:
[0065] 1. Flipping step: Flip the positions of a group of adjacent odd-numbered sub-pixels and even-numbered sub-pixels.
[0066] The position flipping refers to reversing the order of the positions of the sub-pixels in a row, so that the original first sub-pixel becomes the last sub-pixel, the last sub-pixel becomes the first sub-pixel, and so on.
[0067] See also Figure 4A , Figure 4A Schematic diagram of two adjacent rows of sub-pixel image data provided by the embodiment of the present application. Figure 4A As shown, odd-numbered row L1 includes sub-pixels R1 to G1284, and even-numbered row L2 includes sub-pixels B1 to G1284. Sub-pixel R1 in odd-numbered row L1 indicates that the sub-pixel is red and is in the first group of sub-pixels, sub-pixel G1 indicates that the sub-pixel is green and is in the first group of sub-pixels, sub-pixel B2 indicates that the sub-pixel is blue and is in the second group of sub-pixels, and so on.
[0068] See also Figure 4B , Figure 4B Schematic diagram of two adjacent rows of sub-pixel image data after flipping provided by an embodiment of the present application. Figure 4A and Figure 4B As shown, in the odd row L1, the original first sub-pixel R1 becomes the last sub-pixel, the original last sub-pixel becomes G1284 becomes the first sub-pixel, and so on. Similarly, the changes in the even row L2 are the same.
[0069] 2. Black filling step: insert 132 black sub-pixels between sub-pixel R637 and sub-pixel G636 in odd rows, and insert 132 black sub-pixels between sub-pixel B637 and sub-pixel G636 in even rows.
[0070] See also Figure 4C , Figure 4C Schematic diagram of two adjacent rows of sub-pixel image data after flipping and black filling provided by an embodiment of the present application. Figure 4C As shown, in odd-numbered row L1, sub-pixels D1 to D132 are inserted between sub-pixel R637 and sub-pixel G636, and sub-pixels D1 to D132 are all black sub-pixels. The same is true for even-numbered row L2.
[0071] After the black filling step, each row has a total of 132+2568=2700 sub-pixels, which is the same as the number of 2700 sub-pixels in a row that can be controlled by the display driver integrated circuit unit. Therefore, the RGBG image data can be correctly displayed on the display screen.
[0072] 3. Rearrangement step: (1) Rearrange the first rearrangement sub-pixel region including sub-pixel G1284 to sub-pixel D48 of the odd-numbered rows of sub-pixels according to the first sub-pixel rearrangement rule.
[0073] Specifically, the first sub-pixel rearrangement rule in step (1) is as follows: define a rearrangement operation unit including 24 consecutive sub-pixels from left to right, divide the first rearrangement sub-pixel area into multiple rearrangement operation units, and according to the first correspondence between the original arrangement sequence number and the rearrangement sequence number of the rearrangement operation unit, adjust the sub-pixels in each rearrangement operation unit from the position of the original arrangement sequence number in the rearrangement operation unit to the position of the corresponding rearrangement sequence number.
[0074] The first correspondence between the original sequence number and the reordered sequence number of the reorder operation unit is:
[0075] Original sequence number:
[0076] 1→2→3→4→5→6→7→8→9→10→11→12→13→14→15→16→17→18→19→20→21→22→23→24.
[0077] Reorder number:
[0078] 10→11→8→3→5→2→12→7→9→6→1→4→24→19→21→18→13→16→22→20→15→17→14.
[0079] The original arrangement sequence number is the sequence number of the original position of the sub-pixel in the rearrangement operation unit, counted from left to right, and the reordered sequence number is the sequence number of the position of the sub-pixel in the rearrangement operation unit after rearrangement. For example, the position of the sub-pixel with the original arrangement sequence number of 1 in the rearrangement operation unit after rearrangement is 10, that is, after rearrangement, the sub-pixel with the original arrangement sequence number of 1 is adjusted to the position of the sub-pixel with the original arrangement sequence number of 10 before rearrangement, and so on.
[0080] (2) Rearrange the first rearranged sub-pixel region including sub-pixel G1284 to sub-pixel D48 in the even-numbered rows of sub-pixels according to the first sub-pixel rearrangement rule.
[0081] The first sub-pixel rearrangement rule is as shown in step (1).
[0082] (3) Rearrange the second rearranged sub-pixel region including sub-pixel D49 to sub-pixel R7 in the odd-numbered rows of sub-pixels according to the second sub-pixel rearrangement rule.
[0083] Specifically, the second sub-pixel rearrangement rule in step (3) is as follows: define a rearrangement operation unit including 24 consecutive sub-pixels from left to right, divide the second rearrangement sub-pixel area into multiple rearrangement operation units, and according to the second correspondence between the original arrangement sequence number and the rearrangement sequence number of the rearrangement operation unit, adjust the sub-pixels in each rearrangement operation unit from the position of the original arrangement sequence number in the rearrangement operation unit to the position of the corresponding rearrangement sequence number.
[0084] The second corresponding relationship between the original sequence number and the reordered sequence number of the reorder operation unit is:
[0085] Original sequence number:
[0086] 1→2→3→4→5→6→7→8→9→10→11→12→13→14→15→16→17→18→19→20→21→22→23→24.
[0087] Reorder number:
[0088] 12→7→9→6→1→4→10→11→8→3→5→2→22→23→20→15→17→14→24→19→21→18→13→16.
[0089] (4) Rearrange the second rearranged sub-pixel region from sub-pixel D49 to sub-pixel B7 of the even-numbered rows of sub-pixels according to the second sub-pixel rearrangement rule.
[0090] The second sub-pixel rearrangement rule is as shown in step (3).
[0091] (5) Rearrange the third rearranged sub-pixel region including sub-pixel G6 to sub-pixel R1 of the odd-numbered rows of sub-pixels according to the third sub-pixel rearrangement rule.
[0092] Specifically, the third sub-pixel rearrangement rule in step (5) is: according to the third correspondence between the original arrangement number and the reordering number of the third rearranged sub-pixel area including 2×6=12 sub-pixels, each sub-pixel is adjusted from the position of the original arrangement number in the rearranged sub-pixel area to the position of the corresponding reordering number.
[0093] The third corresponding relationship between the original arrangement sequence number and the re-arranged sequence number of the re-arranged sub-pixel region is:
[0094] Original sequence number:
[0095] 1→2→3→4→5→6→7→8→9→10→11→12.
[0096] Reorder number:
[0097] 12→7→9→6→1→4→10→11→8→3→5→2.
[0098] (6) Rearrange the third rearranged sub-pixel region including sub-pixel G6 to sub-pixel B1 in the even-numbered rows of sub-pixels according to the third sub-pixel rearrangement rule.
[0099] The third sub-pixel rearrangement rule is as shown in step (5).
[0100] In some embodiments, the image data processing function includes a function that prioritizes the execution of a black filling step over the execution of a flipping step. That is, the image processing chip can implement the function of executing the black filling step before executing other steps. If the black filling step in the driving rule is not executed before the flipping step, the image processing chip cannot support the implementation of the driving rule.
[0101] In some embodiments, step S222 includes steps (222.1) to (222.10).
[0102] (222.1) When it is identified that a black filling step and a flipping step exist in the driving rule, and the execution order of the black filling step is after the execution order of the flipping step, it is determined that the image processing chip cannot implement the black filling step and the flipping step in the driving rule by using the image data processing function, and further it is determined that the image processing chip cannot implement the driving rule.
[0103] For example, the example driving rule includes a black filling step and a flipping step, and the black filling step is executed after the flipping step. When it is recognized that the example driving rule includes a black filling step and a flipping step, and the black filling step is executed after the flipping step, it is determined that the image processing chip cannot implement the driving rule.
[0104] (222.2) Determine the flipped sub-pixel area in the flipping step according to the flipping step, and determine the first position of the black sub-pixel area after performing the black filling step.
[0105] Optionally, the number of black sub-pixels included in the black sub-pixel area is also determined according to the black filling step.
[0106] For example, according to the exemplary driving rules, it is determined that the flipped sub-pixel region includes all sub-pixels in a row. Furthermore, after performing the black filling step, in odd-numbered row L1, the first position of the black sub-pixel region is located between sub-pixel G636 and sub-pixel R637. In even-numbered row L2, the first position of the black sub-pixel region is located between sub-pixel G636 and sub-pixel B637. It is also determined that the number of black sub-pixels included in the black sub-pixel region is 132.
[0107] (222.3) In the driving rules, adjust the execution order of the black filling step to before the execution order of the flipping step.
[0108] (222.4) When the black sub-pixel area is determined to be located in the middle of the flipped sub-pixel area based on the first position, the flipped sub-pixel area in the flipping step is divided into a first flipped sub-pixel area and a second flipped sub-pixel area, and the second position of the black sub-pixel area in the first flipped sub-pixel area is determined to be the head position or the tail position of the first flipped sub-pixel area.
[0109] The first flipped sub-pixel region includes all black sub-pixel regions, and the second flipped sub-pixel region does not include any black sub-pixel regions. The second position of the black sub-pixel region is the position before the head portion or after the tail portion of the image data. The head portion of the sub-pixel region refers to the leftmost portion of the sub-pixel region, and the tail portion of the sub-pixel region refers to the rightmost portion of the sub-pixel region.
[0110] For example, the initial flipped sub-pixel region of odd-numbered row L1 includes sub-pixels R1 to G1284, and the black sub-pixel region is located at a first position in the middle of the initial flipped sub-pixel region. At this point, the initial flipped sub-pixel region is divided into a first flipped sub-pixel region and a second flipped sub-pixel region. The first flipped sub-pixel region includes, from left to right, sub-pixels R637 to G1284 and a black sub-pixel region inserted after the end of the image data. The second flipped sub-pixel region includes, from left to right, sub-pixels R1 to G636.
[0111] The processing of the even-numbered lines L2 refers to the processing of the odd-numbered lines L1.
[0112] (222.5) When the black sub-pixel area is determined to be before the head of the flipped sub-pixel area according to the first position, the second position of the black sub-pixel area is determined to be after the tail of the flipped sub-pixel area, and a modified flipped sub-pixel area including the black sub-pixel area is determined.
[0113] (222.6) When the black sub-pixel area is determined to be located after the tail of the flipped sub-pixel area according to the first position, the second position of the black sub-pixel area is determined to be before the head of the flipped sub-pixel area, and a modified flipped sub-pixel area including the black sub-pixel area is determined.
[0114] (222.7) In the driving rule, the position of the black sub-pixel region inserted in the black filling step is replaced from the first position to the second position.
[0115] (222.8) When step (222.4) is executed, the flipping step is modified to flip the first flipped sub-pixel area and the second flipped sub-pixel area respectively.
[0116] For example, the position of the black sub-pixel region inserted in the black filling step is replaced from the first position to the second position. The black filling step is modified to insert a black sub-pixel region comprising 132 black sub-pixels after sub-pixel G1284 in odd row L1, and the flipping step is modified to flip the first flipped sub-pixel region and the second flipped sub-pixel region, respectively. After the image processing chip executes the modified flipping step, all valid sub-pixels in odd row L1 are flipped, and the black sub-pixel region at the tail position of the first flipped sub-pixel region is flipped to the head position of the first flipped sub-pixel region. In other words, the black sub-pixel region originally located at the tail position (i.e., the second position) of odd row L1 is flipped to the first position in the middle of odd row L1, thereby making the image data obtained by executing the modified flipping step in the target processing rule the same as the image data obtained by executing the black filling step in the drive rule before the modification.
[0117] (222.9) When step (222.5) or step (222.6) is executed, the flipping step is modified to flip the modified flipped sub-pixel area.
[0118] At this time, after the image processing chip executes the modified flipping step, the black sub-pixel area at the second position can be swapped to the first position.
[0119] (222.10) Obtain target processing rules based on the modified driving rules.
[0120] In some embodiments, the numbering order of the sub-pixels in the black sub-pixel region is further determined based on the image data obtained by performing the flipping step before the modification. In the driving rule, a numbering step is added after the flipping step to renumber the sub-pixels in the black sub-pixel region according to the numbering order. This facilitates the subsequent reordering step.
[0121] By the above method, the result image data obtained by executing the modified black filling step and the flipping step can be made the same as the result image data obtained by executing the black filling step and the flipping step before the modification, thereby making the target processing rule and the driving rule equivalent.
[0122] In some embodiments, the image data processing function includes a function of inserting a black sub-pixel region no greater than a third preset number into a row or a column of sub-pixels.
[0123] Optionally, the third preset number is a positive integer not greater than 3.
[0124] In some embodiments, the method further includes: when it is identified that a black sub-pixel area greater than a third preset number is inserted into a row or a column of sub-pixels in the black filling step, determining that the image processing chip cannot implement the driving rule, and cannot modify the driving rule to obtain the target processing rule, and stopping executing subsequent steps.
[0125] See also Figure 5 , Figure 5 yes Figure 3 Detailed flow chart of step S222 in FIG. Figure 5 As shown, in some embodiments, step S222 includes steps S2221 to S2222.
[0126] Step S2221: determining a rearranged sub-pixel area according to the sub-pixel rearrangement rule in the rearrangement step of the driving rule.
[0127] Step S2222: When it is determined that the image processing chip cannot implement the driving rule based on the rearrangement function in the sub-pixel area and the image data processing function, the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified based on the image data processing function to obtain the target processing rule.
[0128] In some embodiments, step (222.10) includes steps S2221 to S2222.
[0129] In some embodiments, the rearrangement function includes fully rearranging or not rearranging all black sub-pixels in the black sub-pixel region inserted during the black filling step. In other words, the image processing chip cannot rearrange some of the black sub-pixels in the black sub-pixel region. In this case, step S2222 includes steps (2222.1) to (2222.3).
[0130] (2222.1) When the rearranged sub-pixel region includes some black sub-pixels in the black sub-pixel region, it is determined that the image processing chip cannot implement the rearrangement steps in the driving rule using the rearrangement function, and further determined that the image processing chip cannot implement the driving rule.
[0131] For example, when it is recognized that in the example driving rule, the rearranged sub-pixel area includes sub-pixel G1284 to sub-pixel D48 of the odd-row sub-pixels, and sub-pixel D1 to sub-pixel D48 are part of the black sub-pixel area, it is determined that the image processing chip cannot implement the rearrangement steps in the driving rule using the rearrangement function, and further determines that the image processing chip cannot implement the driving rule.
[0132] (2222.2) In the driving rule, a portion of the black sub-pixel region is added to or the black sub-pixel region is deleted from the rearranged sub-pixel region, so that the rearranged sub-pixel region includes all of the black sub-pixel region or does not include any black sub-pixel region.
[0133] In some embodiments, the rearrangement function includes performing a rearrangement operation on sub-pixels in a rearrangement sub-pixel region based on a rearrangement operation unit including a first preset number of sub-pixels. The rearrangement operation includes adjusting the sub-pixels in each rearrangement operation unit from positions corresponding to the original arrangement sequence numbers in the rearrangement operation unit to positions corresponding to the reordered sequence numbers, according to a correspondence between the original arrangement sequence numbers and the reordered sequence numbers of the rearrangement operation units.
[0134] In some embodiments, in the rearrangement step of the target processing rule, the rearrangement sub-pixel region is divided into a plurality of rearrangement operation units, and a rearrangement operation is performed on each rearrangement operation unit. When it is identified that the rearrangement sub-pixel region includes a portion of black sub-pixels in the black sub-pixel region in the driving rule, and a rearrangement operation unit includes both valid sub-pixels and black sub-pixels, a portion of the black sub-pixel region is added to or deleted from the rearrangement sub-pixel region in the driving rule so that the rearrangement sub-pixel region includes all black sub-pixel regions or does not include any black sub-pixel regions, and step (2222.3) is executed. This is because when a rearrangement operation unit includes both valid sub-pixels and black sub-pixels, deleting or adding black sub-pixels will affect the reordering order of the valid sub-pixels in the rearrangement operation unit.
[0135] In some embodiments, when the total number of valid sub-pixels in the rearrangement sub-pixel area of the driving rule is an integer multiple of the third number of rearrangement operation units in the driving rule, it is determined that no rearrangement operation unit in the rearrangement sub-pixel area of the driving rule includes both valid sub-pixels and black sub-pixels; otherwise, it is determined that there is a rearrangement operation unit in the driving rule that includes both valid sub-pixels and black sub-pixels.
[0136] In some embodiments, when it is determined that the rearrangement sub-pixel region includes some black sub-pixels in the black sub-pixel region in the driving rule, and no rearrangement operation unit includes both valid sub-pixels and black sub-pixels, all black sub-pixels in the rearrangement sub-pixel region of the driving rule are deleted, and step (2222.3) is not performed. This is because when no rearrangement operation unit includes both valid sub-pixels and black sub-pixels, deleting the black sub-pixels will not affect the reordering order of the valid sub-pixels in the rearrangement operation unit.
[0137] In some embodiments, after a portion of a black sub-pixel region is added or deleted from a rearranged sub-pixel region in a driving rule, the number of sub-pixels included in the rearranged sub-pixel region must be an integer multiple of a first preset number, so that the rearranged sub-pixel region can be divided into a plurality of rearrangement operation units for rearrangement operations. When a portion of a black sub-pixel region is added or deleted from a rearranged sub-pixel region in a driving rule, and it is determined that the number of sub-pixels included in the rearranged sub-pixel region is an integer multiple of the first preset number, it is determined to proceed with subsequent steps.
[0138] For example, taking the first preset number of 24 as an example, when it is identified that in the driving rule, the first rearranged sub-pixel area of the odd row L1 includes sub-pixel G1284 to sub-pixel D48, the first rearranged sub-pixel area includes 48 black sub-pixels, and there are 1272 valid sub-pixels from sub-pixel G1284 to sub-pixel R637, and it is calculated that 1272 is an integer multiple of 24, it is determined that there is no rearrangement operation unit that includes both valid sub-pixels and black sub-pixels, all black sub-pixels in the first rearranged sub-pixel area in the driving rule are deleted, and step (2222.3) is not executed.
[0139] When it is identified that in the driving rule, the second rearranged sub-pixel area of the odd row L1 includes 1344 sub-pixels from sub-pixel D49 to sub-pixel R7, the second rearranged sub-pixel area includes 84 black sub-pixels, and there are 1260 valid sub-pixels from sub-pixel G636 to sub-pixel R7, and 1260 is calculated to be not an integer multiple of 24, it is determined that there is a rearrangement operation unit including both valid sub-pixels and black sub-pixels, and all 84 black sub-pixels in the second rearranged sub-pixel area in the driving rule are deleted.
[0140] In some embodiments, the second rearranged sub-pixel region is further merged with the third rearranged sub-pixel region so that the number of sub-pixels included in the second rearranged sub-pixel region is an integer multiple of the first preset number. The method of merging sub-pixel regions is described in detail below.
[0141] (2222.3) Modify the sub-pixel rearrangement rule in the rearrangement step of the driving rule to obtain the target processing rule.
[0142] As described above, the rearrangement function includes a function of performing rearrangement operations on sub-pixels in the image data based on a rearrangement operation unit including a first preset number of sub-pixels. In this case, step S2222 includes steps (2222.4) to (2222.6).
[0143] (2222.4) When the number of sub-pixels included in the rearranged sub-pixel area is not an integer multiple of the first preset number, it is determined that the image processing chip cannot implement the rearrangement steps in the driving rule using the rearrangement function, and further determined that the image processing chip cannot implement the driving rule.
[0144] In some embodiments, the first preset number is 6, 12, 20, 24, or 32, etc.
[0145] (2222.5) In the driving rules, part of the black sub-pixel area is added to the rearranged sub-pixel area or the black sub-pixel area is deleted, and / or the rearranged sub-pixel area is merged according to the sub-pixel rearrangement rule, so that the number of sub-pixels included in the rearranged sub-pixel area is an integer multiple of the first preset number.
[0146] For example, after deleting all 84 black sub-pixels in the second rearranged sub-pixel region of the odd-numbered row L1 and merging the second rearranged sub-pixel region and the third rearranged sub-pixel region according to the sub-pixel rearrangement rule to obtain a modified second rearranged sub-pixel region, the modified second rearranged sub-pixel region includes 1272 sub-pixels, and 1272 is calculated to be an integer multiple of 24. Then, the sub-pixel rearrangement rule in the rearrangement step of modifying the driving rule is continued to be executed to obtain the target processing rule.
[0147] The operation on the even-numbered lines L2 refers to the operation on the odd-numbered lines L1.
[0148] In some embodiments, the method further includes: when, in the driving rule, adding a portion of the black sub-pixel area to the rearranged sub-pixel area or deleting the black sub-pixel area, and / or merging the rearranged sub-pixel area according to the sub-pixel rearrangement rule cannot make the number of sub-pixels included in the rearranged sub-pixel area an integer multiple of the first preset number, it is determined that the driving rule cannot be modified to obtain the target processing rule, and subsequent steps are stopped.
[0149] (2222.6) Modify the sub-pixel rearrangement rule in the rearrangement step of the driving rule to obtain the target processing rule.
[0150] In some embodiments, the method further includes: identifying a third number of sub-pixels included in a rearrangement operation unit determined in a sub-pixel rearrangement rule in the driving rule; and when the third number is not a factor of a first preset number, determining that the driving rule cannot be modified to obtain the target processing rule, and stopping execution of subsequent steps. When the third number is a factor of the first preset number, modifying the sub-pixel rearrangement rule in the rearrangement step of the driving rule so that the modified sub-pixel rearrangement operation rule can be used to perform a rearrangement operation on the rearrangement operation unit including the first preset number, thereby obtaining the target processing rule.
[0151] Optionally, a fifth array including all reordering numbers of the reordering operation units is constructed based on the sub-pixel reordering rule, and multiple fifth arrays are concatenated end to end to obtain a sixth array. Based on the sixth array, a correspondence between the original arrangement sequence numbers and the reordering numbers of the reordering operation units including the first preset number is obtained, thereby obtaining a modified sub-pixel reordering operation rule. The number of elements in the fifth array is the third number, and the number of elements in the sixth array is the first preset number.
[0152] In some embodiments, the rearrangement function includes performing a rearrangement operation on a number of rearrangement sub-pixel regions not exceeding a second predetermined number according to a sub-pixel rearrangement rule corresponding to each rearrangement sub-pixel region. The number of rearrangement sub-pixel regions is the number of rearrangement sub-pixel regions in a row or column of sub-pixels. In this case, step S2222 includes steps (2222.7) to (2222.9).
[0153] (2222.7) When the number of rearranged sub-pixel regions is greater than a second preset number, it is determined that the image processing chip cannot implement the rearrangement steps in the driving rule using the rearrangement function, and further determined that the image processing chip cannot implement the driving rule.
[0154] In some embodiments, the second preset number is a positive integer not greater than 3. For example, the second preset number is 2 or 3.
[0155] Taking the second preset number of 2 as an example, illustratively, when it is recognized that in the exemplary driving rule, the odd row L1 includes 3 rearranged sub-pixel regions, it is determined that the image processing chip cannot implement the driving rule.
[0156] (2222.8) In the driving rule, the sub-pixel regions are merged and rearranged according to the sub-pixel rearrangement rule so that the number of the rearranged sub-pixel regions is no greater than a second preset number.
[0157] In some embodiments, the method further includes: when the driving rule cannot be modified so that the number of rearranged sub-pixel regions is not greater than a second preset number, determining that the driving rule cannot be modified to obtain the target processing rule, and stopping executing subsequent steps.
[0158] (2222.9) Modify the sub-pixel rearrangement rule in the rearrangement step of the driving rule to obtain the target processing rule.
[0159] In some embodiments, the sub-pixel rearrangement rule includes rearranging the correspondence between the original arrangement sequence numbers and the reordered sequence numbers of the sub-pixel regions. In this case, step (2222.3), step (2222.6), step (2222.8), or step (2222.9) includes steps (2222.10) to (2222.11).
[0160] (2222.10) In the driving rule, when two rearranged sub-pixel regions are adjacent, determine whether the total number of sub-pixels included in the two rearranged sub-pixel regions is an integer multiple of a first preset number.
[0161] Exemplarily, in the driving rules, when it is identified that the modified second rearranged sub-pixel region of the odd row L1 includes sub-pixels G636 to sub-pixel R7, and the third rearranged sub-pixel region includes sub-pixels G6 to sub-pixel R1, it is judged that the second rearranged sub-pixel region is adjacent to the third rearranged sub-pixel region.
[0162] Taking the first preset number of 24 as an example, when it is calculated that the total number of sub-pixels included in the second rearranged sub-pixel area and the third rearranged sub-pixel area is 1272, and 1272 is an integer multiple of 24, it is determined that the total number of sub-pixels included in the two rearranged sub-pixel areas is an integer multiple of the first preset number.
[0163] (2222.11) When it is determined that the total number of sub-pixels included in two rearranged sub-pixel areas is an integer multiple of a first preset number, and the correspondence between the original arrangement sequence number and the reordered sequence number of one rearranged sub-pixel area is a part of the head or tail of the correspondence between the original arrangement sequence number and the reordered sequence number of the other rearranged sub-pixel area, and the reordered sequence number of one rearranged sub-pixel area and the reordered sequence number of the other rearranged sub-pixel area can be connected end to end and applied, the two rearranged sub-pixel areas are merged.
[0164] In some embodiments, when the correspondence between the original arrangement number and the reordering number of the first rearranged sub-pixel area is part of the head of the correspondence between the original arrangement number and the reordering number of the second rearranged sub-pixel area, and the head of the first rearranged sub-pixel area is adjacent to the tail of the second rearranged sub-pixel area, it is determined that the reordering number sequence of the first rearranged sub-pixel area and the reordering number sequence of the second rearranged sub-pixel area can be connected end to end and applied.
[0165] In some embodiments, when the correspondence between the original arrangement number and the reordering number of the first rearranged sub-pixel area is a part of the tail of the correspondence between the original arrangement number and the reordering number of the second rearranged sub-pixel area, and the tail of the first rearranged sub-pixel area is adjacent to the head of the second rearranged sub-pixel area, it is determined that the reordering number sequence of the first rearranged sub-pixel area and the reordering number sequence of the second rearranged sub-pixel area can be connected end to end and applied.
[0166] In some embodiments, after the first rearranged sub-pixel region and the second rearranged sub-pixel region are merged into one rearranged sub-pixel region, the sub-pixel rearrangement rule of the one rearranged sub-pixel region becomes the sub-pixel rearrangement rule of the second rearranged sub-pixel region.
[0167] Exemplarily, when it is identified that the second correspondence of the third rearranged sub-pixel region is a portion of the head portion of the second correspondence of the second rearranged sub-pixel region, and the third rearranged sub-pixel region is adjacent to the tail portion of the second rearranged sub-pixel region, it is determined that the reordering sequence of the third rearranged sub-pixel region and the reordering sequence of the second rearranged sub-pixel region can be connected end to end and applied, and the two rearranged sub-pixel regions are merged into a modified second rearranged sub-pixel region, and the sub-pixel reordering rule of the modified second rearranged sub-pixel region is the modified second rearranged sub-pixel rule. The method for modifying the second rearranged sub-pixel rule is described in detail below.
[0168] As described above, the rearrangement function includes a function of performing a rearrangement operation on the sub-pixels in the rearrangement sub-pixel area based on a rearrangement operation unit including a first preset number of sub-pixels. The rearrangement operation includes adjusting the sub-pixels in each rearrangement operation unit from the position of the original arrangement sequence number in the rearrangement operation unit to the position of the corresponding reordered sequence number according to the correspondence between the original arrangement sequence number and the reordered sequence number of the rearrangement operation unit. In this case, the above-mentioned step of "modifying the sub-pixel rearrangement rule in the rearrangement step of the driving rule to obtain the target processing rule" includes steps (2222.12) to (2222.20).
[0169] (2222.12) In the driving rule, when the sub-pixel rearrangement rule includes performing a rearrangement operation on sub-pixels in the rearrangement sub-pixel area based on a rearrangement operation unit, a first array including all rearrangement numbers of the rearrangement operation unit is constructed based on the sub-pixel rearrangement rule.
[0170] The index of the reordered sequence number in the first array is the corresponding original sequence number.
[0171] For example, after step (2224.2), it is determined to proceed to step (2222.3). At this time, based on the second correspondence between the original arrangement sequence numbers and the reordering numbers of the reordering operation units in the second sub-pixel reordering rule of the second reordered sub-pixel region, a first array including all the reordering numbers of the reordering operation units is constructed.
[0172] Exemplarily, the first array determined according to the second corresponding relationship is [12, 7, 9, 6, 1, 4, 10, 11, 8, 3, 5, 2, 22, 23, 20, 15, 17, 14, 24, 19, 21, 18, 13, 16].
[0173] (2222.13) When a partial black sub-pixel region is added to the rearranged sub-pixel region, a first number of black sub-pixels added to the rearranged sub-pixel region is determined.
[0174] (2222.14) Determine a first circular shift pattern of the first array based on the positions of the black sub-pixels added in the rearranged sub-pixel region.
[0175] In some embodiments, when the added black sub-pixel is located to the left of the head of the rearranged sub-pixel region, the first circular shift mode is determined to be circular right shift.
[0176] In some embodiments, when the added black sub-pixel is located to the right of the tail of the rearranged sub-pixel region, it is determined that the first array is not circularly shifted, and the first array is determined as the second array. This is because when the added black sub-pixel is located to the right of the tail of the rearranged sub-pixel region, the rearrangement operation will not affect the reordering order of the valid sub-pixels on the left, and no matter how the black sub-pixels are rearranged, the image data will not be affected.
[0177] (2222.15) Circularly shift the first array by a first number of bits according to a first circular shift method to obtain a second array.
[0178] (2222.16) When deleting a black sub-pixel region in the rearranged sub-pixel region, determine a second number of black sub-pixels deleted in the rearranged sub-pixel region.
[0179] Exemplarily, the second number of black sub-pixels deleted in the second rearranged sub-pixel region of the odd line L1 is determined to be 84.
[0180] (2222.17) Determine a second circular shift pattern of the first array based on the positions of the black sub-pixels deleted in the rearranged sub-pixel region.
[0181] In some embodiments, when the deleted black sub-pixel is located at the head of the rearranged sub-pixel region, the second circular shift mode is determined to be a circular left shift.
[0182] For example, in the second rearranged sub-pixel region of the odd-numbered row L1 , the deleted black sub-pixel is located at the head of the second rearranged sub-pixel region, so the second circular shift mode is determined to be circular left shift.
[0183] In some embodiments, when the deleted black sub-pixel is located at the end of the rearranged sub-pixel region, it is determined that the second array is not circularly shifted, and the first array is determined as the third array. This is because when the deleted black sub-pixel is located at the end of the rearranged sub-pixel region, the rearrangement operation will not affect the reordering order of the valid sub-pixels, and no matter how the black sub-pixels are rearranged, the image data will not be affected.
[0184] (2222.18) Circularly shift the first array by a second number of bits according to a second circular shift method to obtain a third array.
[0185] For example, the first array is circularly shifted left by 84 bits to obtain a third array. Because there are 24 elements in the first array, and the remainder of 84 divided by 24 is 12, circularly shifting the first array left by 84 bits is equivalent to shifting the first array left by 12 bits. The first array is [12, 7, 9, 6, 1, 4, 10, 11, 8, 3, 5, 2, 22, 23, 20, 15, 17, 14, 24, 19, 21, 18, 13, 16]. Circularly shifting the first array left by 12 bits yields the third array: [22, 23, 20, 15, 17, 14, 24, 19, 21, 18, 13, 16, 12, 7, 9, 6, 1, 4, 10, 11, 8, 3, 5, 2].
[0186] (2222.19) Based on the second array or the third array, the correspondence between the original arrangement sequence number and the reordering sequence number of the reordering operation unit in the modified sub-pixel reordering rule is obtained, thereby obtaining the modified sub-pixel reordering rule in the reordering step of the driving rule.
[0187] In some embodiments, the correspondence between the original arrangement sequence number and the reorder number of the reorder operation unit in the modified sub-pixel reordering rule is obtained based on the reorder number in the second array or the third array and the index corresponding to the reorder number, thereby obtaining the modified sub-pixel reordering rule. In this way, after the reordered sub-pixel region is modified, the correspondence between the original arrangement sequence number and the reorder number can be modified accordingly. Therefore, when the image processing chip reorders the modified reordered sub-pixel region according to the modified sub-pixel reordering rule, the position of the effective sub-pixels can be correctly adjusted, so that the effective sub-pixels are displayed normally on the display screen.
[0188] In some embodiments, step (2222.19) includes steps (2222.19.1) to step (2222.19.5).
[0189] (2222.19.1) When it is identified that in the sub-pixel rearrangement rule before the modification of the driving rule, the rearrangement operation unit is divided into multiple sub-operation units, and each sub-operation unit has an independent correspondence between the original arrangement sequence number and the reordering sequence number, the second array or the third array is divided into multiple fourth arrays according to the sub-pixel rearrangement rule before the modification.
[0190] Each fourth array represents the correspondence between the original sequence number and the reordered sequence number of a sub-operation unit. Each sub-operation unit has an independent correspondence between the original sequence number and the reordered sequence number, meaning that sub-pixels in one sub-operation unit will not be reordered to positions in another sub-operation unit. This is determined by the wiring of the display's sub-pixel array.
[0191] In some embodiments, the arrangement sequence number of each fourth array is also recorded so that the arrangement sequence number of the fourth array can be used to
[0192] For example, based on the first array being [12, 7, 9, 6, 1, 4, 10, 11, 8, 3, 5, 2, 22, 23, 20, 15, 17, 14, 24, 19, 21, 18, 13, 16], it can be identified that in the second sub-pixel rearrangement rule before modification, the rearrangement operation unit including 24 sub-pixels is divided into 2 sub-operation units including 12 sub-pixels, and each sub-operation unit has an independent correspondence between the original arrangement sequence number and the reordering number. That is, the reordering number range corresponding to the sub-pixels with an original arrangement sequence number range of 1 to 12 is also 1 to 12, and the reordering number range corresponding to the sub-pixels with an original arrangement sequence number range of 13 to 24 is also 13 to 24. If the second sub-pixel rearrangement rule is modified directly based on the third array, the sub-pixels with an original arrangement sequence number range of 1 to 12 will be adjusted to positions with a reordering number range of 13 to 24, and the image displayed on the display screen will be garbled. The same is true for the case of rearranging the sub-pixels whose original arrangement numbers range from 13 to 24.
[0193] Therefore, the third array is divided into two fourth arrays including 12 elements, the first fourth array is [22, 23, 20, 15, 17, 14, 24, 19, 21, 18, 13, 16], and the second fourth array is [12, 7, 9, 6, 1, 4, 10, 11, 8, 3, 5, 2].
[0194] (2222.19.2) For each fourth array, determine the smallest reordering number in the fourth array and the smallest original arrangement sequence number of the sub-operation units of the corresponding group.
[0195] Optionally, the smallest reordering number in the fourth array corresponds to the smallest original arrangement sequence number of the sub-operation unit of the group, which is the smallest index corresponding to the elements in the fourth array in the second array or the third array.
[0196] For example, for the first fourth array, the smallest reordering number in the first fourth array is determined to be 13, and the smallest original arrangement sequence number of the sub-operation units of the corresponding group is 1. For the second fourth array, the smallest reordering number in the second fourth array is determined to be 1, and the smallest original arrangement sequence number of the sub-operation units of the corresponding group is 13.
[0197] (2222.19.3) Subtract the smallest original arrangement number corresponding to the fourth array from the smallest reordering number to obtain the first value.
[0198] For example, for the first fourth data set, the first value is determined to be 1-13=-12. For the second fourth data set, the first value is determined to be 13-1=12.
[0199] (2222.19.4) Add the first value to all reordered numbers in the fourth array to obtain an updated fourth array.
[0200] Illustratively, the updated first fourth array is [10, 11, 8, 3, 5, 2, 12, 7, 9, 6, 1, 4], and the updated second fourth array is [24, 19, 21, 18, 13, 16, 22, 23, 20, 15, 17, 14].
[0201] (2222.19.5) Based on all updated fourth arrays, the correspondence between the original arrangement sequence number and the reordering sequence number of the reordering operation unit in the modified sub-pixel reordering rule is obtained, thereby obtaining the modified sub-pixel reordering rule in the reordering step of the driving rule.
[0202] In some embodiments, all updated fourth arrays are connected end to end in sequence according to the corresponding arrangement numbers to obtain a fifth array, and based on the reorder numbers in the fifth array and the indexes corresponding to the reorder numbers, the correspondence between the original arrangement numbers and the reorder numbers of the reorder operation units in the modified second sub-pixel reordering rule is obtained, thereby obtaining the modified second sub-pixel reordering rule.
[0203] For example, all updated fourth arrays are connected end to end in sequence according to the corresponding arrangement numbers, and the resulting fifth array is [10, 11, 8, 3, 5, 2, 12, 7, 9, 6, 1, 4, 24, 19, 21, 18, 13, 16, 22, 23, 20, 15, 17, 14]. In the modified second sub-pixel rearrangement rule in the rearrangement step of the driving rule obtained based on the fifth array, the corresponding relationship between the original arrangement number and the reordered number of the rearrangement operation unit is:
[0204] Original sequence number:
[0205] 1→2→3→4→5→6→7→8→9→10→11→12→13→14→15→16→17→18→19→20→21→22→23→24.
[0206] Reorder number:
[0207] 10→11→8→3→5→2→12→7→9→6→1→4→24→19→21→18→13→16→22→23→20→15→17→14.
[0208] (2222.20) Get target processing rules.
[0209] By obtaining the correspondence between the original arrangement sequence number and the reordering sequence number of the reordering operation unit in the modified sub-pixel reordering rule based on all updated fourth arrays, the modified sub-pixel reordering rule can be calibrated according to the driving rule, thereby further ensuring that the display screen can display images normally.
[0210] According to the above embodiment, the target processing rule determined based on the example driving rule is:
[0211] 1. Black filling step: insert a black sub-pixel area including 132 black sub-pixels after the sub-pixel G1284 in the odd row L1, and insert a black sub-pixel area including 132 black sub-pixels after the sub-pixel G1284 in the even row L2.
[0212] 2. Flipping step: For odd-numbered lines L1, a first flipped sub-pixel region including sub-pixels R637 to G1284 and a black sub-pixel region inserted after the end, and a second flipped sub-pixel region including sub-pixels R1 to G636 are flipped. For even-numbered lines L2, a first flipped sub-pixel region including sub-pixels B637 to G1284 and a black sub-pixel region inserted after the end, and a second flipped sub-pixel region including sub-pixels R1 to G636 are flipped.
[0213] 3. Rearrangement step: For odd-numbered lines L1, a first rearranged subpixel region including subpixels G1284 to R637 is rearranged according to the first subpixel rearrangement rule in the driving rule, and a second rearranged subpixel region including G636 to R1 is rearranged according to the modified second subpixel rearrangement rule. For even-numbered lines L1, a first rearranged subpixel region including subpixels G1284 to B637 is rearranged according to the first subpixel rearrangement rule in the driving rule, and a second rearranged subpixel region including G636 to B1 is rearranged according to the modified second subpixel rearrangement rule. The black subpixel regions are not rearranged.
[0214] Based on the exemplary driving rules and target processing rules, it can be seen that the driving rules are equivalent to the target processing rules. In other words, the processed image data obtained by the image processing chip when processing image data according to the target processing rules is the same as the processed image data obtained when the image data is processed according to the driving rules.
[0215] It can be seen from the above examples that, in some cases, the image processing chip cannot support the implementation of the driving rules, but can support the implementation of the target processing rules determined by this method.
[0216] Step S300: writing the target processing rules into the image processing chip so that the image processing chip can execute the corresponding image data processing function to process the image data according to the target processing rules, and control the display driver integrated circuit unit to drive the display screen to display the image according to the processed image data.
[0217] The processed image data obtained by the image processing chip according to the target processing rule is the same as the processed image data obtained when the image data is processed according to the driving rule. That is, the target processing rule is equivalent to the driving rule.
[0218] The above driving rules and image processing rules are merely examples. Based on the image data processing functions supported by the image processing chip, a variety of target processing rules equivalent to the driving rules and supported by the image processing chip can be determined. The following provides another example of an image data processing function supported by the image processing chip, along with some supported image data rearrangement scenarios based on the image data processing function. However, this should not be construed as limiting the present application.
[0219] The image processing chip supports the following image data processing functions:
[0220] 1. Insert no more than three black sub-pixel areas into a row or column of sub-pixels.
[0221] 2. Apply the corresponding sub-pixel rearrangement rule to perform rearrangement operations on sub-pixel rearrangement areas of no more than 2 sub-pixels.
[0222] 3. Performing a rearrangement operation on the sub-pixels in the image data based on a rearrangement operation unit including a first preset number of sub-pixels, wherein the first preset number is 6, 12, or 24, and the default value of the first preset number is 24.
[0223] 4. Rearrange all valid sub-pixel areas.
[0224] 5. No rearrangement operation is performed on at most one black sub-pixel region.
[0225] 6. If a black sub-pixel region that does not include the first predetermined number of black sub-pixels and does not participate in rearrangement is inserted into a row or column of sub-pixels, two sub-pixel rearrangement rules are applied to the rearranged sub-pixel regions before and after the black sub-pixel region, respectively. The two sub-pixel rearrangement rules can be the same or different.
[0226] 7. If a row or column of sub-pixels includes a black sub-pixel region whose number of black sub-pixels is not the first preset number and participates in rearrangement, the rearrangement sub-pixel regions before and after the black sub-pixel region apply the same sub-pixel rearrangement rule.
[0227] 8. If a black sub-pixel region that includes a first predetermined number of black sub-pixels and does not participate in rearrangement is inserted into a row or column of sub-pixels, two sub-pixel rearrangement rules are applied to the rearranged sub-pixel regions before and after the black sub-pixel region. If the two sub-pixel rearrangement rules are the same, the black sub-pixel region is included in the rearrangement, so that the black sub-pixel region and the rearranged sub-pixel regions before and after the black sub-pixel region are all subject to the same sub-pixel rearrangement rule.
[0228] 9. If a black sub-pixel region including a first preset number of black sub-pixels and participating in rearrangement is inserted into a row or column of sub-pixels, the same sub-pixel rearrangement rule is applied to the black sub-pixel region together with the preceding and following rearranged sub-pixel regions.
[0229] 10. If three black sub-pixel areas need to be inserted, one of the black sub-pixel areas can only be behind the end of a row or column of sub-pixels and must participate in the rearrangement.
[0230] See also Figures 6A to 6M , Figure 6A This is a schematic diagram of a first rearrangement of image data provided in an example embodiment of the present application. Figure 6B 3 is a schematic diagram of a second rearrangement of image data according to an example provided in an embodiment of the present application. Figure 6C 3 is a schematic diagram of the third rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6D 3 is a schematic diagram of the fourth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6E 3 is a schematic diagram of the fifth rearrangement of the image data provided in the example of the embodiment of the present application. Figure 6F This is a schematic diagram of the sixth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6G 3 is a schematic diagram of the seventh rearrangement of the image data provided in the embodiment of the present application. Figure 6H This is a schematic diagram of the eighth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6I This is a schematic diagram of the ninth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6J This is a schematic diagram of the tenth rearrangement of the example image data provided in the embodiment of the present application. Figure 6K This is a schematic diagram of the eleventh rearrangement of the image data provided in the example of the embodiment of the present application. Figure 6L This is a schematic diagram of the twelfth rearrangement of the image data of the example provided in the embodiment of the present application. Figure 6M FIG. 13 is a schematic diagram of the thirteenth rearrangement of the image data provided in the embodiment of the present application. Figure 6AAs shown, in a line of image data L3, the area A1 is rearranged, and the area A1 is a valid sub-pixel area, and the number of sub-pixels is a multiple of 24. The valid sub-pixel area is a data area that only includes valid sub-pixels. Figure 6B As shown, the same sub-pixel rearrangement rule is applied to regions A1, A2, and A3 for rearrangement. Regions A1 and A3 are valid sub-pixel regions, and region A2 is a black sub-pixel region.
[0231] like Figure 6C As shown, the first sub-pixel rearrangement rule is applied to area A1 for rearrangement, and the second sub-pixel rearrangement rule is applied to area A3 for rearrangement. Area A2 does not participate in the rearrangement. Area A1 and area A3 are valid sub-pixel areas, and area A2 is a black sub-pixel area. Figure 6C The rearrangement of the image data shown is also the rearrangement of the image data in the target processing rule determined above.
[0232] like Figure 6D As shown, the same sub-pixel rearrangement rule is applied to rearrange regions A1, A2, A3, and A4. Figures 6D to 6G Regions A1 and A3 are black sub-pixel regions, and regions A2 and A4 are effective sub-pixel regions.
[0233] like Figure 6E As shown, the same sub-pixel rearrangement rule is applied to regions A2, A3, and A4 for rearrangement, and region A1 does not participate in the rearrangement.
[0234] like Figure 6F As shown, the first sub-pixel rearrangement rule is applied to regions A1 and A2 for rearrangement, the second sub-pixel rearrangement rule is applied to region A4 for rearrangement, and region A3 does not participate in the rearrangement.
[0235] like Figure 6G As shown, the first sub-pixel rearrangement rule is applied to region A2 for rearrangement, the second sub-pixel rearrangement rule is applied to region A4 for rearrangement, and regions A1 and A3 do not participate in the rearrangement.
[0236] like Figure 6H As shown, the first sub-pixel rearrangement rule is applied to region A1 for rearrangement, the second sub-pixel rearrangement rule is applied to regions A3, A4 and A5 for rearrangement, and region A2 does not participate in the rearrangement. Figures 6H to 6I Regions A1, A3, and A5 are effective sub-pixel regions, and regions A2 and A4 are black sub-pixel regions.
[0237] like Figure 6IAs shown, the first sub-pixel rearrangement rule is applied to regions A1, A2, and A3 for rearrangement, the second sub-pixel rearrangement rule is applied to region A5 for rearrangement, and region A4 does not participate in the rearrangement.
[0238] like Figure 6J As shown, the first sub-pixel rearrangement rule is applied to regions A1 and A2 for rearrangement, the second sub-pixel rearrangement rule is applied to regions A4 and A5 for rearrangement, and region A3 does not participate in the rearrangement. Figures 6J to 6K Regions A2, A4, and A5 are effective sub-pixel regions, and regions A1 and A3 are black sub-pixel regions.
[0239] like Figure 6K As shown, the first sub-pixel rearrangement rule is applied to region A2 for rearrangement, the second sub-pixel rearrangement rule is applied to regions A4 and A5 for rearrangement, and regions A1 and A3 do not participate in the rearrangement.
[0240] like Figure 6L As shown, the first sub-pixel rearrangement rule is applied to region A1 for rearrangement, and the second sub-pixel rearrangement rule is applied to regions A3, A4, A5 and A6 for rearrangement, and region A2 does not participate in the rearrangement. Figures 6L to 6M Regions A1, A3, and A5 are effective sub-pixel regions, and regions A2, A4, and A6 are black sub-pixel regions.
[0241] like Figure 6M As shown, the first sub-pixel rearrangement rule is applied to regions A1, A2, and A3 for rearrangement, the second sub-pixel rearrangement rule is applied to regions A5 and A6 for rearrangement, and region A4 does not participate in the rearrangement.
[0242] In summary, the method for determining image data processing rules provided in the embodiments of the present application has the following advantages:
[0243] 1. By determining a target processing rule that is equivalent to the driving rule and supportable by the image processing chip based on the driving rule and the image data processing function, and writing the target processing rule into the image processing chip, so that the image processing chip executes the corresponding image data processing function according to the target processing rule to process the image data, and controls the display driver integrated circuit unit to drive the display screen to display an image according to the processed image data, it is possible to enable a display driver integrated circuit unit that is originally not suitable for driving the display screen to drive the display screen to display the correct image, thereby making the second image type display screen compatible with multiple first image type display driver integrated circuit units, making it easier for maintenance personnel to select an available display driver integrated circuit unit to repair the display module.
[0244] 2. By determining the second position of the black sub-pixel area inserted in the modified black filling step in the flipped sub-pixel area based on the flipped sub-pixel area and the first position, so that after executing the modified black filling step and the flipping step, the black sub-pixel area at the second position is swapped to the first position, the result image data obtained by executing the modified black filling step and the flipping step can be made the same as the result image data obtained by executing the black filling step and the flipping step before the modification, thereby making the target processing rule equivalent to the driving rule.
[0245] 3. By obtaining the correspondence between the original arrangement sequence number and the reordering number of the rearrangement operation unit in the modified sub-pixel rearrangement rule based on the second array or the third array, the modified sub-pixel rearrangement rule is obtained. After the rearrangement sub-pixel area is modified, the correspondence between the original arrangement sequence number and the reordering number can be modified accordingly. When the image processing chip rearranges the modified rearrangement sub-pixel area according to the modified sub-pixel rearrangement rule, the position of the effective sub-pixel can be correctly adjusted, so that the effective sub-pixel is displayed normally on the display screen and the image is not garbled.
[0246] 4. By obtaining the correspondence between the original arrangement sequence number and the reordering sequence number of the reordering operation unit in the modified sub-pixel reordering rule based on all updated fourth arrays, the modified sub-pixel reordering rule can be calibrated according to the driving rule, thereby further ensuring that the display screen can display images normally.
[0247] See also Figure 7 , Figure 7 FIG. 1 is a schematic diagram of the structure of the apparatus for determining image data processing rules provided in an embodiment of the present application. Figure 7 As shown, in some embodiments, the apparatus 300 for determining image data processing rules includes an acquisition module 310 , a processing module 320 and a writing module 330 .
[0248] In some embodiments, the acquisition module 310 is used to obtain driving rules for a display driver integrated circuit unit of a first image type to drive a display screen of a second image type for display and image data processing functions supported by the image processing chip, where the first image type is different from the second image type.
[0249] In some embodiments, the processing module 320 is configured to determine, based on the driving rule and the image data processing function, a target processing rule that is equivalent to the driving rule and is supportable by the image processing chip.
[0250] In some embodiments, the writing module 330 is used to write the target processing rules into the image processing chip, so that the image processing chip can execute the corresponding image data processing function according to the target processing rules to process the image data, and control the display driver integrated circuit unit to drive the display screen to display the image according to the processed image data, wherein the processed image data obtained by the image processing chip when processing the image data according to the target processing rules is the same as the processed image data obtained when the image data can be processed according to the driving rules.
[0251] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 400 includes: one or more processors 410 and a memory 420, Figure 8 A processor 410 is taken as an example.
[0252] In some embodiments, the processor 410 and the memory 420 may be connected via a bus or other means. Figure 8 The bus connection is taken as an example.
[0253] In some embodiments, the processor 410 is used to obtain a driving rule for causing a display driver integrated circuit unit of a first image type to drive a display screen of a second image type to display, and an image data processing function supported by an image processing chip, wherein the first image type is different from the second image type; determine a target processing rule that is equivalent to the driving rule and supported by the image processing chip based on the driving rule and the image data processing function; write the target processing rule into the image processing chip so that the image processing chip executes the corresponding image data processing function to process the image data according to the target processing rule, and controls the display driver integrated circuit unit to drive the display screen to display an image according to the processed image data, wherein the processed image data obtained by the image processing chip processing the image data according to the target processing rule is the same as the processed image data obtained when the image data can be processed according to the driving rule.
[0254] In some embodiments, memory 420, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules for the method for determining image data processing rules in the embodiments of the present application. Processor 410 executes the non-volatile software programs, instructions, and modules stored in memory 420 to execute various functional applications and data processing of electronic device 400, thereby implementing the method for determining image data processing rules in the above-mentioned method embodiment.
[0255] In some embodiments, the memory 420 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device 400, etc. In addition, the memory 420 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 420 may optionally include a memory remotely located relative to the processor 410, and these remote memories may be connected to the controller via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0256] In some embodiments, one or more modules are stored in the memory 420, and when executed by one or more processors 410, perform the method for determining the image data processing rule in any of the above method embodiments, for example, perform the above described Figure 1 Method steps S100 to S300 in .
[0257] Please refer to Figure 9 , Figure 9 The computer-readable storage medium 500 stores program code 510, which can be called by a processor to execute the method for determining image data processing rules described in the above method embodiment.
[0258] The computer-readable storage medium 500 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium comprises a non-volatile computer-readable medium. The computer-readable storage medium 500 has storage space for program code that executes any of the steps in the method for determining image data processing rules described above. This program code can be read from or written into one or more computer program products. The program code can be compressed, for example, in a suitable format.
[0259] The present application also provides an image processing chip, which stores a target processing rule determined by the method for determining image data processing rules described above. The image processing chip is configured to execute a corresponding image data processing function to process image data according to the target processing rule, and to control a display module to display an image based on the processed image data. Specifically, the image processing chip transmits a control signal to a display driver integrated circuit unit in the display module based on the processed image data, causing the display driver integrated circuit unit to illuminate a sub-pixel array of a display screen according to the control signal, thereby causing the display screen to display an image.
[0260] See also Figure 10 , Figure 10 This is a schematic diagram of the structure of the display system provided by the embodiment of the present application. Figure 10 As shown, the present application also provides a display system 600, including the image processing chip 610 and the display module 620 as described above, the display module 620 includes a display driver integrated circuit unit 621 of a first image type and a display screen 622 of a second image type, the display driver integrated circuit unit 621 is used to control the display screen 622 to display an image according to the control signal sent by the image processing chip 610.
[0261] An embodiment of the present application further provides a computer program product, including a computer program, which implements the above-mentioned method for determining image data processing rules when executed by a processor.
[0262] In summary, the present application provides a method, device, chip and display system for determining image data processing rules, the method for determining image data processing rules including: obtaining driving rules for enabling a display driver integrated circuit unit of a first image type to drive a display screen of a second image type for display and image data processing functions supported by an image processing chip, the first image type being different from the second image type; determining a target processing rule that is equivalent to the driving rule and that can be supported by the image processing chip based on the driving rules and the image data processing functions; writing the target processing rule into the image processing chip so that the image processing chip executes the corresponding image data processing function to process the image data according to the target processing rule, and controls the display driver integrated circuit unit to drive the display screen to display an image according to the processed image data, wherein the processed image data obtained by the image processing chip processing the image data according to the target processing rule is the same as the processed image data obtained when the image data can be processed according to the driving rule. The present application determines a target processing rule that is equivalent to the driving rule and supportable by the image processing chip based on the driving rule and the image data processing function, and writes the target processing rule into the image processing chip so that the image processing chip can execute the corresponding image data processing function according to the target processing rule to process the image data, and control the display driver integrated circuit unit to drive the display screen to display the image according to the processed image data. This enables the display driver integrated circuit unit that is originally not suitable for driving the display screen to drive the display screen to display the correct image, thereby enabling the second image type display screen to be compatible with multiple first image type display driver integrated circuit units, making it easier for maintenance personnel to select available display driver integrated circuit units to repair the display module.
[0263] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for determining image data processing rules, characterized in that: include: Acquiring a driving rule for a display driver integrated circuit unit of a first image type to drive a display screen of a second image type for display and an image data processing function supported by an image processing chip, wherein the first image type is different from the second image type; Determining, based on the driving rule and the image data processing function, a target processing rule that is equivalent to the driving rule and can be supported by the image processing chip; The target processing rules are written into the image processing chip so that the image processing chip performs corresponding image data processing functions according to the target processing rules to process the image data, and controls the display driver integrated circuit unit to drive the display screen to display an image based on the processed image data, wherein the processed image data obtained by the image processing chip processing the image data according to the target processing rules is the same as the processed image data obtained when the image data can be processed according to the driver rules.
2. The method for determining image data processing rules according to claim 1, wherein: The display driver integrated circuit unit of the first image type can control the number of sub-pixels displayed to be greater than the number of sub-pixels that can be displayed on the display screen of the second image type.
3. The method for determining image data processing rules according to claim 1 or 2, characterized in that: The first image type is an RGB image type, and the second image type is an RGBG image type.
4. The method for determining image data processing rules according to claim 1, wherein: The determining, based on the driving rule and the image data processing function, a target processing rule that is equivalent to the driving rule and can be supported by the image processing chip includes: When it is determined based on the driving rule and the image data processing function that the image processing chip can implement the driving rule, determining the driving rule as the target processing rule; When it is determined based on the driving rule and the image data processing function that the image processing chip cannot implement the driving rule, the driving rule is modified based on the image data processing function to obtain the target processing rule.
5. The method for determining image data processing rules according to claim 4, wherein: When it is determined based on the driving rule and the image data processing function that the image processing chip cannot implement the driving rule, modifying the driving rule based on the image data processing function to obtain the target processing rule includes: Identifying operation steps in the driving rule, the operation steps including at least a black filling step, a flipping step, and a rearrangement step, wherein the black filling step is a step of inserting a black sub-pixel region into the image data, the flipping step is a step of exchanging positions of some sub-pixels in the image data, and the rearrangement step is a step of rearranging positions of sub-pixels in the image data; When it is determined based on the operation steps and the image data processing function that the image processing chip cannot implement the driving rule, the driving rule is modified based on the image data processing function to obtain the target processing rule.
6. The method for determining image data processing rules according to claim 5, wherein: The image data processing function includes a function in which the execution priority of the black filling step is higher than the execution priority of the flipping step. When it is determined based on the operation steps and the image data processing function that the image processing chip cannot implement the driving rule, modifying the driving rule based on the image data processing function to obtain the target processing rule includes: When it is identified that the execution order of the black filling step in the driving rule is after the execution order of the flipping step, it is determined that the image processing chip cannot implement the black filling step and the flipping step in the driving rule by using the image data processing function, and further determines that the image processing chip cannot implement the driving rule; determining a flipped sub-pixel region in the flipping step according to the flipping step, and determining a first position of the black sub-pixel region after performing the black filling step; In the driving rule, the execution order of the black filling step is adjusted to be before the execution order of the flipping step; When it is determined based on the first position that the black sub-pixel region is located in the middle of the flipped sub-pixel region, dividing the flipped sub-pixel region in the flipping step into a first flipped sub-pixel region and a second flipped sub-pixel region, and determining the second position of the black sub-pixel region in the first flipped sub-pixel region as the head position or the tail position of the first flipped sub-pixel region, wherein the first flipped sub-pixel region includes all black sub-pixel regions, and the second flipped sub-pixel region does not include the black sub-pixel region; When it is determined according to the first position that the black sub-pixel region is located before the head of the flipped sub-pixel region, determining the second position of the black sub-pixel region to be after the tail of the flipped sub-pixel region, and determining a modified flipped sub-pixel region including the black sub-pixel region; When it is determined according to the first position that the black sub-pixel region is located after the tail of the flipped sub-pixel region, determining a second position of the black sub-pixel region to be before the head of the flipped sub-pixel region, and determining a modified flipped sub-pixel region including the black sub-pixel region; In the driving rule, the position of the black sub-pixel region inserted in the black filling step is replaced from the first position to the second position; When the flipped sub-pixel region in the flipping step is divided into the first flipped sub-pixel region and the second flipped sub-pixel region, the flipping step is modified to flip the first flipped sub-pixel region and the second flipped sub-pixel region respectively; When the modified flipped sub-pixel area has been determined, modifying the flipping step to flipping the modified flipped sub-pixel area; The target processing rule is obtained based on the modified driving rule.
7. The method for determining image data processing rules according to claim 5, wherein: When it is determined based on the operation steps and the image data processing function that the image processing chip cannot implement the driving rule, modifying the driving rule based on the image data processing function to obtain the target processing rule includes: Determining a rearranged sub-pixel area according to the sub-pixel rearrangement rule in the rearrangement step of the driving rule; When it is determined that the image processing chip cannot implement the driving rule based on the rearranged sub-pixel area and the rearrangement function in the image data processing function, the sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified based on the image data processing function to obtain the target processing rule.
8. The method for determining image data processing rules according to claim 7, wherein: The rearrangement function includes a function of rearranging all black sub-pixels in the black sub-pixel region inserted in the black filling step or not rearranging all black sub-pixels. When it is determined based on the rearranged sub-pixel region and the rearrangement function in the image data processing function that the image processing chip cannot implement the driving rule, modifying the sub-pixel rearrangement rule in the rearrangement step of the driving rule based on the image data processing function to obtain the target processing rule includes: When the rearranged sub-pixel area includes some black sub-pixels in the black sub-pixel area, determining that the image processing chip cannot implement the rearrangement steps in the driving rule by using the rearrangement function, and further determining that the image processing chip cannot implement the driving rule; In the driving rule, part of the black sub-pixel region is added to the rearranged sub-pixel region or the black sub-pixel region is deleted, so that the rearranged sub-pixel region includes all of the black sub-pixel region or does not include the black sub-pixel region; The sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified to obtain the target processing rule.
9. The method for determining image data processing rules according to claim 7, wherein: The rearrangement function includes a function of performing a rearrangement operation on sub-pixels in the image data based on a rearrangement operation unit including a first preset number of sub-pixels, When it is determined based on the rearranged sub-pixel region and the rearrangement function in the image data processing function that the image processing chip cannot implement the driving rule, modifying the sub-pixel rearrangement rule in the rearrangement step of the driving rule based on the image data processing function to obtain the target processing rule includes: When the number of sub-pixels included in the rearranged sub-pixel area is not an integer multiple of the first preset number, determining that the image processing chip cannot implement the rearrangement steps in the driving rule by using the rearrangement function, and further determining that the image processing chip cannot implement the driving rule; In the driving rule, part of the black sub-pixel region is added to the rearranged sub-pixel region or the black sub-pixel region is deleted, and / or the rearranged sub-pixel region is merged according to the sub-pixel rearrangement rule, so that the number of sub-pixels included in the rearranged sub-pixel region is an integer multiple of the first preset number; The sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified to obtain the target processing rule.
10. The method for determining image data processing rules according to claim 7, wherein: The rearrangement function includes performing a rearrangement operation on rearrangement sub-pixel regions whose number is not greater than a second preset number according to a sub-pixel rearrangement rule corresponding to each rearrangement sub-pixel region. When it is determined based on the rearranged sub-pixel region and the rearrangement function in the image data processing function that the image processing chip cannot implement the driving rule, modifying the sub-pixel rearrangement rule in the rearrangement step of the driving rule based on the image data processing function to obtain the target processing rule includes: When the number of the rearranged sub-pixel regions is greater than the second preset number, it is determined that the image processing chip cannot implement the rearrangement steps in the driving rule by using the rearrangement function, and further that the image processing chip cannot implement the driving rule; In the driving rule, the rearranged sub-pixel regions are merged according to the sub-pixel rearrangement rule so that the number of the rearranged sub-pixel regions is not greater than the second preset number; The sub-pixel rearrangement rule in the rearrangement step of the driving rule is modified to obtain the target processing rule.
11. The method for determining image data processing rules according to claim 10, wherein: The sub-pixel rearrangement rule includes a correspondence between an original arrangement sequence number and a reordered sequence number of the rearranged sub-pixel region. In the driving rule, merging the rearranged sub-pixel region according to the sub-pixel rearrangement rule includes: In the driving rule, when two rearranged sub-pixel regions are adjacent, determining whether the total number of sub-pixels included in the two rearranged sub-pixel regions is an integer multiple of a first preset number; When it is determined that the total number of sub-pixels included in the two rearranged sub-pixel areas is an integer multiple of the first preset number, and the correspondence between the original arrangement sequence number and the reordering number of one of the rearranged sub-pixel areas is a part of the head or tail of the correspondence between the original arrangement sequence number and the reordering number of the other rearranged sub-pixel area, and the reordering number sequence of one rearranged sub-pixel area and the reordering number sequence of the other rearranged sub-pixel area can be connected end to end and applied, the two rearranged sub-pixel areas are merged.
12. The method for determining image data processing rules according to any one of claims 8 to 11, characterized in that: The rearrangement function includes a function of performing a rearrangement operation on the sub-pixels in the rearrangement sub-pixel area based on a rearrangement operation unit including a first preset number of sub-pixels, wherein the rearrangement operation includes adjusting the sub-pixels in each rearrangement operation unit from the position of the original arrangement sequence number in the rearrangement operation unit to the position of the corresponding reorder number according to the correspondence between the original arrangement sequence number and the reorder number of the rearrangement operation unit, The step of modifying the sub-pixel rearrangement rule in the rearrangement step of the driving rule to obtain the target processing rule includes: In the driving rule, when the sub-pixel rearrangement rule includes performing a rearrangement operation on sub-pixels in the rearranged sub-pixel area based on the rearrangement operation unit, a first array including all reordering numbers of the rearrangement operation unit is constructed based on the sub-pixel rearrangement rule, wherein the index of the reordering number in the first array is the corresponding original arrangement sequence number; When a portion of the black sub-pixel region is added to the rearranged sub-pixel region, determining a first number of black sub-pixels added to the rearranged sub-pixel region; determining a first cyclic shift mode of the first array based on positions of black sub-pixels added in the rearranged sub-pixel region; Circularly shifting the first array by the first number of bits according to the first cyclic shift method to obtain a second array; When deleting the black sub-pixel region in the rearranged sub-pixel region, determining a second number of black sub-pixels to be deleted in the rearranged sub-pixel region; determining a second circular shift mode of the first array based on positions of black sub-pixels deleted in the rearranged sub-pixel region; Circularly shifting the first array by the second number of bits according to the second cyclic shift method to obtain a third array; Obtaining a correspondence between original arrangement sequence numbers and reordered sequence numbers of the reordering operation units in the modified sub-pixel reordering rule based on the second array or the third array, thereby obtaining the modified sub-pixel reordering rule in the reordering step of the driving rule; The target processing rule is obtained.
13. The method for determining image data processing rules according to claim 12, wherein: The step of obtaining a correspondence between an original arrangement sequence number and a reordering sequence number of a reordering operation unit in a modified sub-pixel reordering rule based on the second array or the third array, thereby obtaining the modified sub-pixel reordering rule in the reordering step of the driving rule, includes: When it is identified that, in the sub-pixel rearrangement rule before the modification of the driving rule, the rearrangement operation unit is divided into a plurality of sub-operation units, each of which has an independent correspondence between an original arrangement sequence number and a reordering number, the second array or the third array is divided into a plurality of fourth arrays according to the sub-pixel rearrangement rule before the modification, each of the fourth arrays correspondingly representing the correspondence between the original arrangement sequence number and the reordering number of a sub-operation unit; For each of the fourth arrays, determining the smallest reordering number in the fourth array and the smallest original arrangement sequence number of the sub-operation units of the corresponding group; Subtract the smallest reordering number from the smallest original arrangement number corresponding to the fourth array to obtain a first value; Adding the first value to all reordered numbers in the fourth array to obtain the updated fourth array; Based on all updated fourth arrays, the correspondence between the original arrangement sequence number and the reordering sequence number of the reordering operation unit in the modified sub-pixel reordering rule is obtained, thereby obtaining the modified sub-pixel reordering rule in the reordering step of the driving rule.
14. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method for determining image data processing rules according to any one of claims 1 to 13.
15. An image processing chip, characterized in that: The image processing chip stores target processing rules determined by the method for determining image data processing rules as described in any one of claims 1 to 13. The image processing chip is used to execute corresponding image data processing functions to process image data according to the target processing rules, and control the display module to display images according to the processed image data.
16. A display system, characterized in that: It comprises the image processing chip and the display module as described in claim 15, wherein the display module comprises a display driver integrated circuit unit of a first image type and a display screen of a second image type, and the display driver integrated circuit unit is used to control the display screen to display an image according to a control signal sent by the image processing chip.