Image data processing method, device, electronic device and readable storage medium
By changing the grayscale of unit pixels in the image frame, the problem of insufficient expansion effect of grayscale display details is solved, and a higher-order grayscale display effect is achieved, enhancing the details and quality of the image.
Patent Information
- Application Number
- CN202110113899.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-27
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2041-01-27
AI Technical Summary
Grayscale display in the prior art may cause the problem of insufficient display detail expansion effect, resulting in insufficient refinement of the color display.
By acquiring image data and control data, the gray scale of the target unit pixel in each image frame is changed to obtain the second image data, thereby increasing the number of gray scale bits of the display, enhancing the image boundary effect and gray scale over-effect.
A richer grayscale visual perception is achieved, similar to increasing the number of grayscale bits, such as boosting from 8 bits to 10 or 11 bits, enhancing the detail and quality of the image.
Smart Images

Figure CN112819906B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image display processing, and specifically relates to a method, device, electronic device and readable storage medium for processing image data. Background Art
[0002] Usually, the digital image input of the display is 8-bit grayscale image data, which can realize the display of 0 to 255 grayscales.
[0003] In the process of implementing this application, the inventors found that the grayscale display in the prior art may produce the problem of insufficient display detail expansion effect. This display technology does not display colors in a detailed manner.
[0004] Application Contents
[0005] The purpose of the embodiments of the present application is to provide a technical solution for image data processing, which can solve the problem of insufficient detail expansion effect of grayscale display.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for processing image data, the method comprising: acquiring first image data and control data, the first image data comprising a plurality of image frames, each of the image frames comprising a plurality of grayscales of unit pixels; according to the control data, changing the grayscale of a target unit pixel in each of the image frames to obtain second image data.
[0008] In second aspect, an embodiment of the present application provides an image data processing device, which includes: an acquisition unit, which acquires first image data and control data, the first image data including multiple image frames, each of the image frames including multiple unit pixel grayscales; and a changing unit, which changes the grayscale of the target unit pixel in each of the image frames according to the control data to obtain second image data.
[0009] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0011] In the embodiment of the present application, more gray levels are presented by changing the gray scale of the pixel. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a schematic flow chart of a method for processing image data according to an embodiment.
[0013] Figure 2 It is a schematic arrangement of red, green and blue (RGB) pixels in a display.
[0014] Figure 3 It is a schematic red, green, blue, and green diamond-shaped PenTile (RGBG Diamond PenTile) pixel arrangement in an active-matrix organic light-emitting diode (AMOLED).
[0015] Figure 4-Figure 12 The conversion process of RGB pixels and RGBG pixels is schematically shown.
[0016] Figure 13-Figure 16 An example for image data processing according to an embodiment is schematically shown.
[0017] Figure 17-Figure 24 Another example for image data processing according to an embodiment is schematically shown.
[0018] Fig.25 is a schematic block diagram of an apparatus for processing image data according to an embodiment.
[0019] Fig.26 is a schematic diagram of an electronic device according to an embodiment.
[0020] Fig. 27 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0021] Fig.28 is a schematic diagram of a readable storage medium according to one embodiment. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0024] The following is a detailed description of the technical solution for image data processing provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0025] Figure 1 is a schematic flow chart of a method for processing image data according to an embodiment.
[0026] like Figure 1 As shown, in step S12, first image data and control data are acquired, wherein the first image data includes a plurality of image frames, and each of the image frames includes a plurality of grayscales of unit pixels.
[0027] First image data for displaying an image on a display device may be acquired. A display area of the display device includes a plurality of unit pixels. The first image data includes a plurality of image frames, and each image frame includes a grayscale of each unit pixel in an image. The control data may be a least significant bit LSB.
[0028] In step S14, the grayscale of the target unit pixel in each of the image frames is changed according to the control data to obtain second image data.
[0029] The grayscale of a target unit pixel at a specific position in each image frame may be changed with every n image frames as a cycle unit, wherein n is greater than or equal to 1.
[0030] Then, the second image data is output for displaying an image, wherein the second image data includes the changed grayscale.
[0031] Here, although the size of the grayscale data actually outputted is not changed (for example, it is still 8-bit data), the detail changes of the image can make the human eye have different perceptions, so a richer grayscale visual perception can be produced. For example, for 8-bit grayscale data, a visual effect of 10 can be produced (the grayscale changes are 0, 0.25, 0.5, 0.75, 1, 1.25, 1.5 ... ... 254, 254.25, 254.5, 254.75, 255), or a visual effect of 11 bits can be produced (the grayscale changes are (0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1, 1.1 25,1.25………254,254.125,254.25,254.375,254.25,254.375,254.5,254.675,254.75,254.875,255), etc. By processing the input image data (e.g. 8-bit grayscale data) in this dithering processing mode, a higher-order grayscale display effect (e.g. 2 10 = 1024 gray levels, or 2 11 = 2048 gray levels, etc.).
[0032] In this way, the number of grayscale bits of the display can be increased, thereby improving the image boundary effect and grayscale transition effect.
[0033] Through the above implementation, the number of bits of the AMOLED display with RGBG Pentile pixel arrangement is increased, and the image boundary effect and grayscale transition effect are improved through dithering processing.
[0034] For example, the first image data and the second image data are AMOLED RGBG PenTile image data or AMOLEDRGB Delta image data.
[0035] Furthermore, by setting the size of n, designers can control the amount of additional processing required to improve performance, providing designers with greater design freedom.
[0036] For example, n is greater than or equal to 2. Among the n image frames being looped, the specific positions in different image frames are different. Here, by changing the specific position in units of image frames, the grayscale improvement can be achieved without significantly increasing the amount of processing, thereby achieving a balance between the amount of processing and the effect. In addition, by transforming the pixels for grayscale changes between multiple image frames, the excessive use of a single pixel can be prevented. In addition, this can also make the grayscale conversion smoother. In addition, by utilizing the grayscale gradient between different image frames, richer grayscale display details can be generated. Those skilled in the art should understand that here, the change of the specific position in different image frames can be an increase, decrease, shift, etc. of the specific position.
[0037] For example, the grayscale range of the unit pixel is 0-255 (8-bit data). For a target unit pixel with a grayscale of 0-254, the grayscale of the target unit pixel is increased by 1. For a target unit pixel with a grayscale of 255, the grayscale of the target unit pixel remains unchanged.
[0038] The unit pixels in the display area can be divided into a plurality of pixel groups. Each pixel group includes a plurality of unit pixels. For each image frame, each pixel group is used as a cycle unit to change the grayscale of the target unit pixel at a specific position in each pixel group. In this way, the complexity of the processing can be reduced and the embodiment herein can be implemented at a relatively low cost. For different image frames in the n image frames, the grayscale of different numbers of unit pixels can be changed for each pixel group.
[0039] Typically, the processor of an electronic device may include a central processing unit and a display driver chip. The processing here may be allocated between the central processing unit and the display driver chip. According to the teachings herein, those skilled in the art may directly implement such allocation as needed.
[0040] For example, the central processor changes the grayscale of the target unit pixel at a specific position in each image frame with every n image frames as a cycle unit. Then, the central processor outputs the second image data to the display driver chip for displaying the image.
[0041] In addition, the central processing unit may also add control data to each image frame, with every n image frames as a loop unit. The control data is, for example, an identification bit in the image frame. The size of the identification bit may correspond to n and the identification bit may identify the change mode of changing the target unit pixel. Then, the central processing unit sends the image frame (image data) containing the control data to the display driver chip. The display driver chip receives the image frame containing the control data, and based on the control data, changes the grayscale of the target unit pixel at a specific position in each image frame. The control data may also directly indicate the pixel position for grayscale change, or may indicate a pre-agreed change mode.
[0042] For example, n is 4, each pixel group includes 8 unit pixels, and the 8 unit pixels are arranged in a 4X2 pixel array. Here, the identification bit can identify 4 change modes. In this case, in the first change mode, for the image frames in the n image frames, for each pixel group, the grayscale of 0 target unit pixels is changed; in the second change mode, for the image frames in the n image frames, for each pixel group, the grayscale of 2 target unit pixels is changed; in the third change mode, for the image frames in the n image frames, for each pixel group, the grayscale of 4 target unit pixels is changed; and in the fourth change mode, for the image frames in the n image frames, for each pixel group, the grayscale of 6 target unit pixels is changed.
[0043] In addition, for example, n is 8, each pixel group includes 16 unit pixels, the 16 unit pixels are arranged into two 4X2 pixel arrays, and the identification bit can identify 8 change modes. In this case, in the first change mode, for the first image frame among the n image frames, the grayscale of 0 target unit pixels is changed for each pixel group; in the second change mode, for the image frame among the n image frames, the grayscale of 2 target unit pixels is changed for each pixel group; in the third change mode, for the image frame among the n image frames, the grayscale of 4 target unit pixels is changed for each pixel group; in the fourth change mode, for the image frame among the n image frames, the grayscale of 6 target unit pixels is changed for each pixel group; in the fifth change mode, for the image frame among the n image frames, the grayscale of 8 target unit pixels is changed for each pixel group; in the sixth change mode, for the image frame among the n image frames, the grayscale of 10 target unit pixels is changed for each pixel group; in the seventh change mode, for the image frame among the n image frames, the grayscale of 12 target unit pixels is changed for each pixel group; and in the eighth change mode, for the image frame among the n image frames, the grayscale of 14 target unit pixels is changed for each pixel group.
[0044] Here, control data may be used to control the pixel change pattern, thereby further preventing excessive use of a single pixel, making the grayscale conversion smoother, and generating richer grayscale display details.
[0045] Various examples according to various embodiments are described below.
[0046] Figure 2 is a schematic diagram of the arrangement of red, green and blue (RGB) pixels in a display. Figure 2As shown, the RGB pixel 510 includes a red R sub-pixel 511, a green G sub-pixel 512, and a blue B sub-pixel 513. The RGB pixel 510 can be regarded as a unit pixel, and the sub-pixels therein can also be regarded as a unit pixel.
[0047] Figure 3 It is a schematic red, green, blue, and green diamond-shaped PenTile (RGBG Diamond PenTile) pixel arrangement in an active matrix organic light-emitting diode (AMOLED). Figure 3 As shown, the RGBG Diamond PenTile pixel 520 includes a red R pixel 521, green G sub-pixels 5221, 5222, and a blue B sub-pixel 523. The image data of the RGB pixel can be converted into the image data of the RGBG Diamond PenTile pixel by means of the surrounding 4 sub-pixels through the sub-pixel rendering algorithm SPR, that is, the RGB image data is converted into RGBG image data.
[0048] Figure 4-Figure 12 The conversion process between RGB pixels and RGBG pixels is schematically shown. Figure 4-12 In this article, we take the OLED display with a resolution of 2400*1080 as an example. Figure 4-12 In , i and j are pixel coordinates.
[0049] When i=1, j=1, Figure 4 The upper left corner 611 of the display area is shown. The input RGB data is 612, the output RG data is 613, and the output BG data is 614.
[0050] When i=1, 2400>j>1, Figure 5 The left portion 621 of the display area is shown. The input RGB data is 622, the output RG data is 623, and the output BG data is 624.
[0051] When i=1, j=2400, Figure 6 The lower left corner 631 of the display area is shown. The input RGB data is 632, the output RG data is 633, and the output BG data is 634.
[0052] When 1080>i>1, j=1, Figure 7 The upper portion 641 of the display area is shown. The input RGB data is 642, the output RG data is 643, and the output BG data is 644.
[0053] When 1080>i>1, 2400>j>1, Figure 8The middle part 651 of the display area is shown. The input RGB data is 652, the output RG data is 653, and the output BG data is 654.
[0054] When 1080>i>1, j=2400, Fig. 9 The lower portion 661 of the display area is shown. The input RGB data is 662, the output RG data is 663, and the output BG data is 664.
[0055] When i=1080, j=1, Fig.10 The upper right corner portion 671 of the display area is shown. The input RGB data is 672, the output RG data is 673, and the output BG data is 674.
[0056] When i=1080, 2400>j>1, Fig.11 The situation of the right part 681 of the display area is shown. The input RGB data is 682, the output RG data is 683, and the BG data is 684.
[0057] When i=1080, j=2400, Fig.12 The lower right corner portion 691 of the display area is shown. The input RGB data is 692, the output RG data is 693, and the output BG data is 694.
[0058] Figure 13-Figure 16 An example of image data processing according to an embodiment is schematically shown. Figure 13-16 In the example of , the central processing unit adds the least significant bit LSB (Least Significant Bit) for dithering to each image frame, that is, control data, for example, 2 bits of data. For example, the input 8-bit data is xxxx xxxx, and the output data is xxxx xxxx (xx). LSB can be added to each pixel, or LSB can be added to each data frame. Here, LSB is used as an identification bit to identify the dithering process.
[0059] exist Figure 13-16 In the process, each pixel group is processed, and each pixel group includes 4×2 unit pixels (here, for example, sub-pixels). Every 4 image frames are processed as a unit period. For each image frame, the unit pixel at a specific position (the specific position is different for different image frames) in each pixel group is changed. For example, here, 8-bit data is used to represent the grayscale a of each unit pixel (the numerical range is 0 to 255). For the target unit pixel at a specific position, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0060] exist Fig.13In the image frame 71, the least significant bit LSB is 00, and the image frame 71 includes grayscales of a plurality of pixel groups 711, 712, 713, 714, ... For the image frame 71, the grayscale of the unit pixel is not changed.
[0061] exist Fig.14 In the image frame 72, the least significant bit LSB is 01, and the image frame 72 includes grayscales 721, 722, 723, 724, ... of a plurality of pixel groups. For the image frame 72, the grayscales at the positions (1, 1) and (2, 3) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged. Here, the coordinates (1, 1) and (2, 3) represent the positions of unit pixels in the pixel group.
[0062] exist Fig.15 , the least significant bit LSB is 10, and the image frame 73 includes grayscales 731, 732, 733, 734, ... of a plurality of pixel groups. For the image frame 73, the grayscales at positions (1, 1), (1, 3), (2, 2), and (2, 4) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0063] exist Fig.16 In the image frame 74, the least significant bit LSB is 11, and the image frame 74 includes grayscales 741, 742, 743, 744, ... of a plurality of pixel groups. For the image frame 74, the grayscales at positions (1, 2), (1, 3), (1, 4), (2, 1), (2, 2), (2, 4) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0064] For example, this method can increase the number of bits of an AMOLED display with an RGBG Diamond PenTile pixel arrangement. Without adding expensive hardware, the above dithering process can achieve a 10-bit 1.07 billion color display in an 8-bit 16.77 million color display.
[0065] Figure 17-Figure 23 Another example for image data processing according to an embodiment is schematically shown.
[0066] Similar to the above example, processing is performed on each pixel group, and each pixel group includes 8×2 unit pixels (here, for example, sub-pixels). Every 8 image frames are processed as a unit cycle. For each image frame, the unit pixel at a specific position (the specific position is different for different image frames) in each pixel group is changed. For example, here, 8-bit data is used to represent the grayscale a of each unit pixel (the numerical range is 0 to 255). For the target unit pixel at a specific position, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0067] exist Fig.17 In the image frame 81, the least significant bit LSB is 000, and the image frame 81 includes grayscales of a plurality of pixel groups 811, 812, ... For the image frame 81, the grayscale of the unit pixel is not changed.
[0068] exist Fig.18 In the image frame 82, the least significant bit LSB is 001, and the image frame 82 includes grayscales 821, 822, ... of multiple pixel groups. For the image frame 82, the grayscales at the positions (1, 5) and (2, 7) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged. Here, the coordinates (1, 5) and (2, 7) represent the positions of unit pixels in the pixel group.
[0069] exist Fig.19 In the image frame 83, the least significant bit LSB is 010, and the image frame 83 includes grayscales 831, 832, ... of a plurality of pixel groups. For the image frame 83, the grayscales at positions (1, 1), (1, 6), (2, 3), and (2, 8) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0070] exist Fig. 20 In the image frame 84, the least significant bit LSB is 011, and the image frame 84 includes grayscales 841, 842, ... of a plurality of pixel groups. For the image frame 84, the grayscales at positions (1, 1), (1, 5), (1, 7), (2, 3), (2, 6), and (2, 8) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0071] exist Fig.21In the image frame 85, the least significant bit LSB is 100, and the image frame 85 includes grayscales 851, 852, ... of a plurality of pixel groups. For the image frame 85, the grayscales at positions (1, 1), (1, 3), (1, 6), (1, 8), (2, 2), (2, 4), (2, 5), and (2, 7) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0072] exist Fig. 22 In the image frame 86, the least significant bit LSB is 101, and the image frame 86 includes grayscales 861, 862, ... of a plurality of pixel groups. For the image frame 86, the grayscales at positions (1, 1), (1, 3), (1, 6), (1, 7), (1, 8), (2, 2), (2, 4), (2, 5), (2, 6), (2, 8) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0073] exist Fig.23 In the image frame 87, the least significant bit LSB is 110, and the image frame 87 includes grayscales 871, 872, ... of a plurality of pixel groups. For the image frame 87, the grayscales at positions (1, 2), (1, 3), (1, 4), (1, 5), (1, 7), (1, 8), (2, 1), (2, 2), (2, 4), (2, 5), (2, 6), (2, 7) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0074] exist Fig.24 In the image frame 88, the least significant bit LSB is 111, and the image frame 88 includes grayscales 881, 882, ... of a plurality of pixel groups. For the image frame 88, the grayscales at positions (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (1, 7), (1, 8), (2, 1), (2, 2), (2, 4), (2, 5), (2, 6), (2, 7), (2, 8) in each pixel group are changed. Specifically, if the grayscale a is in the range of 0 to 254, the changed grayscale a+1 is output; if the grayscale a is 255, the output grayscale remains unchanged.
[0075] For example, this method can increase the number of bits of an AMOLED display with an RGBG Diamond PenTile pixel arrangement. Without adding expensive hardware, the above dithering process can achieve an 11-bit display of 8.59 billion colors in an 8-bit display of 16.77 million colors.
[0076] It should be noted that the image data processing method provided in the embodiment of the present application can be executed by an image data processing device, or by a control module in the image data processing device for executing the image data loading processing method. In the embodiment of the present application, the image data processing method provided in the embodiment of the present application is described by taking the image data processing device executing the image data loading processing method as an example.
[0077] Fig.25 is a schematic block diagram of an apparatus for processing image data according to an embodiment.
[0078] like Fig.25 As shown, the image data processing device 20 includes: an acquisition unit 21, which acquires first image data and control data, wherein the first image data includes multiple image frames, each of which includes grayscales of multiple unit pixels; and a changing unit 22, which changes the grayscale of the target unit pixel in each of the image frames according to the control data to obtain second image data.
[0079] The image data processing device 20 can be used to execute the processes in the above image data processing method.
[0080] The image data processing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0081] The image data processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0082] The image data processing device provided in the embodiment of the present application can achieve Figures 1 to 24 The various processes implemented in the method embodiment.
[0083] Specifically, in one embodiment, the acquisition unit 21 may acquire first image data for displaying an image on a display device, wherein the display area of the display device includes a plurality of unit pixels, the first image data includes a plurality of image frames, and each image frame includes the grayscale of each unit pixel in an image. The changing unit 22 may perform the following processing: taking every n image frames as a loop unit, changing the grayscale of the target unit pixel at a specific position in each image frame, wherein n is greater than or equal to 1; and outputting second image data for displaying an image, wherein the second image data includes the changed grayscale. For example, n is greater than or equal to 2, and among the n image frames, the specific positions in different image frames are different.
[0084] In another embodiment, the grayscale range of the unit pixel is 0-255, and the changing unit 21 performs the following processing:
[0085] For a unit pixel with grayscale of 0-254, add 1 to the grayscale of the target unit pixel; or
[0086] For a unit pixel with a grayscale of 255, the grayscale of the target unit pixel remains unchanged.
[0087] In another embodiment, the plurality of unit pixels are divided into a plurality of pixel groups, and the changing unit 21 changes the grayscale of the target unit pixel at a specific position in each pixel group for each image frame, taking each pixel group as a cycle unit.
[0088] In another embodiment, the changing unit 21 changes the grayscales of target unit pixels of different numbers for each pixel group in different image frames among the n image frames.
[0089] In another embodiment, the changing unit 21 performs the following processing:
[0090] Controlling the central processing unit to change the grayscale of a target unit pixel at a specific position in each image frame, with every n image frames as a cycle unit; and
[0091] The central processing unit is controlled to output the second image data to the display driving chip for displaying an image.
[0092] In another embodiment, the changing unit 21 performs the following processing:
[0093] Control the central processor, taking every n image frames as a cycle unit, and add control data to each image frame;
[0094] Controlling the display driver chip to receive an image frame containing control data;
[0095] The display driver chip is controlled to change the grayscale of a target unit pixel at a specific position in each image frame based on the control data.
[0096] For example, the control data is a flag bit in the image frame, and the size of the flag bit corresponds to n, and the flag bit identifies a change mode of the change target unit pixel.
[0097] In another embodiment, n is 4, each pixel group includes 8 unit pixels, the 8 unit pixels are arranged in a 4×2 pixel array, and the flag bit identifies 4 change modes, wherein the change unit 21 performs the following processing:
[0098] In a first changing mode, for an image frame among the n image frames, for each pixel group, the grayscale of 0 target unit pixels is changed;
[0099] In a second changing mode, for an image frame among the n image frames, for each pixel group, the grayscales of two target unit pixels are changed;
[0100] In a third changing mode, for an image frame among the n image frames, for each pixel group, grayscales of four target unit pixels are changed; and
[0101] In the fourth changing mode, for an image frame among the n image frames, the grayscales of six target unit pixels are changed for each pixel group.
[0102] In another embodiment, n is 8, the pixel group includes 16 unit pixels, the 16 unit pixels are arranged into two 4×2 pixel arrays, and the flag bit identifies 8 change modes, wherein the change unit 21 performs the following processing:
[0103] In the first change mode, for each pixel group, the grayscale of 0 target unit pixels is changed in the image frames of the n image frames;
[0104] In a second changing mode, for an image frame among the n image frames, for each pixel group, the grayscales of two target unit pixels are changed;
[0105] In a third changing mode, for an image frame among the n image frames, for each pixel group, the grayscales of four target unit pixels are changed;
[0106] In a fourth changing mode, for an image frame in the n image frames, for each pixel group, the grayscales of six target unit pixels are changed;
[0107] In a fifth changing mode, for an image frame among the n image frames, for each pixel group, grayscales of eight target unit pixels are changed;
[0108] In a sixth changing mode, for an image frame among the n image frames, for each pixel group, grayscales of 10 target unit pixels are changed;
[0109] In a seventh changing mode, for an image frame among the n image frames, for each pixel group, grayscales of 12 target unit pixels are changed; and
[0110] In the eighth changing mode, for an image frame among the n image frames, the grayscales of 14 target unit pixels are changed for each pixel group.
[0111] For example, the first image data and the second image data are AMOLED RGBG PenTile image data or AMOLED RGB Delta image data.
[0112] Through the embodiments herein, the number of grayscale bits of the display can be increased, thereby improving the image boundary effect and grayscale transition effect.
[0113] Optionally, the embodiment of the present application further provides an electronic device 30. Fig.26 3 is a schematic diagram of an electronic device according to an embodiment. The electronic device 30 includes a processor 32, a memory 33, and a program or instruction stored in the memory 33 and executable on the processor 32. When the program or instruction is executed by the processor 32, each process of the above-mentioned method for processing image data is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0114] In addition, as described above, the processor 32 may include a central processing unit 321 and a display driver chip 322. The processing in the method described in the above embodiments may be distributed between the central processing unit 321 and the display driver chip 322.
[0115] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0116] Fig. 27 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0117] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0118] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 27 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0119] The processor 110 is used to execute the processing in the image data processing method described in the above embodiment.
[0120] The embodiment of the present application also provides a readable storage medium. Fig.28 4 is a schematic diagram of a readable storage medium 40 according to an embodiment. The readable storage medium 40 stores a program or instruction, which, when executed by a processor, implements each process of the above-mentioned method for processing image data and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0121] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0122] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0124] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for processing image data, characterized in that: include: Acquire first image data and control data, wherein the first image data includes a plurality of image frames, each of the image frames includes a plurality of grayscales of unit pixels; According to the control data, the grayscale of the target unit pixel in each of the image frames is changed to obtain the second image data, Wherein, acquiring the first image data includes: Acquire first image data for displaying an image on a display device, wherein a display area of the display device includes a plurality of unit pixels, the first image data includes a plurality of image frames, and each image frame includes grayscales of each unit pixel in an image; and Wherein, changing the grayscale of the target unit pixel in each of the image frames to obtain the second image data comprises: Taking every n image frames as a cycle unit, changing the grayscale of a target unit pixel at a specific position in each image frame, where n is greater than or equal to 2; and The second image data is output for displaying an image, wherein the second image data includes a changed grayscale.
2. The method according to claim 1, characterized in that n is greater than or equal to 2, and among the n image frames, the specific positions in different image frames are different.
3. The method according to claim 1 or 2, characterized in that: The grayscale range of the unit pixel is 0-255, and changing the grayscale of the target unit pixel in each of the image frames to obtain the second image data includes: For a unit pixel with grayscale of 0-254, add 1 to the grayscale of the target unit pixel; or For a unit pixel with a grayscale of 255, the grayscale of the target unit pixel remains unchanged.
4. The method according to claim 1 or 2, characterized in that: The plurality of unit pixels are divided into a plurality of pixel groups, and Wherein, taking every n image frames as a cycle unit, changing the grayscale of a target unit pixel at a specific position in each image frame includes: For each image frame, each pixel group is taken as a cycle unit, and the gray scale of a target unit pixel at a specific position in each pixel group is changed.
5. The method according to claim 4, characterized in that Taking every n image frames as a cycle unit, changing the grayscale of a target unit pixel at a specific position in each image frame includes: For different image frames among the n image frames, for each pixel group, the grayscales of target unit pixels of different numbers are changed.
6. The method according to claim 5, characterized in that Taking every n image frames as a cycle unit, changing the grayscale of a target unit pixel at a specific position in each image frame includes: The central processing unit changes the gray scale of a target unit pixel at a specific position in each image frame, with every n image frames as a cycle unit; Wherein, outputting the second image data for displaying an image comprises: The central processing unit outputs the second image data to the display driving chip for displaying an image.
7. The method according to claim 5, characterized in that Taking every n image frames as a cycle unit, changing the grayscale of a target unit pixel at a specific position in each image frame includes: The central processing unit adds control data to each image frame, taking every n image frames as a cycle unit; The display driver chip receives an image frame including control data; The display driver chip changes the grayscale of the target unit pixel at a specific position in each image frame based on the control data.
8. The method according to claim 7, characterized in that The control data is a flag bit in the image frame, and the size of the flag bit corresponds to n, and the flag bit identifies a change mode of the change target unit pixel.
9. An image data processing device, characterized in that: include: An acquisition unit, which acquires first image data and control data, wherein the first image data includes a plurality of image frames, and each of the image frames includes a plurality of grayscales of unit pixels; as well as a changing unit, which changes the grayscale of the target unit pixel in each of the image frames according to the control data to obtain second image data, The acquisition unit acquires first image data for displaying an image on a display device, wherein a display area of the display device includes a plurality of unit pixels, the first image data includes a plurality of image frames, and each image frame includes the grayscale of each unit pixel in an image; and The changing unit changes the grayscale of a target unit pixel at a specific position in each image frame with every n image frames as a cycle unit, where n is greater than or equal to 2; and outputs second image data for displaying an image, where the second image data includes the changed grayscale.
Citation Information
Patent Citations
Image processing method and device and computer-readable storage medium
WO2019104616A1