CN114638742A - Scene picture processing method and electronic equipment - Google Patents

Scene picture processing method and electronic equipment Download PDF

Info

Publication number
CN114638742A
CN114638742A CN202210217557.5A CN202210217557A CN114638742A CN 114638742 A CN114638742 A CN 114638742A CN 202210217557 A CN202210217557 A CN 202210217557A CN 114638742 A CN114638742 A CN 114638742A
Authority
CN
China
Prior art keywords
frequency
frame
scene
frame dropping
target
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.)
Pending
Application number
CN202210217557.5A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210217557.5A priority Critical patent/CN114638742A/en
Publication of CN114638742A publication Critical patent/CN114638742A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The application discloses a scene picture processing method and electronic equipment, and belongs to the technical field of electronics. The specific scheme comprises the following steps: under the condition that the electronic equipment is in a target scene, acquiring target frequency-boosting parameters matched with the target scene; processing the scene picture of the target scene by adopting the target frequency raising parameter, and displaying the processed scene picture; wherein the target frequency-raising parameter comprises: frequency boosting and frequency boosting duration.

Description

Scene picture processing method and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a scene picture processing method and electronic equipment.
Background
Generally, after the electronic device receives a user input, the electronic device may meet the performance requirement of the system by increasing the frequency of a Central Processing Unit (CPU) or a Graphics Processing Unit (GPU), so that the frame dropping and blocking problem may not occur in each application scenario.
In the related art, a plurality of high-frequency applications are generally determined according to the use requirements of most users on the applications, and then frequency boosting optimization is performed on the high-frequency applications, however, for a single user, the frequently used applications may not belong to the high-frequency applications, and the user may have a problem of frame dropping and jamming when using the applications.
Disclosure of Invention
The embodiment of the application aims to provide a scene picture processing method and electronic equipment, which can pointedly carry out frequency-boosting optimization on a single user common application scene.
In a first aspect, an embodiment of the present application provides a scene picture processing method, where the method includes: under the condition that the electronic equipment is in a target scene, acquiring target frequency-boosting parameters matched with the target scene; processing the scene picture of the target scene by adopting the target frequency raising parameter, and displaying the processed scene picture; wherein the target frequency-raising parameter comprises: frequency boosting and frequency boosting duration.
In a second aspect, an embodiment of the present application provides a scene picture processing apparatus, including: the device comprises an acquisition module, a processing module and a display module; the acquisition module is used for acquiring a target frequency-raising parameter matched with a target scene under the condition that the electronic equipment is in the target scene; the processing module is used for processing the scene picture of the target scene by adopting the target frequency-raising parameter; the display module is used for displaying the processed scene picture; wherein the target frequency-raising parameter comprises: frequency boosting and frequency boosting duration.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, a target frequency-raising parameter matched with a target scene can be obtained under the condition that the electronic equipment is in the target scene; processing the scene picture of the target scene by adopting the target frequency raising parameter, and displaying the processed scene picture; wherein the target frequency-increasing parameter comprises: frequency boosting and frequency boosting duration. According to the scheme, under the condition that the electronic equipment is in the target scene, the target frequency raising parameters matched with the target scene can be adopted to process the scene picture of the target scene, so that on one hand, the problem that the scene picture of the target scene is blocked due to frame dropping in the use process of a user can be avoided, on the other hand, frequency raising optimization is executed under the condition that the electronic equipment is in the target scene, namely, optimization operation is executed only when the electronic equipment is used under the target scene, and therefore targeted optimization of common application scenes of a single user can be achieved.
Drawings
Fig. 1 is a schematic flowchart of a scene picture processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a scene picture processing apparatus according to an embodiment of the present application;
FIG. 3 is a hardware diagram of an electronic device provided by an embodiment of the present application;
fig. 4 is a second hardware schematic diagram of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes the scene image processing method provided by the embodiment of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
In the scene image processing method provided in the embodiment of the present application, an execution main body of the scene image processing method may be an electronic device or a functional module or a functional entity capable of implementing the scene image processing method in the electronic device, the electronic device mentioned in the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device, and the like, and the scene image processing method provided in the embodiment of the present application is described below with the electronic device as the execution main body as an example.
As shown in fig. 1, an embodiment of the present application provides a scene picture processing method, which may include steps 101 and 102:
step 101, under the condition that the electronic device is in a target scene, acquiring a target frequency-increasing parameter matched with the target scene.
The target frequency-increasing parameter may include: frequency boosting and frequency boosting duration.
In the process of operating the foreground application program, the electronic device can determine whether the current operating scene is a target scene according to the characteristic information of the scene, and under the condition that the current operating scene is the target scene, the electronic device can acquire a target frequency-increasing parameter matched with the target scene. That is, an operating scenario may correspond to a set of frequency boosting parameters, and when the operating scenario is determined, the frequency boosting parameters matching the operating scenario may be determined.
Optionally, the feature information of the scene may include at least one of: foreground application identification, interface identification and user operation type.
Specifically, the electronic device may determine a foreground application identifier (Package Name), an interface identifier (Activity Name), and a user operation TYPE (TYPE) corresponding to the current operating scene, and when the foreground application identifier, the interface identifier, and the user operation TYPE are all the same, the current operating scene may be considered as a target scene.
Optionally, the user operation types may include a click, a slide, a long press, and other user operations.
Optionally, since the target scene is well matched with the target frequency-boosting parameters, before obtaining the target frequency-boosting parameters matched with the target scene, the electronic device needs to determine the frequency-boosting parameters matched with each scene.
Specifically, the electronic device may record frame dropping information corresponding to the foreground application program under the condition that the foreground application program has a frame dropping problem during the operation process, and then determine the frequency boosting parameters matched with each scene according to the frame dropping information recorded in a preset time period.
The following describes in detail the process of recording the frame dropping information by the electronic device and the process of determining the frequency boosting parameters matched with each scene according to the frame dropping information recorded in the preset time period, respectively.
And in the process 1, the electronic equipment records the frame dropping information.
Optionally, the FRAME drop information may include application information and stuck information, where the application information is used to describe a FRAME drop scene, and the stuck information may include a FRAME drop frequency (CUR _ FREQ), a FRAME drop duration (long _ TIME), a FRAME drop number (skip _ FRAME), and a FRAME drop frequency.
Specifically, in the process of running a foreground application by the electronic device, the electronic device can judge whether the foreground application has a frame drop problem in the running process; if the frame dropping problem exists, recording frame dropping information corresponding to the foreground application program, namely a frame dropping scene, a frame dropping frequency, a frame dropping time, a frame dropping quantity and a frame dropping frequency, and writing the frame dropping information into a corresponding configuration file.
For example, in a case where the electronic device displays a main interface of a target application, if a user triggers a click event of the main interface, the electronic device may determine that frame dropping information: the Package Name is used as a target application, the Activity Name is used as a main interface, the TYPE is clicked, the CUR _ FREQ is 1.0GHz, the HANG _ TIME is 200ms, the SKIPE _ FRAME is 5 FRAMEs, and the FRAME dropping frequency of the FRAME dropping scene is increased by 1 on the original basis.
Optionally, the electronic device may determine whether the foreground application has a stuck-frame-drop problem by recording a frame brushing condition of a server (surface flag). For example, if the electronic device can refresh the screen within 1s for 60 times in a normal condition, when the number of frame swipes of the surface flicker is less than 60, it can be determined that the front application has the problem of frame dropping. After determining that the problem of the pause frame dropping exists, the electronic device can record frame dropping information corresponding to the foreground application program.
It should be noted that the above-mentioned SurfaceFlinger is a system service, and is mainly used for receiving data buffers from multiple sources, synthesizing them, and then sending them to a display device for displaying.
Based on the scheme, the frame dropping information corresponding to the foreground application program can be recorded when the frame dropping problem is found, and the frame dropping information acquired by different user equipment can be different, so that the scene needing frequency increase determined based on the frame dropping information and the corresponding frequency increase parameters have higher pertinence.
And 2, the electronic equipment determines frequency boosting parameters matched with each scene according to the frame dropping information recorded in the preset time period.
Optionally, the electronic device may obtain frame dropping information recorded within a preset time period, where the frame dropping information includes a frame dropping scene and a frame dropping severity; then, screening N scenes from M frame dropping scenes included in the frame dropping information according to the frame dropping severity; finally, determining a frequency boosting parameter matched with each scene in the N scenes; wherein the N scenes comprise the target scene, and the N scenes satisfy at least one of the following conditions: the frame dropping severity corresponding to each scene in the N scenes is greater than a first threshold value; or the frame drop severity corresponding to the N scenes is greater than the frame drop severity corresponding to other (M-N) scenes, and the frame drop severity includes at least one of the following: the frame dropping frequency, the frame dropping duration, the number of dropped frames and the number of dropped frames M, N are integers greater than or equal to 0, and M is greater than or equal to N.
Optionally, taking the example that the frame drop severity includes the frame drop times, that is, the frame drop severity in the scene is determined by the frame drop times. The method for screening N scenes from M frame dropping scenes by the electronic equipment according to the frame dropping severity specifically comprises the following steps: one implementation manner is that after the electronic device obtains the frame dropping information recorded in the preset time period, the frame dropping scenes can be sorted according to the frame dropping times corresponding to different frame dropping scenes in the preset time period. For example, the electronic device may arrange each of the frame dropping scenes in a sequence of decreasing frame dropping times, or may arrange each of the frame dropping scenes in a sequence of decreasing frame dropping times, and then, the electronic device may screen N scenes from the arranged M frame dropping scenes, where the frame dropping times corresponding to the N scenes are greater than the frame dropping times corresponding to other (M-N) scenes, that is, it can be understood that the N scenes are the scenes in which the M scenes have frame drops and whose frame dropping severity (frame dropping times) is ranked N before. Another implementation manner is that after the electronic device obtains frame dropping information recorded within a preset time period, the frame dropping times corresponding to each frame dropping scene can be compared with a first threshold, and then N scenes are screened out from M frame dropping scenes according to comparison results, where the frame dropping times corresponding to the N scenes are all greater than the first threshold, which can be understood, and the N scenes are scenes in which the frame dropping times are greater than the first threshold in the M scenes. In another implementation, the electronic device may sort M frame dropping scenes according to the number of frame dropping times, and then screen K scenes from the M frame dropping scenes, where the number of frame dropping times corresponding to the K scenes is greater than the number of frame dropping times corresponding to other (M-K) scenes. Then, the electronic device may compare the K scenes with a first threshold respectively, and then obtain N scenes with the frame dropping times greater than the first threshold, where K is an integer less than or equal to M and greater than or equal to N, which can be understood, where the N scenes are N scenes with frame dropping severity (frame dropping times) before the ranking among the M scenes with frame dropping, and the frame dropping times of the N scenes are all greater than the first threshold. Therefore, the frame dropping scene needing to be optimized can be screened out, and power consumption waste caused by optimizing the unnecessary optimized frame dropping scene is avoided.
Optionally, before screening N scenes according to the frame dropping times, the electronic device may read the frame dropping information in the configuration file, and summarize the frame dropping times by using the Package Name + Activity Name + TYPE as a frame dropping scene, where a frame dropping occurs in the same frame dropping scene, and then add 1 to the frame dropping times in the frame dropping scene.
Based on the scheme, on one hand, N scenes can be screened out from M frame dropping scenes according to the frame dropping severity in the frame dropping information, and the frequency boosting parameters of the N scenes are determined, so that the targeted optimization of the common application scenes of a single user can be realized; on the other hand, because the frequency-up optimization can be carried out on the N scenes according to the frame dropping information recorded in the preset time period, the whole optimization process can be more flexible.
Optionally, the frame drop severity includes the frame drop frequency, the frame drop duration, and the frame drop number, and the target frequency increase parameter includes the frequency increase frequency; taking a target scene as an example, the determining, by the electronic device, a frequency boosting parameter matched with each scene of the N scenes may specifically include: the electronic equipment determines the frame dropping frequency mean value, the frame dropping time mean value and the frame dropping quantity mean value of the target scene in the preset time period according to the frame dropping frequency, the frame dropping time length and the frame dropping quantity; then determining the number of full frame frames of the target scene according to the frame dropping time average value; and finally, determining the frequency boosting frequency of the target scene according to the frame dropping frequency average value, the frame dropping quantity average value and the full frame number.
Optionally, the electronic device determines the frequency boosting frequency of the target scene according to the frame drop frequency average value, the frame drop number average value, and the full frame number, and specifically may include: the electronic equipment according to the formula
Figure BDA0003535643620000071
Determining a frequency raising frequency F2 of the target scene; wherein F1 is the average of the frame dropping frequency, N1 is the number of full frames, and N2 is the average of the number of dropped frames.
Optionally, the determining, by the electronic device, the number of full frames of the target scene according to the average value of the frame dropping time duration may specifically include: taking the electronic device 1s to refresh the frame 60 times as an example, the number of full frames is the average value of the drop frame duration/1000 × 60, that is, the electronic device may determine the number of full frames that should be refreshed in the average value of the drop frame duration in milliseconds.
Based on the scheme, the frequency increasing frequency of the target scene can be determined according to the frame dropping frequency, the frame dropping time and the frame dropping quantity, so that the frequency increasing optimization can be carried out on the target scene according to the frequency increasing frequency, and the problem of blocking and dropping frames when the target scene operates is avoided.
Optionally, the frame drop severity includes the frame drop duration, and the frequency increase parameter includes the frequency increase duration; taking a target scene as an example, the electronic device determines a frequency-raising parameter matched with each scene in the N scenes, and specifically includes: the electronic equipment can determine a normal distribution graph of frame dropping duration of a target scene in a preset time period; and then determining the wave peak value in the normal distribution graph as the frequency raising duration of the target scene.
Based on the scheme, the frame dropping time can be in a normal distribution state, so that the wave peak value in the normal distribution graph is selected as the frequency raising time of the target scene, the frequency raising parameters can be ensured to cover most of use scenes of the target scene, and the problem of system power consumption and operation time waste caused by overlarge frequency raising time can be solved.
After the frequency boosting duration and the frequency boosting frequency of the target scene are determined, the electronic device can correspondingly write the target scene, the frequency boosting duration and the frequency boosting frequency into a frequency boosting file of the system, and when the electronic device operates the target scene again, the frequency boosting duration and the frequency boosting frequency become effective, that is, the electronic device can process a scene picture of the target scene according to the frequency boosting duration and the frequency boosting frequency and display the processed scene picture.
And 102, processing the scene picture of the target scene by adopting the target frequency raising parameter, and displaying the processed scene picture.
In the embodiment of the application, under the condition that the electronic device is in the target scene, the target frequency-boosting parameter matched with the target scene can be adopted to process the scene picture of the target scene, so that on one hand, the problem that the scene picture of the target scene is blocked due to frame dropping in the use process of a user can be avoided, and on the other hand, the frequency-boosting optimization is executed under the condition that the electronic device is in the target scene, namely, the optimization operation is executed only when the electronic device is used under the target scene, so that the targeted optimization of the common application scene of a single user can be realized.
In the scene picture processing method provided by the embodiment of the application, the execution subject may be a scene picture processing device. The embodiment of the present application describes a scene processing apparatus provided in the embodiment of the present application, by taking a scene processing apparatus as an example to execute a scene processing method.
As shown in fig. 2, an embodiment of the present application further provides a scene picture processing apparatus 200, including: an acquisition module 201, a processing module 202 and a display module 203. The obtaining module 201 may be configured to obtain a target frequency-raising parameter matched with a target scene when the electronic device is in the target scene. The processing module 202 may be configured to process a scene picture of the target scene by using the target frequency enhancement parameter; the display module 203 is configured to display the processed scene picture; wherein the target frequency-raising parameter comprises: frequency boosting and frequency boosting duration.
Optionally, the obtaining module 201 is further configured to obtain frame dropping information recorded within a preset time period, where the frame dropping information includes a frame dropping scene and a frame dropping severity. The processing module 202 is further configured to screen N scenes from the M dropped-frame scenes according to the drop-frame severity; determining a frequency boosting parameter matched with each scene in the N scenes; wherein the N scenes comprise the target scene, and the N scenes satisfy at least one of the following conditions: the frame dropping severity corresponding to each scene in the N scenes is greater than a first threshold value; or the frame drop severity corresponding to the N scenes is greater than the frame drop severity corresponding to other (M-N) scenes, and the frame drop severity includes at least one of the following: the frame dropping frequency, the frame dropping duration, the number of dropped frames and the number of dropped frames M, N are integers greater than or equal to 0, and M is greater than or equal to N.
Optionally, the frame drop severity includes the frame drop frequency, the frame drop duration, and the frame drop number, and the target frequency increase parameter includes the frequency increase frequency; the processing module 202 is specifically configured to determine a frame dropping frequency average value, a frame dropping time average value, and a frame dropping number average value of the target scene in the preset time period according to the frame dropping frequency, the frame dropping time length, and the frame dropping number; determining the number of full frame frames of the target scene according to the frame dropping time average value; and determining the frequency boosting frequency of the target scene according to the frame dropping frequency average value, the frame dropping quantity average value and the full frame number.
Optionally, the frame drop severity includes the frame drop duration, and the frequency increase parameter includes the frequency increase duration; the processing module 202 is specifically configured to determine a normal distribution map of the frame dropping duration of the target scene within the preset time period; and determining the wave peak value in the normal distribution graph as the frequency raising duration of the target scene.
Optionally, the processing module 202 is further configured to record frame dropping information corresponding to a foreground application when the foreground application has a frame dropping problem during an operation process.
In the embodiment of the application, under the condition that the electronic device is in the target scene, the target frequency-boosting parameter matched with the target scene can be adopted to process the scene picture of the target scene, so that on one hand, the problem that the scene picture of the target scene is blocked due to frame dropping in the use process of a user can be avoided, and on the other hand, the frequency-boosting optimization is executed under the condition that the electronic device is in the target scene, namely, the optimization operation is executed only when the electronic device is used under the target scene, so that the targeted optimization of the common application scene of a single user can be realized.
The scene picture processing apparatus in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The scene picture processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The scene picture processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301 and a memory 302, where the memory 302 stores a program or an instruction that can be executed on the processor 301, and when the program or the instruction is executed by the processor 301, the steps of the foregoing scene picture processing method embodiment are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power supply (e.g., a battery) for supplying power to the various components, and the power supply may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 may be configured to, when the electronic device is in a target scene, acquire a target frequency-boosting parameter matched with the target scene. A processor 1010, configured to process a scene picture of the target scene using the target frequency-raising parameter; a display unit 1006, which may be used to display the processed scene picture; wherein the target frequency-raising parameter comprises: frequency boosting and frequency boosting duration.
In the embodiment of the application, under the condition that the electronic device is in the target scene, the target frequency-boosting parameter matched with the target scene can be adopted to process the scene picture of the target scene, so that on one hand, the problem that the scene picture of the target scene is blocked due to frame dropping in the use process of a user can be avoided, and on the other hand, the frequency-boosting optimization is executed under the condition that the electronic device is in the target scene, namely, the optimization operation is executed only when the electronic device is used under the target scene, so that the targeted optimization of the common application scene of a single user can be realized.
Optionally, the processor 1010 is further configured to acquire frame dropping information recorded in a preset time period, where the frame dropping information includes a frame dropping scene and a frame dropping severity. The processor 1010 is further configured to screen N scenes from the M dropped-frame scenes according to the drop-frame severity; determining a frequency boosting parameter matched with each scene in the N scenes; wherein the N scenes comprise the target scene, and the N scenes satisfy at least one of the following conditions: the frame dropping severity corresponding to each scene in the N scenes is greater than a first threshold value; or the frame drop severity corresponding to the N scenes is greater than the frame drop severity corresponding to other (M-N) scenes, and the frame drop severity includes at least one of the following: the frame dropping frequency, the frame dropping duration, the number of dropped frames and the number of dropped frames M, N are integers greater than or equal to 0, and M is greater than or equal to N.
In the embodiment of the application, on one hand, because N scenes can be screened out from M frame dropping scenes according to the frame dropping severity in the frame dropping information, and the frequency boosting parameters of the N scenes are determined, the targeted optimization of a single user common application scene can be realized; on the other hand, because the frequency-up optimization can be carried out on the N scenes according to the frame dropping information recorded in the preset time period, the whole optimization process can be more flexible.
Optionally, the frame drop severity includes the frame drop frequency, the frame drop duration, and the frame drop number, and the target frequency increase parameter includes the frequency increase frequency; the processor 1010 is specifically configured to determine a frame dropping frequency average value, a frame dropping time average value, and a frame dropping number average value of the target scene in the preset time period according to the frame dropping frequency, the frame dropping time length, and the frame dropping number; determining the number of full frame frames of the target scene according to the frame dropping time average value; and determining the frequency boosting frequency of the target scene according to the frame dropping frequency average value, the frame dropping quantity average value and the full frame number.
In the embodiment of the application, the frequency increasing frequency of the target scene can be determined according to the frame dropping frequency, the frame dropping time and the frame dropping quantity, so that the frequency increasing optimization can be performed on the target scene according to the frequency increasing frequency, and the problem of blocking and dropping frames when the target scene operates is avoided.
Optionally, the frame drop severity includes the frame drop duration, and the frequency increase parameter includes the frequency increase duration; the processor 1010 is specifically configured to determine a normal distribution map of the frame dropping duration of the target scene within the preset time period; and determining the wave peak value in the normal distribution graph as the frequency raising duration of the target scene.
In the embodiment of the application, because the frame dropping time can be in a normal distribution state, the wave peak value in the normal distribution graph is selected as the frequency raising time of the target scene, so that the frequency raising parameters can be ensured to cover most of use scenes of the target scene, and the problem of system power consumption and running time waste caused by overlarge frequency raising time can be solved.
Optionally, the processor 1010 is further configured to record frame dropping information corresponding to a foreground application when the foreground application has a frame dropping problem during an operation process.
In the embodiment of the application, the frame dropping information corresponding to the foreground application program can be recorded when the frame dropping problem is found, and the frame dropping information acquired by different user equipment can be different, so that the scene needing frequency increase determined based on the frame dropping information and the corresponding frequency increase parameters have higher pertinence.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations related to the operating system, user interface, applications, etc., and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the scene picture processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the scene picture processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing scene image processing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the related art may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for processing a scene picture, comprising:
under the condition that the electronic equipment is in a target scene, acquiring target frequency-boosting parameters matched with the target scene;
processing the scene picture of the target scene by adopting the target frequency raising parameter, and displaying the processed scene picture;
wherein the target frequency-raising parameter comprises: frequency boosting and frequency boosting duration.
2. The scene picture processing method according to claim 1, wherein before acquiring the target frequency-boosting parameter matching the target scene when the electronic device is in the target scene, the method further comprises:
acquiring frame dropping information recorded in a preset time period, wherein the frame dropping information comprises a frame dropping scene and frame dropping severity;
screening N scenes from the M frame dropping scenes according to the frame dropping severity;
determining a frequency boosting parameter matched with each scene in the N scenes;
wherein the N scenes comprise the target scene, and the N scenes satisfy at least one of the following conditions: the frame dropping severity corresponding to each scene in the N scenes is greater than a first threshold value; or the frame drop severity corresponding to the N scenes is greater than the frame drop severity corresponding to other (M-N) scenes, and the frame drop severity includes at least one of the following: a frame drop frequency, a frame drop duration, a frame drop number, and a frame drop frequency, M, N is an integer greater than or equal to 0, and M is greater than or equal to N.
3. The scene picture processing method according to claim 2, wherein the frame drop severity includes the frame drop frequency, the frame drop duration, and the frame drop number, and the target frequency-boosting parameter includes the frequency-boosting frequency;
the determining the frequency boosting parameters matched with each scene in the N scenes comprises:
determining a frame dropping frequency mean value, a frame dropping time mean value and a frame dropping quantity mean value of the target scene in the preset time period according to the frame dropping frequency, the frame dropping time length and the frame dropping quantity;
determining the number of full frame frames of the target scene according to the frame dropping time average value;
and determining the frequency boosting frequency of the target scene according to the frame dropping frequency average value, the frame dropping quantity average value and the full frame number.
4. The scene picture processing method according to claim 2, wherein the frame drop severity includes the frame drop duration, and the frequency boost parameter includes the frequency boost duration;
the determining the frequency boosting parameters matched with each scene in the N scenes comprises:
determining a normal distribution diagram of the frame dropping duration of the target scene in the preset time period;
and determining the wave peak value in the normal distribution graph as the frequency raising duration of the target scene.
5. The method for processing a scene picture according to any one of claims 2 to 4, wherein before the obtaining of the frame-dropping information recorded within a preset time period, the method further comprises:
and under the condition that a frame drop problem exists in the operation process of the foreground application program, recording frame drop information corresponding to the foreground application program.
6. A scene picture processing apparatus, comprising: the device comprises an acquisition module, a processing module and a display module;
the acquisition module is used for acquiring a target frequency-raising parameter matched with a target scene under the condition that the electronic equipment is in the target scene;
the processing module is used for processing the scene picture of the target scene by adopting the target frequency-raising parameter;
the display module is used for displaying the processed scene picture;
wherein the target frequency-raising parameter comprises: frequency boosting and frequency boosting duration.
7. The scene picture processing apparatus according to claim 6,
the acquisition module is further used for acquiring frame dropping information recorded in a preset time period, wherein the frame dropping information comprises a frame dropping scene and frame dropping severity;
the processing module is further configured to screen N scenes from the M dropped-frame scenes according to the drop-frame severity; determining a frequency boosting parameter matched with each scene in the N scenes;
wherein the N scenes comprise the target scene, and the N scenes satisfy at least one of the following conditions: the frame dropping severity corresponding to each scene in the N scenes is greater than a first threshold value; or the frame drop severity corresponding to the N scenes is greater than the frame drop severity corresponding to other (M-N) scenes, and the frame drop severity includes at least one of the following: the frame dropping frequency, the frame dropping duration, the number of dropped frames and the number of dropped frames M, N are integers greater than or equal to 0, and M is greater than or equal to N.
8. The scene picture processing apparatus according to claim 7, wherein the frame drop severity includes the frame drop frequency, the frame drop duration, and the frame drop number, and the target frequency-boosting parameter includes the frequency-boosting frequency;
the processing module is specifically configured to determine a frame dropping frequency average value, a frame dropping time average value and a frame dropping number average value of the target scene in the preset time period according to the frame dropping frequency, the frame dropping time length and the frame dropping number; determining the number of full frame frames of the target scene according to the frame dropping time average value; and determining the frequency boosting frequency of the target scene according to the frame dropping frequency average value, the frame dropping quantity average value and the full frame number.
9. The scene picture processing apparatus according to claim 7, wherein the frame drop severity includes the frame drop duration, and the frequency boost parameter includes the frequency boost duration;
the processing module is specifically configured to determine a normal distribution map of the frame dropping duration of the target scene within the preset time period; and determining the wave peak value in the normal distribution graph as the frequency raising duration of the target scene.
10. The scene picture processing apparatus according to any one of claims 7 to 9, wherein the processing module is further configured to record, in a case that a frame drop problem exists during a running process of a foreground application, frame drop information corresponding to the foreground application.
CN202210217557.5A 2022-03-07 2022-03-07 Scene picture processing method and electronic equipment Pending CN114638742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210217557.5A CN114638742A (en) 2022-03-07 2022-03-07 Scene picture processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210217557.5A CN114638742A (en) 2022-03-07 2022-03-07 Scene picture processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114638742A true CN114638742A (en) 2022-06-17

