CN108211352B - Method and terminal for adjusting image quality - Google Patents

Method and terminal for adjusting image quality Download PDF

Info

Publication number
CN108211352B
CN108211352B CN201711472712.3A CN201711472712A CN108211352B CN 108211352 B CN108211352 B CN 108211352B CN 201711472712 A CN201711472712 A CN 201711472712A CN 108211352 B CN108211352 B CN 108211352B
Authority
CN
China
Prior art keywords
image quality
quality level
current
recommended
level
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.)
Active
Application number
CN201711472712.3A
Other languages
Chinese (zh)
Other versions
CN108211352A (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.)
Shenzhen Idreamsky Technology Co ltd
Original Assignee
Shenzhen Idreamsky Technology 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 Shenzhen Idreamsky Technology Co ltd filed Critical Shenzhen Idreamsky Technology Co ltd
Priority to CN201711472712.3A priority Critical patent/CN108211352B/en
Publication of CN108211352A publication Critical patent/CN108211352A/en
Application granted granted Critical
Publication of CN108211352B publication Critical patent/CN108211352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • A63F13/355Performing operations on behalf of clients with restricted processing capabilities, e.g. servers transform changing game scene into an MPEG-stream for transmitting to a mobile phone or a thin client
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • A63F2300/538Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing for performing operations on behalf of the game client, e.g. rendering
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images

Abstract

The embodiment of the invention discloses a method and a terminal for adjusting image quality, wherein the method comprises the following steps: receiving image information, and calculating a dynamic frame rate D in a preset time, wherein the dynamic frame rate D is an image frame transmitted in each second of the preset time; according to the dynamic frame rate D, calculating an image quality level J to be adjusted through an image quality level adjustment algorithm; and comparing the current image quality level C with the image quality level J needing to be adjusted, and adjusting the image quality level according to the comparison result, wherein if image quality adjustment is carried out for the first time, the current image quality level C is the recommended image quality level T, and otherwise, the current image quality level C is the image quality level obtained by the last image quality adjustment. According to the embodiment of the invention, the terminal receives the image information, the dynamic frame rate D is calculated, and the image quality is automatically adjusted according to the dynamic frame rate D, so that the performance of the equipment can be fully utilized, the complex operation is avoided, and the user experience is improved.

Description

