Variable refresh rate dynamic compensation method and device, electronic equipment and storage medium

By dividing the variable refresh rate into multiple levels and adjusting the compensation coefficient in real time, the display jitter and flickering problem during the variable refresh rate switching process is solved, resulting in a smoother display effect.

CN116206577BActive Publication Date: 2025-11-04HUNAN GOKE MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310206571.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-06
Publication Date
2025-11-04
Estimated Expiration
2043-03-06

AI Technical Summary

Technical Problem

Existing technologies suffer from display jitter and flickering issues during variable refresh rate switching, mainly due to delays in frame rate detection and image quality compensation processes.

Method used

By dividing the variable refresh rate into multiple levels and associating each level with a corresponding compensation coefficient, the compensation coefficient for the highest refresh rate is preloaded, and the compensation coefficient is adjusted in real time during frame rate detection. Linear interpolation is used to calculate the target compensation coefficient, thereby reducing latency.

Benefits of technology

It effectively reduces the latency of frame rate detection and image quality compensation processes, reduces video image jitter and flicker, and improves display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116206577B_ABST
    Figure CN116206577B_ABST
Patent Text Reader

Abstract

The application discloses a variable refresh rate dynamic compensation method and device, electronic equipment and a storage medium, and comprises the following steps: receiving the Nth frame of the picture of the video to be compensated; determining whether the total number of scanning lines of the (N-1)th frame of picture is less than the preset number of lines, wherein the preset number of lines is the number of scanning lines corresponding to the highest refresh rate per frame; if the total number of scanning lines of the (N-1)th frame of picture is less than or equal to the preset number of lines, performing quality compensation on the Nth frame of picture based on the first compensation coefficient corresponding to the preset number of lines; if the total number of scanning lines of the (N-1)th frame of picture is greater than the preset number of lines, and the total number of scanning lines of the (N-1)th frame of picture is between the first gear number of lines and the second gear number of lines, performing quality compensation on the Nth frame of picture based on the second compensation coefficient corresponding to the first gear number of lines and the third compensation coefficient corresponding to the second gear number of lines. The application can reduce the frame rate detection and the delay of the quality compensation process to 1 frame, thereby effectively reducing the video picture jitter flicker.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of display control, and in particular to a variable refresh rate dynamic compensation method and device, electronic equipment and a storage medium. BACKGROUND

[0002] Variable refresh rate technology is widely used in display, mobile phone and other terminal devices. The chip circuit can effectively improve the viewing experience of games, movies or web browsing and save power by dynamically changing the refresh rate. However, there is display jitter flicker in the dynamic switching between high refresh rate and low refresh rate.

[0003] The prior art first dynamically updates the compensation coefficient of the chip circuit by detecting the real-time frame rate of the picture, and then performs picture quality compensation. In the frame rate detection process and the picture quality compensation process, there is a delay of 2 frames, and in the scene where the refresh rate changes sharply, there is still some jitter flicker.

[0004] Therefore, there is an urgent need for a variable refresh rate dynamic compensation scheme that can effectively reduce the delay. SUMMARY

[0005] To solve the above technical problems, the embodiments of the present application provide a variable refresh rate dynamic compensation method, device, electronic equipment and storage medium, and the specific scheme is as follows:

[0006] In a first aspect, the embodiments of the present application provide a variable refresh rate dynamic compensation method, comprising:

[0007] Receiving the Nth frame of the picture to be compensated, wherein the frame header of the Nth frame of the picture is locked with the total scan line number of the (N-1)th frame of the picture;

[0008] Judging whether the total scan line number of the (N-1)th frame of the picture is less than or equal to a preset line number, wherein the preset line number is the scan line number per frame corresponding to the highest refresh rate;

[0009] If the total scan line number of the (N-1)th frame of the picture is less than or equal to the preset line number, performing picture quality compensation on the Nth frame of the picture based on the first compensation coefficient corresponding to the preset line number;

[0010] If the total scan line number of the (N-1)th frame of the picture is greater than the preset line number, and the total scan line number of the (N-1)th frame of the picture is between the first gear line number and the second gear line number, performing picture quality compensation on the Nth frame of the picture based on the second compensation coefficient corresponding to the first gear line number and the third compensation coefficient corresponding to the second gear line number.

[0011] According to a specific embodiment of the present application, before receiving the Nth frame of the picture, the method further comprises:

[0012] The variable refresh rate of the device is divided into multiple gears, and a corresponding compensation coefficient is associated with the refresh rate of each gear, wherein the refresh rate of each gear corresponds to a number of scanning lines.

[0013] According to a specific embodiment of the present application, the method further comprises:

[0014] If the total number of scanning lines of the N-1th frame of picture is greater than the preset number of lines, and the total number of lines of the N-1th frame of picture is equal to the number of lines of any gear, the Nth frame of picture is compensated for quality based on the compensation coefficient corresponding to the number of lines of the gear.

[0015] According to a specific embodiment of the present application, before the step of receiving the Nth frame of picture of the video to be compensated, the method further comprises:

[0016] When the N-1th frame of picture enters the blanking area, the compensation coefficient associated with the highest refresh rate is loaded;

[0017] When the real-time number of lines of the N-1th frame of picture is equal to the number of scanning lines corresponding to the refresh rate of each gear, the compensation coefficient associated with the refresh rate of each gear is loaded.

[0018] According to a specific embodiment of the present application, the quality of the Nth frame of picture is compensated based on the second compensation coefficient corresponding to the first number of lines and the third compensation coefficient corresponding to the second number of lines, comprising:

[0019] Linear interpolation processing is performed based on the second compensation coefficient and the third compensation coefficient to obtain a target compensation coefficient;

[0020] The quality of the Nth frame of picture is compensated based on the target compensation coefficient.

[0021] According to a specific embodiment of the present application, the calculation formula of the linear interpolation processing is:

[0022] lutm = lut1 + (lut2-lut1)*(M-A) / (B-A)

[0023] Wherein, lutm is the target compensation coefficient, lut1 is the second compensation coefficient, lut2 is the third compensation coefficient, M is the total number of scanning lines of the N-1th frame of picture, A is the first number of lines, and B is the second number of lines.

[0024] According to a specific embodiment of the present application, the method further comprises:

[0025] The total number of scanning lines of the previous frame of picture is latched at the beginning of each frame of picture.

[0026] In a second aspect, the embodiments of the present application provide a variable refresh rate dynamic compensation device, comprising:

[0027] a receiving module configured to receive an Nth frame of a video to be compensated, wherein a frame header of the Nth frame is stored with a total number of scanning lines of an (N-1)th frame;

[0028] a judging module configured to judge whether the total number of scanning lines of the (N-1)th frame is less than a preset number of lines, wherein the preset number of lines is a number of scanning lines per frame corresponding to a highest refresh rate;

[0029] a first executing module configured to, if the total number of scanning lines of the (N-1)th frame is less than or equal to the preset number of lines, perform quality compensation on the Nth frame based on a first compensation coefficient corresponding to the preset number of lines;

[0030] a second executing module configured to, if the total number of scanning lines of the (N-1)th frame is greater than the preset number of lines and the total number of scanning lines of the (N-1)th frame is between a first number of lines and a second number of lines, perform quality compensation on the Nth frame based on a second compensation coefficient corresponding to the first number of lines and a third compensation coefficient corresponding to the second number of lines.

[0031] In a third aspect, the embodiments of the present application provide an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program performs the variable refresh rate dynamic compensation method of the first aspect and any one of the embodiments of the first aspect when running on the processor.

[0032] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program performs the variable refresh rate dynamic compensation method of the first aspect and any one of the embodiments of the first aspect when running on a processor.

[0033] The embodiment of the present application provides a variable refresh rate dynamic compensation method, device, electronic equipment and storage medium, which comprises the following steps: receiving an Nth frame picture of a to-be-compensated video, wherein the frame head of the Nth frame picture is locked with the total scanning line number of an N-1th frame picture; determining whether the total scanning line number of the N-1th frame picture is less than a preset line number, wherein the preset line number is the scanning line number of each frame corresponding to the highest refresh rate; if the total scanning line number of the N-1th frame picture is less than or equal to the preset line number, performing quality compensation on the Nth frame picture based on a first compensation coefficient corresponding to the preset line number; if the total scanning line number of the N-1th frame picture is greater than the preset line number, and the total scanning line number of the N-1th frame picture is between a first gear line number and a second gear line number, performing quality compensation on the Nth frame picture based on a second compensation coefficient corresponding to the first gear line number and a third compensation coefficient corresponding to the second gear line number. The present application can reduce the delay of the frame rate detection and quality compensation process to one frame, thereby effectively reducing the jitter flicker of the video picture. BRIEF DESCRIPTION OF DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope of protection of the present application. In the various drawings, similar components are denoted by similar reference numerals.

