Display data processing method, display driving method, driving chip and electronic device
By setting a minimum display refresh rate and refresh rate compensation grayscale, and combining full scattering and merged scattering algorithms, the problems of insufficient refresh rate and poor display effect at low grayscale in LED display drivers are solved, achieving rapid improvement of refresh rate and display effect.
Patent Information
- Application Number
- CN202511157096.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-18
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-08-18
AI Technical Summary
Existing LED display driving methods have insufficient refresh rates at low grayscale, causing screen flickering. Furthermore, traditional SPWM driving methods have poor display performance at low grayscale, exhibiting issues such as low grayscale blocks and low grayscale speckles.
By setting a minimum display refresh rate and refresh rate compensation grayscale, grayscale ranges are divided, and different scattering algorithms are used in different ranges, such as full scattering and merged scattering, combined with display compensation grayscale to optimize the display effect.
It rapidly increases the refresh rate at low grayscale levels, avoids screen flicker, improves display quality, resolves issues such as low grayscale blocks and low grayscale speckles, and ensures display stability.
Smart Images

Figure CN120656410B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of touch display, in particular to a display data processing method, a display driving method, a driving chip and an electronic device. BACKGROUND
[0002] Currently, the LED display driving system usually adjusts the brightness of the LED lamp bead by controlling the pulse width of the PWM (Pulse Width Modulation) signal. For the traditional PWM algorithm, for a specific gray scale, the lamp bead is usually concentrated to light for a period of time and then extinguished for a period of time in a frame period, and the disadvantage is that the time interval of the two lightings is long, and the display refresh rate is low. When the refresh rate is not high enough, the human eye will perceive obvious flicker. In order to improve the display picture, the SPWM (Scattered Pulse Width Modulation) driving method is usually used to control the conduction time of the LED lamp bead, thereby controlling the brightness of the lamp bead. The principle of the SPWM driving method is to scatter the total conduction time of the lamp bead in a frame into several shorter conduction times and uniformly distribute them in several sub-frames. Under the condition that the total gray scale is unchanged, the SPWM driving method can greatly improve the display refresh rate.
[0003] The disadvantage of the SPWM driving method is that when the total display gray scale is low, the gray scale value distributed in each sub-frame after scattering will be smaller, at this time the theoretical conduction time of the lamp bead is short, and the analog circuit constant current channel needs a certain response time when it is opened, so the actual conduction time of the lamp bead will be shorter, resulting in low gray blocks and low gray dots and other problems, which affect the display effect of the LED screen. The general method to solve the low gray block at present is to adopt the merging scattering method when displaying low gray. A merging scattering threshold is set, and the gray scale less than or equal to the merging scattering threshold is displayed in the same sub-frame. Under the same gray scale of low gray, the merging scattering method has larger gray scale distributed in the display sub-frame than the traditional SPWM full scattering method, which increases the conduction time of the lamp bead in each sub-frame and reduces the proportion of the analog circuit response time in the lamp bead conduction time, solving the problems of low gray blocks and low gray dots. But the disadvantage of the merging scattering method is that when displaying low gray, the number of display sub-frames is reduced due to the larger gray scale distributed in each sub-frame, and the display refresh rate of low gray is lower. When the display refresh rate is insufficient, the human eye will feel the screen flicker phenomenon.
[0004] Therefore, the current display data processing method has poor display effect when the gray scale is low, especially the flicker is more serious when the refresh rate is low. SUMMARY
[0005] To solve the above technical problems, the application provides a display data processing method, a display driving method, a driving chip and an electronic device to solve the problems in the prior art.
[0006] According to an aspect of the application, a display data processing method is provided, comprising: obtaining original gray corresponding to display data in one display frame, the one display frame containing N subframes; adding refresh rate compensation gray to the original gray to obtain multiplied gray; dividing the multiplied gray into gray intervals according to a set high gray threshold and a low gray threshold, the gray intervals including a low gray interval, a middle gray interval and a high gray interval; when the multiplied gray is in the low gray interval, uniformly scattering the multiplied gray in the first M subframes according to subframe number value order to obtain in-frame gray of each subframe, wherein M is the number of subframes corresponding to a set minimum display refresh rate, M and N are both integers greater than 1, and N is greater than M.
[0007] Optionally, M is obtained by the ratio of the minimum display refresh rate to display frame rate, and N is obtained by the ratio of the maximum display refresh rate to display frame rate.
[0008] Optionally, before obtaining the original gray corresponding to the display data in the one display frame, the method further comprises: obtaining the high gray threshold according to the product of the number of subframes contained in the one display frame and a set merging and scattering threshold; and obtaining the low gray threshold according to the product of the number of subframes corresponding to the minimum display refresh rate and the merging and scattering threshold.
[0009] Optionally, uniformly scattering the multiplied gray in the first M subframes according to subframe number value order to obtain in-frame gray of each subframe comprises: dividing the multiplied gray by M to obtain quotient and remainder, the quotient is a first quotient, and the remainder is a first remainder, the first quotient is the gray uniformly distributed to each subframe, and the first remainder is the remaining gray; for the subframes with number value less than the first remainder in the first M subframes, the in-frame gray of each subframe is the first quotient plus one; for the subframes with number value greater than or equal to the first remainder in the first M subframes, the in-frame gray of each subframe is the first quotient, wherein the first bit of the number value is zero.
[0010] Optionally, the display data processing method further comprises: when the multiplied gray is in the middle gray interval, sequentially distributing the gray corresponding to the merging and scattering threshold to each subframe according to subframe number value order to merge and scatter the multiplied gray into N subframes to obtain in-frame gray of each subframe.
[0011] Optionally, the multiplying gray scale is evenly scattered in N sub-frames according to the sub-frame number value to obtain the intra-frame gray scale of each sub-frame.
[0012] Optionally, the number of sub-frames allocated with the gray scale is greater than or equal to M, and the display refresh rate increases with the increase of the number of sub-frames allocated.
[0013] Optionally, when the multiplying gray scale is in the high gray interval, the multiplying gray scale is evenly scattered in N sub-frames according to the sub-frame number value to obtain the intra-frame gray scale of each sub-frame.
[0014] Optionally, the multiplying gray scale is evenly scattered in N sub-frames according to the sub-frame number value to obtain the intra-frame gray scale of each sub-frame, including: dividing the multiplying gray scale by N to obtain a quotient as a third quotient and a remainder as a third remainder, the third quotient being the gray scale evenly allocated to each sub-frame, and the third remainder being the remaining gray scale; in the N sub-frames, for the sub-frame with a number value less than the third remainder, the intra-frame gray scale of each sub-frame is the third quotient plus one; in the N sub-frames, for the sub-frame with a number value greater than or equal to the third remainder, the intra-frame gray scale of each sub-frame is the third quotient, wherein the first bit of the number value is zero.
[0015] Optionally, the dividing the gray scale interval according to the set high gray threshold and low gray threshold includes: when the multiplying gray scale is less than the low gray threshold, being in the low gray interval; when the multiplying gray scale is greater than or equal to the low gray threshold and less than the high gray threshold, being in the medium gray interval; when the multiplying gray scale is greater than or equal to the high gray threshold, being in the high gray interval.
[0016] Optionally, the display data processing method further comprises: setting a display compensation gray scale, and adding the display compensation gray scale to each sub-frame with a non-zero intra-frame gray scale.
[0017] Optionally, the sum of the display compensation gray scale and the current intra-frame gray scale is taken as the updated intra-frame gray scale, and the updated intra-frame gray scale is provided to the PWM processing circuit.
[0018] Optionally, the display compensation gray scale and the current intra-frame gray scale are provided to the PWM processing circuit separately.
[0019] According to another aspect of the present application, a display driving method for driving an LED lamp is provided, which comprises: obtaining the intra-frame gray scale of each sub-frame according to the display data processing method described above; adjusting the pulse width of a PWM signal according to the intra-frame gray scale; and adjusting the on-time of the LED lamp according to the pulse width of the PWM signal.
[0020] According to another aspect of the present application, a driving chip is provided, which comprises: a display data processing circuit for executing the display data processing method described above to obtain the intra-frame gray scale of each sub-frame; a PWM processing circuit for adjusting the pulse width of an output PWM signal according to the intra-frame gray scale; and an LED lamp driving circuit for adjusting the on-time of an LED lamp according to the pulse width of the PWM signal.
[0021] According to another aspect of the present application, an electronic device is provided, which comprises a driving chip for executing the display data processing method described above.
[0022] The display data processing method, display driving method, driving chip and electronic device provided by the present application set a minimum display refresh rate, obtain the minimum display sub-frame number M satisfying the minimum display refresh rate in a low gray interval, and add a refresh rate compensation gray scale to the original gray scale, so that the obtained multiplied gray scale can be uniformly scattered in the M sub-frames, and the display refresh rate is quickly improved to the minimum display refresh rate. Further, the refresh rate compensation gray scale enables the minimum display refresh rate to be quickly reached when the original gray scale is small, thereby avoiding flickering of the display picture.
[0023] Further, a merging and scattering threshold is set, which corresponds to the maximum PWM width in each sub-frame under the merging and scattering algorithm, and the low gray threshold and high gray threshold are obtained according to the merging and scattering threshold and the set sub-frame number. The two thresholds can divide the gray scale data into low gray, medium gray and high gray intervals, and different gray scale scattering processing algorithms are adopted in different gray intervals. In the low gray interval, the full scattering algorithm is adopted to quickly reach the minimum display refresh rate and realize fast refresh in the low gray stage; in the medium gray interval, the merging and scattering algorithm is adopted to reach the minimum display refresh rate while ensuring that the allocated gray scale in each sub-frame is the merging and scattering threshold, thereby improving the display effect; and in the high gray interval, the full scattering algorithm is adopted to achieve more uniform scattering effect, thereby improving the display effect in each gray interval.
[0024] Further, display gray scale compensation is performed on each sub-frame with a non-zero intra-frame gray scale, and a display compensation gray scale is set to offset the influence of the response time of the analog circuit on the display time, thereby improving the problems of low gray blocks and low gray mura caused by the response time of the analog circuit, and further ensuring the stability of the display picture.
[0025] It should be noted that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0026] Figure 1 A comparison diagram of several gray scale allocation methods in the prior art is shown.
[0027] Figure 2 A schematic flow chart of a display data processing method according to the first embodiment of the present application is shown.
[0028] Figure 3 A schematic flow chart of a display data processing method according to the second embodiment of the present application is shown.
[0029] Figure 4 A variation diagram of display refresh rate obtained by the display data processing method according to the embodiments of the present application is shown. DETAILED DESCRIPTION
[0030] In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the accompanying drawings. The preferred embodiments of the present application are shown in the drawings. However, the present application can be realized in different forms, and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0031] Figure 1 A comparison diagram of several gray scale allocation methods in the prior art is shown.
[0032] As Figure 1 shown, a display frame can be divided into multiple sub-frames, and the time of each sub-frame is the same. Four sub-frames are taken as an example in the figure. Taking the original gray scale of the display data as 8 and the display frame rate as 60Hz as an example, in the conventional PWM algorithm, these gray scales are allocated to the same sub-frame, i.e., all are displayed in sub-frame 1, and the refresh rate is 60Hz. For the SPWM full scattering algorithm, the original gray scales are evenly allocated to the four sub-frames, and the gray scale in each sub-frame is 2, and the refresh rate is 240Hz. For the merged scattering algorithm, the merged scattering threshold is 4, the gray scales are evenly allocated to the first two sub-frames, and the gray scale in each sub-frame is 4, and the refresh rate is 120Hz. These scattering algorithms have their own advantages and disadvantages, and the display data processing method of the present application mainly adopts the SPWM full scattering algorithm and the merged scattering algorithm.
[0033] Figure 2 A schematic flow chart of a display data processing method according to the first embodiment of the present application is shown.
[0034] As Figure 2As shown, the display data processing method of the embodiment specifically includes steps S101-S104.
[0035] In step S101, the original gray corresponding to the display data in a display frame is obtained. A display frame contains N subframes.
[0036] In this step, the original gray corresponding to the display data in a display frame received by the driving chip of the LED from the control card is denoted as D. If the display frame rate is Z, then the time of a display frame is 1 / Z, and the display time of each subframe is N / Z. The value of N is related to the maximum display refresh rate R2, and N is obtained, for example, by the ratio of the maximum display refresh rate R2 and the display frame rate Z. Taking the maximum display refresh rate as 3840Hz and the display frame rate as 60Hz as an example, the value of N is 64, i.e., the original gray D can be distributed in N subframes at most. However, when the original gray D is small, it can only be displayed in a limited number of subframes, and the number of the limited subframes is much smaller than N. When the original gray D is small and the number of display subframes is small, the display refresh rate is low, and the flicker is serious. Therefore, in order to avoid the flicker caused by the low display refresh rate, the display data processing method of the embodiment first sets the minimum display refresh rate R1 to obtain the number of subframes M corresponding to the minimum display refresh rate R1. That is, when the original gray D is small, in order to meet the minimum display refresh rate R1, the original gray D needs to be distributed in at least M subframes. The value of M is, for example, the ratio of the minimum display refresh rate R1 and the display frame rate Z. Taking the minimum display refresh rate as 240Hz and the display frame rate as 60Hz as an example, M is 4. When this condition is met, the human eye can hardly observe the flicker phenomenon.
[0037] In step S102, the refresh rate compensation gray is added to the original gray to obtain the multiplied gray.
[0038] In this step, in order to make the original gray reach the minimum display refresh rate when it is very low, the refresh rate compensation gray C is set, and the original gray D is added to the refresh rate compensation gray C to obtain the multiplied gray D1. The multiplied gray D1 is larger than the original gray D, and the minimum display refresh rate R1 can be reached faster. According to actual needs, different refresh rate compensation grays C can be selected to compensate the display refresh rate to different degrees.
[0039] In this embodiment, the refresh rate compensation gray scale C can uniformly scatter the original gray scale D of any size into the first M subframes. For example, taking the minimum gray scale 1 as an example, when the original gray scale D is 1, it is not enough to scatter into the first 4 subframes, at this time, the refresh rate compensation gray scale C can be set to 3, and the multiplied gray scale D1 is 4, so that the gray scale that can be allocated in the first 4 subframes is 1. Therefore, the refresh rate compensation gray scale C in this embodiment is at least M-1, so as to ensure that when the original gray scale D is the minimum gray scale 1, the multiplied gray scale D1 can reach M, thereby being uniformly scattered into M subframes.
[0040] In order to further ensure the monotonicity of the gray scale, the refresh rate compensation gray scale C is effective under each original gray scale D, that is, no matter what the original gray scale D is, the refresh rate compensation gray scale C is added to maintain the monotonicity of the multiplied gray scale D1. Avoiding the decrease of the multiplied gray scale D1 due to the use of different scattering algorithms when switching between gray scale intervals in subsequent steps.
[0041] This embodiment mainly selects different scattering algorithms according to the gray scale interval in which the multiplied gray scale D1 is located, to improve the display effect in different gray scale intervals. Therefore, it is necessary to first set a gray scale threshold, and divide the gray scale interval according to the gray scale threshold. And a merging and scattering threshold T needs to be set in advance, which is the maximum gray scale allocated in each subframe when the merging and scattering algorithm is used, and also corresponds to the maximum PWM width of each subframe under the merging and scattering algorithm.
[0042] Then, the display data processing method can further include: obtaining a high gray threshold according to the product of the number N of subframes contained in one display frame and the merging and scattering threshold T, that is, the high gray threshold H = total subframe number N * merging and scattering threshold T. And the display data processing method can further include: obtaining a low gray threshold according to the product of the subframe number M corresponding to the minimum display refresh rate and the merging and scattering threshold T, that is, the low gray threshold L = subframe number M corresponding to the minimum display refresh rate * merging and scattering threshold T. Through the two thresholds, the gray scale interval can be divided, and then different scattering algorithms can be selected in different gray scale intervals.
[0043] In step S103, the multiplied gray scale is divided into a gray scale interval according to the set high gray threshold and low gray threshold, and the gray scale interval includes a low gray interval, a middle gray interval and a high gray interval.
[0044] Specifically, in this step, when the multiplied gray scale D1 is less than the low gray threshold L, it is in the low gray interval; when the multiplied gray scale D1 is greater than or equal to the low gray threshold L and less than the high gray threshold H, it is in the middle gray interval; when the multiplied gray scale D1 is greater than or equal to the high gray threshold H, it is in the high gray interval. Different scattering algorithms are adopted in different gray scale intervals to improve the display effect in each gray scale interval.
[0045] In step S104, when the multiplication gray level is in the low gray interval, the multiplication gray level is uniformly scattered in the first M sub-frames according to the sub-frame number value in sequence to obtain the intra-frame gray level of each sub-frame.
[0046] In this step, when the multiplication gray level D1 is less than the set gray level threshold L, it is in the low gray interval, and the number M of sub-frames satisfying the minimum display refresh rate R1 needs to be obtained to scatter the multiplication gray level D1 into M sub-frames. Both M and N are integers greater than 1, and N is greater than M. In the low gray interval, the SPWM full scattering algorithm is selected to fully scatter the multiplication gray level D1 to realize the rapid improvement of the low gray refresh rate. At this time, only the first M sub-frames in the N sub-frames are displayed, and the multiplication gray level D1 is uniformly scattered into the M sub-frames.
[0047] This step can specifically include: dividing the multiplication gray level D1 by M to obtain a quotient as a first quotient and a remainder as a first remainder, the first quotient being the gray level uniformly distributed to each sub-frame, and the first remainder being the remaining gray level; in the first M sub-frames, for the sub-frames with a number value less than the first remainder, the intra-frame gray level of each sub-frame is the first quotient plus one; in the first M sub-frames, for the sub-frames with a number value greater than or equal to the first remainder, the intra-frame gray level of each sub-frame is the first quotient. That is, in the low gray interval, the intra-frame gray level D2 of each sub-frame in the first M sub-frames is calculated according to the following method: dividing the multiplication gray level D1 by M to obtain a first quotient QL and a first remainder RL. For the sub-frames with a number value less than RL, the intra-frame gray level D2 of each sub-frame is QL+1, and for the sub-frames with a number value greater than or equal to RL, the intra-frame gray level D2 of each sub-frame is QL. The first number value is 0, that is, the number value starts from 0, that is, the number of the first sub-frame is 0, also called sub-frame 0; the number of the second sub-frame is 1, that is, sub-frame 1, and so on.
[0048] Therefore, in this embodiment, by setting the low gray threshold and the minimum display refresh rate, the minimum number M of sub-frames satisfying the minimum display refresh rate in the low gray interval is obtained, and the refresh rate compensation gray level is added to the original gray level, so that the obtained multiplication gray level can be uniformly scattered into M sub-frames. Thus, the display refresh rate in the low gray interval is rapidly improved. The refresh rate compensation gray level can also achieve the minimum display refresh rate when the original gray level is small, avoiding flickering of the display picture.
[0049] Figure 3 A schematic flowchart of a display data processing method according to a second embodiment of the present application is shown.
[0050] As Figure 3 shown, this embodiment is a more detailed and perfect flowchart of a display data processing method than Figure 2 the first embodiment. The flowchart includes steps S201-S210, wherein steps S203-S206 are almost completely the same as steps S101-S103. Steps S201-S202 have been described in the first embodiment, and will not be repeated here.Figure 2 The display data processing method of the embodiment is described in the embodiment, which will not be repeated here. Specifically, the display data processing method of the embodiment includes:
[0051] In step S201, the maximum display refresh rate R2 is set, the total number N of subframes contained in a display frame is obtained according to the maximum display refresh rate R2 and the display frame rate Z, and the high gray threshold H is obtained according to the product of N and the merging and scattering threshold T.
[0052] In step S202, the minimum display refresh rate R1 is set, the number M of subframes for gray scale allocation in the low gray interval is obtained according to the minimum display refresh rate R1 and the display frame rate Z, and the low gray threshold L is obtained according to the product of M and the merging and scattering threshold T.
[0053] In step S203, the original gray scale D corresponding to the display data in a display frame is received.
[0054] In step S204, the original gray scale D is added with the set refresh rate compensation gray scale C to obtain the multiplied gray scale D1.
[0055] In step S205, the multiplied gray scale D1 is divided into gray scale intervals according to the set high gray threshold H and low gray threshold L.
[0056] In step S206, when the multiplied gray scale D1 is less than the low gray threshold L, the multiplied gray scale D1 is scattered in the first M subframes to obtain the in-frame gray scale D2 of each subframe.
[0057] In the above steps, a plurality of parameters are set through steps S201-S202 to obtain the number M of subframes satisfying the minimum refresh rate, the total number N of subframes contained in a display frame, and the low gray threshold L and the high gray threshold H. In steps S203-S204, how to obtain the original gray scale D and the multiplied gray scale D1 is introduced. Then, in step S205, the two thresholds are used to divide three gray scale intervals. In step S206, the processing method when the multiplied gray scale D1 is in the low gray interval is introduced. For details, please refer to the description of Figure 2 .
[0058] Further, in the low gray interval, as the multiplied gray scale D1 increases, the in-frame gray scale D2 of each subframe increases after satisfying the minimum display refresh rate R1, until the in-frame gray scale D2 of each subframe is equal to the merging and scattering threshold T, and the multiplied gray scale D1 is equal to the low gray threshold L, and then enters the middle gray interval. As the multiplied gray scale D1 continues to increase, the minimum display refresh rate R1 remains unchanged, and the gray scale will continue to be allocated in the (M+1)th subframe until the in-frame gray scale D2 in the (M+1)th subframe is equal to the merging and scattering threshold T, and then continues to grow in the (M+2)th subframe. That is, the merging and scattering algorithm is selected in the middle gray interval to achieve better display effect.
[0059] Therefore, the display data processing method of the embodiment further comprises: when the multiplied gray level is in the middle gray interval, sequentially allocating the gray level corresponding to the merging and scattering threshold value to each subframe in order of the subframe number value, so as to merge and scatter the multiplied gray level D1 into N subframes, and obtain the intra-frame gray level of each subframe, corresponding to step S207.
[0060] In step S207, when the multiplied gray level D1 is greater than or equal to the low gray threshold L and less than the high gray threshold H, it is in the middle gray interval, D1 is merged and scattered into N subframes to obtain the intra-frame gray level D2 of each subframe. That is, in the middle gray interval, the multiplied gray level D1 is merged and scattered in N subframes, and the intra-frame gray level D2 of each subframe is calculated according to the following method: the multiplied gray level D1 is divided by the merging and scattering threshold T, the quotient is the second quotient QM, and the remainder is the second remainder RM. The second quotient QM is the number of allocated subframes, and the second remainder RM is the remaining gray level. In N subframes, for the subframes with a number value less than the second quotient QM, the intra-frame gray level of each subframe is the merging and scattering threshold, that is, D2=T; in N subframes, for the subframes with a number value equal to the second quotient QM, the intra-frame gray level is the second remainder RM, that is, D2=RM; in N subframes, for the subframes with a number value greater than the second quotient QM, the intra-frame gray level of each subframe is zero, that is, D2=0, and the number value also starts from 0. Then, in the middle gray interval, the number of subframes allocated with gray levels is greater than or equal to M, and as the multiplied gray level D1 increases, the number of allocated subframes increases, and the display refresh rate increases.
[0061] In the middle gray interval, as the multiplied gray level D1 increases, the number of subframes allocated with gray levels gradually increases, until the intra-frame gray level D2 of all subframes in N subframes is T, at which time the multiplied gray level D1 is equal to the high gray threshold H, and enters the high gray interval. In the high gray interval, since the intra-frame gray level D2 of each subframe has reached the merging and scattering threshold T, the display refresh rate has reached the maximum display refresh rate R2, at which time the response time of the analog circuit occupies a smaller proportion of the on time, so the full scattering algorithm can be selected to maintain the display refresh rate unchanged while achieving a more uniform scattering effect. That is, the display data processing method further comprises: when the multiplied gray level is in the high gray interval, uniformly scattering the multiplied gray level in N subframes in order of the subframe number value, to obtain the intra-frame gray level of each subframe, corresponding to step S208.
[0062] In step S208, when the multiplied gray level D1 is greater than or equal to the high gray threshold H, it is in the high gray interval, D1 is fully scattered in N subframes to obtain the intra-frame gray level D2 of each subframe.
[0063] The step specifically comprises: dividing the multiplied gray scale by N, the quotient obtained being a third quotient and the remainder being a third remainder, the third quotient being the gray scale evenly divided by each sub-frame, and the third remainder being the remaining gray scale; in the N sub-frames, for the sub-frame with a number value less than the third remainder, the in-frame gray scale of each sub-frame is the third quotient plus one; and in the N sub-frames, for the sub-frame with a number value greater than or equal to the third remainder, the in-frame gray scale of each sub-frame is the third quotient. Specifically, in the high gray interval, the multiplied gray scale D1 is displayed in full scattering in the N sub-frames, and the in-frame gray scale D2 of each sub-frame is calculated according to the following method: the multiplied gray scale D1 is divided by the total number of sub-frames N, the third quotient obtained is denoted as QH, and the third remainder is denoted as RH. For the sub-frame with a number value less than RH, the in-frame gray scale D2 of each frame is QH+1. For the sub-frame with a number value greater than or equal to RH, the in-frame gray scale D2 of each frame is QH.
[0064] In summary, the full scattering algorithm is used in the low gray interval and the high gray interval, and the merged scattering algorithm is used in the medium gray interval. However, since the in-frame gray scale of each sub-frame is very small in the low gray interval, the conduction time of the lamp bead is short, and the analog circuit needs a certain response time to open, the full scattering algorithm used in the low gray interval may have problems such as low gray mottling and low gray blocks. Therefore, in order to improve the display effect in low gray without reducing the display refresh rate, a display compensation gray scale E can be set, corresponding to steps S209-S210.
[0065] In step S209, the display compensation gray scale E is set, and the display compensation gray scale is added to each sub-frame with a non-zero in-frame gray scale D2.
[0066] In step S210, after the display time of the increased display compensation gray scale is offset by the response time of the analog circuit, the actual display time is generated.
[0067] Specifically, when the in-frame gray scale D2 of a certain sub-frame after scattering is not 0, it indicates that the sub-frame is a display sub-frame, and the display compensation gray scale E needs to be added additionally. The display compensation gray scale E is used to offset the influence of the response time of the analog circuit on the display time. That is, the role of the display compensation gray scale E is to compensate for the brightness loss caused by the actual conduction time of the lamp bead being less than the theoretical conduction time due to the response time of the analog circuit. Increasing the display compensation gray scale E will increase the actual conduction time of the lamp bead, thereby offsetting the response time of the analog circuit, so that the actual conduction time of the lamp bead is equal to the in-frame gray scale D2 of the sub-frame, and thus the display effect in low gray can be improved.
[0068] Since the display compensation gray scale E is used to compensate the response time of the analog circuit, the display compensation gray scale E can also be set to take effect in each gray scale interval, so that the analog circuit influence time can be offset in the low gray interval, the medium gray interval and the high gray interval, and a more accurate display time can be obtained. For any gray scale interval, if the in-frame gray scale D2 of a subframe is 0, it means that the subframe is a non-display subframe, so no additional gray scale compensation is needed, and the display compensation gray scale E does not take effect at this time, so the display compensation gray scale E does not increase the number of display subframes and does not affect the display refresh rate.
[0069] Further, for the increase of the display compensation gray scale E, the sum of the display compensation gray scale E and the current in-frame gray scale D2 can be used as the updated in-frame gray scale, and the updated in-frame gray scale is provided to the PWM processing circuit. Alternatively, the display compensation gray scale and the current in-frame gray scale D2 can also be provided to the PWM processing circuit separately. That is, the display compensation gray scale E can be implemented by two methods, the first method is to directly add the in-frame gray scale D2 to the display compensation gray scale E to obtain the updated in-frame gray scale D3. This method will remain unchanged at the maximum gray scale after D3 reaches the maximum gray scale. For example, for 10-bit gray scale data, the maximum gray scale is 1023, and if the display compensation gray scale E is 3, when the in-frame gray scale D2 of the subframe is greater than or equal to 1020, D3 will remain unchanged at 1023. The second method is to use the display compensation gray scale E as a separate compensation display time, which is independent of the display time corresponding to D2, and the display compensation gray scale E takes effect as long as the in-frame gray scale D2 is not 0. For example, for 10-bit gray scale data, the maximum gray scale is 1023, and if the display compensation gray scale E is 3, when the in-frame gray scale D2 of the subframe is equal to 1023, the compensated gray scale can be equivalent to 1023+3=1026. Thus, the total display time of this method is greater than that of the first method.
[0070] By the above display data processing method, different data scattering algorithms can be performed in different gray scale intervals, and the display effect of each gray scale interval can be optimized under the premise of ensuring that the low gray can quickly reach the minimum display refresh rate.
[0071] In this embodiment, some common numerical values are used for illustration. It is assumed that the maximum display refresh rate is 3840Hz, the display frame rate is 60Hz, the total number of subframes N=64, the merging and scattering threshold T is set to 4, the high gray threshold H=64*4=256. The minimum display refresh rate R1=240Hz is set, the number of subframes M=240 / 60=4 that meet the minimum display refresh rate R1, and the low gray threshold L=4*4=16. In the low gray interval, full scattering display is performed in the first 4 subframes. When the refresh rate compensation gray scale C=3 and the original gray scale D=1, the multiplied gray scale D1=4, that is, the minimum display refresh rate R1 can be reached.
[0072] When the original gray level D continues to increase, the display refresh rate remains unchanged at the minimum display refresh rate R1. When the original gray level D = 13, the multiplied gray level D1 = 16, and the in-frame gray level D2 of each of the first four subframes is the merging and scattering threshold 4, reaching the low gray threshold L, and entering the middle gray interval. In the middle gray interval, merging and scattering display is performed in the 64 subframes, keeping the in-frame gray level D2 of each of the first four subframes as 4, and as the gray level continues to increase, the in-frame gray level continues to grow in the fifth subframe, and after the in-frame gray level of the fifth subframe is also 4, the in-frame gray level continues to grow in the sixth subframe. In this way, when the original gray level D = 253, the multiplied gray level D1 = 256, and the in-frame gray level D2 of all the subframes in the 64 subframes is the merging and scattering threshold 4, the refresh rate continues to increase from 240 Hz to 3840 Hz, reaching the high gray threshold H, and entering the high gray interval. In the high gray interval, full scattering display is performed in all the 64 subframes, and the display refresh rate remains unchanged at 3840 Hz. The display compensation gray level E needs to be set according to the response time of the analog circuit, for example, the response time of the analog circuit is 1, and the display compensation gray level E is set to 1. When the in-frame gray level D2 of the subframe is 1, the total display time after display gray level compensation is 2, and after offsetting the response time of the analog circuit, the actual display time is still 1.
[0073] Further, the embodiment also provides a display driving method for driving the LED lamp, which comprises: obtaining the in-frame gray level of each subframe according to the display data processing method; adjusting the pulse width of the PWM signal according to the in-frame gray level; and adjusting the on time of the LED lamp according to the pulse width of the PWM signal.
[0074] Figure 4 A variation diagram of the display refresh rate obtained by the display data processing method according to the embodiment of the application is shown.
[0075] As Figure 4 shown, the abscissa corresponds to the original gray level of the display data, and the ordinate corresponds to the display refresh rate. In combination with Figure 3In the example in the table, with a minimum display refresh rate of 240Hz and a refresh rate compensation gray scale of 3, it can be seen that the original gray scale is in the low gray interval when it is less than 13, and the original gray scale of 1 can reach the minimum display refresh rate of 240Hz, and the display refresh rate in the low gray interval is always maintained at the minimum display refresh rate. When the original gray scale reaches 253, it is in the high gray interval, N is 64 for example, at this time all the subframes can be allocated to the merging and scattering threshold, and the corresponding display refresh rate is the maximum display refresh rate, for example, 3840Hz. When the original gray scale is between 13 and 253, it is in the middle gray interval, and in this interval, as the original gray scale increases, the number of subframes with non-zero gray scale in the frame gradually increases from 4 to 64, and the corresponding display refresh rate presents a step increase, gradually increasing to the maximum display refresh rate of 3840Hz.
[0076] Further, the embodiment of the present application also provides a driving chip, comprising a display data processing circuit, a PWM processing circuit and an LED lamp driving circuit. The display data processing circuit is used to execute the display data processing method described in the above embodiment to obtain the gray scale in each subframe. The PWM processing circuit adjusts the pulse width of the output PWM signal according to the gray scale in the frame. The LED lamp driving circuit adjusts the on time of the LED lamp according to the width of the PWM signal.
[0077] In addition, the present application also provides an electronic device, which comprises the above driving chip, and the driving chip is used to execute the display data processing method of the above embodiment.
[0078] In summary, the display data processing method, the display driving method, the driving chip and the electronic device provided by the present application set the minimum display refresh rate, obtain the minimum number of subframes M that meet the minimum display refresh rate in the low gray interval, and then increase the refresh rate compensation gray scale for the original gray scale, so that the multiplied gray scale can be uniformly scattered in the M subframes, thereby quickly increasing the low gray display refresh rate to the minimum display refresh rate. The refresh rate compensation gray scale can reach the minimum display refresh rate when the original gray scale is small, avoiding flickering of the display picture. For each subframe with non-zero gray scale in the frame, a display compensation gray scale is set to offset the influence of the response time of the analog circuit on the display time, further ensuring the stability of the display picture. Through the above measures, the display refresh rate is quickly increased to the minimum display refresh rate in the low gray stage, and the problems of low gray mura and low gray blocks are improved. Different scattering algorithms are used in different gray scale intervals to improve the display effect in each gray scale interval.
[0079] It should be noted that the values in this paper are only used for example description, and other values can be used to implement the scheme in other embodiments of the present application. The specific values should be reasonably set according to the actual situation, and the present application does not limit this.
[0080] It should be noted that the above-mentioned embodiments are merely given as an example to illustrate the application and are not intended to limit the mode of implementation. Based on the above description, one of ordinary skill in the art can make further changes or modifications to the embodiments in different forms. Here, it is not necessary or possible to exhaust all the embodiments. The obvious changes or modifications derived therefrom are still within the scope of the application.
[0081] It should also be understood that the terms and expressions used herein are used only to describe and not to limit the one or more embodiments of the present disclosure. The use of such terms and expressions does not exclude any equivalent features from the scope of the claims, and it is recognized that various modifications are possible in the framework of the present disclosure. Other modifications, changes, and substitutions are also possible. Accordingly, the claims are intended to cover all such equivalent features.
Claims
1. A display data processing method for performing gray scale allocation on display data, wherein, The display data processing method comprises: obtaining original gray corresponding to display data in a display frame, the display frame comprising N subframes; adding refresh rate compensation gray to the original gray to obtain multiplied gray; dividing the multiplied gray into gray intervals according to a set high gray threshold and a set low gray threshold, the gray intervals comprising a low gray interval, a middle gray interval and a high gray interval; when the multiplied gray is in the low gray interval, uniformly scattering the multiplied gray in the first M subframes according to subframe number value order to obtain frame-in gray of each subframe, wherein M is a subframe number corresponding to a set minimum display refresh rate, M and N are integers greater than 1, N is greater than M, M is obtained by the ratio of the minimum display refresh rate to display frame rate, and N is obtained by the ratio of maximum display refresh rate to display frame rate.
2. The display data processing method of claim 1, wherein, Before obtaining the original gray corresponding to the display data in the display frame, the method further comprises: obtaining the high gray threshold according to the product of the subframe number comprised in the display frame and a set merging and scattering threshold; obtaining the low gray threshold according to the product of the subframe number corresponding to the minimum display refresh rate and the merging and scattering threshold.
3. The display data processing method of claim 1, wherein, The uniformly scattering the multiplied gray in the first M subframes according to the subframe number value order to obtain the frame-in gray of each subframe comprises: dividing the multiplied gray by M, wherein the quotient is a first quotient and the remainder is a first remainder, the first quotient is the gray uniformly distributed to each subframe, and the first remainder is the remaining gray; for the subframes with the number value less than the first remainder in the first M subframes, the frame-in gray of each subframe is the first quotient plus one; for the subframes with the number value greater than or equal to the first remainder in the first M subframes, the frame-in gray of each subframe is the first quotient, wherein the first bit of the number value is zero.
4. The display data processing method according to claim 1, further comprising: when the multiplied gray is in the middle gray interval, sequentially distributing the merging and scattering threshold corresponding gray to each subframe according to the subframe number value order to merge and scatter the multiplied gray into N subframes to obtain the frame-in gray of each subframe.
5. The display data processing method of claim 4, wherein, The merging and scattering the multiplied gray into N subframes to obtain the frame-in gray of each subframe comprises: dividing the multiplied gray by the merging and scattering threshold, wherein the quotient is a second quotient and the remainder is a second remainder, the second quotient is the number of subframes allocated, and the second remainder is the remaining gray; for the subframes with the number value less than the second quotient in the N subframes, the frame-in gray of each subframe is the merging and scattering threshold; for the subframes with the number value equal to the second quotient in the N subframes, the frame-in gray thereof is the second remainder; for the subframes with the number value greater than the second quotient in the N subframes, the frame-in gray of each subframe is zero, wherein the first bit of the number value is zero.
6. The display data processing method of claim 4, wherein, The number of subframes allocated with gray is greater than or equal to M, and the display refresh rate increases with the increase of the number of subframes allocated.
7. The display data processing method according to claim 1, further comprising: when the multiplied gray is in the high gray interval, uniformly scattering the multiplied gray in N subframes according to the subframe number value order to obtain the frame-in gray of each subframe.
8. The display data processing method of claim 7, wherein, The multiplied gray scale is evenly scattered in N sub-frames according to the sub-frame number value in sequence to obtain the intra-frame gray scale of each sub-frame, including: The multiplied gray scale is divided by N to obtain a quotient as a third quotient and a remainder as a third remainder, the third quotient is the gray scale evenly distributed to each sub-frame, and the third remainder is the remaining gray scale; In the N sub-frames, for the sub-frame with a number value less than the third remainder, the intra-frame gray scale of each sub-frame is the third quotient plus one; In the N sub-frames, for the sub-frame with a number value greater than or equal to the third remainder, the intra-frame gray scale of each sub-frame is the third quotient, Wherein, the first said number value is zero.
9. The display data processing method of claim 1, wherein, The multiplied gray scale is divided into a gray scale interval according to the set high gray threshold and low gray threshold, including: When the multiplied gray scale is less than the low gray threshold, it is in the low gray interval; When the multiplied gray scale is greater than or equal to the low gray threshold and less than the high gray threshold, it is in the middle gray interval; When the multiplied gray scale is greater than or equal to the high gray threshold, it is in the high gray interval.
10. The display data processing method according to any one of claims 1-9, further comprising: Setting a display compensation gray scale, adding a display compensation gray scale to each sub-frame with a non-zero intra-frame gray scale.
11. The display data processing method of claim 10, wherein, The sum of the display compensation gray scale and the current intra-frame gray scale is taken as the updated intra-frame gray scale, and the updated intra-frame gray scale is provided to the PWM processing circuit.
12. The display data processing method of claim 10, wherein, The display compensation gray scale and the current intra-frame gray scale are separately provided to the PWM processing circuit.
13. A display driving method for driving an LED lamp, wherein, The display driving method comprises: The display data processing method according to any one of claims 1-12 obtains the intra-frame gray scale of each sub-frame; The pulse width of the PWM signal is adjusted according to the intra-frame gray scale; The on time of the LED lamp is adjusted according to the pulse width of the PWM signal.
14. A driving chip for driving a display device, wherein, The driving chip comprises: A display data processing circuit for executing the display data processing method according to any one of claims 1-12 to obtain the intra-frame gray scale of each sub-frame; A PWM processing circuit for adjusting the pulse width of the output PWM signal according to the intra-frame gray scale; An LED lamp driving circuit for adjusting the on time of the LED lamp according to the pulse width of the PWM signal.
15. An electronic device comprising a driver chip, wherein, The driving chip is used to execute the display data processing method according to any one of claims 1-12.
Citation Information
Patent Citations
LED display control method and device and LED display screen
CN114974088A