Method and terminal for adjusting image quality
Technical Field
The present application relates to the field of image/video processing technologies, and in particular, to a method and a terminal for adjusting image quality.
Background
With the rapid development of mobile communication technology, more and more users use mobile communication terminals such as smart phones. These mobile communication terminals are capable of performing communication such as normal telephone calls and short messages, and also capable of executing game software, viewing moving pictures, movies, and videos, and the like, and the use of the mobile communication terminals is expanding.
In a game program (for example, a mobile phone game) of an existing mobile terminal platform, when a hardware condition of a device is fixed, the operation fluency of the game is inversely related to the picture quality of the game. Meanwhile, the fluency of the game can be measured by FPS (Frames Per Second, transmission frame rate). The higher the frame rate per second, the smoother the picture. The lower the frame rate per second, the more jerky the picture is, and the less smooth it is. The user can only adjust the picture quality in the game by manual selection. In the market, the performances of the mobile terminals are different, and the game fluency on different mobile devices is different for the same game and the same picture quality. Therefore, in the current solution, on a device with poor performance, the user needs to manually adjust the image quality to be low, so as to ensure smooth operation of the game. Otherwise, the screen is jammed, the frame rate per second transmission is low, and the game experience is affected. When the user finds the picture pause, the user manually reduces the picture quality, changes the picture quality into low quality, and the program can automatically replace resources with corresponding precision, such as a 3D model, a game special effect, a scene map and the like. When the model and the map with lower precision are used instead, the performance of the consumed equipment is reduced, so that the transmission rate per second is increased, and the smoothness of the game is improved.
The user needs to adjust the image quality manually, the operation is too complicated, and a certain knowledge threshold is provided for the user, so that the user experience is seriously influenced.
Disclosure of Invention
The embodiment of the invention provides a method for adjusting image quality, which can calculate a dynamic frame rate D according to image information received by a terminal, calculate an image quality grade J to be adjusted according to the dynamic frame rate D through an image quality grade adjusting algorithm, and automatically adjust the image quality grade by comparing the current image quality grade C with the image quality grade J to be adjusted.
In a first aspect, an embodiment of the present invention provides a method for adjusting image quality, where the method includes:
receiving image information, and calculating a dynamic frame rate D in a preset time, wherein the dynamic frame rate D is an image frame transmitted in each second of the preset time;
according to the dynamic frame rate D, calculating an image quality level J to be adjusted through an image quality level adjustment algorithm;
and comparing the current image quality level C with the image quality level J needing to be adjusted, and adjusting the image quality level according to the comparison result, wherein if image quality adjustment is carried out for the first time, the current image quality level C is the recommended image quality level T, and otherwise, the current image quality level C is the image quality level obtained by the last image quality adjustment.
Wherein before the receiving image information, the method further comprises:
and calculating a recommended image quality grade T corresponding to the current equipment according to the current equipment information and a recommended image quality grade algorithm, and automatically setting the recommended image quality grade T as a current image quality grade C.
The current equipment information comprises hardware information and equipment model information of current equipment; the calculating of the recommended image quality level T corresponding to the current device according to the current device information and the recommended image quality level algorithm includes:
acquiring the quantity C of Central Processing Units (CPUs) of the current equipment, the single-core frequency M of the CPUs and an equipment memory N;
when M is less than or equal to a first preset frequency, C is less than a preset numerical value, or N is less than or equal to a first preset memory value, calculating the recommended image quality level T corresponding to the current equipment as a first image quality level;
when M is less than or equal to a second preset frequency or N is less than or equal to a second preset memory value, calculating the recommended image quality level T corresponding to the current equipment as a second image quality level;
otherwise, calculating the recommended image quality level T corresponding to the current equipment as a third image quality level;
wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level.
Or the following steps:
acquiring equipment model information of the current equipment, wherein the equipment model information has a corresponding relation with an image quality grade;
when the equipment model is a first type, calculating a recommended image quality level T corresponding to the current equipment as a first image quality level;
when the equipment model is of a second type, calculating a recommended image quality level T corresponding to the current equipment as a second image quality level;
when the equipment model is of a third type, calculating a recommended image quality level T corresponding to the current equipment as a third image quality level;
wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level.
The calculating the image quality level J to be adjusted by the image quality level adjustment algorithm includes:
under the condition that the dynamic frame rate D is smaller than a first preset value, if the current image quality level is a third image quality level or a second image quality level, the current image quality level is adjusted to be the first image quality level, and if the current image quality level is the first image quality level, the current image quality level is kept unchanged;
under the condition that the dynamic frame rate D is larger than a first preset value and smaller than a second preset value, if the current image quality level is a third image quality level or a first image quality level, the current image quality level is adjusted to be a second image quality level, and if the current image quality level is the second image quality level, the current image quality level is kept unchanged;
under the condition that the dynamic frame rate D is larger than a second preset value, if the current image quality is a second image quality level or a first image quality level, the current image quality is adjusted to be a third image quality level, and if the current image quality is the third image quality level, the current image quality is kept unchanged;
wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level.
Wherein the adjusting the image quality level according to the image quality level adjusting algorithm comprises:
dynamically changing an adjustment parameter related to the image quality level according to a program, wherein the adjustment parameter comprises at least one of the following items:
the method comprises the steps of the number of player models on the same screen, the maximum radius of a display special effect, the distance refreshing interval from a main corner, the LOD value of global multi-detail level, the distance of a far cutting surface of a camera, whether a mask layer of the camera is removed, whether a dazzling special effect is started, whether a grassland is displayed, whether a tree is displayed, water surface reflection, chartlet precision and player model precision.
The adjusting the image quality level according to the comparison result comprises:
if the current image quality level C is higher than the image quality level J which needs to be adjusted, adjusting the current image quality level C to be the image quality level J;
if the current image quality level C is lower than the image quality level J needing to be adjusted, calculating a recommended image quality level T corresponding to the current equipment according to a recommended image quality level algorithm; and when the recommended image quality level T is less than the image quality level J to be adjusted, correcting the image quality level J to be adjusted to be equal to the recommended image quality level T, and adjusting the current image quality level C to be the image quality level J under the condition that the last adjustment time exceeds a protection time preset duration and the image quality level J to be adjusted is higher than the current image quality level C.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
a receiving unit for receiving image information;
the device comprises a calculation unit and a display unit, wherein the calculation unit is used for calculating a dynamic frame rate D within a preset time, the dynamic frame rate D is an image frame transmitted in each second of the preset time, and the calculation unit is further used for calculating an image quality level J to be adjusted according to the dynamic frame rate D through an image quality level adjustment algorithm;
the comparison unit is used for comparing the current image quality level C with the image quality level J needing to be adjusted;
an adjusting unit, configured to adjust an image quality level according to the comparison result, where if image quality adjustment is performed for the first time, the current image quality level C is a recommended image quality level T, and otherwise, the current image quality level C is an image quality level obtained by previous image quality adjustment;
the calculation unit is further used for calculating a recommended image quality grade T corresponding to the current equipment according to the current equipment information and a recommended image quality grade algorithm;
a setting unit configured to set the recommended picture quality level T as a current picture quality level C;
an obtaining unit, configured to obtain a single-core frequency M and a device memory N of the number C, CPU of central processing units CPU of the current device;
a determining unit, configured to determine a first quality level when M is less than or equal to a preset frequency, or C is less than 4, or N is less than or equal to 900, determine a second quality level when M is less than or equal to 1800, or N is less than or equal to 1800, or determine a third quality level when M is less than or equal to 1800, wherein the first quality level is lower than the second quality level, and the second quality level is lower than the third quality level;
the acquisition unit is further used for acquiring equipment model information of the current equipment, and the equipment model information has a corresponding relation with the image quality level;
the determination unit is further configured to determine a first image quality level when the device model is a first type, determine a second image quality level when the device model is a second type, and determine a third image quality level when the device model is a third type, wherein the first image quality level is lower than the second image quality level, and the second image quality level is lower than the third image quality level;
the adjusting unit is further configured to, if the current image quality level is a third image quality level or a second image quality level when the dynamic frame rate D is less than the first preset value, the current image quality level is adjusted to the first image quality level, if the current image quality level is the first image quality level, the current image quality level is kept unchanged, if the current picture quality level is the third picture quality level or the first picture quality level under the condition that the dynamic frame rate D is larger than the first preset value and smaller than the second preset value, the current image quality level is adjusted to the second image quality level, if the current image quality level is the second image quality level, the current image quality level is kept unchanged, if the current picture quality is at the second picture quality level or the first picture quality level under the condition that the dynamic frame rate D is greater than the second preset value, the current image quality level is adjusted to the third image quality level, if the current image quality level is the third image quality level, the current image quality level is kept unchanged, wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level;
the adjusting unit is further configured to adjust the current image quality level C to be the image quality level J if the current image quality level C is higher than the image quality level J to be adjusted, and to calculate a recommended image quality level T corresponding to the current device according to a recommended image quality level algorithm if the current image quality level C is lower than the image quality level J to be adjusted, and to adjust the current image quality level C to be the image quality level J if a time since the last adjustment exceeds a protection time preset duration and the image quality level J to be adjusted is higher than the current image quality level C;
and a correction unit configured to correct the image quality level J to be adjusted to be equal to the recommended image quality level T when the recommended image quality level T is smaller than the image quality level J to be adjusted.
In a third aspect, an embodiment of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store an application program code, and the processor is configured to call the program code to execute the method of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method of any one of the above aspects.
According to the embodiment of the invention, the terminal receives the image information, the dynamic frame rate D is calculated, the image quality level J to be adjusted is calculated according to the dynamic frame rate D through the image quality level adjusting algorithm, and then the current image quality level C is compared with the image quality level J to be adjusted to automatically adjust the image quality level, so that the performance of equipment can be fully utilized, complicated operation is avoided, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for adjusting image quality according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an algorithm for recommending image quality level according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an image quality level adjustment algorithm according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a relationship between an image quality level and an adjustment parameter according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a method for adjusting the image quality of a game according to the prior art;
fig. 6 is a schematic flowchart illustrating an image quality adjustment method according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection".
In particular implementations, the terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
Referring to fig. 1, which is a schematic flowchart illustrating a method for adjusting image quality according to an embodiment of the present invention, as shown in fig. 1, a method for adjusting image quality according to an embodiment of the present invention may include:
s101, receiving image information, and calculating a dynamic frame rate D in a preset time, wherein the dynamic frame rate D is an image frame transmitted every second in the preset time.
The terminal device receives the image information, and the terminal device can be a mobile phone, a tablet computer, a palm computer, a mobile internet device or other terminal devices with touch sensitive surfaces.
Optionally, in some possible embodiments of the present invention, the preset time may be 5s, 10s, 15s, 20s or other values, and how much the preset time value is specifically set is not limited herein.
In the embodiment of the present invention, the total frame number T within S seconds is counted, and the dynamic frame rate D is calculated according to a formula, where the dynamic frame rate D is equal to T/S.
Wherein before the receiving image information, the method further comprises: and calculating a recommended image quality grade T corresponding to the current equipment according to the current equipment information and a recommended image quality grade algorithm, and automatically setting the recommended image quality grade T as a current image quality grade C.
Optionally, in some possible embodiments of the present application, the device information may be a device model and hardware information of the terminal, where the hardware information includes a single-core frequency M of the CPU number C, CPU of the device and a device memory size N.
Alternatively, in some possible embodiments of the present application, the image quality level may be divided into three levels, i.e., a high image quality level, a medium image quality level, and a low image quality level, or may be divided into other manners, which is not limited herein.
Optionally, in some possible embodiments of the application, the recommended image quality level algorithm may calculate the recommended image quality level T according to the device model or hardware information of the terminal device, and it may be understood that the recommended image quality level algorithm may use different determination rules according to different platforms.
For example, the recommended picture quality level may be determined by the following determination algorithm. The method comprises the steps that a terminal obtains the number C of Central Processing Units (CPU) of current equipment, the single-core frequency M of the CPU and an equipment memory N, and when the M is smaller than or equal to a first preset frequency, or the C is smaller than a preset numerical value, or the N is smaller than or equal to a first preset memory value, the terminal judges the current equipment as a first image quality grade. When M is less than or equal to a second preset frequency or N is less than or equal to a second preset memory value, the terminal judges the M to be a second image quality grade; otherwise, the terminal judges the image quality as a third image quality level. The first preset frequency, the preset value of C, the first preset memory value, the second preset frequency and the second preset memory value can be set as required, the first image quality level is low image quality, the second image quality level is medium image quality, and the third image quality level is high image quality.
It can be understood that, because there are many manufacturers of current terminal devices (such as mobile phones, tablet computers, etc.), there are many corresponding terminal models, and it is troublesome to determine the image quality level by using the terminal models, and the above determination method is particularly suitable for the mobile device in the android system.
The terminal can also judge the image quality grade through another judging algorithm, the terminal obtains the equipment model information of the current equipment, the equipment model information has a corresponding relation with the image quality grade, and when the equipment model is a first type, the terminal judges the equipment model as the first image quality grade; when the equipment model is of a second type, the terminal judges the equipment model as a second image quality level; and when the equipment model is a third type, the terminal judges the equipment model as a third image quality level. Referring to fig. 2, fig. 2 is a schematic diagram illustrating a correspondence relationship between a device model and an image quality level according to an embodiment of the present invention. When the terminal device model is detected to be iPad1, iPhone1, iPhone3G, iPhone3GS, iPhone4, iPhone4S, iPhone5, iPhone5C or the iPod full series, the terminal determines the terminal device model to be a low image quality grade, when the terminal device model is detected to be iPad2, iPadMini1 or iPhone5S, the terminal device model is determined to be a medium image quality grade, and when the terminal device model is detected to be iPad3, iPad4, iPad Air1, iPad Air2, iPadMini2, iPad Mini3, iPad Mini4, iPad Pro, iPad 6, iPhone6plus, iPad 6S, iPhone7, iPhone7plus or other updated model, the terminal device model determines the terminal device model to be a high image quality grade. It is understood that the type of the device model can be set according to the requirement, and the apple system is taken as an example for illustration.
It can be understood that, when the user enters the game application for the first time, the image quality level is not adjusted, so the terminal device calculates the recommended image quality level T corresponding to the current device according to the current device information and the recommended image quality level algorithm, and automatically sets the recommended image quality level T as the current image quality level C.
Therefore, the recommended image quality grade can be quickly obtained by acquiring the equipment model information and the hardware information of the terminal equipment and utilizing the recommended image quality grade algorithm, and a comparison parameter is provided for the subsequent image quality grade adjustment.
And S102, calculating the image quality level J to be adjusted by an image quality level adjusting algorithm according to the dynamic frame rate D.
The calculating the image quality level J to be adjusted by the image quality level adjustment algorithm includes: and under the condition that the dynamic frame rate D is smaller than the first preset value, if the current image quality level is the third image quality level or the second image quality level, the terminal adjusts the current image quality level to be the first image quality level, and if the current image quality level is the first image quality level, the current image quality level is kept unchanged. And under the condition that the dynamic frame rate D is greater than the first preset value and less than the second preset value, if the current image quality level is a third image quality level or a first image quality level, the terminal adjusts the current image quality level to be a second image quality level, and if the current image quality level is the second image quality level, the current image quality level is kept unchanged. And under the condition that the dynamic frame rate D is greater than a second preset value, if the current image quality is at a second image quality level or a first image quality level, the terminal adjusts the current image quality to be at a third image quality level, and if the current image quality level is at the third image quality level, the current image quality level is kept unchanged. Wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level.
Optionally, in some possible embodiments of the present invention, the first preset value and the second preset value may be set according to needs, and the value is an integer greater than 1, specifically, how many values are set, and is not limited herein.
Referring to fig. 3, fig. 3 is a schematic diagram of an image quality level adjustment algorithm according to an embodiment of the present invention. Before the image quality level adjustment, the terminal may receive the image information, calculate a dynamic frame rate D within a preset time, adjust the current image quality to a low image quality if the dynamic frame rate D is less than 15, adjust the current image quality to a high image quality or a medium image quality if the dynamic frame rate D is greater than or equal to 15 and less than 20, adjust the current image quality to a medium image quality if the current image quality is the high image quality or the low image quality, and adjust the current image quality to the high image quality if the dynamic frame rate D is greater than or equal to 20.
It is understood that the moving frame rate D has a corresponding relationship with the image quality level, and different moving frame rates D correspond to different image quality levels, but whether the image quality level needs to be adjusted or not is also related to the current image quality level.
It can be seen that the image quality level J to be adjusted can be quickly and conveniently obtained according to the image quality level adjustment algorithm by calculating the dynamic frame rate D and utilizing the corresponding relationship between the dynamic frame rate D and the image quality level.
When adjusting the image quality level, the program dynamically changes the adjustment parameter related to the image quality level, that is, there is a corresponding relationship between the image quality level and the adjustment parameter value.
Optionally, in some possible embodiments of the present invention, adjusting the parameter includes: the method comprises the following steps of the number of player models on the same screen, the maximum radius of a display special effect, the distance refreshing interval from a main corner, the global LOD value, the distance of a far cutting surface of a camera, whether a mask layer of the camera is removed, whether a dazzling special effect is started, whether a grassland is displayed, whether a tree is displayed, water surface reflection, mapping precision, player model precision or any combination of the models.
It can be understood that different image quality levels correspond to different adjustment parameter values, and the higher the image quality level is, the greater the consumption performance and resources are, and the better the image effect is.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a corresponding relationship between an image quality level and an adjustment parameter according to an embodiment of the present invention. The number of the same-screen player models represents the maximum number of the player character models which can be displayed simultaneously under one scene camera, the reduction of the number of the model displays can reduce the memory consumption and the calculation amount of animation and special effects, so the higher the image quality level is, the more the number of the model displays is. The maximum radius of the display special effect indicates that the special effect is displayed within a radius range taking the main character of the player as the center, if the radius exceeds the range, the special effect is not displayed, the reduction of the display of the special effect can obviously reduce the calculation amount and improve the rendering efficiency of the picture, so the higher the image quality level is, the larger the maximum radius of the display special effect is. The distance refresh interval from the hero indicates a distance calculation interval between each character and the player hero, and an increase in the calculation interval can reduce the amount of calculation, so the higher the image quality level, the shorter the distance refresh interval from the hero. The global LOD value represents a multi-detail level technology, rendering efficiency can be effectively improved, and therefore the higher the image quality level is, the larger the global LOD value is. The camera far-cut surface distance indicates the farthest distance that the camera can display, and the shorter the farthest distance, the fewer objects that need to be rendered, and the less performance consumption, so the higher the image quality level, the longer the camera far-cut surface distance. The camera mask layer indicates that model objects at different levels are removed, and the amount of rendering can be reduced by removing objects at some levels, so that the image quality level can be improved by removing the camera mask layer. Similarly, the image quality grade can be improved by opening the dazzling special effect, displaying the grassland and displaying the trees, the image quality grade can be improved by having water surface reflection, and the higher the image quality grade is, the higher the mapping precision and the player model precision are.
It can be seen that the embodiment of the invention more refines the division of factors influencing the fluency of the picture, can effectively adjust the rendering efficiency and improve the fluency of the picture by controlling and adjusting various performance indexes and reducing or improving some effects, and the performance consumption of the whole game has good elasticity.
It can be understood that the image quality can be intelligently adjusted according to the situation by the image quality level adjusting algorithm, for example, when the game load is higher, the image quality is automatically reduced, the occupation of the release performance is avoided, the game fluency is improved, the game experience is improved, when the game load is lower, the image quality is automatically improved, the performance of the equipment is fully utilized, the aesthetic feeling of the picture is improved, and the user experience is improved.
S103, comparing the current image quality level C with the image quality level J needing to be adjusted, and adjusting the image quality level according to the comparison result, wherein if image quality adjustment is carried out for the first time, the current image quality level C is the recommended image quality level T, and otherwise, the current image quality level C is the image quality level obtained by the last image quality adjustment.
If the terminal enters the application program for the first time, taking the game program as an example, the terminal calculates and stores the recommended image quality level T according to the recommended image quality level algorithm, automatically sets the recommended image quality level T as the current image quality level C, and when the terminal enters the game program again, the terminal automatically sets the stored recommended image quality level T as the current image quality level C. If the current image quality level C is the image quality level obtained by the last image quality adjustment in the game process.
Wherein the adjusting the image quality level according to the comparison result comprises: if the current image quality level C is higher than the image quality level J needing to be adjusted, the terminal adjusts the current image quality level C to be the image quality level J; if the current image quality level C is lower than an image quality level J needing to be adjusted, the terminal calculates a recommended image quality level T corresponding to the current equipment according to a recommended image quality level algorithm, when the recommended image quality level T is smaller than the image quality level J needing to be adjusted, the terminal corrects the image quality level J needing to be adjusted to be equal to the recommended image quality level T, and when the time from the last adjustment exceeds a preset protection time and the image quality level J needing to be adjusted is higher than the current image quality level C, the terminal adjusts the current image quality level C to be the image quality level J.
Optionally, in some possible embodiments of the present application, the preset time period may be 50s, 70s, 90s, 110s, and 150s, and may also be set as needed, which is not limited herein.
It can be understood that if the factors such as the switching of the game scene or the sudden increase of the character and character affect the determination of the image quality level during the game, but the frequent switching of the image quality may cause the game and the screen to be stuck, which seriously affects the game experience.
Referring to fig. 5, fig. 5 is a schematic diagram of a method for adjusting the quality of a game image according to the prior art. The user finds that the picture is stuck in the game process, the game runs unsmoothly, the user clicks to enter a game system setting interface, the game system setting interface comprises music setting and display setting, the music setting comprises sound effect and music adjustment, and the display setting comprises adjustment of the charting quality, the number of players and the maximum frame number, and whether the player model and the chat information are displayed. The player can adjust the picture quality in the game and reduce the picture quality setting by manual selection, the terminal reuses new game resources according to the picture quality, the terminal performance consumption is reduced, the transmission frame rate per second is increased, and the picture fluency is improved.
It is easy to see that the whole process requires judgment and manual adjustment of a user, and a certain knowledge threshold is provided for the user, the user needs to understand the influence relationship between the game image quality and the equipment performance and the transmission frame rate per second to make the judgment, and the judgment of the user has great subjectivity, the user may make wrong judgment to make the picture more stubborn, even cause program crash, and the user cannot timely and quickly adjust the image quality according to the running condition of the current equipment, cannot constantly keep full use of the performance, and cannot refine the division of factors influencing the picture fluency enough, and only the quality of a map and the quality of a model are distinguished.
In order to specifically solve the defects of the prior art, the application provides a new image quality adjusting method. Referring to fig. 6, fig. 6 is a flowchart illustrating an image quality adjustment method according to an embodiment of the present invention. And the terminal receives the image information and carries out intelligent detection every 10 s. And the terminal acquires the current image quality level C and calculates a dynamic frame rate D within 10s, and according to the dynamic frame rate D, the terminal calculates an image quality level J to be adjusted through an image quality level adjusting algorithm. The terminal compares a current image quality level C with an image quality level J which needs to be adjusted, if the image quality level C is equal to the image quality level J, no adjustment is made, if the image quality level C is higher than the image quality level J, the terminal takes the image quality level J as the current image quality level to replace the original image quality level C, if the image quality level C is lower than the image quality level J, the terminal calculates a recommended image quality level T according to an image quality recommendation algorithm, if the image quality level T is lower than the image quality level J, the terminal corrects the image quality level J to be equal to the image quality level T, and it can be understood that hardware of the terminal device limits an upper limit of adjustment of the image quality level, and the upper limit of adjustment of the image quality level is limited because the image quality level is adjusted too high and hardware resources cannot support, a picture is more jammed, and even a program is broken down. The terminal then judges whether the time from the last adjustment of the set image quality level exceeds the protection time for 150 seconds, if not, the adjustment is finished, if so, the terminal continues to judge whether the image quality level J is higher than the image quality level C, if not, the adjustment is finished, and if so, the terminal takes the image quality level J as the current image quality level to replace the original image quality level C.
It is understood that the step of determining whether the time from the last adjustment of the set image quality level exceeds the guard time by 150 seconds is added to avoid the frequent switching of the image quality, resulting in the stuttering of the game and the picture and the game experience of the player.
It can be seen that, in the scheme of the embodiment of the present invention, the whole judgment and the image quality adjustment are automatically performed by the terminal, the user does not need to participate, the user operation is simplified, the whole adjustment process is opaque to the user, the user does not have any knowledge threshold, the terminal can quickly adjust the image quality according to the operation condition of the current device, for example, when the game load is high, the image quality is automatically reduced, the performance occupation is released, the game fluency is improved, the game experience is improved, when the game load is small, the image quality is automatically improved, the device performance is fully utilized, the image aesthetic feeling is improved, the performance is fully utilized all the time in the whole process, and the best game quality is presented as far as possible.
Fig. 7 is a schematic diagram of a terminal according to an embodiment of the present invention. The terminal 700 includes: receiving section 710, calculating section 720, comparing section 730, adjusting section 740, setting section 750, acquiring section 760, determining section 770, and correcting section 780.
A receiving unit 710 for receiving the image information.
The terminal device receives the image information, and the terminal device can be a mobile phone, a tablet computer, a palm computer, a mobile internet device or other terminal devices with touch sensitive surfaces.
Wherein the terminal further comprises, before said receiving image information: and the terminal calculates a recommended image quality grade T corresponding to the current equipment according to the current equipment information and a recommended image quality grade algorithm, and automatically sets the recommended image quality grade T as a current image quality grade C.
The calculating unit 720 is configured to calculate a dynamic frame rate D within a preset time, where the dynamic frame rate D is an image frame transmitted in an average time per second within the preset time, and the calculating unit is further configured to calculate, according to the dynamic frame rate D, an image quality level J to be adjusted by an image quality level adjusting algorithm.
The calculating the image quality level J to be adjusted by the image quality level adjustment algorithm includes: under the condition that the dynamic frame rate D is smaller than a first preset value, if the current image quality level is a third image quality level or a second image quality level, the terminal adjusts the current image quality level to be the first image quality level, and if the current image quality level is the first image quality level, the current image quality level is kept unchanged; under the condition that the dynamic frame rate D is larger than a first preset value and smaller than a second preset value, if the current image quality level is a third image quality level or a first image quality level, the terminal adjusts the current image quality level to be a second image quality level, and if the current image quality level is the second image quality level, the current image quality level is kept unchanged; under the condition that the dynamic frame rate D is larger than a second preset value, if the current image quality is a second image quality level or a first image quality level, the terminal adjusts the current image quality to be a third image quality level, and if the current image quality level is the third image quality level, the current image quality level is kept unchanged; wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level.
Optionally, in some possible embodiments of the present application, the first preset value and the second preset value may be set as needed, and the value is an integer greater than 1, specifically, how many values are set, and is not limited herein.
Optionally, in some possible embodiments of the present application, the preset time may be 5s, 10s, 15s, 20s, or another value, and how much the preset time value is specifically set is not limited herein.
In the embodiment of the present invention, the total frame number T within S seconds is counted, and the dynamic frame rate D is calculated according to a formula, where the dynamic frame rate D is equal to T/S.
It is understood that the moving frame rate D has a corresponding relationship with the image quality level, and different moving frame rates D correspond to different image quality levels, but whether the image quality level needs to be adjusted or not is also related to the current image quality level.
It can be seen that the terminal can quickly and conveniently obtain the image quality level J to be adjusted according to the image quality level adjustment algorithm by calculating the dynamic frame rate D and utilizing the corresponding relation between the dynamic frame rate D and the image quality level.
The comparing unit 730 is configured to compare the current image quality level C with the image quality level J that needs to be adjusted.
If the terminal enters the application program for the first time, taking the game program as an example, the terminal calculates and stores the recommended image quality level T according to the recommended image quality level algorithm, automatically sets the recommended image quality level T as the current image quality level C, and when the terminal enters the game program again, the terminal automatically sets the stored recommended image quality level T as the current image quality level C. If the current image quality level C is the image quality level obtained by the last image quality adjustment in the game process.
The adjusting unit 740 is configured to adjust the image quality level according to the comparison result.
Wherein the adjusting the image quality level according to the comparison result comprises: if the current image quality level C is higher than the image quality level J needing to be adjusted, the terminal adjusts the current image quality level C to be the image quality level J; if the current image quality level C is lower than an image quality level J needing to be adjusted, the terminal calculates a recommended image quality level T corresponding to the current equipment according to a recommended image quality level algorithm, when the recommended image quality level T is smaller than the image quality level J needing to be adjusted, the terminal corrects the image quality level J needing to be adjusted to be equal to the recommended image quality level T, and when the time from the last adjustment exceeds a preset protection time and the image quality level J needing to be adjusted is higher than the current image quality level C, the terminal adjusts the current image quality level C to be the image quality level J.
Optionally, in some possible embodiments of the present invention, the preset time period may be 50s, 70s, 90s, 110s, and 150s, or may be set as needed, which is not limited herein.
It can be understood that if the factors such as the switching of the game scene or the sudden increase of the character and character affect the determination of the image quality level during the game, but the frequent switching of the image quality may cause the game and the screen to be stuck, which seriously affects the game experience.
When adjusting the image quality level, the program dynamically changes the adjustment parameter related to the image quality level, that is, there is a corresponding relationship between the image quality level and the adjustment parameter value.
Optionally, in some possible embodiments of the present application, the adjusting the parameter includes: the method comprises the following steps of the number of player models on the same screen, the maximum radius of a display special effect, the distance refreshing interval from a main corner, the global LOD value, the distance of a far cutting surface of a camera, whether a mask layer of the camera is removed, whether a dazzling special effect is started, whether a grassland is displayed, whether a tree is displayed, water surface reflection, mapping precision, player model precision or any combination of the models.
It can be understood that different image quality levels correspond to different adjustment parameter values, and the higher the image quality level is, the greater the consumption performance and resources are, and the better the image effect is.
The calculation unit is further configured to calculate a recommended image quality level T corresponding to the current device according to the current device information and a recommended image quality level algorithm.
Optionally, in some possible embodiments of the present invention, the device information may be a device model and hardware information of the terminal, where the hardware information includes a single-core frequency M of the CPU number C, CPU of the device and a device memory size N.
Alternatively, in some possible embodiments of the present invention, the image quality level may be divided into three levels, i.e., a high image quality level, a medium image quality level, and a low image quality level, or may be divided into other manners, which is not limited herein.
Optionally, in some possible embodiments of the present invention, the recommended image quality level algorithm may calculate the recommended image quality level T according to the device model or hardware information of the terminal device, and it may be understood that the recommended image quality level algorithm may use different determination rules according to different platforms.
It can be understood that, when the user enters the game application for the first time, the image quality level is not adjusted, so the terminal device calculates the recommended image quality level T corresponding to the current device according to the current device information and the recommended image quality level algorithm, and automatically sets the recommended image quality level T as the current image quality level C.
Therefore, the terminal can quickly obtain the recommended image quality grade by obtaining the equipment model information and the hardware information of the terminal equipment and utilizing the recommended image quality grade algorithm, and a contrast parameter is provided for the subsequent image quality grade adjustment.
A setting unit 750, configured to set the recommended image quality level T as a current image quality level C.
An obtaining unit 760, configured to obtain the number C of Central Processing Units (CPUs) of the current device, a single-core frequency M of the CPUs, and a device memory N.
The determining unit 770 is configured to determine that the terminal determines the terminal to be the first quality level when M is less than or equal to a preset frequency, or C is less than 4, or N is less than or equal to 900, determine that the terminal determines the terminal to be the second quality level when M is less than or equal to 1800, or determine that the terminal determines the terminal to be the third quality level otherwise, wherein the first quality level is lower than the second quality level, and the second quality level is lower than the third quality level.
The acquisition unit is further used for acquiring equipment model information of the current equipment, and the equipment model information has a corresponding relation with the image quality level;
the determination unit is further configured to determine the device type as a first image quality level by the terminal when the device type is a first type, determine the device type as a second image quality level by the terminal when the device type is a second type, and determine the device type as a third image quality level when the device type is a third type, wherein the first image quality level is lower than the second image quality level, and the second image quality level is lower than the third image quality level.
The adjusting unit is further configured to, if the dynamic frame rate D is less than the first preset value, adjust the current image quality level to the first image quality level if the current image quality level is the third image quality level or the second image quality level, if the current image quality level is the first image quality level, keep the current image quality level unchanged, if the dynamic frame rate D is greater than the first preset value and less than the second preset value, adjust the current image quality level to the second image quality level if the current image quality level is the third image quality level or the first image quality level, if the dynamic frame rate D is greater than the second preset value, adjust the current image quality level to the third image quality level if the current image quality level is the second image quality level, keep the current image quality level unchanged if the current image quality level is the third image quality level, wherein the first image quality level is lower than the second image quality level, the second quality level is lower than a third quality level.
The adjusting unit is further configured to, when the current image quality level C is higher than an image quality level J to be adjusted, the terminal adjusts the current image quality level C to the image quality level J, and when the current image quality level C is lower than the image quality level J to be adjusted, the terminal calculates a recommended image quality level T corresponding to the current device according to a recommended image quality level algorithm and adjusts the current image quality level C to the image quality level J when a time since the last adjustment exceeds a protection time preset duration and the image quality level J to be adjusted is higher than the current image quality level C.
A correcting unit 780, configured to correct the image quality level J to be adjusted to be equal to the recommended image quality level T when the recommended image quality level T is smaller than the image quality level J to be adjusted.
It can be seen that, in the scheme of the embodiment of the present invention, the terminal receives the image information, calculates the dynamic frame rate D, calculates the image quality level J to be adjusted according to the dynamic frame rate D through the image quality level adjustment algorithm, compares the current image quality level C with the image quality level J to be adjusted, automatically adjusts the image quality level, can fully utilize the performance of the device, avoids complicated operations, and improves the user experience.
Fig. 8 is a schematic diagram of another terminal according to an embodiment of the present invention. As shown in fig. 8, the terminal 200 may include: a baseband chip 210, memory 215 (one or more computer-readable storage media), a communication module 216, and a peripheral system 217. These components may communicate over one or more communication buses 214.
The peripheral system 217 is mainly used to implement an interactive function between the terminal 200 and a user/external environment, and mainly includes an input and output device of the terminal 200. In a specific implementation, the peripheral system 217 may include: a touch screen 223, a camera 224, audio circuitry 225, and a sensor 226. It should be noted that the peripheral system 217 may also include other I/O peripherals.
The baseband chip 210 may integrally include one or more processors 211, the processors 211 being coupled to a memory 215 via a communication bus 214.
The communication module 216 is used for receiving and transmitting radio frequency signals, and includes a SIM card 2161 and a Wi-Fi2162, mainly integrating a receiver and a transmitter of the terminal 200. The communication module 216 communicates with a communication network and other communication devices via radio frequency signals. In particular implementations, the communication module 216 may include, but is not limited to: an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip, a SIM card, a storage medium, and the like. In some embodiments, the communication module 216 may be implemented on a separate chip.
Memory 215 is coupled to processor 211 for storing various software programs and/or sets of instructions. In particular implementations, memory 215 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 215 may store an operating system (hereinafter referred to simply as a system), such as an embedded operating system like ANDROID, IOS, WINDOWS, or LINUX. The memory 215 may also store network communication programs that may be used to communicate with one or more additional devices, one or more terminal devices, one or more network devices. The memory 215 may also store a user interface program, which may vividly display the content of the application program through a graphical operation interface, and receive the control operation of the application program from the user through input controls such as menus, dialog boxes, and buttons.
The memory 215 may also store one or more application programs. As shown in fig. 8, these applications may include: game applications (e.g., five-element days), image management applications (e.g., photo albums), and the like.
In the present invention, processor 211 is operable to read and execute computer readable instructions. Specifically, the processor 211 may be configured to call a program stored in the memory 215, such as an implementation program of the method for adjusting image quality provided in the present application, and execute instructions included in the program.
In a possible embodiment of the present application, the terminal obtains the image information through the communication module 216, calculates the dynamic frame rate D within a preset time by using the CPU211, calculates the image quality level J to be adjusted by using the processor CPU211 according to the image quality level adjustment algorithm in the memory 215, compares the current image quality level C with the image quality level J to be adjusted, and finally adjusts the image quality level by using the CPU211 according to the comparison result.
It should be understood that terminal 200 is only one example provided by embodiments of the present invention and that terminal 200 may have more or fewer components than shown, may combine two or more components, or may have a different configuration implementation of components.
In another embodiment of the present application, a computer-readable storage medium is provided, storing a computer program that when executed by a processor implements: the method comprises the steps that a terminal receives image information and calculates a dynamic frame rate D in preset time, wherein the dynamic frame rate D is an image frame transmitted in each second of the preset time; according to the dynamic frame rate D, calculating an image quality level J to be adjusted through an image quality level adjustment algorithm; and comparing the current image quality level C with the image quality level J needing to be adjusted, and adjusting the image quality level according to the comparison result, wherein if image quality adjustment is carried out for the first time, the current image quality level C is the recommended image quality level T, and otherwise, the current image quality level C is the image quality level obtained by the last image quality adjustment.
It can be seen that, in the scheme of the embodiment of the present invention, the terminal receives the image information, calculates the dynamic frame rate D, calculates the image quality level J to be adjusted according to the dynamic frame rate D through the image quality level adjustment algorithm, compares the current image quality level C with the image quality level J to be adjusted, automatically adjusts the image quality level, can fully utilize the performance of the device, avoids complicated operations, and improves the user experience.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit 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 invention essentially or partially contributes to the prior art, or all or part of the technical solution can 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 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 invention. 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.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method for adjusting image quality, comprising:
receiving image information, and calculating a dynamic frame rate D in a preset time, wherein the dynamic frame rate D is an image frame transmitted in each second of the preset time;
according to the dynamic frame rate D, calculating an image quality level J to be adjusted through an image quality level adjustment algorithm, wherein the image quality level J to be adjusted through the image quality level adjustment algorithm comprises the following steps: under the condition that the dynamic frame rate D is smaller than a first preset value, if the current image quality level is a third image quality level or a second image quality level, the current image quality level is adjusted to be the first image quality level, and if the current image quality level is the first image quality level, the current image quality level is kept unchanged; under the condition that the dynamic frame rate D is larger than a first preset value and smaller than a second preset value, if the current image quality level is a third image quality level or a first image quality level, the current image quality level is adjusted to be a second image quality level, and if the current image quality level is the second image quality level, the current image quality level is kept unchanged; under the condition that the dynamic frame rate D is larger than a second preset value, if the current image quality is a second image quality level or a first image quality level, the current image quality is adjusted to be a third image quality level, and if the current image quality is the third image quality level, the current image quality is kept unchanged; wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level;
and comparing the current image quality level C with the image quality level J needing to be adjusted, and adjusting the image quality level according to the comparison result, wherein if image quality adjustment is carried out for the first time, the current image quality level C is the recommended image quality level T, and otherwise, the current image quality level C is the image quality level obtained by the last image quality adjustment.
2. The method of claim 1, further comprising, prior to said receiving image information:
and calculating a recommended image quality grade T corresponding to the current equipment according to the current equipment information and a recommended image quality grade algorithm, and automatically setting the recommended image quality grade T as a current image quality grade C.
3. The method of claim 2, wherein the current device information comprises hardware information of a current device; the calculating of the recommended image quality level T corresponding to the current device according to the current device information and the recommended image quality level algorithm includes:
acquiring the quantity C of Central Processing Units (CPUs) of the current equipment, the single-core frequency M of the CPUs and an equipment memory N;
when M is less than or equal to a first preset frequency, C is less than a preset numerical value, or N is less than or equal to a first preset memory value, calculating the recommended image quality level T corresponding to the current equipment as a first image quality level;
when M is less than or equal to a second preset frequency or N is less than or equal to a second preset memory value, calculating the recommended image quality level T corresponding to the current equipment as a second image quality level;
otherwise, calculating the recommended image quality level T corresponding to the current equipment as a third image quality level;
wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level.
4. The method of claim 2, wherein the current device information includes device model information of a current device; the calculating of the recommended image quality level T corresponding to the current device according to the current device information and the recommended image quality level algorithm includes:
acquiring equipment model information of the current equipment, wherein the equipment model information has a corresponding relation with an image quality grade;
when the equipment model is a first type, calculating a recommended image quality level T corresponding to the current equipment as a first image quality level;
when the equipment model is of a second type, calculating a recommended image quality level T corresponding to the current equipment as a second image quality level;
when the equipment model is of a third type, calculating a recommended image quality level T corresponding to the current equipment as a third image quality level;
wherein the first quality level is lower than the second quality level, and the second quality level is lower than a third quality level.
5. The method of claim 1, wherein adjusting the quality level according to the quality level adjustment algorithm comprises:
dynamically changing an adjustment parameter related to the image quality level according to a program, wherein the adjustment parameter comprises at least one of the following items:
the method comprises the steps of the number of player models on the same screen, the maximum radius of a display special effect, the distance refreshing interval from a main corner, the LOD value of global multi-detail level, the distance of a far cutting surface of a camera, whether a mask layer of the camera is removed, whether a dazzling special effect is started, whether a grassland is displayed, whether a tree is displayed, water surface reflection, chartlet precision and player model precision.
6. The method of claim 2, wherein the adjusting the image quality level according to the comparison comprises:
if the current image quality level C is higher than the image quality level J which needs to be adjusted, adjusting the current image quality level C to be the image quality level J;
if the current image quality level C is lower than the image quality level J needing to be adjusted, calculating a recommended image quality level T corresponding to the current equipment according to a recommended image quality level algorithm; and when the recommended image quality level T is less than the image quality level J to be adjusted, correcting the image quality level J to be adjusted to be equal to the recommended image quality level T, and when the time from the last adjustment exceeds a preset protection time and the image quality level J to be adjusted is higher than the current image quality level C, adjusting the current image quality level C to be the image quality level J.
7. A terminal, characterized in that it comprises means for performing the method of any of claims 1-6.
8. A terminal comprising a processor, an input-output device, a memory and a communication module, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store application program code and the processor is configured to invoke the program code to perform the method of any of claims 1-6.
9. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method according to any of claims 1-6.
CN201711472712.3A 2017-12-28 2017-12-28 Method and terminal for adjusting image quality Active CN108211352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711472712.3A CN108211352B (en) 2017-12-28 2017-12-28 Method and terminal for adjusting image quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711472712.3A CN108211352B (en) 2017-12-28 2017-12-28 Method and terminal for adjusting image quality