[0035] Figure 1 A processing scene schematic diagram of the image processing module of the prior art performing quality compensation is shown;

[0036] Figure 2 A method flow schematic diagram of a variable refresh rate dynamic compensation method provided by the embodiment of the present application is shown;

[0037] Figure 3a One of the processing scene schematic diagrams of the variable refresh rate dynamic compensation method provided by the embodiment of the present application applied in the image processing module to perform quality compensation is shown;

[0038] Figure 3b The second of the processing scene schematic diagrams of the variable refresh rate dynamic compensation method provided by the embodiment of the present application applied in the image processing module to perform quality compensation is shown;

[0039] Figure 4 A device module schematic diagram of a variable refresh rate dynamic compensation device provided by the embodiment of the present application is shown. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be apparently and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application.

[0041] The components of the embodiments of the present application generally described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represent selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by a person skilled in the art without creative work fall within the scope of the present application.

[0042] Hereinafter, the terms "include", "have", and their conjugates, used in various embodiments of the present application, are merely intended to denote a certain characteristic, number, step, operation, element, component, or a combination thereof, and not to exclude the presence or possibility of one or more other characteristics, numbers, steps, operations, elements, components, or combinations thereof.

[0043] In addition, the terms "first", "second", "third", and the like are used only to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0044] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present application belong. The terms (such as terms defined in a generally used dictionary) will be interpreted to have the same meaning as the contextual meaning in the relevant technical field and will not be interpreted to have an idealized or overly formal meaning unless clearly defined in various embodiments of the present application.

[0045] Reference Figure 1 , Figure 1 For a specific implementation scenario of frame rate detection and image quality compensation in the prior art, an image processing module provided in an image chip is used to perform image compensation on a video image.

[0046] In the implementation process, as shown in Figure 1 , the image processing module receives the N-1th frame image, counts the current frame scanning line number M of the N-1th frame; receives the Nth frame image, updates the compensation coefficient of the current frame scanning line number M in the vertical blanking area of the Nth frame; receives the N+1th frame image, and performs display quality compensation on the N+1th frame image by using the total scanning line number of the N-1th frame image and the compensation coefficient of the current frame scanning line number M.

[0047] That is, in the prior art, for video display quality compensation processing, at least the number of real-time rows in the N-1 frame is counted, and the compensation coefficient is updated in the N frame, so as to obtain two key parameters for quality compensation of the N+1 frame, that is, there is at least two frame delays in the frame rate detection and quality compensation process.

[0048] Embodiments of the present application propose a new dynamic compensation scheme for variable refresh rate to improve the delay problem existing in the current quality compensation process.

[0049] Reference Figure 2 , a method flowchart of a variable refresh rate dynamic compensation method provided by the embodiments of the present application, the variable refresh rate dynamic compensation method provided by the embodiments of the present application, as shown in Figure 2 , includes:

[0050] Step S201, receiving the Nth frame of the video to be compensated, wherein the frame header of the Nth frame is locked with the total scan line number of the N-1th frame;

[0051] Specifically, the variable refresh rate dynamic compensation method provided by the embodiments of the present application can be applied to the image processing module of the image chip to realize the quality compensation of the video file.

[0052] In actual application process, the video to be compensated can be a video file which needs to be played and displayed in real time on a display device, and the display device can be a display screen, a mobile terminal or other electronic device with picture display function, and the embodiments of the present application do not limit the display device, and the acquisition method of the video to be compensated can be adaptively set according to the actual application scene.

[0053] Specifically, referring to Figure 3a and Figure 3b , the embodiments will explain the quality compensation process of the continuous multiple frames of the video to be compensated according to the processing of the N-1th frame, the Nth frame and the N+1th frame of the video to be compensated.

