Live broadcast power consumption control method and device, terminal equipment and storage medium
By acquiring live streaming information for power consumption control, including freezing background components and adjusting the frame rate of the ISP acquisition module, the problem of high power consumption during live streaming has been solved, improving the battery life of terminal devices and user experience.
Patent Information
- Application Number
- CN202510663589.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2026-11-24
AI Technical Summary
The power consumption of the terminal device is high during the live broadcast, resulting in insufficient battery life.
By acquiring live streaming information during the live stream, including information about the live streaming objects, the status information of the live streaming screen, and the live streaming type information, power consumption control is implemented. Specific measures include freezing background components, reducing the brightness of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module.
It effectively reduces the power consumption of terminal devices, increases the battery life of live streaming, and enhances the user experience.
Smart Images

Figure CN123164243A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of live streaming, and in particular to a live streaming power consumption control method, apparatus, terminal device, and storage medium. Background Technology
[0002] From the one-way communication of the television era to today's era of universal interaction, the evolution of live streaming has always revolved around the core of "real-time connection," constantly adapting to changes in technology and user behavior. However, rapid battery drain remains a major pain point when using live streaming applications. Summary of the Invention
[0003] This application provides a live streaming power consumption control method, apparatus, terminal device, and storage medium, which can control live streaming power consumption based on live streaming information during the live streaming process, so as to reduce the power consumption of the terminal device and improve the battery life of the terminal device during live streaming.
[0004] The first aspect of this application provides a live streaming power consumption control method, which may include: acquiring live streaming information during the live streaming process, the live streaming information including at least one of the following: information of the live streaming object in the live streaming screen, status information of the live streaming screen, and live streaming type information; and performing live streaming power consumption control based on the live streaming information, the live streaming power consumption control including at least one of the following: freezing background components, reducing the brightness value of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module.
[0005] A second aspect of this application provides a live streaming power consumption control device, which may include:
[0006] The acquisition module is used to acquire live streaming information during the live streaming process. The live streaming information includes at least one of the following: information about the live streaming object in the live streaming screen, status information of the live streaming screen, and live streaming type information.
[0007] The control module is used to control the power consumption of the live broadcast based on the live broadcast information. The power consumption control includes at least one of freezing the background components, reducing the brightness of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module.
[0008] In a third aspect, this application provides a terminal device including a memory, one or more processors, and a display, wherein the memory and the processors are coupled, the memory is used to store computer program code, the computer program code including computer instructions, and when the processor executes the computer instructions, the terminal device performs the method described in any of the first aspects.
[0009] In a fourth aspect, this application provides a chip including a processor, a memory, and a display. The processor may be a logic circuit, an integrated circuit, or a general-purpose processor, etc. The memory stores instructions. The processor may implement the method in the first aspect by reading the software code stored in the memory. The memory may be integrated into the processor or located outside the processor and exist independently.
[0010] In a fifth aspect of this application, a chip system is provided, the chip system being applied to a terminal device, the chip system including one or more interface circuits and one or more processors, and a display, the interface circuits and the processors being interconnected via lines, the interface circuits being configured to receive signals from a memory of the terminal device and send the signals to the processors, the signals including computer instructions stored in the memory, and when the processor executes the computer instructions, the terminal device performing the method described in any of the first aspects.
[0011] In a sixth aspect, this application provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the method described in the first aspect above.
[0012] A seventh aspect of this application provides a computer-readable storage medium storing a computer program (also referred to as code or instructions) that, when run on a computer, causes the computer to perform the methods described in the first aspect above.
[0013] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0014] In this embodiment, live streaming information is acquired during the live streaming process. This live streaming information includes at least one of the following: information about the live streaming object in the live streaming frame, status information of the live streaming frame, and live streaming type information. Live streaming power consumption control is performed based on this information. This power consumption control includes at least one of the following: freezing background components, reducing the brightness of the preview screen, and reducing the frame rate of the image signal processor (ISP) acquisition module. This allows for live streaming power consumption control based on live streaming information during the live streaming process, thereby reducing the power consumption of the terminal device and increasing its battery life for live streaming. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments and the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application, and other drawings can be obtained based on these drawings.
[0016] Figure 1 This is a schematic diagram of one embodiment of the live streaming power consumption control method in this application.
[0017] Figure 2A This is a schematic diagram of the application in a live preview state in an embodiment of this application;
[0018] Figure 2B This is a schematic diagram illustrating the current application being in a live streaming state in an embodiment of this application;
[0019] Figure 3A This is a schematic diagram of a single-person live stream in an embodiment of this application;
[0020] Figure 3B This is a schematic diagram of a live streaming type with interactive live streaming in an embodiment of this application;
[0021] Figure 3C This is a general interactive flowchart of the live streaming power consumption control method in the embodiments of this application;
[0022] Figure 4 This is a schematic diagram of another embodiment of the live streaming power consumption control method in this application;
[0023] Figure 5 This is a schematic diagram of one embodiment of a live streaming power consumption control device according to the present application.
[0024] Figure 6 This is a schematic diagram of one embodiment of the terminal device described in this application;
[0025] Figure 7 This is a schematic diagram of another embodiment of the terminal device in this application. Detailed Implementation
[0026] This application provides a live streaming power consumption control method, apparatus, terminal device, and storage medium, which can control live streaming power consumption based on live streaming information during the live streaming process, so as to reduce the power consumption of the terminal device and improve the battery life of the terminal device during live streaming.
[0027] To enable those skilled in the art to better understand the present application, the technical solutions of the embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. All embodiments based on the present application should fall within the scope of protection of the present application.
[0028] The following is a brief explanation of some of the terms used in this application:
[0029] The encoded motion vector refers to the displacement of the reference pixel block to the currently encoded pixel block during the inter-frame encoding process. By collecting the motion vectors of each pixel block in the encoded frame image, the degree of motion change in the live broadcast image can be determined.
[0030] Non-focus detection in the camera image signal processor (ISP) refers to the use of the camera module's built-in face detection function during a live broadcast to detect when the broadcaster leaves the frame or when a face is out of view for an extended period. This is achieved by reducing the brightness of the ISP acquisition module to optimize overall power consumption.
[0031] Background components refer to system services such as the system user interface (SystemUI) and the desktop launcher. Active background components can lead to increased CPU load, system server load, and lock contention.
[0032] Background component freezing, also known as background component activity freezing, refers to freezing background applications and putting the process into an uninterruptible sleep / interruptible sleep state. When a process is frozen, it cannot receive CPU scheduling, which can optimize overall system power consumption and performance. Compared to thread recycling, the advantage of freezing is that the current process can be quickly resumed when needed, without having to go through the process of creating a process and loading resources again.
[0033] In one implementation, a method, system, device, and storage medium for adjusting the frame rate of live video capture are disclosed. The technical solution provided in this application involves acquiring image brightness values from historically captured video images by a camera module (obtained through brightness detection); detecting the brightness state of the current live video based on these brightness values; and reducing the frame rate of the camera module when the current live video is detected to be at a set brightness level. By employing this technique, by detecting the brightness state of the captured live video images and adjusting the frame rate when the brightness is at a set level, accurate adjustment of the live video frame rate is ensured. This avoids problems such as high power consumption and overheating caused by high frame rates, thereby improving the live video streaming effect and optimizing the user's live video streaming experience.
[0034] In another implementation, a brightness adjustment method, apparatus, face recognition device, and storage medium are provided. The brightness adjustment method includes: acquiring a face image captured by a visible light camera and determining the face brightness of the face image; when the face brightness is less than a first threshold, determining a first driving current corresponding to the face brightness based on the correspondence between brightness and driving current; and adjusting the driving current of the display module to the first driving current to increase the brightness of the display module. Embodiments of this application can reduce the power consumption and size of the face recognition device.
[0035] In this embodiment, live streaming power consumption control is performed based on live streaming information. This power consumption control includes at least one of the following: freezing background components, reducing the brightness of the preview screen, and reducing the frame rate of the image signal processor (ISP) acquisition module. This allows for live streaming power consumption control based on live streaming information in live streaming scenarios, thereby reducing the power consumption of the terminal device and increasing its battery life for live streaming.
[0036] In the embodiments of this application, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical care, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0037] By way of example and not limitation, in this embodiment, the terminal device can also be a wearable device with a display interface. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0038] The technical solution of this application will be further described below by way of embodiments, such as... Figure 1 The diagram shown is a schematic representation of an embodiment of the live streaming power consumption control method in this application, which may include:
[0039] 101. Obtain live streaming information during the live streaming process, wherein the live streaming information includes at least one of the following: information of the live streaming object in the live streaming screen, status information of the live streaming screen, and live streaming type information.
[0040] For example, the terminal device obtains the live streaming information of the current application during the live streaming process. Therefore, the current application needs to be in a live streaming scenario. The specific terminal device can determine whether the current application has entered a live streaming state, that is, whether the current application is in a live streaming scenario, based on the changes in the current application's activity screen and the recognition of user interface (UI) components.
[0041] Terminal devices can extract a view tree diagram by combining system user interface components. By traversing the view tree diagram, they can obtain the control information of the current application and determine the various states of the current application. For example, Figure 2A The image shown is a schematic diagram illustrating the current application in a live preview state according to an embodiment of this application. If the first interface of the current application extracts... Figure 2A The "Start Live Video Stream" control shown indicates that the application is currently in live stream preview mode, meaning the first screen is the live stream preview interface. For example... Figure 2B The image shown is a schematic diagram illustrating the current application being in a live streaming state in an embodiment of this application. The user is... Figure 2A Touch the "Start Live Stream" button on the first page shown to enter... Figure 2B The live streaming interface shown indicates that the application is currently in live streaming mode. Figure 2A and Figure 2B The Activity identifiers corresponding to the shown interfaces are consistent. Further identification of UI components is needed to distinguish whether the current application is in live preview mode or live mode.
[0042] When a terminal device detects that the current application is in a live streaming scenario, the terminal device can obtain live streaming information during the live streaming process, including at least one of the following: the status information of the live streaming screen and the live streaming type information. The status information of the live streaming screen is used to indicate whether the live streaming screen is in a static state relative to the previous frame, i.e., in a static state, or in a moving state. Here, the live streaming screen can refer to the current frame of the live streaming screen, and the remaining battery power refers to the current remaining battery power.
[0043] In some possible implementations of this application, the current application can be a third-party live streaming application or a non-camera application scenario such as a mobile game live streaming application. This application does not impose specific limitations on the implementation.
[0044] 102. Control live streaming power consumption based on live streaming information. Live streaming power consumption control includes at least one of the following: freezing background components, reducing the brightness of the preview screen, and reducing the acquisition frame rate of the ISP acquisition module.
[0045] For example, the terminal device can control the power consumption of the live broadcast based on the live broadcast information. The power consumption control includes at least one of freezing the background components, reducing the brightness of the preview screen, and reducing the acquisition frame rate of the ISP acquisition module.
[0046] Reducing the brightness of the preview screen, also known as reducing the brightness of the live stream preview, can be understood as lowering the brightness of the preview displayed on the terminal device's screen. The ISP capture module's frame rate can be understood as the frame rate at which the ISP captures the live stream, also known as the capture refresh rate.
[0047] The following is a detailed explanation of how to control live streaming power consumption based on the aforementioned live streaming information:
[0048] 1. Live stream information includes information about the subjects appearing in the live stream.
[0049] In some possible implementations of this application, the information of the live object in the live broadcast screen indicates whether there is a live object in the live broadcast screen; the live broadcast power consumption control based on the live broadcast information may include: reducing the brightness value of the preview screen when the information of the live object in the live broadcast screen indicates that there is no live object in the live broadcast screen.
[0050] For example, the live stream image here can be the current frame of the live stream; the live stream subject can also be called the live streamer; and the remaining battery power is the current remaining battery power. If the current frame of the live stream image does not contain a live stream subject, the brightness value of the preview image can be reduced, thereby reducing the power consumption of the live stream.
[0051] This method of reducing live streaming power consumption involves periodically (e.g., per frame or other intervals) detecting live objects (such as faces) in the live stream to determine if the live object is still in the frame. If the live object is detected to have left the live stream, the brightness of the preview image can be reduced to decrease power consumption in the live stream.
[0052] In this technical solution, when no live subject is present in the live stream, the brightness of the preview screen is reduced, thereby lowering power consumption in the live stream and increasing the battery life of the terminal device. In other words, if the live subject is detected leaving the live stream, the system power consumption can be reduced by lowering the brightness of the preview screen.
[0053] In some possible implementations of this application, reducing the brightness value of the preview screen when the information of the live streaming object in the live streaming screen indicates that there is no live streaming object in the live streaming screen may include: reducing the brightness value of the preview screen when the information of the live streaming object obtained within a preset time period indicates that there is no live streaming object in the live streaming screen.
[0054] For example, the duration corresponding to 5 frames of live streaming is a preset duration. If no live streaming object is detected in any of the live streaming frames acquired within the preset duration, or, in other words, the live streaming frames can be understood as a series of consecutive live streaming frames. If no live streaming object exists in any of the consecutive live streaming frames (e.g., 6 frames), which can be understood as the duration of the live streaming frames without a live streaming object exceeding a duration threshold (e.g., the duration corresponding to 5 frames of live streaming), the brightness value of the preview screen can be reduced to reduce the power consumption of the live streaming scene.
[0055] In this technical solution, if the information of the live stream object obtained within a preset time period indicates that there is no live stream object in the live stream, the brightness value of the preview screen is reduced, thereby reducing the power consumption of the live stream scene and increasing the battery life of the terminal device. In other words, when the live stream object is off-screen for an extended period during video live streaming, the brightness value of the preview screen can be displayed on the monitor to reduce system power consumption.
[0056] In some possible implementations of this application, the information of the live object in the live screen indicates that there is no live object in the first frame of the live screen and there is a live object in the second frame of the live screen; the method may further include: restoring the brightness value of the preview screen when there is no live object in the first frame of the live screen and there is a live object in the second frame of the live screen.
[0057] For example, at regular intervals (e.g., per frame or other intervals), the live stream is inspected for live objects (e.g., faces) to determine if the live object is still in the frame. If the live object is detected to have left the live stream, the brightness of the preview image can be reduced to lower power consumption. If the live object is detected to re-enter the live stream (e.g., if the live object was not present in the first frame (previous frame) but is present in the second frame (current frame), the brightness of the preview image can be quickly restored to meet the brightness requirements of the live stream.
[0058] In this technical solution, when there is no live subject in the first frame of the live stream and there is a live subject in the second frame of the live stream, the brightness value of the preview screen is restored to meet the brightness value required for the live stream scene and improve the user's live stream experience.
[0059] In some possible implementations of this application, the information of the live object in the live broadcast frame indicates whether there is a live object in the live broadcast frame; the live power consumption control based on the live broadcast information may include: reducing the acquisition frame rate of the image signal processor (ISP) acquisition module when the information of the live object in the live broadcast frame indicates that there is no live object in the live broadcast frame.
[0060] For example, the live stream frame here can be the current frame; the live stream subject can also be called the live streamer; and the audio battery level is the current remaining battery power. If there is no live stream subject in the live stream frame, the frame rate of the ISP acquisition module can be reduced to control power consumption. For example, in a normal live stream scenario, the live stream frame is acquired at the first acquisition frame rate. By reducing the frame rate of the ISP acquisition module, the live stream frame can be acquired at the second acquisition frame rate, which is lower than the first acquisition frame rate, thereby reducing live stream power consumption.
[0061] In this technical solution, when the information of the live object in the live broadcast frame indicates that there is no live object in the live broadcast frame, the acquisition frame rate of the image signal processor (ISP) acquisition module is reduced, thereby reducing the power consumption of the live broadcast scene and increasing the battery life of the terminal device.
[0062] In some possible implementations of this application, reducing the acquisition frame rate of the image signal processor (ISP) acquisition module when the information of the live object in the live broadcast frame indicates that there is no live object in the live broadcast frame may include: reducing the acquisition frame rate of the image signal processor (ISP) acquisition module when the information of the live object in the live broadcast frame obtained within a preset time period indicates that there is no live object in the live broadcast frame.
[0063] For example, the duration corresponding to 5 frames of live streaming is a preset duration. If no live streaming object is detected in any of the live streaming frames acquired within the preset duration, or, in other words, the live streaming frame here can be understood as a series of consecutive live streaming frames. If no live streaming object exists in any of the consecutive live streaming frames (e.g., 6 frames of live streaming), which can be understood as the duration of the live streaming frame without a live streaming object exceeding the duration threshold (e.g., the duration corresponding to 5 frames of live streaming), the acquisition frame rate of the ISP acquisition module can be reduced to reduce the power consumption of the live streaming scene.
[0064] In this technical solution, if the information of the live streaming objects in the acquired live streaming frame indicates that there are no live streaming objects in the live streaming frame within a preset time period, the acquisition frame rate of the image signal processor (ISP) acquisition module is reduced, thereby reducing the power consumption of the live streaming scene and improving the battery life of the terminal device.
[0065] In some possible implementations of this application, the information of the live object in the live broadcast screen indicates whether a live object exists in the live broadcast screen; the live power consumption control based on the live broadcast information may include: freezing the background components when the information of the live object in the live broadcast screen indicates that no live object exists in the live broadcast screen.
[0066] Terminal devices can collect and pre-analyze the activity of background components during historical live streams. Specifically, for the current application's live stream, it's necessary to continuously collect background component activity information. Then, analyze the background components that can be frozen and controlled during the live stream, designating them as target background components. Subsequently, the system can be notified via a system interface to optimize and reduce the activity of background components matching the target components. These background components can be those of the current application or other applications on the terminal device; specific implementations in this application do not impose specific limitations.
[0067] If the information of the live stream object in the live stream indicates that no live stream object exists in the live stream, the terminal device can freeze background components. For example, the terminal device can match the current background component with a target background component to obtain a matching background component, because the target background component is obtained by analyzing the historical live stream process and is a background component that can be frozen and controlled; then the terminal device can freeze the successfully matched background component to reduce power consumption in the live stream scenario.
[0068] In this technical solution, if the information of the live streaming object in the live streaming screen indicates that there is no live streaming object in the live streaming screen, the background components are frozen, thereby reducing the power consumption of the live streaming scene and improving the battery life of the terminal device.
[0069] In some possible implementations of this application, freezing the background component when the information of the live object in the live broadcast screen indicates that there is no live object in the live broadcast screen may include: freezing the background component when the information of the live object in the live broadcast screen obtained within a preset time period indicates that there is no live object in the live broadcast screen.
[0070] For example, the duration corresponding to 5 frames of live streaming is a preset duration. If no live streaming object is detected in any of the live streaming frames obtained within the preset duration, or, it can be understood as a series of consecutive live streaming frames, if no live streaming object exists in any of the consecutive live streaming frames (e.g., 6 frames of live streaming), that is, if the duration of the live streaming frame without a live streaming object exceeds the duration threshold (e.g., the duration corresponding to 5 frames of live streaming), the background component can be frozen to reduce the power consumption of the live streaming scene.
[0071] In this technical solution, if the information of the live streaming objects in the live streaming screen indicates that there are no live streaming objects in the live streaming screen within a preset time period, the background components are frozen, thereby reducing the power consumption of the live streaming scene and improving the battery life of the terminal device.
[0072] 2. Live stream information includes the status information of the live stream screen.
[0073] In some possible implementations of this application, the status information of the live stream indicates whether the live stream is in a static state relative to the previous frame; the live stream power consumption control based on the live stream information may include: reducing the acquisition frame rate of the image signal processor (ISP) acquisition module when the status information of the live stream indicates that the live stream is in a static state relative to the previous frame.
[0074] For example, the live stream here is the current frame of the live stream. When the status information of the live stream indicates that the live stream is in a static state relative to the previous frame of the live stream, the acquisition frame rate of the ISP acquisition module can be reduced. For example, in a normal live stream scenario, the live stream is acquired at the first acquisition frame rate. After reducing the acquisition frame rate of the ISP acquisition module, the live stream can be acquired at the second acquisition frame rate. The second acquisition frame rate is less than the first acquisition frame rate, thereby reducing the power consumption of the live stream.
[0075] In hardware development or embedded systems, ISP acquisition modules typically refer to visual data acquisition modules based on ISP (Image Signal Processor), which are mainly used for real-time processing and transmission of image / video signals.
[0076] In this technical solution, when the live broadcast frame is in a static state relative to the previous frame, the frame rate of the ISP acquisition module is reduced, thereby reducing the power consumption of the live broadcast scene and increasing the battery life of the terminal device.
[0077] In some possible implementations of this application, the acquisition of live streaming information during the live streaming process may include: acquiring the motion vector of the live streaming frame between frames, wherein the motion vector of the live streaming frame between frames includes the motion vector of the live streaming frame; and when the motion vector of the live streaming frame is 0, determining the state information of the live streaming frame to indicate that the live streaming frame is in a stationary state relative to the previous live streaming frame.
[0078] For example, when the live stream is stationary relative to the previous frame, during the process of reducing the capture frame rate of the ISP acquisition module, the live stream here is understood as the current frame. Specifically, how to determine that the live stream is stationary can be determined by whether the motion vector of the current frame is 0. If the motion vector of the live stream is 0, the state information of the live stream is determined to indicate that the live stream is stationary relative to the previous frame; if the motion vector of the live stream is not 0, the state information of the live stream is determined to indicate that the live stream is in motion relative to the previous frame.
[0079] An encoder can be understood as a video encoder. During the encoding process, the video encoder generates motion vector (MV) information, which can well reflect the motion of the video frame without adding extra overhead to the motion detection module. Therefore, the MV information output by the video encoder can be fed back to the camera module.
[0080] When the live stream is relatively static compared to the previous frame, the ISP module's capture frame rate is reduced; when the live stream is relatively dynamic compared to the previous frame (e.g., a streamer performing a dance), the ISP module's capture frame rate can be increased, also known as restoring the ISP module's capture frame rate. The capture frame rate can also be referred to as the capture refresh rate.
[0081] This technical solution provides a specific implementation method for determining whether a live stream frame is stationary relative to the previous frame. It involves obtaining motion vectors from the inter-frame live stream frames using the encoder, and then, based on these motion vectors, determining that the live stream frame is stationary. This allows for a reduction in the frame rate of the ISP acquisition module, thereby lowering power consumption in the live stream and extending the battery life of the terminal device. In other words, by utilizing the motion vector information fed back during the encoding process to characterize the relatively stationary live stream frame captured by the camera, the acquisition refresh rate of the ISP module is adaptively suppressed, thus reducing live stream power consumption.
[0082] In some possible implementations of this application, the status information of the live stream indicates whether the live stream is in a static state relative to the previous frame; the live stream power consumption control based on the live stream information may include: reducing the brightness value of the preview screen when the status information of the live stream indicates that the live stream is in a static state relative to the previous frame.
[0083] For example, the live stream here is the current frame of the live stream. When the status information of the live stream indicates that the live stream is in a static state relative to the previous frame of the live stream, the brightness value of the preview image can be reduced, thereby reducing the power consumption of the live stream.
[0084] In this technical solution, when the status information of the live broadcast screen indicates that the live broadcast screen is in a static state relative to the previous frame of the live broadcast screen, the brightness value of the preview screen is reduced, thereby reducing the power consumption of the live broadcast scene and increasing the battery life of the terminal device.
[0085] In some possible implementations of this application, the status information of the live stream indicates whether the live stream is in a static state relative to the previous frame; the live stream power consumption control based on the live stream information may include: freezing the background components when the status information of the live stream indicates that the live stream is in a static state relative to the previous frame.
[0086] Terminal devices can collect and pre-analyze the activity of background components during historical live streams. Specifically, for the current application's live stream, it's necessary to continuously collect background component activity information. Then, analyze the background components that can be frozen and controlled during the live stream, designating them as target background components. Subsequently, the system can be notified via a system interface to optimize and reduce the activity of background components matching the target components. These background components can be those of the current application or other applications on the terminal device; specific implementations in this application do not impose specific limitations.
[0087] When the status information of the live stream indicates that the live stream is static relative to the previous frame, the terminal device can freeze background components. For example, the terminal device can match the current background component with a target background component to obtain a matching background component, since the target background component is obtained by analyzing the historical live stream process and is a background component that can be frozen and controlled; then the terminal device can freeze the successfully matched background component to reduce power consumption in the live streaming scenario.
[0088] In this technical solution, when the status information of the live broadcast screen indicates that the live broadcast screen is in a static state relative to the previous frame of the live broadcast screen, the background components are frozen, thereby reducing the power consumption of the live broadcast scene and increasing the battery life of the terminal device.
[0089] 3. Live stream information includes live stream type information, which indicates the target live stream type.
[0090] In some possible implementations of this application, the step of controlling live streaming power consumption based on the live streaming information may include: freezing the background component when the live streaming type information indicates a target live streaming type, wherein the target live streaming type includes live streaming with co-hosts or live streaming with makeup application.
[0091] For example, terminal devices can extract and identify specific live streaming scenarios based on the current application's Activity state and UI components. Terminal devices can combine system-side state changes, such as camera activation and microphone sound, to identify specific live streaming types, such as audio live streaming, one-on-one live streaming, and multi-person interactive (co-hosted) live streaming. For instance, if a live stream is entered but no video stream is active, it's determined to be an audio live stream; if multiple video and audio streams are detected simultaneously, it's determined to be a co-hosted live stream; if only one video and audio stream is detected, it can be determined to be a one-on-one live stream. Figure 3A The image shown is a schematic diagram illustrating a single-person live stream type in an embodiment of this application. Figure 3B The diagram shown is a schematic of a live streaming type with interactive live streaming in an embodiment of this application.
[0092] The terminal device can also collect and pre-analyze the activity of background components during historical live streams. That is, for the current application's live stream, it needs to continuously collect the activity information of background components. Then, it analyzes which background components can be frozen and controlled during the live stream, designating them as target background components. Subsequently, the system can be notified through a system interface to optimize and reduce the activity of background components matching the target components. These background components can be background components of the current application or background components of other applications on the terminal device; specific implementations in this application do not impose specific limitations.
[0093] When the live stream type information indicates the target live stream type, the terminal device can freeze background components. For example, the terminal device can match the current background components with the target background components to obtain the successfully matched background components, because the target background components are obtained by analyzing historical live stream processes and are background components that can be frozen and controlled; then the terminal device can freeze the successfully matched background components to reduce power consumption in the live stream scenario.
[0094] In this technical solution, when the live stream type information indicates the target live stream type, background components are frozen, thereby reducing power consumption in the live stream scenario and increasing the battery life of the terminal device. Specifically, by collecting and analyzing the current background components of the terminal device, the activity of background components is frozen and controlled in scenarios such as live streams with co-hosting or makeup application, thus reducing live stream power consumption.
[0095] In some possible implementations of this application, the method may further include: prioritizing the target backend component into backend components of different priorities, wherein the backend components of different priorities are used to freeze the corresponding priority backend components in different live streaming types, or to freeze the corresponding priority backend components when the remaining battery power is within different battery power threshold ranges.
[0096] For example, the target backend components can be prioritized to obtain a first backend component and a second backend component, where the first backend component has a lower priority than the second backend component. Optionally, the target backend components can be further divided into backend components with higher priorities, such as a first backend component, a second backend component, and a third backend component, where the first backend component has a lower priority than the second backend component, and the second backend component has a lower priority than the third backend component.
[0097] In this technical solution, by dividing the target backend components into different priorities, it is convenient to freeze the backend components with different priorities in different live broadcast types or when the remaining power is in different power threshold ranges, thereby improving the feasibility of the solution.
[0098] In some possible implementations of this application, freezing the background components when the live stream type information indicates a target live stream type may include: freezing background components with different priorities when the live stream type information indicates a target live stream type; the target live stream type includes: live stream with multiple participants, live stream with makeup application, live stream with audio, or live stream with a single person.
[0099] For example, assuming the background components are prioritized as a first background component and a second background component, when the live stream type information indicates a live stream with multiple participants or a makeup application live stream, the power consumption requirements of the terminal device are relatively high. In this case, both the first and second background components can be frozen to meet the power consumption requirements of the current live stream type. When the live stream type information indicates a live stream with one person, the power consumption requirements of the terminal device are not particularly high, and only the low-priority first background component can be frozen. When the live stream type information indicates an audio live stream, the power consumption requirements of the terminal device are not high, and in this case, the background components do not need to be frozen.
[0100] Assume the background components are prioritized as a first background component, a second background component, and a third background component. When the live stream type information indicates a multi-person live stream or a makeup live stream, the power consumption requirements of the terminal device are relatively high. In this case, the first, second, and third background components can all be frozen to meet the power consumption requirements of the current live stream type. When the live stream type information indicates a solo live stream, the power consumption requirements of the terminal device are not particularly high, and the lower-priority first and second background components can be frozen. When the live stream type information indicates an audio live stream, the power consumption requirements of the terminal device are not high, and in this case, only the third background component can be frozen.
[0101] This technical solution details the freezing of background components with different priorities when the live streaming information of the terminal device indicates different live streaming types, in order to reduce the power consumption of the terminal device and thus improve its battery life.
[0102] In some possible implementations of this application, the method may further include: when the remaining power is less than a power threshold, performing live streaming power control, wherein the live streaming power control includes at least one of freezing background components, reducing the brightness value of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module.
[0103] For example, when the remaining battery power is less than a battery threshold (e.g., 30%), background components can be frozen, the brightness of the preview screen can be reduced, the frame rate of the ISP acquisition module can be reduced, background components can be frozen and the brightness of the camera image signal processor (ISP) acquisition module can be reduced, the brightness of the preview screen can be reduced and the frame rate of the ISP acquisition module can be reduced, or background components can be frozen, the brightness of the preview screen can be reduced and the frame rate of the ISP acquisition module can be reduced, in order to reduce power consumption. This application embodiment does not make specific limitations.
[0104] In this technical solution, when the remaining power is less than the power threshold, the background components are frozen, and at least one of the following is reduced: the brightness value of the preview screen is reduced and the acquisition frame rate of the image signal processor (ISP) acquisition module is reduced, so as to reduce the power consumption of the terminal device and thereby improve the battery life of the terminal device.
[0105] In some possible implementations of this application, freezing a background component when the remaining battery power is less than a battery power threshold may include: freezing a first background component when the remaining battery power is greater than or equal to a second battery power threshold and less than a first battery power threshold, wherein the first battery power threshold is greater than the second battery power threshold; and freezing a second background component when the remaining battery power is less than the second battery power threshold; wherein the priority of the second background component is higher than the priority of the first background component.
[0106] For example, the remaining battery power here refers to the current remaining battery power. If the current remaining battery power is within the threshold range of being greater than or equal to the second battery power threshold and less than the first battery power threshold, it means that the current remaining battery power of the terminal device is not very low. At this time, the first background component with the lowest priority can be frozen to reduce power consumption. If the current remaining battery power is within the threshold range of being less than the second battery power threshold, it means that the current remaining battery power of the terminal device is not very high. At this time, although the first background component has been frozen, the power consumption still does not meet the current needs. The second background component with a higher priority can be frozen to reduce power consumption.
[0107] Optionally, freezing the second background component when the remaining power is less than the second power threshold may include freezing the second background component when the remaining power is greater than or equal to the third power threshold and less than the second power threshold.
[0108] The method may further include: freezing a third background component when the remaining power is less than the third power threshold, wherein the priority of the third background component is greater than the priority of the second background component.
[0109] For example, if the current remaining battery power is within the threshold range of being greater than or equal to the third battery power threshold and less than the second battery power threshold, it means that the current remaining battery power of the terminal device is very low. At this time, although the first and second background components have been frozen, the power consumption still does not meet the current needs. Therefore, the third background component, which has the highest priority, can be frozen to reduce power consumption.
[0110] This technical solution details the different priorities for freezing background components based on the remaining battery level of the terminal device within different battery threshold ranges, aiming to reduce power consumption and extend battery life. In other words, the freezing of background components can be tiered based on the remaining battery level of the terminal device, thereby reducing system power consumption.
[0111] like Figure 3C The diagram shown is an overall interactive flowchart of the live streaming power consumption control method in this embodiment. In this embodiment, the face recognition function of the ISP acquisition module can be used to adaptively suppress the brightness value of the live stream captured by the camera, thereby reducing power consumption. Furthermore, the motion vector information fed back during the encoding process can be used to adaptively suppress the acquisition refresh rate (i.e., the acquisition frame rate) of the ISP acquisition module, further reducing power consumption. Additionally, the activity of background components during the live streaming scene can be collected and analyzed to reduce power consumption. The remaining battery status of the terminal device can also be monitored to ensure a good user experience for the current application's live streaming scenario.
[0112] In some possible implementations of this application, the current application can be a third-party live streaming application or a non-camera application scenario such as a mobile game live streaming application.
[0113] For example, during mobile game live streaming, background components can be monitored and their activity level suppressed to reduce power consumption. Alternatively, motion vector information fed back by the encoder can be used to determine whether the mobile game screen is static, thereby suppressing the virtual screen refresh rate and reducing power consumption.
[0114] In this embodiment, live streaming information is acquired during the live streaming process. This live streaming information includes at least one of the following: information about the live streaming object in the live streaming frame, status information of the live streaming frame, and live streaming type information. Live streaming power consumption control is performed based on the live streaming information. This power consumption control includes at least one of the following: freezing background components, reducing the brightness value of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module. This allows for live streaming power consumption control based on live streaming information during the live streaming process, thereby reducing the power consumption of the terminal device and improving the battery life of the terminal device during live streaming.
[0115] like Figure 4 The diagram shown is a schematic representation of another embodiment of the live streaming power consumption control method in this application, which may include:
[0116] 401. Obtain live streaming information during the live streaming process. The live streaming information includes at least one of the following: information about the live streaming object in the live streaming screen, status information of the live streaming screen, and live streaming type information.
[0117] It should be noted that step 401 can be referenced. Figure 1 Step 101 in the illustrated embodiment will not be repeated here.
[0118] 402. Obtain the remaining battery power of the terminal device.
[0119] During the live broadcast, the remaining battery power of the terminal device can be periodically detected, or the remaining battery power of the terminal device can be detected in real time. As for the timing of steps 401 and 402, steps 401 can be executed first and then steps 402, or steps 402 can be executed first and then steps 401, or steps 401 and 402 can be executed simultaneously. This application embodiment does not make specific limitations.
[0120] It should be noted that step 402 is an optional step.
[0121] 403. Control live streaming power consumption based on the remaining battery power of the terminal device and live streaming information.
[0122] In some possible implementations of this application, the live streaming power consumption control based on the remaining battery power of the terminal device and the live streaming information may include: when the remaining battery power is less than a battery power threshold, power consumption control is performed based on the remaining battery power and the live streaming information; when the remaining battery power is greater than or equal to the battery power threshold, power consumption control is performed based on the live streaming information.
[0123] For example, if the remaining battery power is less than the battery threshold, it means that the terminal device has relatively little remaining battery power and can support a short live streaming time. Therefore, power consumption control can be performed by combining the remaining battery power and live streaming information. If the remaining battery power is greater than or equal to the battery threshold, it means that the terminal device has relatively much remaining battery power and can support a longer live streaming time. In this case, live streaming power consumption control can be performed directly based on the live streaming information.
[0124] In this technical solution, the remaining power and live streaming information can be combined to control the power consumption of live streaming, thereby improving the feasibility of the solution.
[0125] In some possible implementations of this application, the live streaming information includes information about the live streaming object in the live streaming frame, and the information about the live streaming object in the live streaming frame indicates that there is no live streaming object in the live streaming frame; when the remaining battery power is less than a battery threshold, power consumption control based on the remaining battery power and the live streaming information may include:
[0126] When the remaining battery power is greater than or equal to the second battery power threshold and less than the first battery power threshold, and when there is no live streaming object in the live streaming screen, the brightness value of the preview screen will be reduced to the first brightness value.
[0127] If the remaining battery power is less than the second battery power threshold, and if there is no live stream object in the live stream, the brightness value of the preview screen will be reduced to the second brightness value.
[0128] Wherein, the first power threshold is greater than the second power threshold, and the first brightness value is greater than the second brightness value.
[0129] For example, the remaining battery power here refers to the current remaining battery power. If the current remaining battery power is within the threshold range of being greater than or equal to the second battery power threshold and less than the first battery power threshold, it means that the current remaining battery power of the terminal device is not very low, and there is no live stream object in the live stream. At this time, the first background component with the lowest priority can be frozen to reduce power consumption. If the current remaining battery power is within the threshold range of being less than the second battery power threshold, it means that the current remaining battery power of the terminal device is not very high, and there is no live stream object in the live stream. At this time, although the first background component has been frozen, the power consumption does not meet the current requirements. The second background component with higher priority can be frozen to reduce power consumption.
[0130] In this technical solution, based on the current remaining battery power of the terminal device being within different power threshold ranges, and considering that there are no live streaming objects in the live stream, background components are frozen with different priorities to reduce system power consumption.
[0131] In some possible implementations of this application, the live streaming information includes the status information of the live streaming screen, the status information of the live streaming screen indicating that the live streaming screen is in a static state relative to the previous frame of the live streaming screen; when the remaining battery power is less than a battery threshold, power consumption control based on the remaining battery power and the live streaming information may include:
[0132] When the remaining power is greater than or equal to the second power threshold and less than the first power threshold, and when the live broadcast is in a static state relative to the previous live broadcast frame, the acquisition frame rate of the image signal processor (ISP) acquisition module is reduced to the first acquisition frame rate.
[0133] When the remaining power is less than the second power threshold, and when the live broadcast is in a static state relative to the previous frame, the acquisition frame rate of the image signal processor (ISP) acquisition module is reduced to the second acquisition frame rate.
[0134] Wherein, the first power threshold is greater than the second power threshold, and the first collection frame rate is greater than the second collection frame rate.
[0135] For example, the remaining battery power here refers to the current remaining battery power. If the current remaining battery power is within the threshold range of being greater than or equal to the second battery power threshold and less than the first battery power threshold, it means that the current remaining battery power of the terminal device is not very low. Moreover, when the live broadcast frame is in a static state relative to the previous frame, the first background component with the lowest priority can be frozen to reduce power consumption. If the current remaining battery power is within the threshold range of being less than the second battery power threshold, it means that the current remaining battery power of the terminal device is not very high. Moreover, when the live broadcast frame is in a static state relative to the previous frame, although the first background component has been frozen, the power consumption still does not meet the current requirements. Therefore, the second background component with a higher priority can be frozen to reduce power consumption.
[0136] In this technical solution, based on the current remaining power of the terminal device within different power threshold ranges and combined with the status information of the live broadcast screen, it indicates that the live broadcast screen is in a static state relative to the previous frame, and performs background component freezing processing with different priorities to reduce system power consumption.
[0137] In some possible implementations of this application, the live streaming information includes the live streaming type information, and when the remaining battery power is less than a battery threshold, power consumption control based on the remaining battery power and the live streaming information may include:
[0138] When the remaining battery power is greater than or equal to the second battery power threshold and less than the first battery power threshold, and when the live stream type information indicates the target live stream type, the first backend component is frozen. The target live stream type includes live stream with co-hosting or live stream with makeup application.
[0139] If the remaining battery power is less than the second battery power threshold, and if the live stream type information indicates that it is the target live stream type, the second backend component is frozen.
[0140] Wherein, the first power threshold is greater than the second power threshold, and the priority of the second background component is higher than the priority of the first background component.
[0141] For example, the remaining battery power here refers to the current remaining battery power. If the current remaining battery power is within the threshold range of being greater than or equal to the second battery power threshold and less than the first battery power threshold, it means that the current remaining battery power of the terminal device is not very low. Moreover, if the live streaming type information indicates that it is a live streaming type with high power consumption requirements, such as a live streaming with co-hosts or a live streaming with makeup, then the first background component with the lowest priority can be frozen to reduce power consumption. If the current remaining battery power is within the threshold range of being less than the second battery power threshold, it means that the current remaining battery power of the terminal device is not very high. Moreover, if the live streaming type information indicates that it is a live streaming type with high power consumption requirements, such as a live streaming with co-hosts or a live streaming with makeup, then although the first background component has been frozen, the power consumption still does not meet the current requirements. Therefore, the second background component with higher priority can be frozen to reduce power consumption.
[0142] In this technical solution, based on the current remaining battery power of the terminal device within different power threshold ranges and combined with the live streaming type information, background components are frozen with different priorities to reduce system power consumption.
[0143] In this embodiment, live streaming information is acquired during the live streaming process. This live streaming information includes at least one of the following: information about the live streaming object in the live streaming frame, status information of the live streaming frame, and live streaming type information. The remaining battery power of the terminal device is also acquired. Live streaming power consumption control is then performed based on the remaining battery power and the live streaming information. During the live streaming process, power consumption control can be performed based on the remaining battery power and the live streaming information to reduce the power consumption of the terminal device and increase its battery life for live streaming.
[0144] like Figure 5 The diagram shown is a schematic representation of one embodiment of a live streaming power consumption control device according to this application, which may include:
[0145] The acquisition module 501 is used to acquire live streaming information during the live streaming process. The live streaming information includes at least one of the following: information of the live streaming object in the live streaming screen, status information of the live streaming screen, and live streaming type information.
[0146] The control module 502 is used to control the power consumption of the live broadcast based on the live broadcast information. The power consumption control includes at least one of freezing the background components, reducing the brightness value of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module.
[0147] In some possible implementations of this application, the live streaming information includes information about the live streaming object in the live streaming screen, and the information about the live streaming object in the live streaming screen indicates whether there is a live streaming object in the live streaming screen; the control module 502 is specifically used to reduce the brightness value of the preview screen when the information about the live streaming object in the live streaming screen indicates that there is no live streaming object in the live streaming screen.
[0148] In some possible implementations of this application, the control module 502 is specifically used to reduce the brightness value of the preview screen when the information of the live objects in the live screen indicates that there are no live objects in the live screen within a preset time period.
[0149] In some possible implementations of this application, the live streaming information includes the status information of the live streaming screen, which indicates whether the live streaming screen is in a static state relative to the previous frame of the live streaming screen; the control module 502 is specifically used to reduce the acquisition frame rate of the image signal processor (ISP) acquisition module when the status information of the live streaming screen indicates that the live streaming screen is in a static state relative to the previous frame of the live streaming screen.
[0150] In some possible implementations of this application, the acquisition module 501 is specifically used to acquire the motion vector of the inter-frame live broadcast image, wherein the motion vector of the inter-frame live broadcast image includes the motion vector of the live broadcast image; when the motion vector of the live broadcast image is 0, the state information of the live broadcast image is determined to indicate that the live broadcast image is in a stationary state relative to the previous frame of the live broadcast image.
[0151] In some possible implementations of this application, the live streaming information includes the live streaming type information. The control module 502 is specifically used to freeze the background component when the live streaming type information indicates a target live streaming type. The target live streaming type includes live streaming with co-hosting or live streaming with makeup application.
[0152] In some possible implementations of this application, the control module 502 is specifically used to control the power consumption of live streaming based on the remaining battery power of the terminal device and the live streaming information.
[0153] In some possible implementations of this application, the control module 502 is specifically used to perform power consumption control based on the remaining power and the live broadcast information when the remaining power is less than the power threshold; or, when the remaining power is greater than or equal to the power threshold, to perform live broadcast power consumption control based on the live broadcast information.
[0154] like Figure 6 The diagram shown is a schematic representation of an embodiment of the terminal device described in this application, which may include, for example: Figure 5 The live streaming power consumption control device shown is shown.
[0155] like Figure 7 The diagram shown is a schematic diagram of another embodiment of the terminal device in this application. The following is a detailed description of the embodiment. Figure 7 A detailed introduction to the various components of a mobile phone in a terminal device:
[0156] RF circuit 710 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with processor 780; additionally, it transmits uplink data to the base station. Typically, RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc. Furthermore, RF circuit 710 can also communicate wirelessly with networks and other devices. The aforementioned wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0157] The memory 720 can be used to store software programs and modules. The processor 780 executes various mobile phone functions and data processing by running the software programs and modules stored in the memory 720. The memory 720 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0158] The input unit 730 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 731), and drive the corresponding connected devices according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 780, and can also receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 731, the input unit 730 may also include other input devices 732. Specifically, other input devices 732 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0159] The display unit 740 can be used to display information input by the user or information provided to the user, as well as various menus of the mobile phone. The display unit 740 may include a display panel 741, which may optionally be configured as a liquid crystal display (LCD), organic light-emitting diode (OLED), or similar display. Further, a touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it transmits the information to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides corresponding visual output on the display panel 741 based on the type of touch event. Although in Figure 7 In this embodiment, the touch panel 731 and the display panel 741 are two separate components to realize the input and output functions of the mobile phone. However, in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.
[0160] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 741 according to the ambient light level, and the proximity sensor can turn off the display panel 741 and / or backlight when the phone is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, taps), etc. Other sensors that may be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0161] Audio circuit 760, speaker 761, and microphone 762 provide an audio interface between the user and the mobile phone. Audio circuit 760 converts received audio data into electrical signals and transmits them to speaker 761, where speaker 761 converts them into sound signals for output. On the other hand, microphone 762 converts collected sound signals into electrical signals, which are received by audio circuit 760, converted into audio data, and then processed by processor 780 before being transmitted via RF circuit 710 to, for example, another mobile phone, or the audio data can be output to memory 720 for further processing.
[0162] Wi-Fi is a short-range wireless transmission technology. Through the Wi-Fi module 770, mobile phones can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 7The Wi-Fi module 770 is shown, but it is understood that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0163] The processor 780 is the control center of the mobile phone, connecting various parts of the phone through various interfaces and lines. It executes software programs and / or modules stored in the memory 720, and calls data stored in the memory 720 to perform various functions and process data, thereby providing overall monitoring of the phone. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 780.
[0164] The mobile phone also includes a power supply 790 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0165] Although not shown, mobile phones may also include a camera, Bluetooth module, etc., which will not be described in detail here.
[0166] In this embodiment of the application, the processor 780 is used to acquire live streaming information during the live streaming process. The live streaming information includes at least one of the following: information of the live streaming object in the live streaming screen, status information of the live streaming screen, and live streaming type information. The processor 780 performs live streaming power consumption control based on the live streaming information. The live streaming power consumption control includes at least one of the following: freezing the background component, reducing the brightness value of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module.
[0167] In some possible implementations of this application, the live streaming information includes information about the live streaming object in the live streaming screen, and the information about the live streaming object in the live streaming screen indicates whether there is a live streaming object in the live streaming screen; the processor 780 is specifically used to reduce the brightness value of the preview screen when the information about the live streaming object in the live streaming screen indicates that there is no live streaming object in the live streaming screen.
[0168] In some possible implementations of this application, the processor 780 is specifically used to reduce the brightness value of the preview screen when the information of the live objects in the live screen obtained within a preset time indicates that there are no live objects in the live screen.
[0169] In some possible implementations of this application, the live streaming information includes the status information of the live streaming screen, which indicates whether the live streaming screen is in a static state relative to the previous frame of the live streaming screen; the processor 780 is specifically used to reduce the acquisition frame rate of the image signal processor (ISP) acquisition module when the status information of the live streaming screen indicates that the live streaming screen is in a static state relative to the previous frame of the live streaming screen.
[0170] In some possible implementations of this application, the processor 780 is specifically configured to acquire the motion vector of the inter-frame live broadcast frame, wherein the motion vector of the inter-frame live broadcast frame includes the motion vector of the live broadcast frame; and when the motion vector of the live broadcast frame is 0, determine the state information of the live broadcast frame to indicate that the live broadcast frame is in a stationary state relative to the previous frame.
[0171] In some possible implementations of this application, the processor 780 is specifically used to include the live streaming type information in the live streaming information, and the control module 502 is specifically used to freeze the background components when the live streaming type information indicates a target live streaming type, wherein the target live streaming type includes a live streaming type with live chat or a live streaming type with makeup application.
[0172] In some possible implementations of this application, the processor 780 is specifically used to control the power consumption of live streaming based on the remaining battery power of the terminal device and the live streaming information.
[0173] In some possible implementations of this application, the processor 780 is specifically used to perform power consumption control based on the remaining power and the live broadcast information when the remaining power is less than a power threshold; or, when the remaining power is greater than or equal to the power threshold, to perform live broadcast power consumption control based on the live broadcast information.
[0174] This application embodiment further provides a computer-readable storage medium storing computer instructions that, when executed on a terminal device, cause the terminal device to perform the above-described method embodiment.
[0175] The aforementioned computer-readable storage medium may take the form of any combination of one or more computer-readable media. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0176] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0177] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, radio frequency (RF), etc., or any suitable combination thereof.
[0178] Computer program code for performing the operations described herein can be written in one or more programming languages or a combination thereof, including resource-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as "C" or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0179] This application also provides a computer program product that, when run on a computer, causes the computer to perform some or all of the steps described in the method embodiments above.
[0180] This application provides a chip system including a processor and potentially a memory, for implementing the functions of the terminal device described in the aforementioned method. The chip system may be composed of chips or may include chips and other discrete components.
[0181] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0182] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0183] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0184] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0185] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0186] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A live power consumption control method, characterized in that, include: Acquire live streaming information during the live streaming process, wherein the live streaming information includes at least one of the following: information about the live streaming object in the live streaming screen, status information of the live streaming screen, and live streaming type information; Live power consumption control is performed based on the live information. The live power consumption control includes at least one of the following: freezing background components, reducing the brightness of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module.
2. The method of claim 1, wherein, The live streaming information includes information about the live streaming object in the live streaming frame, and the information about the live streaming object in the live streaming frame indicates whether a live streaming object exists in the live streaming frame; the step of controlling live streaming power consumption based on the live streaming information includes: If the information of the live stream object in the live stream indicates that there is no live stream object in the live stream, the brightness value of the preview image is reduced.
3. The method according to claim 2, characterized in that, When the information of the live stream object in the live stream indicates that there is no live stream object in the live stream, reducing the brightness value of the preview image includes: If, within a preset time period, the information obtained from the live stream indicates that there are no live stream objects in the live stream, the brightness value of the preview screen is reduced.
4. The method according to claim 1, characterized in that, The live streaming information includes the status information of the live streaming screen, which indicates whether the live streaming screen is in a static state relative to the previous frame of the live streaming screen. The step of controlling live streaming power consumption based on the live streaming information includes: When the status information of the live stream indicates that the live stream is in a static state relative to the previous frame, the acquisition frame rate of the image signal processor (ISP) acquisition module is reduced.
5. The method according to claim 4, characterized in that, The acquisition of live streaming information during the live streaming process includes: Obtain the motion vectors of the inter-frame live stream, wherein the motion vectors of the inter-frame live stream include the motion vectors of the live stream itself. When the motion vector of the live stream is 0, the state information of the live stream is determined to indicate that the live stream is in a static state relative to the previous frame.
6. The method according to claim 1, characterized in that, The live streaming information includes the live streaming type information, and the step of controlling live streaming power consumption based on the live streaming information includes: If the live stream type information indicates a target live stream type, the backend component is frozen. The target live stream type includes live stream with co-hosting or live stream with makeup application.
7. The method according to any one of claims 1-6, characterized in that, The step of controlling live streaming power consumption based on the live streaming information includes: Live streaming power consumption is controlled based on the remaining battery power of the terminal device and the live streaming information.
8. The method according to claim 7, characterized in that, The live streaming power consumption control based on the remaining battery power of the terminal device and the live streaming information includes: If the remaining battery power is less than a battery threshold, power consumption control is performed based on the remaining battery power and the live broadcast information; or... If the remaining battery power is greater than or equal to the battery power threshold, live streaming power consumption control is performed based on the live streaming information.
9. A live streaming power consumption control device, characterized in that, include: The acquisition module is used to acquire live information during the live broadcast process. The live information includes at least one of the following: information of the live object in the live broadcast frame, status information of the live broadcast frame, and live broadcast type information. The status information of the live broadcast frame is used to indicate whether the live broadcast frame is in a static state or a moving state relative to the previous live broadcast frame. The control module is used to control the power consumption of the live broadcast based on the live broadcast information. The power consumption control includes at least one of freezing the background components, reducing the brightness of the preview screen, and reducing the acquisition frame rate of the image signal processor (ISP) acquisition module.
10. A terminal device, characterized in that, include: A memory and a processor, the memory storing a computer program executable on the processor, wherein the terminal device, when executing the program, implements the method of any one of claims 1-8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-8.