Publications (2)

Publication Number Publication Date
CN108211352A CN108211352A (en) 2018-06-29
CN108211352B true CN108211352B (en) 2021-11-23

Family

ID=62645828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711472712.3A Active CN108211352B (en) 2017-12-28 2017-12-28 Method and terminal for adjusting image quality

Country Status (1)

Country Link
CN (1) CN108211352B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168191B (en) * 2018-09-11 2021-08-27 厦门美图移动科技有限公司 Terminal processor adjusting method and terminal processor adjusting device
CN109302523B (en) * 2018-10-22 2020-11-06 竞技世界(北京)网络技术有限公司 Mobile phone performance evaluation method for mobile phone side and server side
CN109389663B (en) * 2018-10-31 2021-03-09 Oppo广东移动通信有限公司 Picture rendering method and device, terminal and storage medium
CN109568951A (en) * 2018-11-21 2019-04-05 北京像素软件科技股份有限公司 Special display effect method of adjustment and device
CN109675321B (en) * 2018-12-18 2022-02-15 网易(杭州)网络有限公司 Method and device for controlling number of people displayed on same screen in game
CN109771949A (en) * 2019-01-14 2019-05-21 珠海金山网络游戏科技有限公司 A kind of method and system of the interior dynamic adjustment rendering grade of game
CN109966739B (en) * 2019-01-17 2022-11-11 珠海金山数字网络科技有限公司 Method and system for optimizing game operation
CN111476872B (en) * 2019-01-23 2022-10-11 华为技术有限公司 Image drawing method and image drawing device
CN110475065B (en) * 2019-08-19 2021-03-16 北京字节跳动网络技术有限公司 Image processing method and device, electronic equipment and storage medium
CN111176758B (en) * 2019-12-31 2021-06-22 腾讯科技(深圳)有限公司 Configuration parameter recommendation method and device, terminal and storage medium
CN113192169B (en) * 2021-04-26 2021-11-05 北京麟卓信息科技有限公司 Image display optimization method and device for dynamically adjusting LOD Scale
CN114125277B (en) * 2021-11-12 2024-02-09 北京达佳互联信息技术有限公司 Method and equipment for controlling video shooting special effects of application

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011221112A (en) * 2010-04-06 2011-11-04 Sharp Corp Display device
CN105100675A (en) * 2015-09-11 2015-11-25 Tcl集团股份有限公司 Terminal video communication quality adjusting method and system
JP2016063987A (en) * 2014-09-25 2016-04-28 株式会社 アスキス Game machine
CN106303215A (en) * 2016-07-26 2017-01-04 深圳天珑无线科技有限公司 The acquisition method of a kind of image and device
CN107203363A (en) * 2017-06-06 2017-09-26 网易(杭州)网络有限公司 Method, device and electronic equipment that image quality for application program is adjusted
CN107398070A (en) * 2017-07-19 2017-11-28 腾讯科技(深圳)有限公司 Display control method and device, the electronic equipment of a kind of game picture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011221112A (en) * 2010-04-06 2011-11-04 Sharp Corp Display device
JP2016063987A (en) * 2014-09-25 2016-04-28 株式会社 アスキス Game machine
CN105100675A (en) * 2015-09-11 2015-11-25 Tcl集团股份有限公司 Terminal video communication quality adjusting method and system
CN106303215A (en) * 2016-07-26 2017-01-04 深圳天珑无线科技有限公司 The acquisition method of a kind of image and device
CN107203363A (en) * 2017-06-06 2017-09-26 网易(杭州)网络有限公司 Method, device and electronic equipment that image quality for application program is adjusted
CN107398070A (en) * 2017-07-19 2017-11-28 腾讯科技(深圳)有限公司 Display control method and device, the electronic equipment of a kind of game picture