[0054] It should be noted that N in the embodiments is a positive integer greater than or equal to 2.

[0055] According to a specific embodiment of the present application, the method further includes:

[0056] Locking the total scan line number of the previous frame in the frame header of each frame.

[0057] In the specific implementation process, when the Nth frame is received, the total scan line number of the previous frame is locked in the frame header position of the Nth frame, so as to facilitate the calling of the total scan line number of the previous frame when the quality compensation of the current frame is performed.

[0058] According to a specific embodiment of the present application, before receiving the Nth frame of picture, the method further comprises:

[0059] The variable refresh rate of the device is divided into multiple gears, and a corresponding compensation coefficient is associated with the refresh rate of each gear, wherein the refresh rate of each gear corresponds to a number of scanning lines.

[0060] In actual execution, the variable refresh rate of the display device is divided into a preset number of gears, and it should be noted that the number of gears divided by the variable refresh rate can be adaptively set according to the actual application scenario, which is not limited in the embodiment.

[0061] For example, for a variable refresh rate of 60HZ-144HZ, it can be divided into 60HZ, 80HZ, 100HZ, 120HZ and 144HZ, etc. 5 gears.

[0062] In specific embodiments, the refresh rate of each gear has a corresponding number of scanning lines per frame, and the conversion formula between scanning line number and refresh rate is: scanning line number per frame = 1s / refresh rate / absolute time per line.

[0063] Taking a 4K120HZ refresh rate and a 2250-bit standard resolution as an example, the absolute time per line = 1s / 120HZ / 2250 = 3.7us. Without changing the absolute time per line (3.7us), the number of scanning lines per frame corresponding to 4K60HZ = 1s / 60HZ / 3.7us = 4500, and the number of scanning lines per frame corresponding to 4K30HZ = 1s / 30HZ / 3.7us = 9000.

[0064] Specifically, after the variable refresh rate is divided into gears, the embodiment also associates a corresponding compensation coefficient with each gear refresh rate, for example, the compensation coefficient lut a is associated with the 144HZ gear refresh rate, the compensation coefficient lut b is associated with the 120HZ gear refresh rate, the compensation coefficient lut c is associated with the 100HZ gear refresh rate, the compensation coefficient lut d is associated with the 80HZ gear refresh rate, and the compensation coefficient lut e is associated with the 60HZ gear refresh rate.

[0065] It should be noted that the compensation coefficient associated with each gear refresh rate can use the common calculation method of compensation coefficient, which is not limited in the embodiment. After obtaining the compensation coefficient of each gear refresh rate, each gear refresh rate and its corresponding compensation coefficient are stored in a preset memory area for calling by the image processing module.

[0066] In actual application, the image processing module can cache at least two compensation coefficients.

[0067] According to a specific embodiment of the present application, before receiving the Nth frame, the method further comprises:

[0068] When the (N-1)th frame enters the line blanking area, the compensation coefficient associated with the highest refresh rate is loaded;

[0069] When the real-time line number of the (N-1)th frame is equal to the scanning line number corresponding to each gear refresh rate, the compensation coefficient associated with the refresh rate of each gear is loaded.

[0070] In specific embodiments, as shown in Figure 3a and Figure 3b , it is assumed that the variable refresh rate is divided into gears A, B, C, D and E, the compensation coefficient associated with gear A is lut a, the compensation coefficient associated with gear B is lut b, the compensation coefficient associated with gear C is lut c, the compensation coefficient associated with gear D is lut d, and the compensation coefficient associated with gear E is lut e, wherein gear A is the highest refresh rate, the refresh rates of gears A to E decrease in turn, and gear E is the lowest refresh rate.

[0071] When the (N-1)th frame enters the line blanking area, the present embodiment starts direct memory access (DMA) to read the compensation coefficient lut a associated with the highest refresh rate gear A from the memory. The real-time line number of the Nth frame is counted in real time, and when the real-time line number reaches the scanning line number corresponding to gear B, the compensation coefficient lut b associated with the refresh rate of gear B is directly loaded, and when the real-time line number reaches the scanning line number corresponding to gear C, the compensation coefficient lut c associated with the refresh rate of gear C is loaded, that is, when the real-time line number of the Nth frame is equal to the scanning line number corresponding to each gear refresh rate, the compensation coefficient associated with the refresh rate of each gear is loaded.

[0072] As shown in Figure 3a and Figure 3b , during the reception of the (N-1)th frame, that is, after the completion of the scanning line number counting and the compensation coefficient acquisition for subsequent quality compensation of the Nth frame, the dynamic compensation method proposed by the present embodiment effectively reduces the delay time of frame rate detection and quality compensation by loading the related compensation coefficient in advance.

[0073] Specifically, after receiving the Nth frame, the present embodiment can determine the compensation method for the Nth frame according to the comparison between the total scanning line number of the (N-1)th frame and the preset line number.

[0074] In step S202, it is determined whether the total scanning line number of the (N-1)th frame is less than or equal to the preset line number, wherein the preset line number is the scanning line number per frame corresponding to the highest refresh rate;

[0075] In step S203, if the total number of scanning lines of the Nth-1 frame is less than or equal to the preset number of lines, the quality of the Nth frame is compensated based on the first compensation coefficient corresponding to the preset number of lines.

[0076] Specifically, when the total number of scanning lines of the Nth-1 frame is less than or equal to the preset number of lines, the quality of the Nth frame is directly compensated using the first compensation coefficient corresponding to the highest refresh rate.

[0077] In step S204, if the total number of scanning lines of the Nth-1 frame is greater than the preset number of lines, and the total number of scanning lines of the Nth-1 frame is between the first number of lines and the second number of lines, the quality of the Nth frame is compensated based on the second compensation coefficient corresponding to the first number of lines and the third compensation coefficient corresponding to the second number of lines.

[0078] Specifically, when the total number of scanning lines of the Nth-1 frame is between the scanning lines corresponding to any two gear refresh rates, the compensation coefficient corresponding to the Nth frame needs to be calculated according to the compensation coefficients corresponding to the two gear refresh rates.

[0079] Reference Figure 3a If the total number of scanning lines of the Nth-1 frame is greater than the scanning lines corresponding to the A gear refresh rate and less than the scanning lines corresponding to the B gear refresh rate, the compensation coefficient corresponding to the total number of scanning lines of the Nth-1 frame is calculated according to lut a and lut b, and then the quality of the Nth frame is compensated according to the compensation coefficient and the total number of scanning lines.

[0080] According to a specific embodiment of the present application, the quality of the Nth frame is compensated based on the second compensation coefficient corresponding to the first number of lines and the third compensation coefficient corresponding to the second number of lines, including:

[0081] Performing linear interpolation processing based on the second compensation coefficient and the third compensation coefficient to obtain a target compensation coefficient;

[0082] Compensating the quality of the Nth frame based on the target compensation coefficient.

[0083] Specifically, the calculation formula of the linear interpolation processing is:

[0084] lutm = lut1 + (lut2-lut1)*(M-A) / (B-A)

[0085] Wherein, lutm is the target compensation coefficient, lut1 is the second compensation coefficient, lut2 is the third compensation coefficient, M is the total number of scanning lines of the Nth-1 frame, A is the first number of lines, and B is the second number of lines.

[0086] In the implementation process, when the total number of scanning lines of the N-1th frame of picture is not equal to any gear number of lines, the target compensation coefficient is calculated by linear difference, so as to ensure the quality of the quality compensation of the Nth frame of picture.

[0087] In addition, referring to Figure 3b For the N+1th frame of picture, the total number of lines of the Nth frame of picture and the scanning line number and the compensation coefficient lutb and lutc of the two gear refresh rates associated with the total number of lines of the Nth frame of picture can be directly used for quality compensation. The specific frame rate detection process and the quality compensation process can be referred to the description in the above embodiment, and will not be described here.

[0088] According to a specific implementation of an embodiment of the application, the method further comprises:

[0089] If the total number of scanning lines of the N-1th frame of picture is greater than the preset number of lines, and the total number of lines of the N-1th frame of picture is equal to any gear number of lines, the Nth frame of picture is compensated for quality based on the compensation coefficient corresponding to the gear number of lines.

[0090] Specifically, if the total number of lines of the N-1th frame of picture is equal to the gear number of lines corresponding to any refresh rate, the compensation coefficient corresponding to the gear number of lines can be directly used for quality compensation of the Nth frame of picture.

[0091] In summary, the embodiment of the application provides a variable refresh rate dynamic compensation method. By performing gear processing on the variable refresh rate, the compensation coefficient corresponding to each gear refresh rate is loaded in advance according to the real-time statistical number of lines, which effectively reduces the delay of the frame rate detection and quality compensation process, saves at least 1 frame of delay time, and effectively improves the flicker problem caused by the variable refresh rate. In addition, the compensation coefficient corresponding to the real-time number of lines is calculated by linear difference, which guarantees the effect of quality compensation of any frame of picture.

[0092] Reference Figure 4 A device module schematic diagram of a variable refresh rate dynamic compensation device 400 provided by an embodiment of the application is provided. As shown in Figure 4 The variable refresh rate dynamic compensation device 400 provided by the embodiment of the application comprises:

[0093] The receiving module 401 is configured to receive the Nth frame of picture of the video to be compensated, wherein the frame header of the Nth frame of picture is locked with the total number of scanning lines of the N-1th frame of picture.

[0094] The judging module 402 is configured to judge whether the total number of scanning lines of the N-1th frame of picture is less than a preset number of lines, wherein the preset number of lines is the number of scanning lines of each frame corresponding to the highest refresh rate.

[0095] The first execution module 403 is configured to perform quality compensation on the Nth frame of picture based on a first compensation coefficient corresponding to the preset number of lines if the total number of scanning lines of the (N-1)th frame of picture is less than or equal to the preset number of lines.

[0096] The second execution module 404 is configured to perform quality compensation on the Nth frame of picture based on a second compensation coefficient corresponding to the first number of lines and a third compensation coefficient corresponding to the second number of lines if the total number of scanning lines of the (N-1)th frame of picture is greater than the preset number of lines and the total number of scanning lines of the (N-1)th frame of picture is between the first number of lines and the second number of lines.

[0097] According to a specific embodiment of the present application, the device further comprises:

[0098] The division module is configured to divide the variable refresh rate of the device into a plurality of gears, and associate a corresponding compensation coefficient with the refresh rate of each gear, wherein the refresh rate of each gear corresponds to a number of scanning lines.

[0099] The third execution module is configured to perform quality compensation on the Nth frame of picture based on a compensation coefficient corresponding to the number of lines of the gear if the total number of scanning lines of the (N-1)th frame of picture is greater than the preset number of lines and the total number of lines of the (N-1)th frame of picture is equal to the number of lines of any gear.

[0100] The coefficient loading module is configured to load the compensation coefficient associated with the highest refresh rate when the (N-1)th frame of picture enters the blanking area, and load the compensation coefficient associated with each gear refresh rate when the real-time number of lines of the (N-1)th frame of picture is equal to the number of scanning lines corresponding to each gear refresh rate.

[0101] The second execution module 404 is specifically configured to perform linear interpolation processing based on the second compensation coefficient and the third compensation coefficient to obtain a target compensation coefficient, and perform quality compensation on the Nth frame of picture based on the target compensation coefficient.

[0102] In addition, the present application also provides an electronic device, which comprises a processor and a memory, and the memory stores a computer program, and the computer program performs the variable refresh rate dynamic compensation method of the foregoing method embodiments when running on the processor.

[0103] The present application provides a computer readable storage medium, which stores a computer program, and the computer program performs the variable refresh rate dynamic compensation method of the foregoing method embodiments when running on a processor.

[0104] In addition, the specific implementation process of the variable refresh rate dynamic compensation device, the electronic device and the computer readable storage medium mentioned in the above embodiments can refer to the specific implementation process of the method embodiments, which will not be repeated here.

[0105] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiments described above are only schematic, for example, the flowcharts and structural diagrams in the drawings show the possible implementation architectures, functions and operations of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowcharts or structural diagrams can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that, in alternative implementation manners, the functions annotated in the blocks can also occur in different order from that annotated in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flowchart, and the combination of blocks in the structural diagram and / or flowchart, can be implemented by a dedicated hardware-based system for executing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0106] In addition, each functional module or unit in the embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0107] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0108] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application.

Claims

