WO2021036551A1 - 功耗调节方法、装置及计算机可读存储介质 - Google Patents

功耗调节方法、装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2021036551A1
WO2021036551A1 PCT/CN2020/101809 CN2020101809W WO2021036551A1 WO 2021036551 A1 WO2021036551 A1 WO 2021036551A1 CN 2020101809 W CN2020101809 W CN 2020101809W WO 2021036551 A1 WO2021036551 A1 WO 2021036551A1
Authority
WO
WIPO (PCT)
Prior art keywords
resolution
video resource
power consumption
display screen
preset
Prior art date
Application number
PCT/CN2020/101809
Other languages
English (en)
French (fr)
Inventor
潘明东
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2021036551A1 publication Critical patent/WO2021036551A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/391Resolution modifying circuits, e.g. variable screen formats
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk

Definitions

  • This article relates to the technical field of smart phones, in particular to a power consumption adjustment method, device, and computer-readable storage medium.
  • the main purpose of this article is to provide a power consumption adjustment method, device and computer readable storage medium, which aims to solve the technology of how to automatically adjust the power consumption value and resolution to achieve the best balance between power consumption and display effect. problem.
  • the power consumption adjustment method includes: when it is detected that the display screen starts to play the video resource, acquiring the decoding code stream of the video resource, and obtaining the decoding code stream from the decoding code stream. Obtain the resolution of the video resource; Obtain the resolution of the display screen, and compare the resolution of the video resource with the resolution of the display screen; If the resolution of the video resource is smaller than the For the resolution of the display screen, the drawing resolution of the graphics processor GPU is adjusted according to a preset algorithm, and the currently played video resource is drawn using the adjusted drawing resolution, so as to reduce the power consumption of the GPU.
  • this article also provides a power consumption adjustment device
  • the power consumption adjustment device includes: a memory, a processor, and a power consumption adjustment program stored in the memory and running on the processor When the power consumption adjustment program is executed by the processor, any step of the power consumption adjustment method described above is implemented.
  • this article also provides a computer-readable storage medium on which a power consumption adjustment program is stored, and when the power consumption adjustment program is executed by a processor, any step of the power consumption adjustment method described above is implemented. .
  • FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiments of this document;
  • FIG. 2 is a schematic flowchart of the first embodiment of the power consumption adjustment method herein;
  • FIG. 3 is a detailed flow diagram of the steps of adjusting the drawing resolution of the graphics processor GPU according to a preset algorithm if the resolution of the video resource is smaller than the resolution of the display screen in FIG. 2.
  • FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiments herein.
  • the device in the embodiment of this document can be a smart phone, a PC, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, and an MP4 (Moving Picture Experts Group) Audio Layer IV, moving image experts compress standard audio layer 4)
  • Portable terminal devices with display functions such as players and portable computers.
  • the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard).
  • the user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • the device may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on.
  • sensors such as light sensors, motion sensors and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, where the ambient light sensor can adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor can turn off the display screen when the mobile terminal is moved to the ear And/or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of the mobile terminal's posture (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
  • FIG. 1 does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine some components, or arrange different components.
  • a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a power consumption adjustment program.
  • the network interface 1004 is mainly used to connect to a back-end server and communicate with the back-end server;
  • the user interface 1003 is mainly used to connect to a client (user side) to communicate with the client;
  • the processor 1001 can be used to call the power consumption adjustment program stored in the memory 1005, and perform the following operations: when it is detected that the display screen starts to play a video resource, obtain the decoded code stream of the video resource, and obtain it from the decoded code stream The resolution of the video resource; obtain the resolution of the display screen, and compare the resolution of the video resource with the resolution of the display screen; if the resolution of the video resource is smaller than the display screen
  • the graphics processor GPU’s drawing resolution is adjusted according to the preset algorithm, and the currently played video resource is drawn using the adjusted drawing resolution, so as to reduce the power consumption of the GPU.
  • the processor 1001 may call a power consumption adjustment program stored in the memory 1005, and also perform the following operations: if the resolution of the video resource is less than the resolution of the display screen, the processor 1001 performs the following operations according to a preset algorithm. Set the drawing resolution to match the drawing resolution closest to the resolution of the video resource; adjust the GPU drawing resolution to the closest drawing resolution.
  • the processor 1001 may call a power consumption adjustment program stored in the memory 1005, and further perform the following operations: obtain the width and height values of the resolution of the video resource and the preset drawing resolution Width value and height value, wherein the preset drawing resolution is multiple; determining whether the difference between the width value of the resolution of the video resource and the width value of each preset drawing resolution is within the first threshold And whether the difference between the high value of the resolution of the video resource and the high value of each preset drawing resolution is within the second threshold range; if the width of the resolution of the video resource and each preset It is assumed that the difference between the width of the drawing resolution is within the first threshold range, and the difference between the high value of the resolution of the video resource and the high value of each preset drawing resolution is within the second threshold range, Then, the drawing resolution meeting the condition is taken as the drawing resolution closest to the resolution of the video resource.
  • the processor 1001 may call a power consumption adjustment program stored in the memory 1005, and also perform the following operations: amplify the drawing data by the amplifying unit, so that the resolution of the video resource is consistent with the resolution of the display screen. The resolution remains the same.
  • the processor 1001 may call a power consumption adjustment program stored in the memory 1005, and also perform the following operations: when the video resource ends playing, control the GPU's drawing resolution to return to the drawing resolution before adjustment rate.
  • FIG. 2 is a schematic flowchart of the first embodiment of the power consumption adjustment method herein.
  • the power consumption adjustment method includes: step S10, when it is detected that the display screen starts to play the video resource, the decoding of the video resource is obtained Code stream, and obtain the resolution of the video resource from the decoded code stream.
  • the device in the embodiment of this document can be a smart phone, a PC, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, and an MP4 (Moving Picture Experts Group) Audio Layer IV, moving image experts compress standard audio layer 4)
  • Portable terminal devices with display functions such as players and portable computers.
  • the following embodiments all take a smart phone as an example.
  • the smart phone detects that a certain video playback software is currently being used to play a video resource, it decodes the video resource and obtains the resolution information of the video resource from the decoded code stream.
  • the required resolution can be quickly extracted from the decoded code stream Rate information.
  • H.264 bitstream Take the H.264 bitstream as an example, the H.264 bitstream always starts with 0x00 0x00 0x01 or 0x00 0x00 0x00 0x01, and then checks whether the last five digits of the first byte after the start code are 7 (00111) To determine whether it is SPS (Sequence Parameter Set), after obtaining the SPS, the resolution of the video can be parsed.
  • SPS Sequence Parameter Set
  • pic_width_in_mbs_minus1 and pic_height_in_map_units_minus_1 respectively represent the width and height information of the image. According to these two values, after calculation, the actual resolution of the video resource can be obtained.
  • the smart phone can detect whether the current display screen is playing video resources during the entire process from power on to power off, and if so, obtain the resolution information of the video resources; it can also be in low battery conditions, such as remaining power When it is only 30% or 20%, it will automatically enter the power saving mode. In the power saving mode, once it detects that the current display is playing the video resource, it will obtain the resolution information of the video resource; of course, it can also be done by the user of the smart phone. Setting, if you choose to enter the power saving mode on the setting interface, the smart phone will get the resolution information of the video resource once it detects that the current display screen is playing the video resource after entering the power saving mode.
  • Step S20 Obtain the resolution of the display screen, and compare the resolution of the video resource with the resolution of the display screen.
  • the display effect of video resources on the display screen depends on the resolution of the video resources and the resolution of the display screen. After obtaining the resolution of the video resource, it is also necessary to obtain the resolution of the display screen.
  • the following code can be used to obtain the resolution of the display screen:
  • step S30 is executed.
  • the smartphone is limited by the limitations of the hardware itself, and can only display the video resource according to the resolution of the display screen.
  • Step S30 If the resolution of the video resource is smaller than the resolution of the display screen, adjust the graphics processor GPU graphics resolution according to the preset algorithm, and use the adjusted graphics resolution to perform the current playback on the video resource. Drawing to reduce the power consumption of the GPU.
  • the picture displayed on the display requires a graphics processor GPU for instant drawing. If the graphics resolution of the GPU is reduced, for example, from 1440p to 1080P, the number of pixels that the graphics processor GPU needs to render will be reduced from 3686400 to 2073600. This way The GPU's calculation amount is greatly reduced, and the frequency and load are also reduced, which can bring about a certain degree of power saving.
  • the resolution of the smart phone display is fixed.
  • the graphics resolution of the GPU needs to be adjusted, and the GPU's resolution is appropriately reduced.
  • the graphics resolution reduces the power consumption of the GPU, thereby achieving a balance between resolution and power consumption.
  • the preset algorithm in the above description can be to directly set the resolution of the acquired video resource to the graphics resolution of the GPU, or to preset multiple graphics resolutions in the GPU, and dynamically select the closest one based on the resolution of the video
  • the drawing resolution is used as the current drawing resolution of the GPU.
  • the GPU draws the currently played video resource in real time according to the adjusted drawing resolution, and inputs the drawing data to the magnifying unit for magnification, so that the resolution of the video resource is the same as that of the display screen. Keep it consistent to avoid that the resolution of the drawing data is lower than the resolution of the display, causing the video resources to not be displayed normally. And after the playback of the current video resource ends, control the GPU's drawing resolution to return to the drawing resolution before adjustment, so as to ensure that it does not affect other applications using the display resolution for display.
  • the smart phone subsequently plays a video resource each time, repeat the above steps to obtain the resolution of the video resource, and reconfirm and adjust the graphics resolution of the GPU.
  • the resolution of the graphics processor GPU is dynamically adjusted by the resolution of the currently played video resource, so that when the resolution of the played video resource is low, the GPU's drawing resolution can be reduced according to the resolution of the video resource.
  • FIG. 3 shows the steps of adjusting the graphics resolution of the graphics processor GPU according to a preset algorithm if the resolution of the video resource is smaller than the resolution of the display screen in FIG.
  • the detailed flow diagram is based on the embodiment shown in FIG. 2 above. If the resolution of the video resource is smaller than the resolution of the display screen, the step of adjusting the drawing resolution of the graphics processor GPU according to a preset algorithm ,include:
  • step S40 if the resolution of the video resource is smaller than the resolution of the display screen, a drawing resolution that is closest to the resolution of the video resource is matched from the preset drawing resolutions according to a preset algorithm.
  • the video resources on the Internet have multiple resolutions. As the pixels of the camera increase, the video or images captured are getting clearer and clearer.
  • the resolutions of common video resources include QCIF (resolution of 176 ⁇ 144), QVGA ( The resolution is 320 ⁇ 240), WQVGA (resolution is 384 ⁇ 240), HVGA (resolution is 480 ⁇ 320), VGA (resolution is 640 ⁇ 480), PAL (resolution is 768 ⁇ 576), WVGA( Resolution is 800 ⁇ 480), SVGA (resolution is 800 ⁇ 600), XGA (resolution is 1024 ⁇ 768), WXGA (resolution is 1280 ⁇ 768), SXGA (resolution is 1280 ⁇ 1024), WXGA+( The resolution is 1440 ⁇ 900), UGA (the resolution is 1600 ⁇ 1200), WQHD (the resolution is 2560 ⁇ 1440), WQXGA (the resolution is 2560 ⁇ 1600), QFHD (the resolution is 3840 ⁇ 2160), WQUXGA( The resolution is 3840 ⁇ 2400), 4K
  • the resolution of the display is getting higher and higher.
  • the resolutions of common mobile phone displays include: QVGA (resolution of 320 ⁇ 240), HVGA (resolution of 320 ⁇ 480) , WVGA (resolution of 800 ⁇ 480), FWVGA (resolution of 854 ⁇ 480), VGA (resolution of 640 ⁇ 480), QHD (resolution of 960 ⁇ 540), HD (resolution of 1280 ⁇ 720) , FHD (resolution of 1920 ⁇ 1080), 2K (resolution of 2560 ⁇ 1440), 4K (resolution of 3840 ⁇ 2160), etc.
  • the video display effect is also different due to the different resolutions of the video resources selected by the user.
  • the display effect of the video is also different due to the different resolutions of the display screens.
  • the higher the resolution of video resources and the higher the resolution of the display screen the higher the display effect of the video, but if only one of the resolutions is high, the display effect of the video will not become higher. Therefore, when the resolution of the display screen of the smart phone is high, but the resolution of the video resource being played is low, the resolution of the display screen will be wasted.
  • the drawing resolution closest to the resolution of the video resource is matched from the preset drawing resolutions according to a preset algorithm.
  • the step S40 includes: step S401, acquiring the width and height values of the resolution of the video resource and the width and height values of the preset drawing resolution, wherein the preset Set the drawing resolution to be multiple.
  • Each preset drawing resolution represents a resolution level.
  • the resolution of the display screen of a smart phone is 1920 ⁇ 1080
  • multiple preset drawing resolutions such as 1280 ⁇ 720, 960 ⁇ 540, 640 ⁇ 480, and 320 ⁇ 240 can be set in the smart phone.
  • the preset drawing resolution can be set according to the resolution of the actual display screen and the actual video playback situation, which is not specifically limited in this embodiment. It can be seen from the above examples that the resolution is composed of a wide value and a high value, which are used to determine the size of the resolution.
  • Step S402 Determine whether the difference between the width value of the resolution of the video resource and the width value of each preset drawing resolution is within a first threshold range, and the high value of the resolution of the video resource and each preset Whether the difference between the high values of the set drawing resolution is within the second threshold range.
  • the width value of the video resource is compared with the high value to determine whether the resolution of the video resource is similar to a preset drawing resolution.
  • the width value of the resolution of the video resource is determined to be the same as each preset drawing resolution.
  • the above-mentioned first threshold It can be the same as or different from the second threshold, and can take a value of 5% or 10%, etc., which is not specifically limited here.
  • Step S403 if the difference between the width value of the resolution of the video resource and the width value of each preset drawing resolution is within the first threshold range, and the high value of the resolution of the video resource is equal to each preset If the difference between the high values of the drawing resolution of is within the second threshold range, the drawing resolution meeting the condition is taken as the drawing resolution closest to the resolution of the video resource.
  • the resolution of the smart phone’s display screen is 1920 ⁇ 1080, and more than 1280 ⁇ 720, 960 ⁇ 540, 640 ⁇ 480, 320 ⁇ 240 preset drawing resolutions are set in the smart phone.
  • the first threshold and the second threshold are both set to 10%.
  • the resolution of the video resource is 1280 ⁇ 768, it can be judged that 1280 ⁇ 720 is the closest drawing resolution. If there are multiple results that meet the above conditions, you can choose any one as the closest drawing resolution. If there is no result that satisfies the above conditions, the restrictions of the first threshold and/or the second threshold are relaxed, and a closer preset drawing resolution is matched.
  • the resolution of the video resource can be compared with multiple preset drawing resolutions one by one, and the width and height of each preset drawing resolution can be calculated.
  • the difference between the values, the product of the difference between the width value and the height value is calculated, and the one with the smallest product is regarded as the closest drawing resolution.
  • multiple drawing resolutions may not be preset, but when it is determined that the resolution of the video resource is less than the resolution of the display screen, the resolution width value and the height value of the obtained video resource are directly used as GPU adjustments. The width and height values of the subsequent drawing resolution.
  • Step S50 Adjust the graphics resolution of the GPU to the closest graphics resolution.
  • the GPU After determining the closest drawing resolution, the GPU is adjusted to the closest drawing resolution under normal conditions, and the video resource is drawn according to the closest drawing resolution.
  • the resolution close to the resolution of the video resource is found from a plurality of preset drawing resolutions as the current drawing resolution of the GPU, thereby reducing the GPU's current drawing resolution.
  • the graphics resolution reduces the power consumption of the GPU.
  • the embodiment of this document also proposes a computer-readable storage medium, the computer-readable storage medium stores a power consumption adjustment program, and when the power consumption adjustment program is executed by a processor, the following operations are implemented:
  • a display screen When starting to play a video resource, obtain the decoded code stream of the video resource, and obtain the resolution of the video resource from the decoded code stream; obtain the resolution of the display screen, and determine the resolution of the video resource
  • the resolution of the display screen is compared with the resolution of the display screen; if the resolution of the video resource is less than the resolution of the display screen, the graphics processor GPU graphics resolution is adjusted according to a preset algorithm, and the adjusted graphics are used
  • the resolution draws the currently played video resource, so as to reduce the power consumption of the GPU.
  • the following operations are also implemented: if the resolution of the video resource is less than the resolution of the display screen, the resolution is determined from a preset drawing according to a preset algorithm. Matching the graphics resolution closest to the resolution of the video resource from the ratio; adjusting the graphics resolution of the GPU to the closest graphics resolution.
  • the following operations are also implemented: obtaining the width and height of the resolution of the video resource and the preset width and height of the drawing resolution. Value, wherein the preset drawing resolution is multiple; it is determined whether the difference between the width value of the resolution of the video resource and the width value of each preset drawing resolution is within a first threshold range, and Whether the difference between the high value of the resolution of the video resource and the high value of each preset drawing resolution is within the second threshold range; if the width of the resolution of the video resource is different from each preset drawing If the difference between the wide value of the rate is within the first threshold range, and the difference between the high value of the resolution of the video resource and the high value of each preset drawing resolution is within the second threshold range, the condition will be met
  • the drawing resolution of is used as the drawing resolution closest to the resolution of the video resource.
  • the drawing data is enlarged by the enlargement unit, so that the resolution of the video resource is consistent with the resolution of the display screen.
  • the following operation is also implemented: when the video resource ends to be played, the graphics resolution of the GPU is controlled to return to the graphics resolution before adjustment.
  • the decoding code stream of the video resource is obtained, the resolution of the video resource is obtained from the decoding code stream, and the resolution of the display screen is obtained, and then The resolution of the video resource is compared with the resolution of the display screen, and if the resolution of the video resource is less than the resolution of the display screen, the graphics processor GPU drawing resolution is adjusted according to a preset algorithm , And use the adjusted drawing resolution to draw the currently played video resource, so that when it is detected that the currently played video resource has a low resolution, the GPU’s drawing resolution can be reduced to the corresponding The size, thereby reducing the load power consumption of the GPU, to achieve the purpose of saving power consumption.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本文公开了一种功耗调节方法,该方法包括:当检测到显示屏开始播放视频资源时,获取视频资源的解码码流,并从解码码流中获取视频资源的分辨率;获取显示屏的分辨率,并将视频资源的分辨率和显示屏的分辨率进行比较;若视频资源的分辨率小于显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图,以使GPU的功耗降低。本文还公开了一种功耗调节装置和计算机可读存储介质。

Description

功耗调节方法、装置及计算机可读存储介质
本文要求享有2019年08月29日提交的名称为“功耗调节方法、装置及计算机可读存储介质”的中国专利申请CN201910812995.4的优先权,其全部内容通过引用并入本文中。
技术领域
本文涉及智能手机技术领域,尤其涉及一种功耗调节方法、装置及计算机可读存储介质。
背景技术
随着智能手机的功能越来越多,人们越来越依赖智能手机,导致智能手机的功耗也越来越大,用户几乎每天都要对其充电,所以智能手机的功耗优化是一个没有止境也极为重要的研究方向。尤其是用户在观看视频和打游戏时功耗特别大,如果能在用户观看视频和打游戏时降低功耗,那么智能手机待机时间将会延长,从而能提升用户体验度。
目前,用户可以通过菜单手动将智能手机的分辨率设置成低分辨率来达到节省功耗的目的,但是这种方式不够灵活,而且会导致高清晰度的内容也变得不清晰,达不到功耗和显示效果的最佳平衡。
发明内容
针对上述技术问题,本文的主要目的在于提供一种功耗调节方法、装置及计算机可读存储介质,旨在解决如何自动调节功耗值和分辨率使功耗和显示效果达到最佳平衡的技术问题。
为实现上述目的,本文提供一种功耗调节方法,所述功耗调节方法包括:当检测到显示屏开始播放视频资源时,获取所述视频资源的解码码流,并从所述解码码流中获取所述视频资源的分辨率;获取所述显示屏的分辨率,并将所述视频资源的分辨率和所述显示屏的分辨率进行比较;若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图,以使所述GPU的功耗降低。
此外,为实现上述目的,本文还提供一种功耗调节装置,所述功耗调节装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的功耗调节程序,所述功耗调节程序被所述处理器执行时实现如上所述功耗调节方法的任一步骤。
此外,为实现上述目的,本文还提供一种计算机可读存储介质,其上存储有功耗调节程序,所述功耗调节程序被处理器执行时实现如上所述功耗调节方法的任一步骤。
附图说明
图1是本文实施例方案涉及的硬件运行环境的装置结构示意图;
图2为本文功耗调节方法的第一实施例的流程示意图;
图3为图2中若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率的步骤的细化流程示意图。
本文目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本文,并不用于限定本文。
如图1所示,图1是本文实施例方案涉及的硬件运行环境的装置结构示意图。
本文实施例装置可以是智能手机,也可以是PC、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、便携计算机等具有显示功能的可移动式终端设备。
如图1所示,该装置可以包括:处理器1001,例如CPU,通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),在一实施方式中,用户接口1003还可以包括标准的有线接口、无线接口。在一实施方式中,网络接口1004可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。在一实施方式中,存储器1005还可以是独立于前述处理器1001的存储装置。
在一实施方式中,装置还可以包括摄像头、RF(Radio Frequency,射频)电路,传 感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。在一实施方式中,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
本领域技术人员可以理解,图1中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作***、网络通信模块、用户接口模块以及功耗调节程序。
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的功耗调节程序,并执行以下操作:当检测到显示屏开始播放视频资源时,获取所述视频资源的解码码流,并从所述解码码流中获取所述视频资源的分辨率;获取所述显示屏的分辨率,并将所述视频资源的分辨率和所述显示屏的分辨率进行比较;若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图,以使所述GPU的功耗降低。
在一实施方式中,处理器1001可以调用存储器1005中存储的功耗调节程序,还执行以下操作:若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法从预设的绘图分辨率中匹配出与所述视频资源的分辨率最接近的绘图分辨率;将所述GPU的绘图分辨率调整至所述最接近的绘图分辨率。
在一实施方式中,处理器1001可以调用存储器1005中存储的功耗调节程序,还执行以下操作:获取所述视频资源的分辨率的宽值和高值以及所述预设的绘图分辨率的宽值和高值,其中,所述预设的绘图分辨率为多个;判断所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值是否在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值是否在第二阈值范围内;若所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值在第一阈值范围内,且所述视频资源的分 辨率的高值与各预设的绘图分辨率的高值的差值在第二阈值范围内,则将满足条件的绘图分辨率作为与所述视频资源的分辨率最接近的绘图分辨率。
在一实施方式中,处理器1001可以调用存储器1005中存储的功耗调节程序,还执行以下操作:通过放大单元对绘图数据进行放大,以使所述视频资源的分辨率与所述显示屏的分辨率保持一致。
在一实施方式中,处理器1001可以调用存储器1005中存储的功耗调节程序,还执行以下操作:当所述视频资源结束播放时,控制所述GPU的绘图分辨率恢复至调整前的绘图分辨率。
本文功耗调节装置的具体实施例与下述功耗调节方法各实施例基本相同,在此不作赘述。
参照图2,图2为本文功耗调节方法的第一实施例的流程示意图,所述功耗调节方法包括:步骤S10,当检测到显示屏开始播放视频资源时,获取所述视频资源的解码码流,并从所述解码码流中获取所述视频资源的分辨率。
本文实施例装置可以是智能手机,也可以是PC、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、便携计算机等具有显示功能的可移动式终端设备。为方便说明,后续实施例均以智能手机为例。当智能手机检测到当前正在使用某款视频播放软件播放视频资源时,对所述视频资源进行解码,并从解码码流中获取该视频资源的分辨率信息。由于视频资源是根据固定的编码规则进行编码,如H.264/AVC、HEVC/H.265、FFmpeg等,所以在对视频资源解码后,能从解码的码流中快速提取出所需的分辨率信息。以H.264码流为例,H.264码流都是以0x00 0x00 0x01或者0x00 0x00 0x00 0x01作为开始码,之后通过检测开始码后第一个字节的后五位是否为7(00111)来判断其是否为SPS(Sequence Parameter Set),在得到SPS之后,就可以解析出视频的分辨率。SPS中有两个成员,pic_width_in_mbs_minus1和pic_height_in_map_units_minus_1分别表示图像的宽和高信息,根据这两个值,再经过计算,就能得到该视频资源的实际分辨率。
需要说明的是,智能手机可以从开机到关机整个过程中都去检测当前显示屏是否在播放视频资源,若是,则去获取视频资源的分辨率信息;也可以在低电量情况下,如剩余电量只有30%或者20%时,自动进入省电模式,在省电模式下,一旦检测到当前显示屏正在播放视频资源时去获取视频资源的分辨率信息;当然,也可以由智能手机的用户 自行设定,如在设置界面选择进入省电模式,那么智能手机在进入省电模式后,一旦检测到当前显示屏正在播放视频资源时去获取视频资源的分辨率信息。
步骤S20,获取所述显示屏的分辨率,并将所述视频资源的分辨率和所述显示屏的分辨率进行比较。
视频资源在显示屏上的显示效果取决于视频资源的分辨率和显示屏的分辨率。在获取到视频资源的分辨率后,还需要获取显示屏的分辨率,本实施例可以通过如下代码实现显示屏分辨率的获取:
DisplayMetrics outMetrics=new DisplayMetrics();
getWindowManager().getDefaultDispaly().getRealMetrics(outMetrics);
int widthPixel=outMetrics.widthPixels;
int heightPixel=outMetrics.heightPixels;
在获取到视频资源的分辨率和显示屏的分辨率后,将两者进行比较,若视频的分辨率小于显示屏的分辨率,即视频资源的分辨率较低时,智能手机即使采用高分辨率的显示屏对视频资源进行显示,显示出来的图像依旧是不清晰的,这样浪费了图形处理器(Graphics Processing Unit,缩写:GPU)的功耗,所以在智能手机判断视频的分辨率小于显示屏的分辨率时,执行步骤S30。但若视频的分辨率大于或等于显示屏的分辨率,即视频资源的分辨率较高时,智能手机受限于硬件自身的局限,也只能按显示屏的分辨率对视频资源进行显示。
步骤S30,若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图,以使所述GPU的功耗降低。
显示屏上显示的画面是需要图形处理器GPU来即时绘图,如果GPU的绘图分辨率降低,如从1440p降到1080P,那么图形处理器GPU需要渲染的像素量从3686400个减少为2073600个,这样GPU的计算量就被大大减轻,频率和负载也都会降低,从而能带来一定程度上的省电。
由于播放的视频资源可能为普通、高清或者超清,其分辨率可大可小,但智能手机显示屏的分辨率是固定的,对于低分辨率的视频资源,即便使用高分辨率的显示屏进行显示,其显示的效果仍然不清晰,所以在本实施例中,为了节省能耗,当智能手机播放的视频资源为低分辨率时,需要对GPU的绘图分辨率进行调整,适当降低GPU的绘图分 辨率,使GPU的功耗下降,从而在分辨率和功耗之间达到平衡。在调整GPU的绘图分辨率时,需要根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图。上述描述中的预设算法可以是将获取的视频资源的分辨率直接设置成GPU的绘图分辨率,也可以是在GPU中预设多个绘图分辨率,基于视频的分辨率动态选择最接近的绘图分辨率作为GPU当前的绘图分辨率。
当前视频资源在播放过程中,GPU根据调整后的绘图分辨率实时对当前播放的视频资源进行绘图,并将绘图数据输入至放大单元进行放大,以使视频资源的分辨率与显示屏的分辨率保持一致,避免由于绘图数据的分辨率低于显示屏的分辨率,导致视频资源无法正常显示。并在当前视频资源播放结束后,控制GPU的绘图分辨恢复至调整前的绘图分辨率,以保证不影响其他应用使用显示屏的分辨率进行显示。当智能手机后续每次播放视频资源时,重复上述步骤获取视频资源的分辨率,并对GPU的绘图分辨率重新确认并调整。
在本实施例中,通过当前播放的视频资源的分辨率动态调整图形处理器GPU的分辨率,从而使得在播放的视频资源分辨率较低时,能根据视频资源的分辨率降低GPU的绘图分辨率至相应的大小,进而降低GPU的负载功耗,达到节约功耗的目的。
在一实施方式中,参照图3,图3为图2中若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率的步骤的细化流程示意图,基于上述图2所示的实施例,所述若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率的步骤,包括:
步骤S40,若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法从预设的绘图分辨率中匹配出与所述视频资源的分辨率最接近的绘图分辨率。
互联网中的视频资源存在多种分辨率,随着摄像头像素增大,拍摄出来的视频或图像越来越清晰,目前常见的视频资源的分辨率包括QCIF(分辨率为176×144)、QVGA(分辨率为320×240)、WQVGA(分辨率为384×240)、HVGA(分辨率为480×320)、VGA(分辨率为640×480)、PAL(分辨率为768×576)、WVGA(分辨率为800×480)、SVGA(分辨率为800×600)、XGA(分辨率为1024×768)、WXGA(分辨率为1280×768)、SXGA(分辨率为1280×1024)、WXGA+(分辨率为1440×900)、UGA(分辨率为1600×1200)、WQHD(分辨率为2560×1440)、WQXGA(分辨率为2560×1600)、QFHD(分辨率为3840×2160)、WQUXGA(分辨率为3840×2400)、4K(分辨率为4096×2160)、WHUXGA(分辨率为7680×4800)等。同时随着手机技 术的不断进步,显示屏的分辨率也越来越高,目前常见的手机显示屏的分辨率包括:QVGA(分辨率为320×240)、HVGA(分辨率为320×480)、WVGA(分辨率为800×480)、FWVGA(分辨率为854×480)、VGA(分辨率为640×480)、QHD(分辨率为960×540)、HD(分辨率为1280×720)、FHD(分辨率为1920×1080)、2K(分辨率为2560×1440)、4K(分辨率为3840×2160)等。
当使用同一智能手机播放不同视频资源时,由于用户选择的视频资源的分辨率不同,视频的显示效果也不相同。当使用不同智能手机播放同一视频资源时,由于显示屏的分辨率不同,视频的显示效果也不相同。一般视频资源的分辨率越高同时显示屏的分辨率越高,视频的显示效果越高,但如果只是其中一项的分辨率高,那么视频的显示效果不会变高。因此,当智能手机的显示屏分辨率较高,但播放的视频资源分辨率较低时,将对显示屏的分辨率造成浪费。在本实施例中,当视频资源的分辨率小于显示屏的分辨率,则根据预设算法从预设的绘图分辨率中匹配出与所述视频资源的分辨率最接近的绘图分辨率。
在一实施方式中,所述步骤S40包括:步骤S401,获取所述视频资源的分辨率的宽值和高值以及所述预设的绘图分辨率的宽值和高值,其中,所述预设的绘图分辨率为多个。
在智能手机中预先设置多个绘图分辨率,该预设的多个绘图分辨率均比GPU正常情况下的绘图分辨率低,且该预设的多个绘图分辨率按照一定的等级进行划分,每个预设的绘图分辨率代表一个分辨率等级。例如,智能手机的显示屏的分辨率为1920×1080,可以在该智能手机中设置1280×720、960×540、640×480、320×240等多个预设的绘图分辨率。作为本领域的技术人员可以理解,预设的绘图分辨率可根据实际显示屏的分辨率和实际视频播放情况进行设置,本实施例不作具体限定。从上述举例可以看出,分辨率均由宽值和高值构成,用于判断分辨率的大小。
步骤S402,判断所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值是否在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值是否在第二阈值范围内。
在获取到当前播放视频资源的分辨率的宽值和高值以及预设的绘图分辨率的宽值和高值后,将视频资源的分辨率的宽值和高值分别与预设的绘图分辨率的宽值和高值进行比较,判断视频资源的分辨率是否在某个预设的绘图分辨率相近,在一实施方式中,判断视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值是否在第一阈值范围内, 且视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值是否在第二阈值范围内,上述第一阈值和第二阈值可以相同,也可以不同,可以取值为5%或者10%等,在此不作具体限定。
步骤S403,若所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值在第二阈值范围内,则将满足条件的绘图分辨率作为与所述视频资源的分辨率最接近的绘图分辨率。
判断视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值是否在第一阈值范围内,且视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值是否在第二阈值范围内,若满足上述条件,则将满足条件的绘图分辨率作为与所述视频资源的分辨率最接近的绘图分辨率。继续基于上述举例进行说明,智能手机的显示屏的分辨率为1920×1080,在该智能手机中设置1280×720、960×540、640×480、320×240多个预设的绘图分辨率,第一阈值和第二阈值均设置为10%,若视频资源的分辨率为1280×768,则可以判断1280×720为最接近的绘图分辨率。若满足上述条件的结果有多个,可以选择任意一个作为最接近的绘图分辨率。若没有满足上述条件的结果,则放宽第一阈值和/或第二阈值的限制,匹配较为接近的预设的绘图分辨率。
作为另一种实施方式,可以在预设多个绘图分辨率后,将视频资源的分辨率逐一与预设多个绘图分辨率比较,计算与每个预设的绘图分辨率的宽值和高值的差值,求宽值和高值的差值乘积,将乘积最小的一个作为最接近的绘图分辨率。
作为另一种实施方式,可以不预设多个绘图分辨率,但判断视频资源的分辨率小于显示屏的分辨率时,直接将获取到的视频资源的分辨率宽值和高值作为GPU调整后的绘图分辨率的宽值和高值。
步骤S50,将所述GPU的绘图分辨率调整至所述最接近的绘图分辨率。
在确定最接近的绘图分辨率后,将GPU正常情况下绘图分辨率调整至该最接近的绘图分辨率,并根据该最接近的绘图分辨率对视频资源绘图。
在本实施例中在视频资源分辨率较低时,通过从多个预设的绘图分辨率中找出与视频资源分辨率接近的分辨率作为GPU的当前的绘图分辨率,从而降低了GPU的绘图分辨率,减小了GPU的功耗。
此外,本文实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有功耗调节程序,所述功耗调节程序被处理器执行时实现如下操作:当检测到显示屏 开始播放视频资源时,获取所述视频资源的解码码流,并从所述解码码流中获取所述视频资源的分辨率;获取所述显示屏的分辨率,并将所述视频资源的分辨率和所述显示屏的分辨率进行比较;若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图,以使所述GPU的功耗降低。
在一实施方式中,所述功耗调节程序被处理器执行时还实现如下操作:若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法从预设的绘图分辨率中匹配出与所述视频资源的分辨率最接近的绘图分辨率;将所述GPU的绘图分辨率调整至所述最接近的绘图分辨率。
在一实施方式中,所述功耗调节程序被处理器执行时还实现如下操作:获取所述视频资源的分辨率的宽值和高值以及所述预设的绘图分辨率的宽值和高值,其中,所述预设的绘图分辨率为多个;判断所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值是否在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值是否在第二阈值范围内;若所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值在第二阈值范围内,则将满足条件的绘图分辨率作为与所述视频资源的分辨率最接近的绘图分辨率。
在一实施方式中,所述功耗调节程序被处理器执行时还实现如下操作:通过放大单元对绘图数据进行放大,以使所述视频资源的分辨率与所述显示屏的分辨率保持一致。
在一实施方式中,所述功耗调节程序被处理器执行时还实现如下操作:当所述视频资源结束播放时,控制所述GPU的绘图分辨率恢复至调整前的绘图分辨率。
本文计算机可读存储介质的具体实施例与上述功耗调节方法各实施例基本相同,在此不作赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者***不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者***所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者***中还存在另外的相同要素。
上述本文实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法 可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本文的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本文各个实施例所述的方法。
本文在检测到显示屏开始播放视频资源时,通过获取所述视频资源的解码码流,从所述解码码流中获取所述视频资源的分辨率,并获取所述显示屏的分辨率,再将所述视频资源的分辨率和所述显示屏的分辨率进行比较,若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图,从而使得在检测到当前播放的视频资源分辨率较低时,能根据视频资源的分辨率降低GPU的绘图分辨率至相应的大小,进而降低GPU的负载功耗,达到节约功耗的目的。
以上仅为本文的优选实施例,并非因此限制本文的专利范围,凡是利用本文说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本文的专利保护范围内。

Claims (10)

  1. 一种功耗调节方法,其中,所述功耗调节方法包括:
    当检测到显示屏开始播放视频资源时,获取所述视频资源的解码码流,并从所述解码码流中获取所述视频资源的分辨率;
    获取所述显示屏的分辨率,并将所述视频资源的分辨率和所述显示屏的分辨率进行比较;
    若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图,以使所述GPU的功耗降低。
  2. 如权利要求1所述的功耗调节方法,其中,所述若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率的步骤,包括:
    若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法从预设的绘图分辨率中匹配出与所述视频资源的分辨率最接近的绘图分辨率;
    将所述GPU的绘图分辨率调整至所述最接近的绘图分辨率。
  3. 如权利要求2所述的功耗调节方法,其中,所述根据预设算法从预设的绘图分辨率中匹配出与所述视频资源的分辨率最接近的绘图分辨率的步骤,包括:
    获取所述视频资源的分辨率的宽值和高值以及所述预设的绘图分辨率的宽值和高值,其中,所述预设的绘图分辨率为多个;
    判断所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值是否在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值是否在第二阈值范围内;
    若所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值在第二阈值范围内,则将满足条件的绘图分辨率作为与所述视频资源的分辨率最接近的绘图分辨率。
  4. 如权利要求1所述的功耗调节方法,其中,在所述利用调整后的绘图分辨率对当前播放的视频资源进行绘图的步骤之后,包括:
    通过放大单元对绘图数据进行放大,以使所述视频资源的分辨率与所述显示屏的分辨率保持一致。
  5. 如权利要求1所述的功耗调节方法,其中,在所述利用调整后的绘图分辨率对当前播放的视频资源进行绘图的步骤之后,还包括:
    当所述视频资源结束播放时,控制所述GPU的绘图分辨率恢复至调整前的绘图分辨率。
  6. 一种功耗调节装置,其中,所述功耗调节装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的功耗调节程序,所述功耗调节程序被所述处理器执行时实现如下步骤:
    当检测到显示屏开始播放视频资源时,获取所述视频资源的解码码流,并从所述解码码流中获取所述视频资源的分辨率;
    获取所述显示屏的分辨率,并将所述视频资源的分辨率和所述显示屏的分辨率进行比较;
    若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法调整图形处理器GPU的绘图分辨率,并利用调整后的绘图分辨率对当前播放的视频资源进行绘图,以使所述GPU的功耗降低。
  7. 如权利要求6所述的功耗调节装置,其中,所述功耗调节程序被所述处理器执行时还实现如下步骤:
    若所述视频资源的分辨率小于所述显示屏的分辨率,则根据预设算法从预设的绘图分辨率中匹配出与所述视频资源的分辨率最接近的绘图分辨率;
    将所述GPU的绘图分辨率调整至所述最接近的绘图分辨率。
  8. 如权利要求7所述的功耗调节装置,其中,所述功耗调节程序被所述处理器执行时还实现如下步骤:
    获取所述视频资源的分辨率的宽值和高值以及所述预设的绘图分辨率的宽值和高值,其中,所述预设的绘图分辨率为多个;
    判断所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值是否在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值是否在第二阈值范围内;
    若所述视频资源的分辨率的宽值与各预设的绘图分辨率的宽值的差值在第一阈值范围内,且所述视频资源的分辨率的高值与各预设的绘图分辨率的高值的差值在第二阈值范围内,则将满足条件的绘图分辨率作为与所述视频资源的分辨率最接近的绘图分辨 率。
  9. 如权利要求6所述的功耗调节装置,其中,所述功耗调节程序被所述处理器执行时还实现如下步骤:
    通过放大单元对绘图数据进行放大,以使所述视频资源的分辨率与所述显示屏的分辨率保持一致。
  10. 一种计算机可读存储介质,其上存储有功耗调节程序,其中,所述功耗调节程序被处理器执行时实现如权利要求1至5中任一项所述功耗调节方法的步骤。
PCT/CN2020/101809 2019-08-29 2020-07-14 功耗调节方法、装置及计算机可读存储介质 WO2021036551A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910812995.4 2019-08-29
CN201910812995.4A CN112449241A (zh) 2019-08-29 2019-08-29 功耗调节方法、装置及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2021036551A1 true WO2021036551A1 (zh) 2021-03-04

Family

ID=74683229

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/101809 WO2021036551A1 (zh) 2019-08-29 2020-07-14 功耗调节方法、装置及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN112449241A (zh)
WO (1) WO2021036551A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117116200B (zh) * 2023-10-23 2023-12-29 广州市惠正信息科技有限公司 一种led显示屏分辨率的调节方法及***

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060256376A1 (en) * 2005-05-16 2006-11-16 Funai Electric Co., Ltd. Client server system
CN104637460A (zh) * 2015-02-04 2015-05-20 惠州Tcl移动通信有限公司 自动调节显示屏分辨率的方法、***及移动终端
CN107093418A (zh) * 2017-06-20 2017-08-25 努比亚技术有限公司 一种屏幕显示方法、计算机设备及存储介质
CN108156481A (zh) * 2016-12-02 2018-06-12 深圳市优朋普乐传媒发展有限公司 一种直播源的检测方法及装置
CN108989563A (zh) * 2018-07-25 2018-12-11 努比亚技术有限公司 双面屏的显示方法、移动终端及计算机可读存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377421B (zh) * 2018-04-26 2021-06-11 深圳Tcl数字技术有限公司 视频的播放方法及显示设备、计算机可读存储介质
CN108966005B (zh) * 2018-07-10 2021-04-27 南阳师范学院 一种视频分辨率的调节方法、装置、存储介质及终端
CN109922366B (zh) * 2019-03-28 2021-10-29 北京创维海通数字技术有限公司 一种设备参数调整方法、装置、设备及介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060256376A1 (en) * 2005-05-16 2006-11-16 Funai Electric Co., Ltd. Client server system
CN104637460A (zh) * 2015-02-04 2015-05-20 惠州Tcl移动通信有限公司 自动调节显示屏分辨率的方法、***及移动终端
CN108156481A (zh) * 2016-12-02 2018-06-12 深圳市优朋普乐传媒发展有限公司 一种直播源的检测方法及装置
CN107093418A (zh) * 2017-06-20 2017-08-25 努比亚技术有限公司 一种屏幕显示方法、计算机设备及存储介质
CN108989563A (zh) * 2018-07-25 2018-12-11 努比亚技术有限公司 双面屏的显示方法、移动终端及计算机可读存储介质

Also Published As

Publication number Publication date
CN112449241A (zh) 2021-03-05

Similar Documents

Publication Publication Date Title
WO2019153671A1 (zh) 图像超分辨率方法、装置及计算机可读存储介质
AU2014230175B2 (en) Display control method and apparatus
CN107257510B (zh) 视频统一播放方法、终端及计算机可读存储介质
WO2020108091A1 (zh) 视频处理方法、装置、电子设备及存储介质
US20230162324A1 (en) Projection data processing method and apparatus
US8319805B2 (en) Screen condensation with heterogeneous display resolution
US20220248102A1 (en) Subtitle border-crossing processing method and apparatus, and electronic device
US11887276B2 (en) Image processing method and display apparatus for adjusting format and resolution of input image in parallel and matrix manner
WO2021082542A1 (zh) 区域背光控制方法、显示器及存储介质
CN111432261A (zh) 一种视频窗口画面显示方法及装置
US11917329B2 (en) Display device and video communication data processing method
KR20190006221A (ko) 디스플레이 장치 및 이의 제어 방법
WO2021036551A1 (zh) 功耗调节方法、装置及计算机可读存储介质
WO2022227974A1 (zh) 字幕处理方法、装置、设备及存储介质
US20220172440A1 (en) Extended field of view generation for split-rendering for virtual reality streaming
WO2019020112A1 (zh) 终端显示方法、终端及计算机可读存储介质
CN113645476B (zh) 画面处理方法、装置、电子设备及存储介质
CN109544441B (zh) 图像处理方法及装置、直播中的肤色处理方法及装置
JP6058257B2 (ja) 画像出力装置、画像出力方法、およびプログラム
KR101843411B1 (ko) 클라우드 스트리밍 서비스 시스템, 이미지의 투명도에 기반한 이미지 클라우드 스트리밍 서비스 방법 및 이를 위한 장치
CN112423101B (zh) 远程展示方法、装置、设备及计算机可读存储介质
CN107291468B (zh) 播放开/关机动画的方法、终端及计算机可读存储介质
CN113475091B (zh) 显示设备及其图像显示方法
CN114647468B (zh) 投屏图像显示方法、装置、电子设备及存储介质
CN114489549B (zh) 投屏图像处理方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20857230

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20857230

Country of ref document: EP

Kind code of ref document: A1