A power consumption adjustment method of a terminal device, an electronic device, and a storage medium

By adaptively adjusting the resolution of the small window video stream on the terminal device, the power consumption and load issues during small window playback are resolved, thus optimizing device resources and maintaining the user experience.

CN120743086BActive Publication Date: 2026-04-24HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-06-14
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

When users switch video applications on their devices to windowed mode, existing technologies fail to effectively reduce power consumption and load, resulting in wasted device resources and a degraded user experience.

Method used

By detecting the small window size of the target video application, the video stream resolution is adaptively adjusted to match the display resolution, reducing data acquisition and optimizing power consumption and load.

Benefits of technology

Without affecting the user's viewing experience, reduce the power consumption and load of the terminal device and extend the device's usage time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120743086B_ABST
    Figure CN120743086B_ABST
Patent Text Reader

Abstract

The application provides a terminal device power consumption adjustment method, an electronic device and a storage medium, and relates to the technical field of terminals. The method comprises the following steps: first, obtaining a target window size of a small window of a target video application on a terminal device, and determining a display resolution of the target window, wherein the target window size is lower than a full-screen size of the terminal device; then, adjusting a resolution of a video source subsequently obtained by the target video application according to the display resolution, to obtain an adjusted video stream resolution which is lower than a full-screen video stream resolution; and then, according to the adjusted video stream resolution, obtaining video stream data of the video source which is played next from a server side, and continuing to play the video stream data through the target window of the target video application according to the adjusted video stream resolution, so that the video stream resolution obtained can be adaptively adjusted according to the change of the target video application window size, and the power consumption and load of the terminal device are optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a power consumption adjustment method, electronic device, and storage medium for a terminal device. Background Technology

[0002] With the continuous breakthroughs in artificial intelligence technology and the increasing prevalence of various terminal devices, more and more users are using various application software functions on these devices to meet their daily needs, such as watching videos using various video software. When users watch videos using video software on their terminal devices, the higher the video resolution, the higher the power consumption and load required for the terminal device to download and buffer the video stream.

[0003] Therefore, how to automatically adjust the power consumption of terminal devices without affecting the user's video viewing experience in order to extend the usage time of terminal devices has become an urgent technical problem to be solved. Summary of the Invention

[0004] To address the aforementioned issues, this application provides a power consumption adjustment method, electronic device, and storage medium for a terminal device. The aim is to adaptively adjust the resolution of the acquired video stream according to changes in the size of the video application window, thereby optimizing the power consumption and load of the terminal device and extending its usage time.

[0005] In a first aspect, this application provides a power consumption adjustment method for a terminal device. The method includes: during the full-screen playback of a video using a target video application on the terminal device at full-screen video stream resolution, when the terminal device (e.g., a mobile phone) detects that the user is playing the target video application in a small window, firstly, the window size of the small window of the target video application on the terminal device (i.e., the target window size) is obtained, and the display resolution of the target window is determined based on this target window size, wherein the target window size is lower than the full-screen size of the terminal device; then, based on the display resolution of the target window, the resolution of the video source subsequently acquired by the target video application is adjusted to obtain an adjusted video stream resolution; wherein the adjusted video stream resolution is lower than the full-screen video stream resolution; next, based on the adjusted video stream resolution, the video stream data to be played next from the video source is obtained from the server, and this video stream data is displayed through the target window of the target video application, continuing playback according to the adjusted video stream resolution.

[0006] As can be seen, in the above-mentioned power consumption adjustment method for terminal devices, when the user displays the running target video application in a small window, this embodiment no longer obtains the video source from the server according to the full-screen video stream resolution. Instead, it determines the adjusted video stream resolution, which is lower than the full-screen video stream resolution, based on the target window size corresponding to the small window (i.e., the target window). Then, it obtains the video stream data from the video source from the server according to the adjusted video stream resolution. In this way, compared with the video source data obtained according to the full-screen video stream resolution, the amount of video stream data obtained according to the adjusted video stream resolution is reduced, thereby reducing the power consumption and load of the terminal device downloading data and extending the usage time of the terminal device.

[0007] Based on this, the target window of the target video application will then play the video stream data to be played next, obtained from the server, according to the adjusted video stream resolution. This allows the video playback resolution to be automatically switched to the adjusted video stream resolution without informing the user, thus not affecting the user's video viewing experience.

[0008] In one possible implementation, before obtaining the target window size of the target video application on the terminal device, the method further includes: in response to a triggering operation by the user to play a video through the target video application, determining the full-screen video stream resolution; based on the full-screen video stream resolution, obtaining the video stream data to be played from the video source, and playing the video stream data to be played through the target video application according to the full-screen video stream resolution, thereby ensuring the user's video viewing experience.

[0009] In one possible implementation, in response to a user's triggering operation to play a video through a target video application, determining the full-screen video stream resolution includes: in response to the user's triggering operation to play a video through the target video application, obtaining the user's rating information about the target video application, the user's historical playback information, and the video playback capabilities of the terminal device; and determining the full-screen video stream resolution based on at least one of the user's rating information about the target video application, the user's historical playback information, the video playback capabilities of the terminal device, and the original resolution of the video source, thereby improving the accuracy of the full-screen video stream resolution.

[0010] In one possible implementation, after determining the full-screen video stream resolution in response to a user's trigger operation to play video through a target video application, the method further includes: updating the full-screen video stream resolution in response to a user's modification operation; then, based on the full-screen video stream resolution, obtaining the video stream data to be played from the video source, and playing the video stream data to be played through the target video application according to the full-screen video stream resolution, including: obtaining the video stream data to be played from the video source based on the updated full-screen video stream resolution, and playing it through the target video application according to the updated full-screen video stream resolution. This improves the user's video viewing experience and meets their personalized resolution viewing needs.

[0011] In one possible implementation, the resolution of the video source subsequently acquired by the target video application is adjusted according to the display resolution of the target window to obtain the adjusted video stream resolution. This includes: selecting N video stream resolutions from the original resolution of the video source that are not less than the display resolution of the target window, and selecting the lowest video stream resolution from the N video stream resolutions as the adjusted video stream resolution; where N is a positive integer greater than 0, thereby improving the accuracy of the adjusted video stream resolution so as to minimize the power consumption of the terminal device in the future.

[0012] In one possible implementation, the full-screen video stream resolution is adjusted to the resolution of the target video application window when the video was previously played in full-screen mode.

[0013] In one possible implementation, the target window size is smaller than half the screen size of the terminal device.

[0014] In one possible implementation, the method further includes: in response to a user's trigger operation to restore full-screen video playback in the target video application, restoring the adjusted video stream resolution to the full-screen video stream resolution; and, based on the full-screen video stream resolution, obtaining the next video stream data to be played from the video source, and continuing to play it through the target video application at the full-screen video stream resolution. This improves the user's video viewing experience.

[0015] Secondly, this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor is used to call and execute the computer program to implement the power consumption adjustment method of the terminal device described in any one of the first aspects above.

[0016] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when run by a processor of an electronic device, is used to implement the power consumption adjustment method of the terminal device described in any one of the first aspects above.

[0017] Fourthly, this application provides a computer program product that, when run on a computer, causes the computer to execute the power consumption adjustment method for a terminal device as described in any one of the first aspects. Attached Figure Description

[0018] Figure 1 This is one of the scenario illustrations provided in the embodiments of this application;

[0019] Figure 2 This is a second scenario illustration provided for an embodiment of this application;

[0020] Figure 3 A schematic diagram of an electronic device provided in an embodiment of this application;

[0021] Figure 4 A software structure block diagram of an electronic device provided in an embodiment of this application;

[0022] Figure 5 A flowchart of a power consumption adjustment method for a terminal device provided in an embodiment of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the embodiments of this application, "one or more" refers to one, two, or more; "and / or" describes the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0024] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0025] The "multiple" mentioned in the embodiments of this application refers to two or more. It should be noted that in the description of the embodiments of this application, terms such as "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance, nor should they be construed as indicating or implying order.

[0026] To enable those skilled in the art to better understand the solution of this application, the application scenario of the technical solution of this application will be described first.

[0027] See Figure 1 The illustration shows a scenario diagram provided by an embodiment of this application.

[0028] In this example scenario, such as Figure 1 As shown in (a), when a user watches a video in full-screen mode using certain video applications on a terminal device (such as a mobile phone), the terminal device (such as a mobile phone) often needs to send a request to the server to obtain the video stream data from the video source. The device then plays the video stream data sent by the server according to the full-screen video stream resolution. The resolution used refers to the resolution of the video data contained in the air interface video stream, that is, the resolution of the video stream in the video source input to the decoder. Furthermore, the user can select different resolutions for playback. For example, when the user clicks the "480P" button on the video playback interface, a page pops up containing resolution options such as "Ultra HD 4K," "HD 1080P," "Quasi-HD 720P," and "Standard Definition 480P." Figure 1 As shown in (b), users can click to filter and modify the resolution of the full-screen video stream.

[0029] It's important to note that a higher user-defined resolution requires a higher download bitrate from the video source on the terminal device (e.g., a mobile phone). When air interface bandwidth is limited, such as due to network speed or hardware limitations of the terminal device (e.g., a mobile phone), resulting in limited download speed or bitrate, the user-defined resolution needs to be lowered to ensure smoother video playback. Conversely, when air interface bandwidth is sufficient, the resolution can be increased to improve the user's viewing experience. Furthermore, seamless and smooth switching between these resolutions is necessary during video playback.

[0030] However, when users are watching videos using this video application, they may be simultaneously viewing other pages while the video application is displayed in a small window, such as... Figure 2 As shown, when a user views a video in a small window while checking other applications such as text messages or weather on their phone, the resolution of the video in the small window (defined here as the display resolution) is reduced compared to the full-screen video stream resolution. However, currently, for terminal devices (such as mobile phones), even if the user plays the video application in a small window, it still sends requests to the server to obtain the video stream data from the video source according to the full-screen video stream resolution. This leads to, for example... Figure 2 In some scenarios where the small window is displayed, it can lead to wasted power consumption and increased load on the terminal device.

[0031] Display resolution refers to the width and height displayed on the screen of a terminal device (such as a mobile phone), and the unit is the number of pixels. For example, assuming the resolution of the video source is 1920x1080 (i.e., 1080P), it can be displayed on the terminal device (such as a mobile phone) screen in any size, such as half-screen or small window. Here, 1080P is the full-screen video stream resolution, and half-screen, full-screen, small window, and other arbitrary sizes correspond to the display resolution of different windows.

[0032] There are often three different scaling relationships between the video stream resolution of the video source and the display resolution of different windows of any size, such as half-screen or small window: The first is scaling in both width and height to match the full window corresponding to any size, such as half-screen or small window, thus reducing the resolution; the second is maintaining the same aspect ratio as the full-screen video stream resolution, expanding one side to the full window corresponding to any size, such as half-screen or small window, while maintaining the aspect ratio on the other side. This situation may result in the video stream being smaller than the window, causing black bars to appear, such as... Figure 2 As shown; the third method is to not scale the video and display it in a window of any size, such as half-screen or small window, at a 1:1 ratio. In this case, the video image will be cropped.

[0033] To address the issues of power waste and increased load associated with playing video applications in a small window on terminal devices (such as mobile phones), this application provides a power consumption adjustment method, electronic device, and storage medium for terminal devices. This method adaptively adjusts the resolution of the video stream acquired by the terminal device when the user performs window-based video processing, thereby optimizing the power consumption and load of the terminal device without affecting the user's video viewing experience.

[0034] The power consumption adjustment method for terminal devices provided in this application embodiment can be applied to electronic devices such as mobile phones, tablets, televisions, medical instruments, personal digital assistants (PDAs), desktop, laptop, and notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, netbooks, and wearable devices.

[0035] To enable those skilled in the art to better understand the power consumption adjustment method for the terminal device provided in this application, the hardware architecture and software system architecture of the electronic device will be described in detail below.

[0036] See Figure 3 The diagram illustrates an electronic device provided in an embodiment of this application.

[0037] like Figure 3 As shown, the electronic device 300 may include a processor 310, a mobile communication module 320, a wireless communication module 330, a sensor module 340, a display screen 350, an internal memory 360, a camera 370, an audio module 380, a speaker 380A, a receiver 380B, a microphone 380C, a headphone jack 380D, an antenna group 1, and an antenna group 2.

[0038] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 300. In other embodiments of this application, the electronic device 300 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0039] Processor 310 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. The video codec can adaptively adjust the resolution of the video stream acquired by the terminal device according to changes in the size of the video application window, thereby optimizing the power consumption and load of the terminal device.

[0040] The processor 310 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. This memory can store instructions or data that the processor 310 has just used or that are used repeatedly. If the processor 310 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 310, and thus improves the efficiency of the system.

[0041] In some embodiments, the processor 310 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0042] The sensor module 340 can be used to acquire data signals related to various aspects of the electronic device 300, serving as a basis for implementing corresponding functions. In some embodiments, the sensor module 340 may include, but is not limited to, pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, temperature sensors, image sensors, etc.

[0043] The display screen 350 is used to display images, videos, etc., such as displaying a video screen viewed by a user using an application installed on a terminal device (mobile phone or tablet computer, etc.). The display screen 350 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 300 may include one or P display screens 350, where P is a positive integer greater than 1.

[0044] Internal memory 360 can be used to store executable program code, including instructions. Internal memory 360 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound capture, image capture, etc.). The data storage area may store data created during the use of electronic device 300 (such as audio data, image data, etc.). Furthermore, internal memory 360 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, universal flash storage (UFS), etc. Processor 310 executes various functional applications and data processing of electronic device 300 by running instructions stored in internal memory 360 and / or instructions stored in memory located in the processor.

[0045] In some embodiments, the internal memory 360 stores instructions for performing power consumption adjustment of the terminal device. The processor 310 can execute the instructions stored in the internal memory 360 to achieve the following specific functions: When it detects that a user is playing a video application in a small window on an electronic device 300 (such as a mobile phone), it first obtains the size of the small window of the video application on the terminal device and determines the corresponding display resolution. Then, based on the display resolution, it adjusts the resolution of the video source subsequently obtained by the video application to obtain an adjusted video stream resolution; wherein the adjusted video stream resolution is lower than the full-screen video stream resolution. Next, based on the adjusted video stream resolution, it obtains the video stream data that needs to be played next from the video source and continues to play it through the video application according to the adjusted video stream resolution. In this way, compared to obtaining the video source based on the full-screen video stream resolution, the amount of video stream data obtained is reduced, which not only reduces the power consumption and load of the terminal device, but also does not affect the user's video viewing experience.

[0046] Camera 370 is used to capture still images or videos. For example, after a user holds the electronic device 300, they can use the camera 370 installed on the electronic device 300 to capture various video images. Objects are projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 300 may include one or K cameras 370, where K is a positive integer greater than 1.

[0047] Electronic device 300 implements display functions through a GPU, display screen 350, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 350 and the application processor. The GPU performs mathematical and geometric calculations and is used for graphics rendering. Processor 310 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0048] Electronic device 300 can implement audio functions through audio module 380, speaker 380A, receiver 380B, microphone 380C, headphone jack 380D, and application processor. Examples include music playback, video calls, and voice input / output during video playback.

[0049] The audio module 380 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 380 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 380 may be located in the processor 310, or some functional modules of the audio module 380 may be located in the processor 310.

[0050] The speaker 380A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. Electronic device 300 can listen to music or make hands-free calls through the speaker 380A.

[0051] The receiver 380B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 300 answers a telephone call or voice message, the receiver 380B can be brought close to the listener's ear to hear the voice.

[0052] Microphone 380C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 380C, inputting the sound signal into microphone 380C. Electronic device 300 may have at least one microphone 380C. In some embodiments, electronic device 300 may have two microphones 380C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 300 may have three, four, or more microphones 380C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0053] The 380D headphone jack is used to connect wired headphones and does not restrict the standard attributes of the jack.

[0054] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 300.

[0055] The wireless communication function of electronic device 300 can be implemented through antenna 1, antenna 2, mobile communication module 320, wireless communication module 330, modem processor, and baseband processor.

[0056] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 300 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0057] The mobile communication module 320 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 300. The mobile communication module 320 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 320 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 320 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 320 may be housed in the processor 310. In some embodiments, at least some functional modules of the mobile communication module 320 and at least some modules of the processor 310 may be housed in the same device.

[0058] The wireless communication module 330 can provide solutions for wireless communication applications on the electronic device 300, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 330 can be one or more devices integrating at least one communication processing module. The wireless communication module 330 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 310. The wireless communication module 330 can also receive signals to be transmitted from processor 310, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0059] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 300. In other embodiments of this application, the electronic device 300 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0060] In addition, the electronic device 300 runs an operating system on top of the aforementioned components. Examples include iOS, Android, and Windows operating systems. Applications can be installed and run on this operating system.

[0061] See Figure 4 It shows a schematic diagram of the software structure of the electronic device provided in the embodiments of this application.

[0062] The software system of electronic device 300 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of electronic device 300.

[0063] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0064] The application layer can include a series of application packages. For example... Figure 4 As shown, the application package can include applications (APPs) such as camera, call, music, video, WLAN, and Bluetooth. Among them, the video application APP is used to pass the video data stream to the multimedia codec (MediaCodec) in the framework layer and the codec abstraction layer (Codec HAL) in the hardware decoding layer through the media player interface, so that the video can be decoded and other post-processed before being played to the user.

[0065] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications within the application layer. The application framework layer includes predefined functions. For example... Figure 4 As shown, the application framework layer may include a window manager, a notification manager, a view system, a phone manager, and a power consumption adjustment algorithm for the terminal device.

[0066] The window manager is used to manage window applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots, among other things.

[0067] The phone manager is used to provide communication functions for electronic devices 300. For example, it manages call status (including answering and ending video calls).

[0068] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, the display interface of an application may include views for displaying text and views for displaying video images.

[0069] The power consumption adjustment algorithm for terminal devices is used to detect the window size of video applications playing videos on the terminal device. When it detects that a video application is playing video in a small window, it first obtains the size of the small window and determines the corresponding display resolution. Then, based on this display resolution, it adjusts the resolution of the video source subsequently acquired by the video application to obtain an adjusted video stream resolution. This adjusted video stream resolution is lower than the full-screen video stream resolution. Next, based on this adjusted video stream resolution, it obtains the next video stream data to be played from the video source and continues playback through the video application at the adjusted video stream resolution, thereby reducing the power consumption and load of the terminal device.

[0070] The content manager is used to store and retrieve data, making that data accessible to applications. This data can include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0071] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users when a video download is complete or to send message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0072] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0073] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0074] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0075] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0076] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0077] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0078] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0079] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0080] A 2D graphics engine is a graphics engine for 2D drawing.

[0081] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0082] The technical solutions involved in the following embodiments can all be implemented in electronic devices with the above-described hardware and software architectures.

[0083] Next, the implementation process of the power consumption adjustment method for the terminal device provided in this application will be described in detail:

[0084] In some embodiments, to address the issues of power waste and increased load on terminal devices in scenarios such as users playing video applications in a small window on a terminal device (e.g., a mobile phone), this application provides a power consumption adjustment method for terminal devices. This method adaptively adjusts the resolution of the video stream acquired by the terminal device when the user performs window-to-window processing, thereby reducing the amount of data in the video stream acquired by the terminal device, optimizing the power consumption and load of the terminal device, and without affecting the user's video viewing experience. Figure 5 As shown, the specific implementation process of the power consumption adjustment method of the terminal device may include the following steps S501-S503:

[0085] S501: Obtain the target window size of the target video application on the terminal device, and determine the display resolution of the target window based on the target window size; wherein, the target window size is lower than the full screen size of the terminal device.

[0086] In this embodiment, in order to reduce the power consumption and load of the terminal device, extend the usage time of the terminal device, and not affect the user's video viewing experience, when the user uses a video application on the terminal device (here defined as the target video application) to watch a video, such as when the user clicks the icon of video application A on the mobile phone to open the display interface of the video application and selects TV series B on the interface to play the video, the terminal device (such as the mobile phone) first responds to the user's trigger operation to play the video, can determine the video stream resolution for full-screen playback of the video (such as TV series B), and then, according to the full-screen video stream resolution, obtains the video stream data to be played from the server through a wired or wireless network, and plays this video stream data to be played on the display screen of the terminal device (such as the mobile phone) through the target video application (such as video application A) according to the full-screen video stream resolution.

[0087] Specifically, one possible implementation is that, in response to a user's trigger action of playing a video through a target video application, the system can first obtain the user's level information regarding the target video application, the user's historical playback information, and the video playback capabilities of the terminal device. The user's level information regarding the target video application (e.g., Video Application A) may include, but is not limited to, whether the user is a regular user or a member of the target video application. The user's historical playback information may include, but is not limited to, the resolution and playback speed used by the user when playing videos using the target video application in the past. The video playback capabilities of the terminal device may include, but is not limited to, the resolution of the video displayed on the terminal device's screen. For example, some high-end mobile phones have high-definition displays that can support 4K ultra-high-definition video, while some lower-end mobile phones may only support a maximum of 1080P resolution video.

[0088] Then, based on at least one of the following information: the user's rating information about the target video application, the user's historical playback information, the video playback capabilities of the terminal device, and the original resolution of the video source, the resolution of the full-screen video stream is determined.

[0089] For example: If the user is a member of the target video application, the full-screen video stream resolution is 1080P, which is only available to members. If the user is a regular user of the target video application, the full-screen video stream resolution is 480P, which is the default resolution for regular users. Alternatively, if it's recorded that the user has previously used Ultra HD 4K resolution when playing videos on the target video application, the full-screen video stream resolution is Ultra HD 4K. Furthermore, if the terminal device (such as a mobile phone) has a non-HD display screen, and the highest supported video resolution is 720P, the full-screen video stream resolution is 720P. Or, if the video source the user wants to play has a maximum resolution of only 480P stored on the server (possibly due to the video source being older), the full-screen video stream resolution is 480P.

[0090] It should be noted that although the full-screen video stream resolution can be determined based on at least one of the following: the user's rating information about the target video application, the user's historical playback information, the video playback capabilities of the terminal device, and the original resolution of the video source, it is understandable that if multiple pieces of information are used as the basis for determination, the lowest resolution determined by the multiple constraints will be used as the full-screen video stream resolution.

[0091] For example: Suppose the user is a member of the target video application, and the full-screen video stream resolution determined based on this information should be 1080P. However, the user's terminal device (such as a mobile phone) is equipped with a non-HD ordinary display screen that can only support playing videos with a maximum resolution of 720P. In this case, the lower resolution (i.e., 720P) will be used as the final determined full-screen video stream resolution.

[0092] In addition, to meet the personalized needs of different users and improve their viewing experience, one possible implementation is that users can also modify the resolution of the full-screen video stream. The terminal device can then respond to the user's modification of the full-screen video stream resolution by updating the resolution. Then, based on the updated resolution, it can obtain the video stream data to be played from the video source and play it through the target video application according to the updated resolution.

[0093] For example: Suppose a user is a regular user of the target video application, and based on this information, the full-screen video stream resolution is determined to be 480P. If the user wants to watch a higher resolution video, they can click the resolution button on the video playback interface to bring up a screen where they can adjust the resolution and select the resolution that suits their needs. For example, the user can click as follows... Figure 1The video playback interface shown in (a) has a "480P" button. In the pop-up page that includes resolution options such as "Ultra HD 4K", "HD 1080P", "Quasi-HD 720P", and "Standard Definition 480P", select "Quasi-HD 720P" as the updated full-screen video stream resolution. Then, the user's mobile phone can obtain the video stream data to be played from the video source from the server at the "Quasi-HD 720P" resolution, and play the obtained video stream at the "Quasi-HD 720P" resolution in the video playback interface of the target video application.

[0094] Furthermore, during the process of playing a video in full-screen resolution through a target video application on a terminal device, when the terminal device (such as a mobile phone) detects that the user is playing the target video application in a small window (see [reference]...) Figure 2 When the target video application is in the target window size, the window size of the small window on the terminal device can be obtained first and defined as the target window size. Then, based on the three different scaling relationships (but not limited to) between the video stream resolution of the video source and the display resolution of different windows of any size such as half screen and small window, the full screen video stream resolution can be replaced with the video stream resolution of the video source to determine the display resolution of the target window, which is then used to execute the subsequent step S502. The specific determination process will not be described in detail here.

[0095] It should be noted that this application does not limit the specific value or acquisition method of the target window size. It can be set and selected based on actual conditions and experience, but the target window size must be lower than the full-screen size of the terminal device. For example, if the area of ​​the video window occupies less than a preset percentage threshold of the entire display interface of the terminal device, it can be classified as a small window, and its corresponding target window size can be determined. The preset percentage threshold is also not limited and can be set based on actual conditions and experience. For example, it can be set to 1 / 2. In this case, if the area of ​​the video window occupies less than 1 / 2 of the entire display interface of the terminal device, the video window can be classified as a small window, and its corresponding target window size can be determined to be lower than half the screen size of the terminal device.

[0096] S502: Adjust the resolution of the video source subsequently acquired by the target video application according to the display resolution of the target window to obtain the adjusted video stream resolution; wherein, the adjusted video stream resolution is lower than the full-screen video stream resolution.

[0097] In this embodiment, after determining the display resolution of the target window in step S501, in order to reduce the power consumption and load of the terminal device, the resolution of the video stream obtained by the target video application from the server can be adjusted according to the display resolution of the target window to obtain the adjusted video stream resolution, which is then used to execute the subsequent step S503.

[0098] The adjusted video stream resolution is lower than the full-screen video stream resolution. The full-screen video stream resolution refers to the resolution when the user adjusts the target video application window to the target window (such as a small window smaller than half the screen size of the terminal device) before playing the video in full screen.

[0099] Specifically, one possible implementation is to reduce the power consumption and load of the terminal device. After determining the display resolution of the target window when the user adjusts the window of the target video application to the target window (such as a small window smaller than half the screen size of the terminal device) for video playback, N (N is a positive integer greater than 0) video stream resolutions that are not less than the display resolution of the target window can be selected from the various original resolutions of the video source stored on the server. Then, the lowest video stream resolution is selected from these N video stream resolutions as the adjusted video stream resolution. In this way, the amount of video stream data obtained by the terminal device from the video source on the server with the adjusted video stream resolution through the subsequent step S503 is minimized, and it will not affect the user's experience of watching the video in the target window (such as a small window smaller than half the screen size of the terminal device).

[0100] For example: Suppose that step S501 determines the target window's display resolution to be 720P, the full-screen video stream resolution to be 1080P, and the original resolutions of the video sources stored on the server side include 4K, 1080P, 720P, and 480P. Then, we can select 4K, 1080P, and 720P—three video stream resolutions not less than the display resolution of 720P. To minimize the power consumption of the terminal device, we can further select the lowest video stream resolution of 720P from these three resolutions as the adjusted video stream resolution. In this way, the terminal device can then obtain the 720P video stream from the server by executing the subsequent step S503, without needing to obtain video streams with resolutions higher than 1080P, thus reducing the amount of data downloaded and consequently reducing the power consumption and load of the terminal device.

[0101] S503: Based on the adjusted video stream resolution, obtain the video stream data to be played next from the video source, and continue playing the video stream data through the target video application according to the adjusted video stream resolution.

[0102] In this embodiment, after obtaining the adjusted video stream resolution in step S502, in order to reduce the power consumption and load of the terminal device, the terminal device can further send a video source data download request with the adjusted video stream resolution to the server. This allows the terminal device to obtain the video stream data to be played next, corresponding to the adjusted video stream resolution. Compared to obtaining video source data based on the full-screen video stream resolution, the amount of video stream data obtained based on the adjusted resolution is reduced, thereby reducing the power consumption and load of the terminal device and extending its usage time. Then, through the target window of the target video application, the video stream data to be played next, obtained from the server, is played according to the adjusted video stream resolution. In this way, the resolution of the played video can be automatically switched to the adjusted video stream resolution without informing the user, thus not affecting the user's viewing experience. Even in practical applications, due to different compression and decompression algorithms after video compression and decompression, slight distortion may occur, making it not completely lossless. However, these slight differences are within an acceptable range and do not result in substantial resolution loss, thus not affecting the user's video viewing experience.

[0103] Furthermore, when the user plays the target video application (such as video player A) in a small window (see [reference]...), Figure 2 During the process, when the terminal device (such as a mobile phone) detects that the user has restored the target video application to full-screen video playback (see [link]), Figure 1 When a user clicks the "Fullscreen Playback" button on the video page, the system first responds to this action by restoring the video playback resolution from the adjusted video stream resolution to the full-screen video stream resolution. For example, it restores the video playback resolution from the adjusted video stream resolution of 720P to the full-screen video stream resolution of 1080P. Then, based on this full-screen video stream resolution, it retrieves video stream data from the server that will be played next in the video source with a resolution no lower than 1080P, and continues playing it in the full-screen window of the target video application at the full-screen video stream resolution. This allows for automatic switching of the video playback resolution to the full-screen video stream resolution without notifying the user, thus ensuring an uninterrupted viewing experience.

[0104] Thus, when a terminal device (such as a mobile phone) detects that a user is playing a video in a small window using a target video application (such as video playback application A) (see [link to relevant documentation]), the device will detect the video. Figure 2When performing steps S501-S503 above, a lower video stream resolution (not less than the display resolution of the small window but lower than the full-screen video stream resolution) is used for video playback in these small windows. This reduces the air interface bandwidth, which is beneficial for smoother video playback. Furthermore, the amount of video stream data downloaded by the terminal device (such as a mobile phone) from the server is reduced, which not only lowers the power consumption and load of the terminal device but also extends its usage time without affecting the user's video viewing experience. Thus, it achieves video playback that is smoother and more power-efficient on the terminal device (such as a mobile phone) without affecting the user's viewing experience.

[0105] Furthermore, this application also provides an electronic device (i.e., a terminal device). For details regarding the hardware structure and software framework of the electronic device, please refer to [link to relevant documentation]. Figure 3 and Figure 4 The corresponding explanation is as follows: The electronic device includes a memory and a processor. The memory stores a computer program, and the processor calls and executes the computer program to implement the power consumption adjustment method of the terminal device provided in the above description.

[0106] This application also provides a computer-readable storage medium storing a computer program thereon, which, when run by the processor of a terminal device, is used to implement the power consumption adjustment method of the terminal device provided in the above description.

[0107] 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 method for adjusting the power consumption of a terminal device, characterized in that, The method includes: In response to a user's trigger operation of playing a video through a target video application, the system obtains the user's rating information about the target video application, the user's historical playback information, and the video playback capabilities of the terminal device. The full-screen video stream resolution is determined based on at least one of the following: the user's rating information regarding the target video application, the user's historical playback information, the video playback capabilities of the terminal device, and the original resolution of the video source. Based on the full-screen video stream resolution, obtain the video stream data to be played from the video source, and play the video stream data to be played through the target video application according to the full-screen video stream resolution; The target window size of the target video application on the terminal device is obtained, and the display resolution of the target window is determined based on the target window size. The target window size is smaller than the full-screen size of the terminal device. There are three different scaling relationships between the display resolution of the target window and the resolution of the full-screen video stream. The first is to scale both the width and height dimensions of the terminal device screen to match the full window size corresponding to the target window size, thus reducing the resolution. The second is to maintain the same aspect ratio as the full-screen video stream resolution, expanding one side to match the full window size corresponding to the target window size while maintaining the aspect ratio on the other side. The third is to not scale, displaying the video in the target window at a 1:1 ratio. N video stream resolutions that are not less than the display resolution of the target window are selected from the original resolution of the video source, and the lowest video stream resolution is selected from the N video stream resolutions as the adjusted video stream resolution; N is a positive integer greater than 0; the adjusted video stream resolution is lower than the full-screen video stream resolution. Based on the adjusted video stream resolution, obtain the video stream data to be played next from the video source, and continue playing the video stream data through the target video application according to the adjusted video stream resolution.

2. The method according to claim 1, characterized in that, After determining the full-screen video stream resolution in response to a user's trigger operation to play a video through a target video application, the method further includes: In response to user changes to the full-screen video stream resolution, update the full-screen video stream resolution; The step of obtaining the video stream data to be played from the video source according to the full-screen video stream resolution, and playing the video stream data to be played through the target video application according to the full-screen video stream resolution, includes: Based on the updated full-screen video stream resolution, obtain the video stream data to be played from the video source, and play it through the target video application according to the updated full-screen video stream resolution.

3. The method according to claim 1, characterized in that, The full-screen video stream resolution is the resolution of the target video application window when it was playing the video in full screen before the target window was adjusted.

4. The method according to claim 1, characterized in that, The target window size is smaller than half the screen size of the terminal device.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: In response to the user's trigger operation to restore the target video application to full-screen playback, the adjusted video stream resolution is restored to the full-screen video stream resolution; Based on the full-screen video stream resolution, obtain the video stream data to be played next from the video source, and continue playing it through the target video application according to the full-screen video stream resolution.

6. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor being used to invoke and execute the computer program to implement the method of any one of claims 1-5.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by an electronic device, implements the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Video playing control method and apparatus

    CN106162232A

  • Video decoding method and device and storage medium

    CN112087633A

  • Video definition adjusting method and device, electronic equipment and storage medium

    CN112399123A

  • Video playing method and device, electronic equipment and computer readable storage medium

    CN115643429A