Family

ID=81948838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210217557.5A Pending CN114638742A (en) 2022-03-07 2022-03-07 Scene picture processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114638742A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089096A (en) * 2023-04-09 2023-05-09 荣耀终端有限公司 Load resource scheduling method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089096A (en) * 2023-04-09 2023-05-09 荣耀终端有限公司 Load resource scheduling method and electronic equipment
CN116089096B (en) * 2023-04-09 2023-09-01 荣耀终端有限公司 Load resource scheduling method and electronic equipment

Similar Documents

Publication Publication Date Title
CN108090497B (en) Video classification method and device, storage medium and electronic equipment
CN102087575A (en) Electronic device and method for dynamic arrangement of icons
CN107870999B (en) Multimedia playing method, device, storage medium and electronic equipment
CN111816139A (en) Screen refresh rate switching method and electronic equipment
CN112714253A (en) Video recording method and device, electronic equipment and readable storage medium
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN110166696B (en) Photographing method, photographing device, terminal equipment and computer-readable storage medium
CN109358927B (en) Application program display method and device and terminal equipment
CN114638742A (en) Scene picture processing method and electronic equipment
CN104581224A (en) Play content switching method and device and terminal
CN113938551A (en) Caching method and device and electronic equipment
CN113709565B (en) Method and device for recording facial expression of watching video
CN115550741A (en) Video management method and device, electronic equipment and readable storage medium
CN115543137A (en) Video playing method and device
CN113849721A (en) Buffer processing method and device
CN112835544A (en) Display method, display device, electronic device, and storage medium
CN111858395B (en) Data management method and device
CN112202958B (en) Screenshot method and device and electronic equipment
CN117640819A (en) Image display method and device, electronic equipment and readable storage medium
CN114302026A (en) Noise reduction method and device, electronic equipment and readable storage medium
CN115631109A (en) Image processing method, image processing device and electronic equipment
CN116074580A (en) Video processing method and device
CN115793920A (en) Screenshot method and screenshot device
CN117453329A (en) Image display method, display device and electronic equipment
CN116756056A (en) Memory recycling method and device, electronic equipment and storage medium

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