1. A variable refresh rate dynamic compensation method, characterized in that, include: When the (N-1)th frame enters the blanking zone, the compensation coefficient associated with the highest refresh rate is loaded; When the real-time number of lines in the (N-1)th frame is equal to the number of scan lines corresponding to each refresh rate, the compensation coefficient associated with each refresh rate is loaded. Receive the Nth frame of the video to be compensated, wherein the frame beginning of the Nth frame stores the total number of scan lines of the (N-1)th frame; Determine whether the total number of scan lines in the (N-1)th frame is less than or equal to a preset number of lines, wherein the preset number of lines is the number of scan lines per frame corresponding to the highest refresh rate; If the total number of scan lines in the (N-1)th frame is less than or equal to the preset number of lines, the image quality of the Nth frame is compensated based on the first compensation coefficient corresponding to the preset number of lines. If the total number of scan lines in the (N-1)th frame is greater than the preset number of lines, and the total number of scan lines in the (N-1)th frame is between the first level number of lines and the second level number of lines, the Nth frame is compensated for in terms of image quality based on the second compensation coefficient corresponding to the first level number of lines and the third compensation coefficient corresponding to the second level number of lines, so as to reduce the shaking and flickering of the video image.

2. The method according to claim 1, characterized in that, Before loading the compensation coefficient associated with the highest refresh rate when the (N-1)th frame enters the blanking zone, the method further includes: The device's variable refresh rate is divided into multiple levels, and a corresponding compensation coefficient is associated with each level of refresh rate. Each level of refresh rate corresponds to a number of scan lines.

3. The method according to claim 2, characterized in that, The method further includes: If the total number of scan lines in the (N-1)th frame is greater than the preset number of lines, and the total number of lines in the (N-1)th frame is equal to the number of lines in any level, then the image quality of the Nth frame is compensated based on the compensation coefficient corresponding to the number of lines in the level.

4. The method according to claim 1, characterized in that, The image quality compensation for the Nth frame based on the second compensation coefficient corresponding to the first row number and the third compensation coefficient corresponding to the second row number includes: Linear interpolation is performed based on the second compensation coefficient and the third compensation coefficient to obtain the target compensation coefficient; Image quality compensation is performed on the Nth frame based on the target compensation coefficient.

5. The method according to claim 4, characterized in that, The calculation formula for the linear interpolation process is as follows: lutm = lut1 + (lut2lut1) * (MA) / (BA) Wherein, lutm is the target compensation coefficient, lut1 is the second compensation coefficient, lut2 is the third compensation coefficient, M is the total number of scan lines in the (N-1)th frame, A is the number of lines in the first level, and B is the number of lines in the second level.

6. The method according to claim 1, characterized in that, The method further includes: At the beginning of each frame, the total number of scan lines of the previous frame is latched.

7. A variable refresh rate dynamic compensation device, characterized in that, include: The coefficient loading module is used to load the compensation coefficient associated with the highest refresh rate when the (N-1)th frame enters the blanking area; and to load the compensation coefficient associated with each refresh rate when the real-time number of lines in the (N-1)th frame is equal to the number of scan lines corresponding to each refresh rate. The receiving module is used to receive the Nth frame of the video to be compensated, wherein the frame beginning of the Nth frame stores the total number of scan lines of the (N-1)th frame. The judgment module is used to determine whether the total number of scan lines of the (N-1)th frame is less than the preset number of lines, wherein the preset number of lines is the number of scan lines per frame corresponding to the highest refresh rate; The first execution module is configured to perform image quality compensation on the Nth frame based on the first compensation coefficient corresponding to the preset number of rows if the total number of scan lines of the N-1th frame is less than or equal to the preset number of rows. The second execution module is used to perform image quality compensation on the Nth frame if the total number of scan lines of the N-1th frame is greater than the preset number of lines, and the total number of scan lines of the N-1th frame is between the first level number of lines and the second level number of lines, based on the second compensation coefficient corresponding to the first level number of lines and the third compensation coefficient corresponding to the second level number of lines, so as to reduce the shaking and flickering of the video image.

8. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing a computer program that, when executed on the processor, performs the variable refresh rate dynamic compensation method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a processor, executes the variable refresh rate dynamic compensation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Overdrive device and method

    CN115312010A

  • Video timing for display systems with variable refresh rates

    US20220093057A1