Also Published As

Publication number Publication date
CN108211352A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108211352B (en) Method and terminal for adjusting image quality
US10460643B2 (en) Method, device and non-transitory computer-readable storage medium for controlling frame rate of mobile terminal
CN106919358B (en) Display control method and device of mobile terminal and mobile terminal
CN108632658B (en) Bullet screen display method and terminal
WO2018082412A1 (en) Electronic equipment control method, device and electronic equipment
US11138956B2 (en) Method for controlling display of terminal, storage medium, and electronic device
CN110795056B (en) Method, device, terminal and storage medium for adjusting display parameters
CN111147749A (en) Photographing method, photographing device, terminal and storage medium
CN108961267B (en) Picture processing method, picture processing device and terminal equipment
US20210219028A1 (en) Method and apparatus for selecting audio track from audio and video file
CN108632631A (en) The method for down loading and device of video slicing in a kind of panoramic video
CN109460364A (en) Application program detection method, device, storage medium and mobile terminal
CN111068316A (en) Game frame number adjusting method and device, storage medium and electronic equipment
CN110246110B (en) Image evaluation method, device and storage medium
CN112616078A (en) Screen projection processing method and device, electronic equipment and storage medium
CN111752451A (en) Information display method and device and electronic equipment
CN110909184A (en) Multimedia resource display method, device, equipment and medium
CN113051014A (en) Eye protection prompting method and device, storage medium and computer equipment
CN108932704B (en) Picture processing method, picture processing device and terminal equipment
WO2023130808A1 (en) Animation frame display method and apparatus, device, and storage medium
US20160240223A1 (en) Electronic device and method for playing back image data
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal
CN113032278B (en) Application running mode, and method and device for confirming grade of terminal equipment
KR102547320B1 (en) Electronic device and method for control thereof
CN110694278A (en) Game table combining method, game score calculating method and device and intelligent 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 unit 01, 16 / F, unit 2, building a, Kexing Science Park, Keyuan Road, Central District, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN IDREAMSKY TECHNOLOGY Co.,Ltd.

Address before: 518000 unit 01, 16 / F, unit 2, building a, Kexing Science Park, Keyuan Road, Central District, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN IDREAMSKY TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant