CN114650324A - Frame frequency switching method and device, terminal equipment and readable storage medium - Google Patents

Frame frequency switching method and device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN114650324A
CN114650324A CN202011520942.4A CN202011520942A CN114650324A CN 114650324 A CN114650324 A CN 114650324A CN 202011520942 A CN202011520942 A CN 202011520942A CN 114650324 A CN114650324 A CN 114650324A
Authority
CN
China
Prior art keywords
parameter
frame frequency
slave
preset
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011520942.4A
Other languages
Chinese (zh)
Other versions
CN114650324B (en
Inventor
杨敦钧
胡盛棚
薛艳娜
蒙畅菲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202011520942.4A priority Critical patent/CN114650324B/en
Priority to PCT/CN2021/133611 priority patent/WO2022135034A1/en
Publication of CN114650324A publication Critical patent/CN114650324A/en
Application granted granted Critical
Publication of CN114650324B publication Critical patent/CN114650324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application provides a frame frequency switching method, a frame frequency switching device, a terminal device and a readable storage medium, wherein the method comprises the following steps: responding to a frame frequency switching instruction, and acquiring a main parameter and a slave parameter of an image currently displayed by the terminal equipment; when the main parameter is smaller than a preset main parameter threshold, determining a frame frequency switching mode of the terminal equipment according to the slave parameter and a preset first slave parameter threshold so as to perform frame frequency switching; and when the main parameter is greater than or equal to a preset main parameter threshold, determining a frame frequency switching mode according to the slave parameter and a preset second slave parameter threshold to perform frame frequency switching, wherein the first slave parameter threshold is greater than the second slave parameter threshold. According to the technical scheme, the frame frequency switching mode is jointly decided based on the plurality of relevant parameters of the display image, so that the phenomena of flicker, color cast and the like during frame frequency switching can be effectively improved, and the switching effect and the like are optimized.

Description

Frame frequency switching method and device, terminal equipment and readable storage medium
Technical Field
The present application relates to the field of image display technologies, and in particular, to a frame frequency switching method and apparatus, a terminal device, and a readable storage medium.
Background
At present, the mainstream support frame frequency of terminals such as mobile phones is 60Hz, but some mobile phones gradually develop to high frame frequency (such as 90Hz or even 120 Hz). The frame frequency of the terminal is gradually increased across the range according to the requirements of different applications, for example, it may be decreased from 60Hz to 10Hz, or even lower 1Hz, or it may be increased from 120Hz to 144Hz, or even higher. Due to the fact that the leakage time of hardware circuit devices of display screens such as OLED (organic light emitting diode) and the like is different when the frame frequency is different, the total light quantity received by human eyes in unit time is different when the frame frequency is switched, phenomena such as flicker, color cast and the like are prone to occurring, and user experience is reduced.
Disclosure of Invention
In view of the above, an object of the present application is to provide a frame rate switching method, apparatus, terminal device and readable storage medium to overcome the disadvantages in the prior art.
An embodiment of the present application provides a frame rate switching method, including:
responding to a frame frequency switching instruction, and acquiring a main parameter and a slave parameter of an image currently displayed by the terminal equipment;
when the main parameter is smaller than a preset main parameter threshold, determining a frame frequency switching mode of the terminal equipment according to the slave parameter and a preset first slave parameter threshold so as to perform frame frequency switching;
when the main parameter is greater than or equal to the preset main parameter threshold, determining the frame frequency switching mode according to the slave parameter and a preset second slave parameter threshold to perform frame frequency switching, wherein the first slave parameter threshold is greater than the second slave parameter threshold.
In some embodiments, the frame rate switching mode includes a progressive switching mode and a direct switching mode; when the master parameter is smaller than a preset master parameter threshold, determining a frame frequency switching mode of the terminal device according to the slave parameter and a preset first slave parameter threshold, including:
if the slave parameter is smaller than the first slave parameter threshold value, performing frame frequency step-by-step switching according to the step-by-step switching mode;
and if the slave parameter is greater than or equal to the first slave parameter threshold, performing frame frequency direct switching according to the direct switching mode.
In some embodiments, the frame rate switching mode includes a progressive switching mode and a direct switching mode; when the master parameter is greater than or equal to the preset master parameter threshold, determining a frame frequency switching mode of the terminal device according to the slave parameter and a preset second slave parameter threshold, including:
if the slave parameter is smaller than the second slave parameter threshold, performing frame frequency step-by-step switching according to the step-by-step switching mode;
and if the slave parameter is greater than or equal to the second slave parameter threshold, performing frame frequency direct switching according to the direct switching mode.
In some embodiments, before the obtaining of the master parameter and the slave parameter of the image currently displayed by the terminal device, the method further includes:
acquiring a target frame frequency according to the frame frequency switching instruction;
judging whether at least one intermediate frame frequency exists between the target frame frequency and the current frame frequency according to a preset frame frequency level;
when the at least one intermediate frame frequency exists, the acquisition operation of the main parameters and the auxiliary parameters of the image is executed.
In the above embodiment, the terminal device performs the frame rate progressive switching according to a unit time interval, where the unit time interval is determined according to a reciprocal of a highest frame rate supported by the terminal device.
In one embodiment, the main parameter is the brightness of the image, and the slave parameter is the gray scale of the image, or the main parameter is the brightness, and the slave parameter is the gray scale;
the acquisition of the brightness and the gray scale of the image comprises the following steps:
and calculating the brightness and the gray scale of each pixel in the image based on a preset brightness algorithm and a preset gray scale algorithm respectively, and calculating the brightness average value and the gray scale average value of all pixels of the image, wherein the brightness average value and the gray scale average value are respectively used as the brightness and the gray scale of the image.
In one embodiment, the main parameter is a brightness ratio of the image, and the slave parameter is a gray scale ratio of the image, or the main parameter is the brightness ratio, and the slave parameter is the gray scale ratio;
the acquisition of the brightness ratio and the gray ratio of the image comprises the following steps:
calculating the brightness and the gray scale of each pixel in the image based on a preset brightness algorithm and a preset gray scale algorithm respectively;
counting the number of first pixels with the gray scale larger than a preset gray scale threshold value and the number of second pixels with the brightness larger than a preset brightness threshold value;
and respectively calculating the proportion of the first pixel number and the second pixel number in all pixels of the image to obtain the brightness ratio and the gray ratio.
An embodiment of the present application further provides a frame rate switching device, including:
the parameter acquisition module is used for responding to the frame frequency switching instruction and acquiring a main parameter and a slave parameter of an image currently displayed by the terminal equipment;
the mode determining module is used for determining a frame frequency switching mode of the terminal equipment according to the slave parameter and a preset first slave parameter threshold when the master parameter is smaller than a preset master parameter threshold; and the frame rate switching module is further configured to determine the frame rate switching mode according to the slave parameter and a preset second slave parameter threshold when the master parameter is greater than or equal to the preset master parameter threshold, where the first slave parameter threshold is greater than the second slave parameter threshold.
And the switching control module is used for carrying out frame frequency switching according to the determined frame frequency switching mode.
Embodiments of the present application further provide a terminal device, which includes a display screen, a processor, and a memory, where the display screen is used to display images, and the memory stores a computer program, and the processor is used to execute the computer program to implement the frame rate switching method.
Embodiments of the present application also provide a readable storage medium, which stores a computer program, and when the computer program is executed, the computer program implements the frame rate switching method described above.
The embodiment of the application has the following beneficial effects:
according to the technical scheme, different frame frequency switching modes are selected under the condition of different parameter combinations by combining a plurality of relevant parameter pairs of the currently displayed image, namely, a plurality of image parameters are utilized to jointly decide the working mode during frame frequency switching, so that the phenomena of flicker, color cast and the like during frame frequency switching can be effectively improved, and the switching effect and the like are optimized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a first flow of a frame rate switching method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a second flow of a frame rate switching method according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating the calculation of luminance and gray scale in the frame rate switching method according to the embodiment of the present application;
fig. 5 is a schematic flowchart illustrating a process of calculating a luminance ratio and a gray ratio in a frame rate switching method according to an embodiment of the present application;
fig. 6 shows a schematic structural diagram of a frame rate switching device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments.
The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
The embodiments described below can be applied to the terminal device shown in fig. 1, such as a mobile phone, a tablet, and the like. Fig. 1 shows a block diagram of a mobile phone terminal, and the mobile phone 100 includes: an RF (Radio Frequency) circuit 110, a memory 120, an input unit 130, a display unit 140, a photographing unit 150, an audio circuit 160, a WiFi (wireless fidelity) module 170, a processor 180, and a power supply 190. Among other things, the RF circuitry 110 may be used to receive and transmit wireless signals, etc.; the memory 120 can be used for storing applications and user-related file information required for the operation of the mobile phone 100. The input unit 130 may include keys, a touch panel, and may also include other input devices, etc. for receiving information input from a user, etc.; the display unit 140 mainly includes a display screen, and can be used for displaying information such as images and characters; the shooting unit 150 mainly includes front and rear cameras and the like, and is mainly used for shooting pictures, videos and the like; the audio circuit 160 is connected to sound output devices such as a receiver and a speaker and sound input devices such as a microphone, and can be used for recording or playing voice and the like; the WiFi module 170 may be used to transmit and receive WiFi signals to achieve information transmission, etc. The processor 180 is used as a control center of the mobile phone 100, and is mainly used for enabling other units or modules to execute corresponding functions and the like; the power supply 190 mainly includes a battery device for supplying a required operating voltage to each module or unit in the cellular phone 100.
Those skilled in the art will appreciate that the configuration of the handset 100 shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. The technical solution of the present application is described below by taking a terminal device as an example, wherein the terminal device is not limited to be applied to a mobile phone, and can also be applied to a tablet, a notebook computer, an e-book reader, and the like. The present application is described below in terms of specific embodiments, but the present application is not limited to these specific embodiments.
In this application, the terminal device includes a Display screen, such as an OLED (Organic Light-Emitting Diode) Display screen, an LCD (Liquid Crystal Display) Display screen, or an electronic ink screen. The OLED display screen does not need a backlight source, the light-emitting unit is driven to light by electrifying the TFT (thin film transistor) substrate, and the brightness of light emission of the RGB three-color organic film layer is controlled by controlling the current, so that different colors (colors) are presented. The LCD does not emit light, requires a backlight, and is formed by bonding a TFT substrate and a CF (color filter) substrate. When the backlight module emits light, an electric field is provided by the TFT substrate to control the rotation angle of the liquid crystal, so that the liquid crystal penetration rate is controlled, light of the backlight source penetrates through the transparent TFT substrate, penetrates through liquid crystal molecules and then penetrates through the CF substrate, three color blocks of RGB are printed on the color film, the color blocks emit red, green and blue with different brightness under the influence of different penetration rates of the liquid crystal molecules under the color blocks, and the color is presented. For the electronic ink screen, a plurality of microcapsules are attached to the surface of the electronic ink screen, black and white particles with positive and negative electricity are sealed in the liquid microcapsules, and the charged particles with different colors move to different directions due to different applied electric fields, so that the black or white effect is presented on the surface of the display screen.
It is known that, for the display screens such as OLED, LCD and the like, the displayed image is usually a color image composed of R, G, B three colors; the image presented by the electronic ink screen is a black-and-white image, and both the color image and the black-and-white image have respective display parameters such as brightness and gray scale.
In a mobile phone, a tablet, or other terminal device, the frame rate refers to the number of frames or images displayed per second. Generally, the more frames are played per second, the smoother the video playback the user sees. With the demand of a user of a terminal device for display, more and more smooth experiences are pursued, the frame frequency of a display screen is gradually increased to a high frame frequency layout, and for the various display screens, the inventor finds that, under different frame frequencies, such as an OLED display screen, the total light quantity received by the user in unit time during frame frequency switching is different due to different leakage time existing on a hardware circuit, and then phenomena such as flicker, color cast and the like occur, and especially when the brightness is lower and the gray scale is lower, the risk of flicker and color cast is higher. This phenomenon will then significantly degrade the user experience for the user.
Therefore, the embodiments of the present application provide a frame rate switching method, that is, a working mode at the time of switching the current frame rate is determined by combining the brightness, the gray scale, and other related display parameters of the currently displayed image, so as to effectively solve the above-mentioned problems of flicker, color cast, and the like.
The frame rate switching method of the present application will be described with reference to specific embodiments.
Example 1
Referring to fig. 2, the present embodiment provides a frame rate switching method, which can be applied to a terminal device having a display screen, such as a mobile phone, a tablet, a notebook, etc. The frame rate switching method will be described in detail below.
Step S110, responding to the frame rate switching command, and acquiring a master parameter and a slave parameter of an image currently displayed by the terminal device.
For example, when the terminal device receives a frame rate switching instruction input by a user, the terminal device may obtain an image currently displayed on a screen by a method such as system screenshot, and further determine a mode in which frame rate switching is performed according to related parameters of the currently displayed image. In addition, for achieving the best viewing effect, the frame rate switching instruction may also be automatically triggered by the terminal device, for example, when some preset pictures are detected to be displayed, and the preset pictures are usually preset with the specified frame rate, so that the terminal device may automatically switch the frame rate when switching the display.
The master parameter and the slave parameter are two parameters related to image display, and are generally obtained separately. It is to be noted that the master and slave of the two parameters of the present embodiment are only used to distinguish two different types of parameters, and may also be represented by the first type of parameter and the second type of parameter. For example, the master parameter may be the brightness of the image and the slave parameter may be the grayscale of the image. Alternatively, the master parameter may be the gray scale of the image, and the slave parameter is the brightness, etc.
Of course, the two parameters may also be other parameters related to brightness or gray scale, for example, the main parameter may be a brightness ratio of the image, and the secondary parameter is a gray scale ratio of the image, where the brightness ratio refers to a ratio of pixels with brightness exceeding a preset brightness threshold to all pixels of the image; the gray-scale ratio refers to the proportion of pixels exceeding a preset gray-scale threshold value to all pixels of the image.
After the master and slave parameters of the currently displayed image are acquired, which frame frequency switching mode is selected is determined according to the two parameters. In this embodiment, the frame rate switching mode mainly includes a step-by-step switching mode and a direct switching mode, where the step-by-step switching mode is to perform non-jump step-by-step switching for an intermediate frame rate between a first frame rate and a second frame rate when switching from the first frame rate to the second frame rate. In contrast, the direct switching mode refers to directly switching from the first frame frequency to the second frame frequency regardless of the presence or absence of the intermediate frame frequency, the size and number of the intermediate frame frequencies, and the like.
Step S120, determining whether the main parameter is smaller than a preset main parameter threshold. If yes, go to step S130; if not, go to step S140.
Step S130, when the master parameter is smaller than the preset master parameter threshold, determining a frame frequency switching mode according to the slave parameter and the preset first slave parameter threshold.
When it is determined that the master parameter is smaller than the preset master parameter threshold, for the determination of the two frame frequency switching modes, in one embodiment, the step S130 exemplarily includes performing a step-by-step switching of the frame frequency according to a step-by-step switching mode, that is, a step-by-step switching from the current frame frequency to the target frame frequency, if the slave parameter is smaller than a preset first slave parameter threshold. On the contrary, if the slave parameter is greater than or equal to the first slave parameter threshold, switching is performed according to a direct switching mode, that is, switching is performed from the current frame frequency to the target frame frequency directly.
In step S140, if the master parameter is smaller than the preset master parameter threshold, the frame frequency switching mode is determined according to the slave parameter and the preset first slave parameter threshold.
When the master parameter is judged to be smaller than the preset master parameter threshold, for the determination of the two frame frequency switching modes, in an embodiment, exemplarily, step S140 includes performing frame frequency switching according to a step-by-step switching mode if the slave parameter is smaller than a preset second slave parameter threshold; and if the slave parameter is greater than or equal to the second slave parameter threshold value, carrying out frame frequency switching according to a direct switching mode. It can be understood that the master parameter threshold, the first slave parameter threshold and the second slave parameter threshold may be set according to actual tests, and may be adjusted accordingly according to application situations.
The above steps S130 and S140 are exemplified by taking the above two parameters of the gradation and the luminance as an example. Referring to table 1 below, if the master parameter is the luminance L, and the slave parameter is the gray scale G (or vice versa), the preset master parameter threshold at this time is the luminance threshold L0, the first slave parameter threshold is the first gray scale threshold G1, and the second slave parameter threshold is the first gray scale threshold G2, where G1> G2. Thus, the mode selection can be performed according to the frame rate mode switching rule of table 1.
TABLE 1
Figure BDA0002849446010000101
In the case of the situation 1, if it is determined that the current image is in the preset low brightness state (L < L0), if the requirement for the gray scale is adaptively decreased, the gray scale is allowed to be switched step by step within a larger gray scale range, for example, the maximum value of the gray scale of G1 may be 255 degrees. For example, when the brightness is less than 100nits, i.e. the low brightness state is already present, the switching is performed according to the step-by-step switching mode. For the case 2, if the current image is determined to be in a higher brightness state, for example, when the brightness is greater than 400nits, it is further determined whether the gray level is in a low gray level state (G < G2), and if the gray level is in the low gray level state, for example, the gray level is less than 128 degrees, the switching is performed according to the step-by-step switching mode. In contrast, in the 3 rd high-luminance high-gradation state, the frame rate is directly switched. It will be appreciated that the first greyscale threshold may generally be set to the maximum greyscale value, and therefore, circumstances below the first greyscale threshold will not be considered.
Taking the two parameters of the gray scale ratio and the brightness ratio as examples, exemplarily, the gray scale ratio PGAs a main parameter, the luminance ratio PLAs the slave parameter, the preset main parameter threshold preset in advance may be a gray scale ratio threshold PG0Correspondingly, the first slave parameter threshold and the second slave parameter threshold are the first brightness ratio threshold PL1And a second luminance ratio threshold value PL2. For example, when the gray ratio PGLess than 50 percent, namely, the current state is in a preset low gray level state, the requirement on the ratio of brightness is not high at the moment, and when P is less than the preset low gray level stateLLess than PL1And step-by-step switching can be performed. On the contrary, if the gray scale ratio PGIf the ratio is greater than 50%, it indicates that the current state is in the preset high gray level state, and the condition of the ratio of the brightness needs to be judged again, for example, the ratio of the brightness at this time is less than 40%, step-by-step switching is performed, otherwise, direct switching is performed.
It can be understood that, after the size of the first parameter of the image displayed in real time at present is judged, which switching mode is adopted is determined according to the size of the second parameter, that is, the variable range of the frame frequency in the unit time interval is determined, and then the two parameters are directly switched when meeting the corresponding conditions, generally, the two parameters are changed in a large range; otherwise, the switching is performed according to a preset frame frequency level, generally only switching to the next frame frequency within a unit time interval. Therefore, under different conditions of the displayed image frames, especially under the conditions of low brightness and low gray scale, if a step-by-step switching mode is adopted, the flicker and color cast phenomena of the screen can not be basically perceived by a user at the moment, so that the flicker and color cast problems can be greatly improved, and the effect of optimizing the switching is achieved.
Alternatively, if the switching is performed in the progressive switching mode, after the frame frequency is switched once, if it is detected that the displayed image also changes, the updated image related parameters may be determined again to determine whether to continue the progressive switching or directly switch to the target frame frequency, and the like.
Further, before the frame rate switching is started, if there is no intermediate frame rate between the target frame rate and the current frame rate, the frame rate switching may be directly performed without being determined according to the two parameters.
In a preferred embodiment, as shown in fig. 3, before acquiring the master parameter and the slave parameter, the frame rate switching method further includes:
step S101, acquiring a target frame frequency according to a frame frequency switching instruction. The frame rate switching command usually includes the target frame rate, so step S102 is executed after the current frame rate and the target frame rate are read.
Step S102, judging whether at least one intermediate frame frequency exists between the target frame frequency and the current frame frequency according to a preset frame frequency level.
Exemplarily, the frame rate and the highest frame rate supported by the terminal device are related to the hardware display driving circuit. For example, for some mobile phones, the supported frame rates include 60Hz, 72Hz, 90Hz, 120Hz, and the like. The preset frame frequency level refers to a frame frequency sequence obtained by sorting all frame frequencies supported by the terminal device from small to large or from large to small. It is understood that for some other terminal devices, a lower frame frequency may be supported, such as an e-book reader, and the supported frame frequency may range from 1Hz to 10 Hz. Generally, the terminal device performs frame rate stepwise switching at a unit time interval, which may be determined according to the reciprocal of the highest frame rate supported by the terminal device. For example, if the highest frame rate of the mobile phone is 120Hz, the unit time interval may be 1/120 s.
Step S103, when there is at least one intermediate frame rate, the above-mentioned operations of acquiring the main parameters and the auxiliary parameters of the image are performed. Alternatively, frame rate switching may be performed directly if there is no intermediate frame rate.
Exemplarily, if it is determined that an intermediate frame frequency exists between the current frame frequency and the target frame frequency, the frame frequency switching mode is determined according to the two parameters, and then frame frequency switching control is performed. Taking the mobile phone as an example, if the current frame frequency is 60Hz and the target frame frequency is 120Hz, 2 intermediate frame frequencies, 72Hz and 90Hz, exist according to the preset frame frequency level. Then, frame rate switching will be performed at this time according to the relevant parameters of the currently displayed image. For example, if the current image is determined to be lower than the preset low gray level state or low brightness state, the control is switched step by step, namely, from 60Hz- >72Hz- >90Hz- >120 Hz.
For the above-mentioned acquisition of the main parameter and the auxiliary parameter of the image, in an embodiment, as shown in fig. 4, if the two parameters are the brightness and the gray scale of the image, it mainly includes:
step S210, calculating the brightness and the gray scale of each pixel in the image based on a preset brightness algorithm and a preset image gray scale algorithm respectively.
In one embodiment, the preset luminance algorithm may include calculating the luminance of a single pixel according to a pixel luminance formula, illustratively as follows, where R, G and B are the red, green, and blue components of a single image pixel in turn: l ═ R0.3 + G0.59 + B0.11. In another embodiment, the preset luminance algorithm includes performing HSV or HSL image conversion on the image, wherein the converted HSV or HSV image includes a luminance component of each pixel.
For the preset gray scale algorithm of the image gray scale, for example, the brightness of a single pixel may be calculated sequentially by using a pixel gray scale formula, which may include, but is not limited to, a monochromatic component algorithm, an average value, a shift algorithm, a shaping value algorithm, a floating point value algorithm, or a Gamma calibration algorithm, exemplarily. In the monochromatic component algorithm, the blue component in the image can be selected for gray level calculation.
In step S220, the average brightness value and the average gray level value of all pixels are calculated as the brightness and the gray level of the image, respectively.
For example, after the brightness and the gray scale of all the pixels are obtained by calculation, the brightness and the gray scale of all the pixels are summed respectively, and then the corresponding average values are obtained, so as to obtain the brightness average value and the gray scale average value. It is to be understood that the processes related to the luminance calculation and the gray scale calculation in the above steps S210 and S220 are independent of each other and the execution order of the two calculation steps is not limited.
In another embodiment, as shown in fig. 5, if the two parameters are the luminance ratio and the gray ratio of the image, respectively, it mainly includes:
step S310, calculating the brightness and the gray scale of each pixel in the image based on a preset brightness algorithm and a preset gray scale algorithm respectively. Please refer to the step S210, and the description is not repeated here.
In step S320, the number of first pixels with gray levels greater than the preset gray level threshold and the number of second pixels with brightness greater than the preset brightness threshold are counted.
Step S330, respectively calculating the proportion of the first pixel number and the second pixel number in all pixels of the image to obtain the brightness ratio and the gray ratio of the image.
Exemplarily, after the first number of pixels with the gray scale exceeding the preset gray scale threshold and the second number of pixels with the brightness greater than the preset brightness threshold are obtained through statistics, the gray scale ratio can be calculated by dividing the first number of pixels by all the number of pixels, and the brightness ratio can be calculated by dividing the second number of pixels by all the number of pixels. It will be appreciated that the above images are primarily directed to RGB images, i.e. color images composed of three primary colors. Alternatively, for e.g. an electronic book reader, since the acquired image is a black and white image, generally, the gray scale and brightness of the image can be directly read.
The frame frequency switching method of the embodiment determines the frame frequency switching mode, such as gray scale, brightness and the like, jointly based on a plurality of relevant parameters of the currently displayed image before performing frame frequency switching, and only performs frame frequency switching in a small range within a unit time interval without performing large jump switching after judging that the two parameters meet a preset low-brightness state and/or a preset low-gray scale state.
Example 2
Referring to fig. 6, based on the method of embodiment 1, the present embodiment provides a frame rate switching apparatus 1, where exemplarily, the frame rate switching apparatus 1 includes:
the parameter obtaining module 10 is configured to obtain a master parameter and a slave parameter of an image currently displayed by the terminal device in response to the frame frequency switching instruction;
the mode determining module 20 is configured to determine a frame frequency switching mode of the terminal device according to the slave parameter and a preset first slave parameter threshold when the master parameter is smaller than the preset master parameter threshold.
The mode determining module 20 is further configured to determine the frame rate switching mode according to the slave parameter and a preset second slave parameter threshold when the master parameter is greater than or equal to the preset master parameter threshold, where the first slave parameter threshold is greater than the second slave parameter threshold.
The switching control module 30 is configured to perform frame rate switching according to the determined frame rate switching mode.
In one embodiment, if the primary parameter is the brightness of the image, the secondary parameter is the gray level of the image; alternatively, the master parameter is brightness and the slave parameter is gray scale. Exemplarily, for the parameter obtaining module 10, a single-pixel calculating sub-module and a pixel mean calculating sub-module may be included.
The single-pixel calculation submodule is used for calculating the brightness and the gray level of each pixel in the image based on a preset brightness algorithm and a preset gray level algorithm respectively; the pixel mean value calculating submodule is used for calculating the brightness mean value and the gray scale mean value of all pixels of the image. Then, the calculated luminance average value and the calculated gray scale average value are regarded as the luminance and the gray scale of the image, respectively.
In another embodiment, if the main parameter is the luminance ratio of the image, the sub parameter is the gray ratio of the image; or the main parameter is the brightness ratio, and the auxiliary parameter is the gray scale ratio. Exemplarily, the parameter obtaining module 10 may include a single-pixel calculating sub-module, a pixel counting sub-module, and a ratio calculating sub-module.
The single-pixel calculation submodule is used for calculating the brightness and the gray level of each pixel in the image based on a preset brightness algorithm and a preset gray level algorithm respectively; the pixel counting submodule is used for respectively counting the number of first pixels with the gray scale larger than a preset gray scale threshold value and the number of second pixels with the brightness larger than a preset brightness threshold value. The proportion calculation submodule is used for respectively calculating the proportion of the first pixel number and the second pixel number in all pixels of the image so as to obtain the brightness proportion and the gray proportion.
It is to be understood that the apparatus of the present embodiment corresponds to the method of the above embodiment 1, and the alternatives of the above embodiment 1 are also applicable to the present embodiment, so that the description thereof will not be repeated here.
The application also provides a terminal device, for example, the terminal device may include a mobile phone, a tablet, a notebook computer, and the like. The terminal device comprises a display screen, a memory and a processor, wherein the display screen is used for displaying images, the memory stores a computer program, and the processor enables the mobile terminal to execute the functions of each module in the frame frequency switching method or the frame frequency switching device by running the computer program.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data (such as image data, brightness/gradation calculation formula, etc.) created according to the use of the mobile terminal, etc. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The application also provides a computer storage medium for storing the computer program used in the terminal device.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A frame rate switching method, comprising:
responding to a frame frequency switching instruction, and acquiring a main parameter and a slave parameter of an image currently displayed by the terminal equipment;
when the main parameter is smaller than a preset main parameter threshold, determining a frame frequency switching mode of the terminal equipment according to the slave parameter and a preset first slave parameter threshold so as to perform frame frequency switching;
when the main parameter is greater than or equal to the preset main parameter threshold, determining the frame frequency switching mode according to the slave parameter and a preset second slave parameter threshold to perform frame frequency switching, wherein the first slave parameter threshold is greater than the second slave parameter threshold.
2. The frame rate switching method according to claim 1, wherein the frame rate switching mode includes a progressive switching mode and a direct switching mode; when the master parameter is smaller than a preset master parameter threshold, determining a frame frequency switching mode of the terminal device according to the slave parameter and a preset first slave parameter threshold, including:
if the slave parameter is smaller than the first slave parameter threshold value, gradually switching from the current frame frequency to the target frame frequency according to the gradual switching mode;
and if the slave parameter is greater than or equal to the first slave parameter threshold, directly switching from the current frame frequency to the target frame frequency according to the direct switching mode.
3. The frame rate switching method according to claim 2, wherein when the master parameter is greater than or equal to the preset master parameter threshold, determining the frame rate switching mode of the terminal device according to the slave parameter and a preset second slave parameter threshold comprises:
if the slave parameter is smaller than the second slave parameter threshold value, switching according to the step-by-step switching mode;
and if the slave parameter is greater than or equal to the second slave parameter threshold value, switching according to the direct switching mode.
4. The frame rate switching method according to claim 1, wherein before the acquiring the master parameter and the slave parameter of the image currently displayed by the terminal device, the method further comprises:
acquiring a target frame frequency according to the frame frequency switching instruction;
judging whether at least one intermediate frame frequency exists between the target frame frequency and the current frame frequency according to a preset frame frequency level;
when the at least one intermediate frame frequency exists, the acquisition operation of the main parameters and the auxiliary parameters of the image is executed.
5. The frame rate switching method according to claim 2 or 3, wherein said terminal device performs said frame rate stepwise switching at unit time intervals determined according to an inverse of a highest frame rate supported by said terminal device.
6. The frame rate switching method according to any one of claims 1 to 4, wherein the master parameter is a luminance of the image and the slave parameter is a gray scale of the image, or wherein the master parameter is the luminance and the slave parameter is the gray scale;
the acquisition of the brightness and the gray scale of the image comprises the following steps:
and calculating the brightness and the gray scale of each pixel in the image based on a preset brightness algorithm and a preset gray scale algorithm respectively, and calculating the brightness average value and the gray scale average value of all pixels of the image, wherein the brightness average value and the gray scale average value are respectively used as the brightness and the gray scale of the image.
7. The frame rate switching method according to any one of claims 1 to 4, wherein the master parameter is a luminance ratio of the image, and the slave parameter is a gray scale ratio of the image, or wherein the master parameter is the luminance ratio, and the slave parameter is the gray scale ratio;
the acquisition of the brightness ratio and the gray ratio of the image comprises the following steps:
calculating the brightness and the gray level of each pixel in the image based on a preset brightness algorithm and a preset gray level algorithm respectively;
counting the number of first pixels with the gray scale larger than a preset gray scale threshold value and the number of second pixels with the brightness larger than a preset brightness threshold value;
and respectively calculating the proportion of the first pixel number and the second pixel number in all pixels of the image to obtain the brightness ratio and the gray ratio.
8. A frame rate switching apparatus, comprising:
the parameter acquisition module is used for responding to the frame frequency switching instruction and acquiring a main parameter and a slave parameter of an image currently displayed by the terminal equipment;
the mode determining module is used for determining a frame frequency switching mode of the terminal equipment according to the slave parameters and a preset first slave parameter threshold when the master parameters are smaller than a preset master parameter threshold; the frame rate switching module is further configured to determine the frame rate switching mode according to the slave parameter and a preset second slave parameter threshold when the master parameter is greater than or equal to the preset master parameter threshold, where the first slave parameter threshold is greater than the second slave parameter threshold;
and the switching control module is used for carrying out frame frequency switching according to the determined frame frequency switching mode.
9. A terminal device, characterized in that the terminal device comprises a display screen for displaying images, a processor and a memory, the memory storing a computer program, the processor being configured to execute the computer program to implement the frame rate switching method according to any one of claims 1-7.
10. A readable storage medium, characterized in that it stores a computer program which, when executed, implements the frame rate switching method according to any one of claims 1-7.
CN202011520942.4A 2020-12-21 2020-12-21 Frame frequency switching method and device, terminal equipment and readable storage medium Active CN114650324B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011520942.4A CN114650324B (en) 2020-12-21 2020-12-21 Frame frequency switching method and device, terminal equipment and readable storage medium
PCT/CN2021/133611 WO2022135034A1 (en) 2020-12-21 2021-11-26 Frame frequency switching method, apparatus, terminal device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011520942.4A CN114650324B (en) 2020-12-21 2020-12-21 Frame frequency switching method and device, terminal equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114650324A true CN114650324A (en) 2022-06-21
CN114650324B CN114650324B (en) 2023-03-14

Family

ID=81991012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011520942.4A Active CN114650324B (en) 2020-12-21 2020-12-21 Frame frequency switching method and device, terminal equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN114650324B (en)
WO (1) WO2022135034A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652569A (en) * 2003-12-23 2005-08-10 创世纪微芯片公司 Adaptive display controller
US20120099773A1 (en) * 2010-10-20 2012-04-26 General Electric Company Method to Achieve Frame Rate or Resolution in Diagnostic Ultrasound
CN106461990A (en) * 2014-06-04 2017-02-22 堺显示器制品株式会社 Liquid crystal display device and display method
US20170263004A1 (en) * 2015-05-29 2017-09-14 Taylor Made Golf Company, Inc. Launch monitor
CN110333834A (en) * 2019-05-09 2019-10-15 京东方科技集团股份有限公司 Frame frequency method of adjustment and device, display equipment, computer readable storage medium
CN111149346A (en) * 2017-09-28 2020-05-12 杜比实验室特许公司 Frame rate conversion metadata
CN111355864A (en) * 2020-04-16 2020-06-30 浙江大华技术股份有限公司 Image flicker elimination method and device
CN111752368A (en) * 2020-06-22 2020-10-09 无锡睿勤科技有限公司 Display fluency adjusting method, system, terminal and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122609A (en) * 2008-11-21 2010-06-03 Canon Inc Display control apparatus and display control method
CN110121743B (en) * 2016-12-21 2021-05-14 夏普株式会社 Display device
CN108335677B (en) * 2018-02-11 2019-12-24 京东方科技集团股份有限公司 Luminance compensation method, luminance compensation device, and display device
CN111640390A (en) * 2020-06-30 2020-09-08 京东方科技集团股份有限公司 Display screen flicker adjusting circuit and method and display device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652569A (en) * 2003-12-23 2005-08-10 创世纪微芯片公司 Adaptive display controller
US20120099773A1 (en) * 2010-10-20 2012-04-26 General Electric Company Method to Achieve Frame Rate or Resolution in Diagnostic Ultrasound
CN102551799A (en) * 2010-10-20 2012-07-11 通用电气公司 Method to achieve frame rate or resolution diagnostic ultrasound
CN106461990A (en) * 2014-06-04 2017-02-22 堺显示器制品株式会社 Liquid crystal display device and display method
US20170263004A1 (en) * 2015-05-29 2017-09-14 Taylor Made Golf Company, Inc. Launch monitor
CN111149346A (en) * 2017-09-28 2020-05-12 杜比实验室特许公司 Frame rate conversion metadata
CN110333834A (en) * 2019-05-09 2019-10-15 京东方科技集团股份有限公司 Frame frequency method of adjustment and device, display equipment, computer readable storage medium
CN111355864A (en) * 2020-04-16 2020-06-30 浙江大华技术股份有限公司 Image flicker elimination method and device
CN111752368A (en) * 2020-06-22 2020-10-09 无锡睿勤科技有限公司 Display fluency adjusting method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN114650324B (en) 2023-03-14
WO2022135034A1 (en) 2022-06-30

Similar Documents

Publication Publication Date Title
US9390681B2 (en) Temporal filtering for dynamic pixel and backlight control
CN109801605B (en) Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium
JP5334402B2 (en) Display apparatus and method for improving flicker of video
JP6407509B2 (en) Control device and display device
WO2014080731A1 (en) Control device, display device, and display device control method
US8228437B2 (en) Method and apparatus for processing video data of liquid crystal display device
KR20070005637A (en) Display device comprising an adjustable light source
US9390679B2 (en) Display device, electronic apparatus, driving method of display device, and signal processing method
US20170140713A1 (en) Liquid crystal display method, device, and storage medium
KR20100078699A (en) Apparatus and method for power control of amoled
US10446089B2 (en) Method, system and computer readable storage medium for driving liquid crystal displays
JPWO2019124254A1 (en) Signal processing device, signal processing method, and display device
CN113257162B (en) Screen brightness adjusting method and device and storage medium
CN110992898A (en) Multi-partition backlight control method and equipment
US9824636B2 (en) Display device and method of adjusting backlight brightness of display device
CN107465811B (en) Method for reducing temperature rise, computer readable storage medium and electronic equipment
CN111341254A (en) Brightness adjusting method and device of display screen
CN115223509A (en) Backlight control method, backlight control device, display equipment and computer readable storage medium
US9311886B2 (en) Display device including signal processing unit that converts an input signal for an input HSV color space, electronic apparatus including the display device, and drive method for the display device
CN114650324B (en) Frame frequency switching method and device, terminal equipment and readable storage medium
CN111819618A (en) Pixel contrast control system and method
JP4094586B2 (en) Lighting control method for liquid crystal display screen in portable wireless terminal and portable wireless terminal
CN114697597A (en) Frame rate switching control method and device, terminal equipment and readable storage medium
US20190096341A1 (en) Method, system and computer readable storage medium for driving liquid crystal displays
CN117198220B (en) Driving method and device of display panel, display module and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant