CN109151966B - Terminal control method, terminal control device, terminal equipment and storage medium - Google Patents

Terminal control method, terminal control device, terminal equipment and storage medium Download PDF

Info

Publication number
CN109151966B
CN109151966B CN201811197800.1A CN201811197800A CN109151966B CN 109151966 B CN109151966 B CN 109151966B CN 201811197800 A CN201811197800 A CN 201811197800A CN 109151966 B CN109151966 B CN 109151966B
Authority
CN
China
Prior art keywords
video
processing unit
bullet screen
load rate
power consumption
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
CN201811197800.1A
Other languages
Chinese (zh)
Other versions
CN109151966A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811197800.1A priority Critical patent/CN109151966B/en
Publication of CN109151966A publication Critical patent/CN109151966A/en
Application granted granted Critical
Publication of CN109151966B publication Critical patent/CN109151966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4314Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a terminal control method, a terminal control device, terminal equipment and a storage medium, which are applied to the technical field of terminal equipment. The terminal control method comprises the following steps: detecting the current video playing state; when the current video playing state is detected, detecting whether bullet screen data exist in the played video or not in the video playing process; and if the bullet screen data does not exist, performing power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor. The method can reduce the power consumption of the terminal equipment in the video playing process.

Description

Terminal control method, terminal control device, terminal equipment and storage medium
Technical Field
The present application relates to the technical field of terminal devices, and in particular, to a terminal control method, apparatus, terminal device, and storage medium.
Background
Terminal devices, such as computers and mobile phones, have become one of the most common consumer electronic products in people's daily life. With the development of terminal devices, more and more users use the terminal devices to play videos, but when the terminal devices are used to play videos, large power consumption is usually generated.
Disclosure of Invention
In view of the foregoing problems, the present application provides a terminal control method, an apparatus, a terminal device, and a computer readable storage medium, so as to reduce power consumption of the terminal device in a video playing process.
In a first aspect, an embodiment of the present application provides a terminal control method, where the method includes: detecting the current video playing state; when the current video playing state is detected, detecting whether bullet screen data exist in the played video or not in the video playing process; and if the bullet screen data does not exist, performing power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor.
In a second aspect, an embodiment of the present application provides a terminal control apparatus, where the apparatus includes: the system comprises a play detection module, a bullet screen detection module and a power consumption processing module, wherein the play detection module is used for detecting the current video play state; the bullet screen detection module is used for detecting whether bullet screen data exist in the played video or not in the video playing process when the bullet screen detection module detects that the current video is in a video playing state; and the power consumption processing module is used for reducing the power consumption of the central processing unit and/or the image processor if the bullet screen data does not exist.
In a third aspect, an embodiment of the present application provides a terminal device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the terminal control method provided by the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the terminal control method provided in the first aspect.
Compared with the prior art, the scheme provided by the application detects the current video playing state, detects whether the played video has the bullet screen data or not in the video playing process when the current video playing state is detected, and reduces the power consumption reduction processing of the working frequency of the central processing unit and/or the image processor if the bullet screen data exists, so that the power consumption reduction processing can be performed when no bullet screen data exists when the video is played by the terminal equipment, and the effect of reducing the power consumption of the terminal equipment in the video playing process is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only 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 shows a block diagram of a video playing architecture provided according to an embodiment of the present application.
Fig. 2 shows a flowchart of a terminal control method according to an embodiment of the present application.
Fig. 3 shows a flowchart of a terminal control method according to another embodiment of the present application.
Fig. 4 shows a flowchart of a terminal control method according to yet another embodiment of the present application.
Fig. 5 shows a block diagram of a terminal control device according to an embodiment of the present application.
Fig. 6 is a block diagram illustrating a bullet screen detecting module in a terminal control device according to an embodiment of the present application.
Fig. 7 shows a block diagram of a power consumption processing module in a terminal control apparatus according to an embodiment of the present application.
Fig. 8 shows another block diagram of a terminal control device according to an embodiment of the present application.
Fig. 9 is a block diagram of a terminal device for executing a terminal control method according to an embodiment of the present application.
Fig. 10 is a storage unit for storing or carrying a program code implementing a terminal control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Currently, most terminal devices, such as computers, mobile phones, tablet computers, and the like, can play videos. When the terminal device plays the video, the operating system of the terminal device can analyze the audio and video data after acquiring the video data to be played. Generally, a video file is composed of two parts, namely a video stream and an audio stream, and the packaging formats of audio and video in different video formats are different. The process of synthesizing files of audio streams and video streams is called muxer (merge file). The inverse process of muxer corresponds to the process of separating audio and video streams from a media file is called demux (separation file). When playing a video file, an audio stream and a video stream need to be separated from a file stream and decoded respectively, a decoded video frame can be directly rendered, an audio frame can be sent to a buffer area of audio output equipment for playing, and certainly, timestamps of video rendering and audio playing need to be controlled to be synchronous.
The video decoding may include hard decoding and soft decoding, the hardware decoding is performed by submitting a part of video data, which is originally completely processed by a Central Processing Unit (CPU), to an image processor (GPU), and the parallel computing capability of the GPU is much higher than that of the CPU, so that the load on the CPU can be greatly reduced, and some other programs can be simultaneously run after the CPU has a low occupancy rate. Of course, for better performing processors, software decoding may also be used, i.e. decoding by a decoding software program in the CPU.
Referring to fig. 1, a block diagram of a video playback architecture of a terminal device is shown. When the player adopts a hard decoding player, a Media Framework (multimedia Framework) acquires a Video file to be played by a client through an API interface of the client of the player, and decodes the Video file by a Video decoder to obtain decoded Video data, that is, image data to be rendered. The Media frame is a multimedia Framework in an Android system, and may include three parts, namely, a MediaPlayer (Media player), a mediaplayservice (Media player service), and a stagefrigidplayer. Specifically, the multimedia framework part adopts a C/S structure, the MediaPlayer is used as a Client (Client) end of the C/S structure, the MediaPlayer service and the stagefrigliplayyer are used as a C/S structure Server (service) end, the responsibility of playing the multimedia file is born, and the Server end completes the request of the Client end and responds through the stagefrigliplayer. The Video decoder is a decoder that can Decode audio data as well as Video data, and decodes the Video data. After the Video Decode decodes the Video file, the decoded Video data may be transmitted to a surface flag (layer delivery module) through a Video driver for rendering and displaying on a screen. The Surface flunger is an independent Service, which receives Surface layers of all windows as input, calculates the position of each Surface in a final composite image according to parameters such as ZOrder, transparency, size, position and the like, and then sends the position to HWComposer or OpenGL (Open Graphics Library) to generate a final display Buffer, and then displays the final display Buffer on a specific display device.
When the player adopts soft decoding, the CPU decodes the video through software, and the GPU is called to render and combine the video after decoding, and then the video is displayed on a screen. And hard decoding means that the video decoding task is independently completed through a special daughter card device without the aid of a CPU.
In the embodiment of the application, the terminal device can perform display enhancement processing of video playing in the video playing process. Specifically, after the decoded Video data is obtained through hard decoding or soft decoding, the decoded Video data is used as image data to be rendered, and when the image data to be rendered is sent to the surface flag, the image data to be rendered may be intercepted and optimized by an HQV (Hollywood Quality Video) algorithm module, and then sent to the surface flag for rendering and subsequent display operations on a screen. The HQV algorithm module is used for storing the image data to be rendered to the off-screen rendering buffer area, and then performing display enhancement processing of optimization operations such as exposure enhancement, denoising, edge sharpening, contrast increase and saturation increase on the image of the multi-frame image data in the off-screen rendering buffer area, and then transmitting the processed image to the surface flicker for rendering and subsequent optimization operations on the screen, so that the displayed video image achieves the effect of super-definition effect. Specifically, the surface flunger may call the GPU to render and synthesize the image data, and then put the rendered result into a frame buffer, and then the video controller reads the data in the frame buffer, and transmits the data to the display through digital-to-analog conversion, thereby enhancing the display of the video display.
However, the inventors have found through research that, when performing display enhancement in the video playing process, power consumption is increased compared with the case of performing display after directly rendering a video file after decoding the video file. Therefore, in view of the technical problem, the inventor has studied and proposed a terminal control method, an apparatus, a terminal device and a computer readable storage medium provided in the embodiments of the present application for a long time, and detects whether bullet screen data exists in a played video in a video playing process, so as to perform power consumption reduction processing for reducing the operating frequency of a central processing unit and/or an image processor when no bullet screen data exists, so as to reduce power consumption in the video playing process.
The following describes a terminal control method according to an embodiment of the present application in detail.
Referring to fig. 2, an embodiment of the present application provides a terminal control method, which is applicable to a terminal device, and the terminal control method may include:
step S110: the current video playing state is detected.
In the process of playing video by the terminal device, large power consumption is usually generated to ensure the playing effect of the video. Therefore, relevant power consumption reduction processing can be carried out in some cases during video playing so as to reduce the power consumption of the terminal equipment.
In the embodiment of the application, the current video playing state of the terminal device can be detected, so that when the terminal device is currently in the video playing state, the condition that the power consumption can be reduced in the video playing process is detected, and relevant power consumption reduction processing is performed. As one way, detecting the video playing state may be to detect whether a video playing architecture of the terminal device works to determine whether the terminal device is currently in the video playing state, that is, when the video playing architecture works, it is determined that the terminal device is in the video playing state. In addition, whether a related module used during video playing works or not may be detected to determine whether the terminal device is in a playing state, for example, when detecting that a video decoder, a layer transfer module, a video player, and the like are in a working state, it is detected that the terminal device is currently in a video playing state. Of course, the specific manner of detecting whether the current state is in the playing state is not limited in the embodiment of the present application.
Step S120: when the current video playing state is detected, whether barrage data exist in the played video is detected in the video playing process.
The reason why the terminal device generates large power consumption when playing video is that a large number of system resources are required, so that a large number of tasks are executed by the processor and the operating frequency of the processor is required to be high. Furthermore, when some playing applications of the terminal device play videos, the playing applications have a bullet screen function, so that the bullet screen and the video images can be displayed together. When the video image and the barrage need to be displayed together, the central processing unit needs to process the data of the barrage, and the image processor is used for rendering the barrage and the video image into the same image and then displaying the same image on the screen, so that the processor is required to execute more tasks, and the working frequency of the central processing unit and the working frequency of the image processor are required to be higher. The bullet screen data are data which are acquired by a playing application program from a video source server or a bullet screen server and used for rendering a bullet screen for display, and the playing application program of the terminal equipment can draw the bullet screen by utilizing the bullet screen data after obtaining the bullet screen data, and finally, the bullet screen data and the video image are synthesized into the same image for display. When the barrage is not drawn, the number of tasks to be executed by the processor is relatively small, so that the operating frequency of the central processor and the operating frequency of the image processor are relatively low. Therefore, when video playing with bullet screen display is available, if the central processing unit and the image processor of the terminal device use the same working parameters under the condition of displaying bullet screen data and displaying no bullet screen data, resource waste can be caused when displaying no bullet screen data.
Therefore, in the video playing process, the related processing can be performed on the condition that the barrage drawing is not needed, so that the system power consumption in the video playing process is reduced.
In the embodiment of the application, when it is detected that the video is currently in a video playing state, in the video playing process, whether barrage data exists in the played video or not can be detected.
In one embodiment, when detecting whether the played video has bullet screen data, the bullet screen function of the application program currently playing the video may be detected to determine whether the played video has bullet screen data. Whether the identification of the barrage function of the application program is the identification for representing the opening of the barrage function or not can be detected so as to determine whether the barrage function of the application program of the current playing video is opened or not. For example, if the identifier of the barrage function of the application program playing video is 0, the barrage function representing the application program is not opened, and if the identifier of the barrage function of the application program playing video is 1, the barrage function representing the application program is opened. Of course, whether the bullet screen function of the application program is started or not can also be determined by detecting whether the data interface corresponding to the bullet screen function of the currently played application program and acquiring the bullet screen data from the bullet screen server is started or not. The method for specifically detecting the bullet screen function of the application program currently playing the video may not be limited in this embodiment of the application.
Further, when it is detected that the barrage function of the application program currently playing the video is not turned on, the application program currently playing the video does not acquire barrage data from the video source server, and therefore it can be determined that the played video does not have barrage data, that is, the barrage data is not currently drawn and the barrage is displayed together with the video image.
When detecting that the barrage function of the application program playing the video currently is started, detecting the barrage data to determine whether the barrage data exists in the played video.
When the barrage function of the application program playing the video currently is started, detecting the barrage data may be that whether a data interface, corresponding to the barrage function of the application program playing the video currently, acquiring the barrage data from a barrage server receives data of a target size or not is detected, and when the data of the target size is received, determining that the barrage data exists in the played video, that is, the barrage data is currently drawn to display the barrage together with the video image; otherwise, when the data of the target size is not received, it is determined that the played video does not have bullet screen data, that is, the bullet screen data is not currently drawn, so that the bullet screen and the video image are displayed together. The target size may be a possible size range of the bullet screen data, and the specific target size may not be limited in this embodiment of the application.
When the barrage function of the application program playing the video at present is started, the barrage data may be detected, in the process of rendering, synthesizing and displaying the data of the video image, the view (scene) corresponding to the barrage is detected to determine whether the played video has the barrage data. It can be understood that when the terminal device renders and synthesizes the video image data and/or the barrage data and displays the video image data and/or the barrage data, different layers corresponding to the video image and the barrage are synthesized into the same image to be displayed, so that the specific views corresponding to the layers are different, and according to the view in the data used during rendering and synthesizing, whether the barrage data exists can be determined. That is, when it is detected that a view corresponding to a scene exists during rendering and composition, it can be determined that the played video has bullet screen data, that is, bullet screen data is currently drawn so that a bullet screen is displayed together with a video image; when it is detected that the view corresponding to the scene does not exist during rendering and composition, it can be determined that the played video does not have bullet screen data, that is, the bullet screen data is not currently drawn, so that the bullet screen and the video image are displayed together.
Of course, when the barrage function of the application program currently playing the video is turned on, the method for detecting the barrage data may not be limited in this embodiment of the application. It should be noted that, when the video image corresponding to the played video has the bullet screen content, for example, a screen recording file, since the bullet screen content is the content in the video image, it should be detected that the played video does not have bullet screen data in the above manner.
In this embodiment of the present application, it is also possible to directly detect whether the played video has bullet screen data according to the method for detecting bullet screen data when the bullet screen function of the application program currently playing the video is turned on.
Therefore, according to the detection of whether the played video has the bullet screen data or not, the result that the played video has the bullet screen data or the result that the played video does not have the bullet screen data can be obtained, so that according to the detected result that the played video does not have the bullet screen data, corresponding power consumption reduction processing is carried out subsequently, resource waste is avoided, and power consumption is reduced.
Step S130: and if the bullet screen data does not exist, performing power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor.
In the embodiment of the present application, since the tasks that need to be executed by the processor are relatively few, the operating frequency of the central processing unit and the operating frequency of the image processor are required to be relatively low, and if the central processing unit and the image processor of the terminal device use the same operating parameters under the condition of displaying the bullet screen data and displaying the bullet screen-free data, the resource waste can be caused when the bullet screen-free data is displayed. Therefore, when the played video does not have bullet screen data, the power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor can be carried out.
It can be understood that, due to the development of science and technology, the maximum working frequency of the central processing units of most of the terminal devices and the maximum working frequency of the image processors are higher at present, and most of the central processing units are multi-core processors, when the barrage data does not exist in the played video, if the working frequencies of the central processing units and the image processors adopt the working frequency when the barrage data exists, the resource waste is generated, and the power consumption is higher. Therefore, when the played video does not have bullet screen data, the power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor is carried out.
Therefore, when the played video does not have the bullet screen data, after the power consumption reduction processing is carried out, the working frequency of the central processing unit and/or the image processor of the terminal device can be reduced when the bullet screen data does not exist, so that the power consumption of the central processing unit and/or the image processor of the terminal device is lower compared with the power consumption of the central processing unit and/or the image processor of the terminal device when the bullet screen data exists.
According to the terminal control method provided by the embodiment of the application, when the current video playing state is detected, whether barrage data exists in the played video is detected in the video playing process, and when the barrage data exists in the played video, power consumption reduction processing of the working frequency of a central processing unit and/or an image processor of a central processing unit end device of the terminal device can be performed, so that the effect of reducing power consumption in the video playing process is achieved, and the cruising ability of the terminal device and the user experience of a user are improved.
Referring to fig. 3, another embodiment of the present application provides a terminal control method, which is applicable to a terminal device, and the terminal control method may include:
step S210: the current video playing state is detected.
In the embodiment of the present application, step S210 may refer to the contents in the above embodiments, and is not described herein again.
Step S220: when the video playing state is detected, whether the played video is subjected to display enhancement processing or not is detected in the video playing process, wherein the display enhancement processing comprises processing the played video by using a preset image processing algorithm.
In the embodiment of the present application, when it is detected that the video is currently in a video playing state, power consumption reduction processing for reducing the operating frequency of the central processing unit and/or the image processor is performed in a video playing process, where the power consumption reduction processing may be performed when bullet screen data does not exist in a played video under the condition that display enhancement processing is performed on the played video. The display enhancement processing comprises processing the played video by utilizing a preset image processing algorithm. The preset image processing algorithm may be the HQV algorithm, which may enable a subsequently played video to achieve an effect of super-resolution visual effect, and of course, the specific preset image processing algorithm may not be limited in this embodiment, and may also be other algorithms that process the video to improve the playing effect of the video.
It can be understood that, in the process of playing the video by the terminal device, when the display enhancement is performed, because tasks processed by the central processing unit and the image processor are required, compared with the tasks processed by the central processing unit and the image processor when the display is performed after the video file is directly rendered after being decoded, the power consumption of the terminal device is larger when the display enhancement processing is performed on the played video in the process of playing the video. Therefore, under the condition of enhancing the display of the played video, when the played video does not have bullet screen data, the power consumption reduction processing can be carried out.
In the embodiment of the present application, it may be detected whether the display enhancement processing is currently performed on the played video in the process of playing the video by the terminal device. As one mode, a system interface of the terminal device may be provided with a switch button for display enhancement of video playing, and a user may turn on or off the display enhancement function of video playing through the switch button. By detecting whether the switch button for enhancing the display of the video playing is turned on, when the switch button is turned on, the function of enhancing the display of the video playing is turned on, that is, when the video is played currently, the display enhancement processing is performed on the played video; when the switch button is turned off, the function of enhancing the display of the video playing is turned off, that is, when the video is played currently, the display enhancement processing is not performed on the played video. As another mode, when the display enhancement processing in video playing is performed, the HQV algorithm module is called to perform optimization operation on the decoded video image data, so as to achieve display enhancement of the played video. Therefore, by detecting whether the HQV algorithm module is called or not, if the HQV algorithm module is called, the played video is subjected to display enhancement processing when the video is currently played; if the HQV algorithm module is not called, it indicates that the video being played is not being subjected to display enhancement processing when the video is currently being played. Of course, the specific manner of detecting whether to perform the display enhancement processing on the played video is not limited in the embodiment of the present application.
Therefore, the result of the display enhancement processing of the currently played video or the result of the display enhancement processing of the currently played video can be detected, so as to determine whether to further detect the bullet screen data of the played video according to the detection result.
Step S230: and if the display enhancement processing is carried out on the played video, detecting whether bullet screen data exists in the played video.
In this embodiment of the present application, if it is detected in step S210 that the currently played video is subjected to the display enhancement processing, it may be detected whether the played video has bullet screen data. The specific manner of detecting whether the played video has the bullet screen data may be a manner of detecting whether the bullet screen function of the application program for playing the video is turned on in the above embodiment, and whether the played video has the bullet screen data may be determined.
Step S240: and if the bullet screen data does not exist, performing power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor.
In this embodiment, if it is detected in step S230 that the played video does not have bullet screen data, the operation of power consumption reduction processing may be performed. That is, if the bullet screen function of the application program currently performing video playing is not turned on, or the bullet screen function of the application program is turned on but bullet screen data is not received, the operation of reducing the power consumption of the central processing unit and/or the image processor is performed.
In the embodiment of the present application, performing the power consumption reduction process for reducing the operating frequency of the central processing unit and/or the image processing unit may include: controlling a first central processor core of the central processor to close, reducing the working frequency of a second central processor core of the central processor, and reducing the working frequency of the image processor, wherein the working frequency of the first central processor core is greater than the working frequency of the second central processor core.
It is understood that the central processing unit of the terminal device is a multi-core central processing unit, and the processor cores of the multi-core processor may include a first central processor core and a second central processor core, and the operating frequency of the first central processor core is greater than that of the second central processor core, i.e., the processor cores of the multi-core processor may be divided into a large core and a small core, the large core refers to the central processor core with a high operating frequency, and the small core refers to the central processor core with a low operating frequency. For example, the central processing unit of the terminal device is an eight-core central processing unit, and the central processor core of the eight-core central processing unit is divided into four large cores and four small cores, i.e., four first central processor cores and four second central processor cores. When the power consumption reduction processing is performed, at least one of the modes of closing the first central processing unit core, reducing the working frequency of the second central processing unit core and reducing the working frequency of the image processor can be selected according to the power consumption reduction processing method corresponding to the specific application identifier, so that the power consumption of the central processing unit and/or the image processor is reduced, and the effect of reducing the power consumption of the terminal equipment is achieved.
In the embodiment of the present application, because different applications occupy different resources for the central processing unit and the image processor, that is, the load ratios of the central processing unit and the image processor will be different when the different applications run, different power consumption reduction processing methods can be adopted according to the different applications.
Specifically, the identity of the application program may be obtained to be used for subsequently determining the power consumption reduction processing method corresponding to the identity of the application program to perform power consumption reduction processing. The identifier of the application program may be a name or a package name of the application program, and is used to represent the identity information of the application program, that is, according to the obtained identifier, it can be known which application program the video currently playing is specific.
In this embodiment of the present application, the terminal device may store a set power consumption reduction processing method corresponding to the identity of different application programs. According to the obtained identity of the application program playing the video, a set power consumption reduction processing method corresponding to the identity can be obtained.
In the embodiment of the present application, the set power consumption reduction processing method corresponding to the identity identifiers of different application programs stored in the terminal device may be obtained through experiments. Specifically, when different video playing applications are tested to play videos under the condition of bullet screen data, the load rates of the central processing unit and the image processor are measured, and when the different video playing applications are tested to play videos under the condition of no bullet screen data, the load rates of the central processing unit and the image processor are measured, so that the working frequency of the central processing unit and the working frequency of the image processor required by each application when no bullet screen data exists are determined.
Further, the central processor core of the central processing unit can be controlled by hot-plug driver and DVFS driver in Kernel (real-time operating system). The hot-plug driver is used for controlling the core number of the central processing unit in the switch, namely controlling the opening and closing of the central processing unit core, and the DVFS driver is used for adjusting the frequency of the central processing unit core.
For example, in some video playing applications, the number of tasks that the cpu is required to execute is small, and the number of tasks that the image processor is required to process is large, so the first cpu core may be turned off, and/or the operating frequency of the second cpu core may be reduced, and specifically, the extent to which the operating frequency of the second cpu core is reduced may be set according to actual requirements. As a mode, the operating frequency of the second central processing unit core may be reduced to a certain range higher than the operating frequency required by the application program to play the video without the barrage data, so as to avoid that the load ratio of the central processing unit is too high, which may cause a video to be jammed or the application program to crash.
For another example, in some video playing applications, the number of tasks that the central processing unit is required to perform is large, and the number of tasks that the image processor is required to process is small, so that the operating frequency of the second central processing unit core can be reduced, and the operating frequency of the image processor can be reduced. Similarly, the degree to which the operating frequency of the second cpu core and the operating frequency of the image processor are reduced may be set according to actual requirements. As a way, the working frequency of the second central processing unit core and the working frequency of the image processor may be reduced to a certain range higher than the working frequency required by the application program to play the video without the barrage data, so as to avoid the video playing jamming or the application program crashing due to the too high load rate of the central processing unit.
For another example, in some applications, there are fewer tasks that need to be performed by the central processing unit and fewer tasks that need to be processed by the image processor, so that only the first central processing unit core may be turned off, the operating frequency of the second central processing unit core may be reduced, and the operating frequency of the image processor may be reduced. Similarly, the degree to which the operating frequency of the second cpu core and the operating frequency of the image processor are reduced may be set according to actual requirements.
Of course, the specific manner of performing the power consumption reduction processing is only an example, and does not represent a limitation on the specific manner of performing the power consumption reduction processing according to the power consumption reduction processing method corresponding to the identity of the application program in the embodiment of the present application.
In this embodiment, the terminal control method may further include: and when detecting that the played video has bullet screen data, closing the power consumption reduction processing.
It can be understood that after the power consumption reduction processing operation is performed, bullet screen data may exist in a subsequently played video, that is, subsequently received bullet screen data and a video image are rendered and synthesized together into a same image for display, and at this time, the operating frequency of the central processing unit and the image processor is high, so that the power consumption reduction processing is turned off to avoid that the load of the central processing unit and the image processor is too high, which causes jamming, breakdown, and the like, and damages to the terminal device. Specifically, whether the played video has the bullet screen data or not can be detected in real time by the method for detecting whether the played video has the bullet screen data or not, which is not described herein again.
According to the terminal control method provided by the embodiment of the application, when barrage data exists in the played video under the condition that the played video is displayed and enhanced in the video playing process, power consumption reduction processing is performed by at least one of controlling the first central processor core of the central processing unit to be closed, reducing the working frequency of the second central processor core of the central processing unit and reducing the working frequency of the image processor, so that the power consumption of the terminal equipment in the video playing display enhancing process is reduced, and the cruising ability of the terminal equipment is improved.
Referring to fig. 4, another embodiment of the present application provides a terminal control method, which is applicable to a terminal device, and the method may include:
step S310: the current video playing state is detected.
Step S320: when the video playing state is detected, whether the played video is subjected to display enhancement processing or not is detected in the video playing process, wherein the display enhancement processing comprises processing the played video by using a preset image processing algorithm.
Step S330: and if the display enhancement processing is carried out on the played video, detecting whether bullet screen data exists in the played video.
In the embodiment of the present application, the contents of step S310 and step S330 may refer to the contents of the above embodiments, and are not described in detail herein.
Step S340: and if the bullet screen data does not exist, detecting the load condition of the central processing unit to obtain the current load rate of the central processing unit.
In this embodiment of the application, when it is detected in step S330 that the bullet screen data does not exist in the played video, the load condition of the central processing unit may be detected to obtain the current load rate of the central processing unit, so as to facilitate subsequent power consumption reduction processing for reducing the operating frequency of the central processing unit and/or the image processor according to the current load rate. For example, when the operating system of the terminal device is an Android system, the load condition and the process time of the system can be obtained through a ProcessStats class in the Android system. The specific implementation principle is that files under the proc directory are read, when the system runs, the kernel can update the files under the proc directory, and the running condition of the PID is written into the corresponding files. The current load rate of the central processing unit can be obtained by obtaining the ratio of the current load of the central processing unit to the maximum load of the central processing unit. Of course, the above manner of obtaining the current load factor of the central processing unit is not limited in the implementation of the present application.
Step S350: and judging whether the current load rate is smaller than a first load rate.
After the current load rate of the central processing unit of the terminal device is obtained, power consumption reduction processing for reducing the operating frequency of the central processing unit and/or the image processor can be performed according to the current load rate.
In this embodiment of the present application, the load ratios of the central processing units may be divided into a plurality of levels, where a load ratio smaller than the first load ratio is in a first level, a load ratio between the first load ratio and the second load ratio is in a second level, and a load ratio larger than the second load ratio is in a third level, where the second load ratio is larger than the first load ratio. When the load rate is a first level, the load rate indicates that the load of the current central processing unit is in a very low condition, that is, the number of tasks required to be executed by the central processing unit is very small, that is, the current thread number is very low; when the load rate is the second level, the load rate indicates that the load of the current central processing unit is in a lower condition, that is, the number of tasks required to be executed by the central processing unit is less, that is, the current thread number is lower, but more tasks are required to be executed by the central processing unit than in the first level, and the thread number is also higher than in the first level; when the load rate is the third level, it indicates that the load of the current cpu is in a higher condition, that is, more tasks need to be executed by the cpu, that is, the current thread count is more.
Further, it may be determined whether the obtained current load factor of the central processing unit is smaller than the first load factor, so as to perform power consumption reduction processing for reducing the operating frequency of the central processing unit and/or the image processor according to the determination result.
Step S360: if the current load rate is less than the first load rate, controlling a first central processor core of the central processor to close, reducing the working frequency of a second central processor core to a first preset frequency corresponding to the current load rate, and reducing the working frequency of an image processor, wherein the working frequency of the first central processor core is greater than the working frequency of the second central processor core.
It can be understood that when the current load rate of the central processing unit is less than the first load rate, that is, the current load rate is at the first level, it may indicate that the current load of the central processing unit is very low, that is, the tasks that need to be executed by the central processing unit are very few, and therefore the operating frequency of the central processing unit needs to be low. That is, the operating frequency of the central processing unit can be currently reduced to a very low level.
In this embodiment, the central processing unit of the terminal device is a multi-core central processing unit, and the processor cores of the multi-core central processing unit may include a first central processor core and a second central processor core, and the operating frequency of the first central processor core is greater than the operating frequency of the second central processor core, that is, the processor cores of the multi-core central processing unit may be divided into a large core and a small core, where the large core refers to the central processor core with a high operating frequency, and the small core refers to the central processor core with a low operating frequency.
Therefore, the first central processor core can be controlled to be closed, the working frequency of the second central processor core is reduced to the first preset frequency corresponding to the current load rate, and the working frequency of the image processor is reduced. The terminal device may store a corresponding relationship between the load rate of the central processing unit and the operating frequency of the second central processing unit core when the load rate of the central processing unit is smaller than the first load rate. The corresponding relation can be obtained through experiments, namely the running condition of executing the task only by the working frequency of the second central processing unit core after the first central processing unit core is closed. The specific corresponding relationship between the load rate and the operating frequency of the second central processing unit core may not be limited in this embodiment, and the first operating frequency may be a frequency higher than the operating frequency required by the application program when playing the video without the barrage data. That is to say, the operating frequency of the second central processing unit core can be reduced to a certain range higher than the operating frequency required by the load rate of the application program when playing the video without the barrage data, so as to avoid the situation that the load rate of the central processing unit is too high, which causes the video playing to be blocked or the application program to crash. Therefore, when the current load rate is lower than the first load rate, the power consumption of the central processing unit and the image processor is reduced, and the effect of reducing the power consumption of the terminal equipment is achieved.
Step S370: and if not, judging whether the current load rate is smaller than a second load rate which is larger than the first load rate.
In the embodiment of the present application, when it is determined that the current load rate of the central processing unit is not less than the first load rate, it may be determined whether the current load rate of the central processing unit is less than the second load rate, so as to perform power consumption reduction processing according to the determination result.
Step S380: and if the current load rate is less than the second load rate, reducing the working frequency of the second central processor core to a second preset frequency corresponding to the current load rate, and reducing the working frequency of the image processor.
It can be understood that, when it is determined that the current load rate of the central processing unit is smaller than the second load rate, that is, the current load rate is in the second level, and the load of the current central processing unit is in a lower condition, that is, the number of tasks that the central processing unit needs to execute is smaller, that is, the current thread number is lower, but more tasks need to be executed by the central processing unit than in the first level, and the thread number is also higher than in the first level. Therefore, the operating frequency of the second central processor core can be only reduced to the second preset frequency corresponding to the current load rate, and the operating frequency of the image processor is reduced. The terminal device may store a corresponding relationship between the load rate of the central processing unit and the operating frequency of the second central processing unit core when the load rate of the central processing unit is smaller than the second load rate. The corresponding relation can be obtained through experiments, namely the running condition of the task executed by the central processing unit after the working frequency of the second central processing unit core is reduced when the first central processing unit core is started. The specific corresponding relationship between the load rate and the operating frequency of the second central processing unit core may not be limited in this embodiment, and the second operating frequency may be a frequency higher than the operating frequency required by the application program when playing the video without the barrage data. That is to say, the operating frequency of the second central processing unit core can be reduced to a certain range higher than the operating frequency required by the load rate of the application program when playing the video without the barrage data, so as to avoid the situation that the load rate of the central processing unit is too high, which causes the video playing to be blocked or the application program to crash. Therefore, when the current load rate is not lower than the first load rate but lower than the second load rate, the power consumption of the central processing unit and the image processor is reduced, and the effect of reducing the power consumption of the terminal equipment is achieved.
Step S390: and if the load factor is not less than the second load factor, reducing the working frequency of the image processor.
It can be understood that, if it is determined that the current load rate of the central processing unit is not less than the second load rate, that is, the current load rate is at the third level, which indicates that the load of the current central processing unit is in a higher condition, that is, more tasks need to be executed by the central processing unit, that is, more threads are currently executed. Therefore, the working frequency of the image processor can be only reduced, and the working frequency of the central processing unit is not adjusted, so that the normal operation of the system of the terminal equipment is ensured, and the jamming or breakdown and the like are avoided. Therefore, when the current load rate is not lower than the second load rate, the power consumption of the image processor is reduced, and the effect of reducing the power consumption of the terminal equipment is achieved.
In this embodiment, the terminal control method may further include: and when detecting that the played video has bullet screen data, closing the power consumption reduction processing.
It can be understood that after the power consumption reduction processing operation is performed, bullet screen data may exist in a subsequently played video, that is, subsequently received bullet screen data and a video image are rendered and synthesized together into a same image for display, and at this time, the operating frequency of the central processing unit and the image processor is high, so that the power consumption reduction processing is turned off to avoid that the load of the central processing unit and the image processor is too high, which causes jamming, breakdown, and the like, and damages to the terminal device.
According to the terminal control method provided by the embodiment of the application, when the terminal device is detected to be in a video playing state at present, in the video playing process, under the condition that the played video is displayed and enhanced, and bullet screen data exist in the played video, the current load rate of the central processing unit is obtained, and the power consumption of the central processing unit and/or the image processor is reduced according to the current load rate of the central processing unit, so that the power consumption of the terminal device in the video playing display enhancement process is reduced, and the cruising ability of the terminal device is improved.
Referring to fig. 5, a terminal control apparatus 400 according to an embodiment of the present application is shown, where the apparatus 400 includes: a play detection module 410, a bullet screen detection module 420 and a power consumption processing module 430. The playing detection module is used for detecting the current video playing state; the bullet screen detection module 420 is configured to detect whether bullet screen data exists in a played video in a video playing process when detecting that the video is currently in a video playing state; the power consumption processing module 430 is configured to perform power consumption reduction processing if there is no bullet screen data.
In the embodiment of the present application, please refer to fig. 6, the bullet screen detecting module 420 may include: a display enhancement detection unit 421 and a bullet screen detection execution unit 422. The display enhancement detection unit 421 is configured to detect whether display enhancement processing is currently performed on a played video in a video playing process, where the display enhancement processing includes processing the played video by using a preset image processing algorithm; the bullet screen detection execution unit 422 is configured to detect whether a bullet screen exists in the played video if the played video is subjected to the display enhancement processing.
In this embodiment of the application, the power consumption processing module 430 may be specifically configured to: and if the bullet screen function of the application program for currently playing the video is not started or the bullet screen function of the application program is started but bullet screen data is not received, performing power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor.
Further, the power consumption processing module 430 may be specifically configured to: the method comprises the steps of controlling a first central processor core of a central processing unit to be closed, reducing the working frequency of a second central processor core of the central processing unit and reducing the working frequency of an image processor, wherein the working frequency of the first central processor core is greater than the working frequency of the second central processor core.
In this embodiment of the application, please refer to fig. 7, the power consumption processing module 430 may include: a load acquisition unit 431 and a reduced power consumption execution unit 432. The load obtaining unit 431 is configured to detect a load condition of the central processing unit, and obtain a current load rate of the central processing unit; the power consumption reduction execution unit 432 is configured to perform power consumption reduction processing for reducing the operating frequency of the central processing unit and/or the image processor according to the current load rate.
Further, the power consumption reduction execution unit 432 may be specifically configured to: judging whether the current load rate is smaller than a first load rate; if the current load rate is less than the first load rate, controlling a first central processor core of a central processor to close, reducing the working frequency of a second central processor core of the central processor to a first preset frequency corresponding to the current load rate, and reducing the working frequency of an image processor, wherein the working frequency of the first central processor core is greater than the working frequency of the second central processor core.
Further, the power consumption reduction execution unit 432 may be further specifically configured to: if the current load rate is not less than the first load rate, judging whether the current load rate is less than a second load rate, wherein the second load rate is greater than the first load rate; if the current load rate is less than the second load rate, reducing the working frequency of the second central processor core to a second preset frequency corresponding to the current load rate, and reducing the working frequency of the image processor; and if the load factor is not less than the second load factor, reducing the working frequency of the image processor.
In the embodiment of the present application, please refer to fig. 8, the terminal control apparatus 400 may further include: the reduced power shutdown module 440. The power consumption reduction closing module 440 is configured to close the power consumption reduction process when detecting that a bullet screen exists in the played video.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules 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, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
To sum up, the scheme that this application provided, through detecting current video broadcast state, when detecting to be in video broadcast state at present, at the video broadcast in-process, whether detect the video of broadcast have barrage data, if when having barrage data, reduce central processing unit and/or image processor's operating frequency's the processing of reducing the consumption to can realize that terminal equipment when video broadcast, reduce the consumption when there is no barrage data and handle, reach the effect that reduces terminal equipment's consumption when video broadcast.
Referring to fig. 9, a block diagram of a terminal device according to an embodiment of the present application is shown. The terminal device 100 may be a terminal device capable of running an application, such as a smart phone, a tablet computer, an electronic book, or the like. The terminal device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a bluetooth module 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the foregoing method embodiments.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the entire terminal device 100 using various interfaces and lines, and performs various functions of the terminal device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
The processor 110 may integrate one or more of a Central Processing Unit (CPU) 111, a Graphics Processing Unit (GPU) 112, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The screen 130 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the terminal device, which may be configured by graphics, text, icons, numerals, video, and any combination thereof, and in one example, a touch screen may be provided on the display panel so as to be integrated with the display panel.
Referring to fig. 10, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A terminal control method, characterized in that the method comprises:
detecting the current video playing state;
when the video playing state is detected, detecting whether the played video is subjected to display enhancement processing or not in the video playing process, wherein the display enhancement processing comprises processing the played video by using a preset image processing algorithm;
if the display enhancement processing is carried out on the played video, detecting whether bullet screen data exist in the played video or not;
and if the bullet screen data does not exist, performing power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor.
2. The method according to claim 1, wherein if there is no bullet screen data, performing power consumption reduction processing for reducing an operating frequency of a central processor and/or an image processor includes:
and if the bullet screen function of the application program for currently playing the video is not started or the bullet screen function of the application program is started but bullet screen data is not received, performing power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processor.
3. The method according to claim 2, wherein the performing of the power consumption reduction process for reducing the operating frequency of the central processing unit and/or the image processing unit comprises:
the method comprises the steps of controlling a first central processor core of a central processing unit to be closed, reducing the working frequency of a second central processor core of the central processing unit and reducing the working frequency of an image processor, wherein the working frequency of the first central processor core is greater than the working frequency of the second central processor core.
4. The method according to claim 2, wherein the performing of the power consumption reduction process for reducing the operating frequency of the central processing unit and/or the image processing unit comprises:
detecting the load condition of a central processing unit to obtain the current load rate of the central processing unit;
and performing power consumption reduction processing for reducing the working frequency of the central processing unit and/or the image processing unit according to the current load rate.
5. The method according to claim 4, wherein the performing power consumption reduction processing for reducing the operating frequency of a central processing unit and/or an image processing unit according to the current load rate comprises:
judging whether the current load rate is smaller than a first load rate;
if the current load rate is less than the first load rate, controlling a first central processor core of a central processor to close, reducing the working frequency of a second central processor core of the central processor to a first preset frequency corresponding to the current load rate, and reducing the working frequency of an image processor, wherein the working frequency of the first central processor core is greater than the working frequency of the second central processor core.
6. The method of claim 5, wherein after the determining whether the current load rate is less than a first load rate, the method further comprises:
if the current load rate is not less than the first load rate, judging whether the current load rate is less than a second load rate, wherein the second load rate is greater than the first load rate;
if the current load rate is less than the second load rate, reducing the working frequency of the second central processor core to a second preset frequency corresponding to the current load rate, and reducing the working frequency of the image processor;
and if the load factor is not less than the second load factor, reducing the working frequency of the image processor.
7. The method according to any one of claims 1 to 6, wherein after the performing power consumption reduction processing for reducing the operating frequency of the central processing unit and/or the image processing unit, the method further comprises:
and when detecting that the played video has bullet screen data, closing the power consumption reduction processing.
8. A terminal control apparatus, characterized in that the apparatus comprises: a play detection module, a bullet screen detection module and a power consumption processing module, wherein the bullet screen detection module comprises a display enhancement detection unit and a bullet screen detection execution unit,
the playing detection module is used for detecting the current video playing state;
the display enhancement detection unit is used for detecting whether display enhancement processing is currently carried out on the played video or not in the video playing process when the display enhancement detection unit detects that the video is currently in a video playing state, wherein the display enhancement processing comprises processing the played video by using a preset image processing algorithm;
the bullet screen detection execution unit is used for detecting whether bullet screen data exist in the played video or not if the played video is subjected to the display enhancement processing;
and the power consumption processing module is used for reducing the power consumption of the central processing unit and/or the image processor if the bullet screen data does not exist.
9. A terminal device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
CN201811197800.1A 2018-10-15 2018-10-15 Terminal control method, terminal control device, terminal equipment and storage medium Active CN109151966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811197800.1A CN109151966B (en) 2018-10-15 2018-10-15 Terminal control method, terminal control device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811197800.1A CN109151966B (en) 2018-10-15 2018-10-15 Terminal control method, terminal control device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109151966A CN109151966A (en) 2019-01-04
CN109151966B true CN109151966B (en) 2021-08-17

Family

ID=64811977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811197800.1A Active CN109151966B (en) 2018-10-15 2018-10-15 Terminal control method, terminal control device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109151966B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118473B (en) * 2019-06-19 2022-05-17 上海哔哩哔哩科技有限公司 Video bullet screen display method and device, computer equipment and readable storage medium
CN112118484B (en) * 2019-06-19 2022-04-19 上海哔哩哔哩科技有限公司 Video bullet screen display method and device, computer equipment and readable storage medium
US11513937B2 (en) 2019-06-19 2022-11-29 Shanghai Bilibili Technology Co., Ltd. Method and device of displaying video comments, computing device, and readable storage medium
CN110475325A (en) * 2019-08-22 2019-11-19 北京字节跳动网络技术有限公司 Power distribution method, device, terminal and storage medium
CN111309137B (en) * 2020-02-18 2021-07-06 深圳云天励飞技术有限公司 Chip control method and device, chip and terminal equipment
CN115543061B (en) * 2022-04-12 2023-11-07 荣耀终端有限公司 Power consumption control method and electronic equipment
CN116095382B (en) * 2022-06-02 2023-10-31 荣耀终端有限公司 Barrage identification method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210853A (en) * 2016-07-08 2016-12-07 上海幻电信息科技有限公司 Barrage display system and CPU consumption controlling method thereof
CN106941625A (en) * 2017-03-10 2017-07-11 广东欧珀移动通信有限公司 A kind of control method for playing back of mobile terminal, device and mobile terminal
CN106980358A (en) * 2017-03-20 2017-07-25 宇龙计算机通信科技(深圳)有限公司 Reduce the method and device of user terminal power consumption
CN107515787A (en) * 2017-08-31 2017-12-26 广东欧珀移动通信有限公司 Resource allocation method and Related product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602098A (en) * 2015-01-04 2015-05-06 深圳市同洲电子股份有限公司 Video barrage display method and equipment thereof
CN107526425A (en) * 2016-06-21 2017-12-29 北京搜狗科技发展有限公司 A kind of electricity saving method, device and electronic equipment
CN106933326B (en) * 2017-03-10 2019-08-30 Oppo广东移动通信有限公司 A kind of method, device and mobile terminal of the Power Saving Class of dynamic regulation terminal
CN106658691B (en) * 2017-03-10 2020-01-14 Oppo广东移动通信有限公司 Display control method and device and mobile terminal
CN108391139B (en) * 2018-01-15 2023-06-16 上海掌门科技有限公司 Video enhancement method, medium and device for video live broadcast

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210853A (en) * 2016-07-08 2016-12-07 上海幻电信息科技有限公司 Barrage display system and CPU consumption controlling method thereof
CN106941625A (en) * 2017-03-10 2017-07-11 广东欧珀移动通信有限公司 A kind of control method for playing back of mobile terminal, device and mobile terminal
CN106980358A (en) * 2017-03-20 2017-07-25 宇龙计算机通信科技(深圳)有限公司 Reduce the method and device of user terminal power consumption
CN107515787A (en) * 2017-08-31 2017-12-26 广东欧珀移动通信有限公司 Resource allocation method and Related product

Also Published As

Publication number Publication date
CN109151966A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109151966B (en) Terminal control method, terminal control device, terminal equipment and storage medium
CN109379627B (en) Video processing method, video processing device, electronic equipment and storage medium
CN109361950B (en) Video processing method and device, electronic equipment and storage medium
US20220139353A1 (en) Display method, electronic device, and non-transitory computer-readable storage medium
WO2020038128A1 (en) Video processing method and device, electronic device and computer readable medium
CN109587546B (en) Video processing method, video processing device, electronic equipment and computer readable medium
CN110377263B (en) Image synthesis method, image synthesis device, electronic equipment and storage medium
US20210168441A1 (en) Video-Processing Method, Electronic Device, and Computer-Readable Storage Medium
WO2018133800A1 (en) Video frame processing method, device, electronic apparatus, and data storage medium
KR101646958B1 (en) Media encoding using changed regions
CN109120988B (en) Decoding method, decoding device, electronic device and storage medium
EP3876546A1 (en) Video processing method and apparatus, and electronic device and storage medium
CN109688462B (en) Method and device for reducing power consumption of equipment, electronic equipment and storage medium
WO2021008427A1 (en) Image synthesis method and apparatus, electronic device, and storage medium
CN109587561B (en) Video processing method and device, electronic equipment and storage medium
CN109587555B (en) Video processing method and device, electronic equipment and storage medium
CN111107427B (en) Image processing method and related product
US11562772B2 (en) Video processing method, electronic device, and storage medium
CN112184538B (en) Image acceleration method, related device, equipment and storage medium
WO2020107992A1 (en) Video processing method, device, electronic device and storage medium
CN111417007B (en) Image transmission method, device, terminal and storage medium
CN113038276A (en) Video playing method and device, electronic equipment and storage medium
CN113961484A (en) Data transmission method and device, electronic equipment and storage medium
CN114554269A (en) Data processing method, electronic device and computer readable storage medium
CN109218803B (en) Video enhancement control method and device and electronic equipment

Legal Events

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