WO2023065873A1 - Frame rate adjustment method, terminal device, and frame rate adjustment system - Google Patents

Frame rate adjustment method, terminal device, and frame rate adjustment system Download PDF

Info

Publication number
WO2023065873A1
WO2023065873A1 PCT/CN2022/117608 CN2022117608W WO2023065873A1 WO 2023065873 A1 WO2023065873 A1 WO 2023065873A1 CN 2022117608 W CN2022117608 W CN 2022117608W WO 2023065873 A1 WO2023065873 A1 WO 2023065873A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
terminal device
frame rate
target
frame
Prior art date
Application number
PCT/CN2022/117608
Other languages
French (fr)
Chinese (zh)
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 WO2023065873A1 publication Critical patent/WO2023065873A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of terminals, and in particular to a frame rate adjustment method, a terminal device, and a frame rate adjustment system.
  • terminal devices such as smart phones and tablet computers have been widely used in people's life and work. Terminal devices continuously draw and render images to present various display images at different times.
  • Embodiments of the present application provide a frame rate adjustment method, a terminal device, and a frame rate adjustment system, so as to reduce the power consumption of the terminal device and improve the battery life of the terminal device by reducing the drawing frame rate of image frames with low user attention .
  • the embodiment of the present application proposes a frame rate adjustment method, which is applied to a terminal device.
  • the terminal device acquires a target image from the image data to be drawn; the terminal device acquires the attribute information of the view control in the target image; the terminal device Determine the image type of the target image according to the attribute information; when it is detected that the image types of the consecutive N frames of the target image in the image data are all non-visually sensitive frames, the terminal device switches from the first frame rate to the second frame rate, at the first frame rate Image rendering is performed at a second frame rate; N is a positive integer, and the second frame rate is lower than the first frame rate.
  • the view control may also be referred to as a view control.
  • the present application detects that the image types of the consecutive N frames of target images are all non-visually sensitive frames, it is determined that the current image to be drawn is an image frame with low user attention, and at this time, the second lower frame rate Image drawing is performed, thereby reducing the drawing frame rate of image frames with low user attention, thereby reducing the power consumption of the terminal device and improving the battery life of the terminal device.
  • the terminal device determines the image type of the target image according to the attribute information, including: the terminal device determines the first score value of each view control according to the attribute information of each view control in the target image ; The terminal device calculates the second score value of the target image according to the first score value of each view control; the terminal device determines the image type of the target image according to the second score value. Since the first score value of the view control in different images is different, the application can calculate the second score value of the target image based on the first score value of each view control in the target image, and determine the target according to the second score value Whether the image type of the image is a visually sensitive frame or a non-visually sensitive frame, so as to improve the accuracy of the type judgment result of the target image.
  • the terminal device determines the first score value of each view control according to the attribute information of each view control in the target image, including: the terminal device searches the target score value lookup table for the target The third score value corresponding to the attribute information of each view control in the image; the terminal device calculates the first score value of each view control according to the third score value.
  • the third score value corresponding to the attribute information of the view control is searched by means of table lookup, thereby further determining the first score value of the view control, which simplifies the calculation process of the first score value of the view control.
  • the attribute information is any one of type information, location information, and area information; the terminal device calculates the first score value of each view control according to the third score value, including: the terminal The device determines the third score value corresponding to the attribute information of each view control as the first score value of each view control. In this way, the third score value of an attribute information is directly determined as the first score value of the corresponding view control, which reduces the computational complexity of the first score value of the view control.
  • the attribute information includes at least two of type information, location information, and area information; the terminal device calculates the first score value of each view control according to the third score value, including: the terminal The device looks up the weight value corresponding to the attribute information of each view control from the target weight lookup table; the terminal device performs weighted summation according to the corresponding weight value for the third scoring value corresponding to the attribute information of each view control to obtain each The first score value of a view control. Since in different applications, the weight value of each attribute information of view control may be different, therefore, the third score value corresponding to the attribute information of each view control is weighted and summed according to the corresponding weight value, which can improve the calculation. The accuracy of the first scoring value of , thereby further improving the accuracy of the type judgment result of the target image.
  • the terminal device before the terminal device looks up the third score value corresponding to the attribute information of each view control in the target image from the target score lookup table, the terminal device further includes: the terminal device determines that the target image belongs to The target application program; the terminal device searches the target score lookup table corresponding to the target application program from the preset score lookup tables corresponding to each application program. According to the actual needs of different applications, set its corresponding score lookup table for different applications, so that the score in each score lookup table can more accurately reflect the actual score of the attribute information of the view control in the target image, Therefore, the accuracy of the type judgment result of the target image is improved.
  • the terminal device before the terminal device searches the weight value corresponding to the attribute information of each view control from the target weight lookup table, the terminal device further includes: the terminal device determines the target application program to which the target image belongs; the terminal device Find the target weight lookup table corresponding to the target application program from the preset weight lookup table corresponding to each application program. According to the actual needs of different applications, set their corresponding weight lookup tables for different applications, so that the weight value in each weight lookup table can more accurately reflect the proportion of the attribute information of the view control in the target image, so that Improve the accuracy of the type judgment result of the target image.
  • the terminal device calculates the second score value of the target image according to the first score value of each view control, including: the terminal device calculates an average value of the first score values of each view control , to get the second score value of the target image.
  • the second scoring value of the target image is finally calculated, so that the accuracy of the type judgment result of the target image determined according to the second scoring value is higher.
  • the terminal device determines the image type of the target image according to the second score value, including: the terminal device compares the second score value with a preset threshold; when the second score value is greater than the preset threshold When , it is determined that the image type of the target image is a visually sensitive frame; when the second score value is less than or equal to a preset threshold, it is determined that the image type of the target image is a non-visually sensitive frame. In this way, the image type of the target image is judged directly through the size relationship between the second scoring value and the preset threshold, and the judgment process is relatively simple.
  • the terminal device after the terminal device switches from the first frame rate to the second frame rate and performs image drawing at the second frame rate, it also includes: when detecting consecutive M frames of target images in the image data When the image types of are all visually sensitive frames, the terminal device switches from the second frame rate to the first frame rate, and draws images at the first frame rate; M is a positive integer. In this way, when it is detected that the image types of the consecutive M frames of target images in the image data are all visually sensitive frames, it is determined that the image in the image data is a scene picture with a higher degree of user attention, and therefore, a higher first
  • the frame rate is used for image drawing, which makes the image picture after drawing, rendering and display smoother, and improves the user's visual experience.
  • the terminal device when it is detected that the image types of the consecutive N frames of target images in the image data are all non-visually sensitive frames, the terminal device switches from the first frame rate to the second frame rate, and uses the second The frame rate is used for image drawing, including: when it is detected that the image types of the consecutive N frames of target images in the image data are all non-visually sensitive frames, the terminal device performs the Nth non-visually sensitive frame and each subsequent frame of image, each Draw a frame of images at intervals of R frames of images until it is detected that there are consecutive M frames of target images in the image data, all of which are visually sensitive frames; R is a positive integer.
  • the terminal device when it is detected that the image types of the M consecutive target images in the image data are all visually sensitive frames, switches from the second frame rate to the first frame rate, and uses the first frame rate Image drawing at a high rate, including: when it is detected that the image types of the M consecutive target images in the image data are all visually sensitive frames, the terminal device draws the Mth visually sensitive frame and every frame thereafter until It is detected that there are consecutive N frames of target images in the image data, all of which are non-visually sensitive frames.
  • the view control is a view control whose display content changes in the image data.
  • the view control targeted by the embodiment of the present application is a view control whose display content in the image data changes, the number of view controls involved in the calculation can be reduced, and the complexity of subsequent calculation of the image type of each target image can be reduced, thereby Reduce the workload of terminal devices when performing computing operations.
  • the terminal device obtains the target image from the image data to be drawn, including: the terminal device extracts a frame of image every X frames from the multi-frame images included in the image data as the target image; X is a positive integer. In this way, the number of extracted target images can be reduced, and the complexity of subsequently calculating the image type of each target image is reduced, thereby reducing the workload of the terminal device when performing calculation operations.
  • the embodiment of the present application proposes a terminal device, the terminal device includes a processing unit, and the processing unit is configured to acquire a target image from image data to be drawn; acquire attribute information of a view control in the target image; Attribute information to determine the image type of the target image; when it is detected that the image types of the continuous N frames of the target image in the image data are all non-visually sensitive frames, switch from the first frame rate to the second frame rate, and use the second frame rate Perform image drawing; N is a positive integer, and the second frame rate is lower than the first frame rate.
  • the embodiment of the present application proposes a terminal device, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call the computer program to perform the following steps: acquire a target image from the image data to be drawn; Obtain the attribute information of the view control in the target image; determine the image type of the target image according to the attribute information; Switch to the second frame rate, and draw images at the second frame rate; N is a positive integer, and the second frame rate is lower than the first frame rate.
  • the processor is specifically configured to perform the following steps: determine the first score value of each view control according to the attribute information of each view control in the target image; A score value, calculating a second score value of the target image; according to the second score value, determining the image type of the target image.
  • the processor is specifically configured to perform the following steps: from the target score lookup table, look up the third score value corresponding to the attribute information of each view control in the target image; Value, calculate the first score value of each view control.
  • the attribute information is any one of type information, position information, and area information; the processor is specifically configured to perform the following steps: the third score value corresponding to the attribute information of each view control , determine the first score value for each view control.
  • the attribute information includes at least two of type information, position information, and area information; the processor is specifically configured to perform the following steps: Find the attribute of each view control from the target weight lookup table The weight value corresponding to the information; the third score value corresponding to the attribute information of each view control is weighted and summed according to the corresponding weight value to obtain the first score value of each view control.
  • the processor is further configured to perform the following steps: determine the target application program to which the target image belongs; and search for the target application program corresponding to the target application program from the preset score lookup table corresponding to each application program. Score lookup table.
  • the processor is further configured to perform the following steps: determine the target application program to which the target image belongs; and search for the target weight corresponding to the target application program from the preset weight lookup table corresponding to each application program lookup table.
  • the processor is specifically configured to perform the following step: calculating an average value of the first score values of each view control to obtain the second score value of the target image.
  • the processor is specifically configured to perform the following steps: comparing the second score value with a preset threshold; when the second score value is greater than the preset threshold, determine that the image type of the target image is visual A sensitive frame; when the second scoring value is less than or equal to a preset threshold, determine that the image type of the target image is a non-visually sensitive frame.
  • the processor is further configured to perform the following steps: when it is detected that the image types of the M consecutive frames of target images in the image data are all visually sensitive frames, switch from the second frame rate to the first Frame rate, image rendering is performed at the first frame rate; M is a positive integer.
  • the processor is specifically configured to perform the following steps: when it is detected that the image types of the N consecutive frames of the target image in the image data are all non-visually sensitive frames, the non-visually sensitive frame of the Nth frame And for each frame of image thereafter, draw a frame of image every R frame of image until it is detected that there are consecutive M frames of target images in the image data, and the image types of the target image are all visually sensitive frames; R is a positive integer.
  • the processor is specifically configured to perform the following steps: when it is detected that the image types of the consecutive M frames of target images in the image data are all visually sensitive frames, for the Mth visually sensitive frame and subsequent Each frame of image is drawn until it is detected that there are consecutive N frames of target images in the image data, all of which are non-visually sensitive frames.
  • the view control is a view control whose display content changes in the image data.
  • the processor is specifically configured to perform the following steps: from the multiple frames of images included in the image data, extract a frame of image every X frames as the target image; X is a positive integer.
  • the embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed, the above frame rate adjustment method is realized.
  • the embodiment of the present application provides a computer program product, including a computer program, which, when the computer program is run, causes the computer to execute the above frame rate adjustment method.
  • the embodiment of the present application proposes a frame rate adjustment system, including a server and the above-mentioned terminal device; the server is used to convert the changed score to The query table is sent to the terminal device; and when the data in the weight query table stored in the server is changed, the changed weight query table is sent to the terminal device.
  • FIG. 1 is a schematic structural diagram of a terminal device hardware system provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a terminal device software system provided by an embodiment of the present application.
  • FIG. 3 is a flow chart of a frame rate adjustment method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of changing the image rendering frame rate in the embodiment of the present application.
  • Fig. 5 is the schematic diagram of two kinds of target images in the embodiment of the present application.
  • FIG. 6 is a flowchart of determining the image type of a target image according to attribute information in an embodiment of the present application
  • FIG. 7 is a schematic diagram of a hardware structure of a terminal device provided in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a frame rate adjustment system provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first chip and the second chip are only used to distinguish different chips, and their sequence is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • “at least one” means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
  • an application list can be preset, and the application list includes a set rendering frame rate corresponding to multiple applications.
  • set a higher drawing frame rate for video applications or game applications for example, the drawing frame rate is 120 frames per second (frames per second, fps), and set a lower drawing frame rate for news browsing applications , such as drawing at a frame rate of 30fps.
  • some application programs use a lower set rendering frame rate for image rendering to reduce the power consumption of the terminal device, thereby improving the battery life of the terminal device.
  • this method of adjusting the drawing frame rate cannot dynamically adjust the drawing frame rate in real time according to the display content actually required by the screen, resulting in a poor effect on improving the display effect and power consumption of the terminal device.
  • image drawing is always performed at a higher drawing frame rate, but in some cases it is not necessary to maintain such a high drawing frame rate, for example, when the image to be drawn is the When setting the interface of a video application, it does not contain video images, but only contains some text content and/or pictures.
  • the setting interface does not require very high drawing frame rate.
  • image rendering will always be performed at a lower rendering frame rate, but in some cases, image rendering will be performed at a lower rendering frame rate , it will cause the final display screen to appear stuttering and other phenomena.
  • the image to be drawn is a video screen that needs to be played in the news browsing application, it needs to draw the image at a higher rendering frame rate to ensure that the image If the image is drawn at a lower frame rate, it will cause the final display screen to appear stuttering and other phenomena.
  • the embodiment of the present application provides a frame rate adjustment method, by determining whether the image type of the target image is a visually sensitive frame or a non-visually sensitive frame according to the attribute information of the view control in the target image, when consecutive M frames of the target.
  • the image types of the images are all visually sensitive frames, it is determined that the current image to be drawn is an image frame with high user attention, and at this time, the image is drawn at a higher first frame rate until there are consecutive N frames of the target image
  • the image types are all non-visually sensitive frames, thereby improving the fluency of the picture and improving the user's visual sensory experience; and when the image types of the continuous N frames of target images are all non-visually sensitive frames, it is determined that the current image to be drawn is For image frames with low user attention, image rendering is performed at a lower second frame rate until the image type of the target image in consecutive M frames is a visually sensitive frame, thereby reducing the number of terminal devices by reducing the rendering frame rate. Power consumption overhead, improve the battery life of the terminal equipment
  • the embodiment of the present application can dynamically adjust the drawing frame rate in real time according to the display content actually required by the screen, and increase the drawing frame rate of image frames with high user attention, so as to improve the display effect of the terminal device, and reduce user attention.
  • the drawing frame rate of the low-resolution image frame is reduced, thereby reducing the power consumption of the terminal device, so as to improve the display and power consumption of the terminal device.
  • the frame rate adjustment method provided in the embodiment of the present application can be applied to a terminal device with a display function, and the terminal device can also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), etc.
  • the terminal device can be mobile phone, smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal device, augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
  • the embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
  • FIG. 1 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device 100 .
  • the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be recalled from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous receiver transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB Universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to realize the touch function of the terminal device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both I2S interface and PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface to realize the shooting function of the terminal device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the terminal device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present application is a schematic description, and does not constitute a structural limitation of the terminal device 100 .
  • the terminal device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the terminal device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input of the battery 142 and/or the charging management module 140, and supplies power for the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160, etc.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • the antennas in the terminal device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the terminal device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation, etc. applied on the terminal device 100. Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
  • Wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband code division Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology etc.
  • GNSS can include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou satellite navigation system (beidounavigation satellite system, BDS), quasi-zenith satellite system (quasi-zenith satellite system) , QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou satellite navigation system beidounavigation satellite system, BDS
  • quasi-zenith satellite system quasi-zenith satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used for displaying images, displaying videos, receiving sliding operations, and the like.
  • the display screen 194 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 or an active-matrix organic light-emitting diode (active-matrixorganic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrixorganic light-emitting diode
  • AMOLED flexible light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed
  • quantum dot light-emitting diodes quantum dot light emitting diodes, QLED
  • the terminal device 100 may include one or more display screens 194 .
  • the terminal device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the optical signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the terminal device 100 may include one or more cameras 193 .
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 100 may support one or more video codecs.
  • the terminal device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the terminal device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the terminal device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the terminal device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the terminal device 100 may implement an audio function through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • the terminal device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the terminal device 100 may be provided with at least one microphone 170C. In some other embodiments, the terminal device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the terminal device 100 determines the intensity of pressure according to the change in capacitance.
  • the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
  • the gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100 .
  • the angular velocity of the terminal device 100 around three axes ie, x, y and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the terminal device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the terminal device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the terminal device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the terminal device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the terminal device 100 may detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of terminal equipment, and it can be applied to applications such as horizontal and vertical screen switching, pedometer, etc.
  • the distance sensor 180F is used to measure the distance.
  • the terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the terminal device 100 emits infrared light through the light emitting diode.
  • the terminal device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100 . When insufficient reflected light is detected, the terminal device 100 may determine that there is no object near the terminal device 100 .
  • the terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to the application lock, take pictures with fingerprints, answer incoming calls with fingerprints, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the terminal device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the terminal device 100 may reduce the performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal device 100 when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 caused by the low temperature.
  • the terminal device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the terminal device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the terminal device 100 may support one or more SIM card interfaces.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the terminal device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
  • the software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • an Android system with a layered architecture is taken as an example to illustrate the software structure of the terminal device 100 .
  • FIG. 2 is a block diagram of a software structure of a terminal device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are application layer, application framework layer, Android runtime and system library, and kernel layer from top to bottom.
  • the application layer can include a series of application packages.
  • the application program package may include application programs such as telephone, email, calendar, and camera.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include an input system, an activity manager, a location manager, a package manager, a notification manager, a resource manager, a phone manager, and a view system, etc.
  • the input system is a program used to manage input devices. For example, the input system can determine input actions such as mouse clicks, keyboard input actions, and touch swipes.
  • the Activity Manager is used to manage the lifecycle of individual applications and navigation fallback functionality. Responsible for the creation of the main thread of Android and the maintenance of the life cycle of each application.
  • the location manager is used to provide location services for applications, including querying the last known location, registering and unregistering from a periodic location update, etc.
  • the package manager is used for program management within the system, such as application installation, uninstallation, and upgrade.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is issued, the terminal device vibrates, and the indicator light flashes, etc.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the phone manager is used to manage mobile device functions, including: phone call status, get phone information (device, sim card, network information), monitor phone status and call the phone dialer to make a call
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the view system can sequentially extract the target image from the image data to be drawn, and obtain the attribute information of the view control in the target image, and then the view system can determine according to the attribute information of the view control in the target image
  • the image type of the target image is a visually sensitive frame or a non-visually sensitive frame.
  • the view system calls the image drawing module in the system library to draw the images in the image data at the first frame rate , until the view system detects that the image types of the consecutive N frames of target images are all non-vision-sensitive frames; and when the view system detects that the image types of the consecutive N frames of target images in the image data are all non-visual-sensitive frames, the view system Call the image drawing module in the system library to draw the images in the image data at the second frame rate until the view system detects that the image types of the continuous M frames of target images are all visually sensitive frames, and the second frame rate is less than the second frame rate One frame rate.
  • Android runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: image drawing module, image rendering module, image synthesis module, function library, and input processing library, etc.
  • the image drawing module is used for drawing two-dimensional or three-dimensional images.
  • the image rendering module is used for rendering of two-dimensional or three-dimensional images.
  • the image synthesis module is used for the synthesis of two-dimensional or three-dimensional images.
  • the application draws the image through the image drawing module, and then the application renders the drawn image through the image rendering module, and then the application sends the rendered image to the cache queue for display synthesis process.
  • the display compositing process for example, surface flinger
  • the display compositing process sequentially acquires a frame of image to be composited from the buffer queue, and then performs image compositing through the image compositing module.
  • the function library provides macros, type definitions, string manipulation functions, mathematical calculation functions, and input and output functions used in C language
  • the input processing library is a library for processing input devices, which can implement mouse, keyboard and touch input processing, etc.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a touch panel driver, an LCD/LED screen driver, a display driver, a Bluetooth driver, a WIFI driver, a keyboard driver, a shared memory driver, and a camera driver.
  • Hardware can be audio devices, bluetooth devices, camera devices, sensor devices, etc.
  • FIG. 3 is a flowchart of a method for adjusting a frame rate provided by an embodiment of the present application.
  • the frame rate adjustment method may include the following steps:
  • step 301 the terminal device acquires a target image from image data to be drawn.
  • the terminal device There are multiple applications installed on the terminal device, such as game applications, video applications, or news browsing applications. After the application is started, the application prepares the image data to be drawn. Push to the view system of the terminal device, or the view system obtains pre-cached image data from the cache.
  • the image data includes multiple frames of continuous images, and a frame refers to a single picture in the smallest unit of interface display.
  • One frame can be understood as a pair of still pictures, and displaying multiple consecutive frames in rapid succession can form an object movement. illusion.
  • the view system of the terminal device After the view system of the terminal device receives the image data to be drawn, the view system can sequentially extract target images from the image data.
  • the view system of the terminal device may use each frame of image in the image data as a target image; in another optional implementation manner, the view system of the terminal device includes the Among the multiple frames of images, one frame of image is extracted every X frames as the target image, and X is a positive integer, for example, X can be a value such as 1, 2, 4 or 5.
  • the image is used as the target image.
  • the target images extracted from the 23 frames of images are the 1st frame image, the 6th frame image, the 11th frame image, the 16th frame image and the 21st frame image.
  • the number of target images extracted from the image data is more, which makes the subsequent frame rate switching more timely, which makes the display effect of the terminal device better or the power consumption of the terminal device is lower; when When the value of X is larger, the number of target images extracted from the image data is smaller, which reduces the complexity of subsequent calculation of the image type of each target image, thereby reducing the workload of the terminal device when performing calculation operations.
  • Step 302 the terminal device acquires attribute information of the view control in the target image.
  • each frame of image in the image data is composed of one or more view (view) controls, and these view controls constitute the drawing elements of a frame of image, therefore, each frame of image extracted from the image data
  • the frame target image also includes one or more view controls.
  • the view control includes: TextureView control, SurfaceView control, ImageView control, TextView control, ListView control, RecycleView control, Button (button) control, EditView (input box) control, custom view control, etc.
  • TextureView control and SurfaceView control can be used to display video content
  • ImageView control can be used to display picture content
  • TextView control can be used to display text content
  • ListView control and RecycleView control can be used to display list content.
  • Each view control contains its corresponding feature attributes, which include: type information, width, height, coordinate position, background color, transparency, whether it supports click events, whether it has focus, whether it is visible, etc., the view of the terminal device
  • the system can obtain the characteristic properties of each view control through the interface function. For example, the view system obtains the width of the view control through the interface function View.getWidth(), and the view system obtains the height of the view control through the interface function View.getHeight().
  • each view control only three important attribute information of each view control (they are type information, position information and area information) can be used to determine whether the image type of the target image is a visually sensitive frame or a non-visually sensitive frame. frame, therefore, the view system of the terminal device can only obtain the type information, width, height and coordinate position of each view control.
  • the type information refers to the type of content displayed by the view control.
  • the type information of the SurfaceView control refers to the video type
  • the type information of the ImageView control refers to the image type
  • the type information of the TextView control refers to the text type.
  • the view system of the terminal device can calculate the area information of the view control based on the width of the view control and the height of the view control.
  • the area information refers to the proportion of the view control in the target image, that is, the ratio between the area of the view control and the area of the target image, and the area of the view control is the product of the width and height of the view control.
  • the view system of the terminal device may calculate the position information of the view control based on the coordinate position of the view control.
  • the location information refers to the distance between the center coordinates of the view control and the center coordinates of the target image.
  • the view system can obtain the coordinate position (x 1 , y 1 ) of the upper left corner of the view control, the coordinate position (x 1 , y 2 ) of the lower left corner of the view control, and the coordinate position of the view control
  • the distance D between the center coordinate (x 3 , y 3 ) of the view control and the center coordinate (x 0 , y 0 ) of the target image is:
  • the attribute information of the view control acquired by the view system of the terminal device from the target image may include at least one of the above-mentioned type information, position information, and area information.
  • the content displayed by the same view control in different images may be different, and the view control with different content displayed in different images is called a view control whose display content changes;
  • the same view control may display the same content in different images, and the view control that displays the same content in different images is called a view control that does not change the display content.
  • the target image may include a view control whose display content changes and a view control whose display content does not change.
  • the view control whose display content does not change whether the frame rate of the image is drawn at a high frame rate or a low frame rate depends on this The display content of some view controls will not be affected.
  • the embodiment of the present application may only focus on the view control whose display content changes, that is to say, in step 302, the terminal device may acquire the attribute information of the view control whose display content changes.
  • the view system of the terminal device can determine the content of each view control through the content identifier of each view control.
  • the view control is a view control whose display content changes, or a view control whose display content does not change.
  • the view control targeted by the embodiment of the present application is a view control whose display content in the image data changes
  • the number of view controls involved in the calculation can be reduced, and the complexity of subsequent calculation of the image type of each target image is reduced, thereby reducing The workload of an end device performing a computing operation.
  • the display content in the display screen is "subscribe”, “selection”, “discovery”, “tv series” and “anime”. and other view controls belong to the view controls whose display content does not change. Therefore, the view system does not need to obtain the attribute information of these view controls, and the view control 51 corresponding to the recommended video 1 and the view control 52 corresponding to the recommended video 2 belong to the display The view control whose content changes, therefore, the view system can obtain the attribute information of the view control 51 corresponding to the recommended video 1 and the attribute information of the view control 52 corresponding to the recommended video 2 .
  • the display content in the display screen is "follow", “recommended”, “hot list”, "video”
  • the view controls such as “novel” and “novel” belong to the view controls whose display content does not change, while the view control 53 corresponding to the advertisement animation picture shown in the upper left corner and the view control 54 corresponding to the video content of the news feed 4 belong to the view control that changes the display content.
  • the view control corresponding to news feed 1 the view control corresponding to news feed 2
  • the view control corresponding to news feed 3 the view control corresponding to the picture content of news feed 3
  • the view control corresponding to news feed 4 all belong to the display content A view control that does not change.
  • the display screens shown in (a) and (b) in Figure 5 are display screens that have been drawn, rendered and displayed, which is mainly to illustrate that there may be display content that does not occur in one frame of image at the same time.
  • the attribute information of the view control in the target image is extracted before the target image is drawn.
  • Step 303 the terminal device determines the image type of the target image according to the attribute information; the image type of the target image is a visually sensitive frame or a non-visually sensitive frame.
  • the view system of the terminal device judges whether the image type of the target image is based on the attribute information of the view control in the target image.
  • Visually sensitive frames or non-visually sensitive frames are examples of the view system of the terminal device.
  • the visually sensitive frame refers to the scene picture that the user is more sensitive to the smoothness of the picture. At this time, if the image is drawn at a lower rendering frame rate, the user's visual experience will be poor; the non-visually sensitive frame refers to the It is a scene picture in which users are less sensitive to picture fluency.
  • a score lookup table corresponding to each application is set in advance in the database corresponding to the server, and the server can send the score lookup tables corresponding to multiple application programs to the terminal device, and the terminal device sends the score lookup table corresponding to each application program to the terminal device.
  • the value lookup table is stored locally, and the score lookup table is shown in Table 1 below:
  • the score lookup table corresponding to application A includes the third score value corresponding to the type information, position information and area information of multiple view controls, such as SurfaceView control, ImageView control and TextView control, and their respective type information, position information and area information.
  • the third score value corresponding to the area information is introduced below.
  • the type information of the SurfaceView control The corresponding third score value A 11 , the third score value A 12 corresponding to the type information of the ImageView control, and the third score value A 13 corresponding to the type information of the TextView control decrease successively.
  • the third scoring value A11 corresponding to the type information of the SurfaceView control is set to 10 points
  • the third scoring value A12 corresponding to the type information of the ImageView control is set to 5 points
  • the third scoring value corresponding to the type information of the TextView control A 13 is set to 2 points.
  • the position information of the view control (actual above refers to the distance between the center coordinates of the view control and the center coordinates of the target image)
  • the smaller the value the larger the third scoring value corresponding to the position information of the view control is set
  • the position information of the view control is greater
  • the smaller the third score value corresponding to the position information of the view control is set.
  • the position information corresponding to each type of view control is divided into different distance intervals in advance, as shown in Table 1, the position information corresponding to each type of view control is divided into 4 distance intervals, that is, the first distance interval [0, D 1 ), the second distance interval [D 1 , D 2 ), the third distance interval [D 2 , D 3 ), and the fourth distance interval [D 3 , D 4 ].
  • the third score value corresponding to the position information of the SurfaceView control at this time is A 21 ; when the SurfaceView control When the corresponding position information is within the second distance interval [D 1 , D 2 ), that is, D 1 ⁇ D ⁇ D 2 , the third score value corresponding to the position information of the SurfaceView control at this time is A 31 ; when the SurfaceView control corresponds to When the position information of the SurfaceView control is within the third distance interval [D 2 , D 3 ), that is, D 2 ⁇ D ⁇ D 3 , the third score value corresponding to the position information of the SurfaceView control at this time is A 41 ; when the SurfaceView control corresponds to When the position information is within the fourth distance interval [D 3 , D 4 ], that is, D 3 ⁇ D ⁇ D 4 , the third score value corresponding to the position information of the SurfaceView control at this time is A 51 .
  • the third scoring value A 21 corresponding to the first distance interval [0, D 1 ), the third scoring value A 31 corresponding to the second distance interval [D 1 , D 2 ), the third scoring value A 31 corresponding to the third distance interval [ The third scoring value A 41 corresponding to D 2 , D 3 ) and the third scoring value A 51 corresponding to the fourth distance interval [D 3 , D 4 ] decrease successively.
  • the third scoring value A21 when its corresponding position information is within the first distance interval [0, D 1 ), the third scoring value A21 can be set to 10 points; when its corresponding position information is within the second distance interval When it is within [D 1 , D 2 ), the third score value A 31 can be set to 7 points, and when its corresponding position information is within the third distance interval [D 2 , D 3 ), the third score value A 31 can be set to A 41 is set to 4 points, and when its corresponding position information is within the fourth distance interval [D 3 , D 4 ], the third score value A 51 may be set to 1 point.
  • the third scoring value A 42 corresponding to [D 2 , D 3 ] and the third scoring value A 52 corresponding to the fourth distance interval [D 3 , D 4 ] also decrease sequentially.
  • the third scoring value A 23 corresponding to the first distance interval [0, D 1 ), the third scoring value A 33 corresponding to the second distance interval [D 1 , D 2 ), the third scoring value A 33 corresponding to the third distance interval [D 2 , D 3 ) corresponding to the third scoring value A 43 and the third scoring value A 53 corresponding to the fourth distance interval [D 3 , D 4 ] also decrease sequentially.
  • the corresponding third score value is also different.
  • the area information of the view control is smaller, the third score value corresponding to the area information of the view control is set to be smaller.
  • the third score value corresponding to the area information of the view control is set to be larger.
  • the area information corresponding to each type of view control is divided into different area intervals in advance, as shown in Table 1, the area information corresponding to each type of view control is divided into 4 area intervals, that is, the first area interval (0, S 1 ), the second area interval [S 1 , S 2 ), the third area interval [S 2 , S 3 ] and the fourth area interval [S 3 , S 4 ].
  • S 1 may be 25%
  • S 2 may be 50%
  • S 3 may be 75%
  • S 4 may be 100%.
  • the third scoring value corresponding to the area information of the SurfaceView control at this time is A 61 ; when the SurfaceView control When the corresponding area information is within the second area interval [S 1 , S 2 ), that is, S 1 ⁇ S ⁇ S 2 , the third scoring value corresponding to the area information of the SurfaceView control at this time is A 71 ; when the SurfaceView control corresponds to When the area information of the SurfaceView control is within the third area interval [S 2 , S 3 ), that is, S 2 ⁇ S ⁇ S 3 , the third scoring value corresponding to the area information of the SurfaceView control at this time is A 81 ; when the SurfaceView control corresponds to When the area information is within the fourth area interval [S 3 , S 4 ], that is, S 3 ⁇ S ⁇ S 4 , the third score value corresponding to the area information of the SurfaceView control at this time is A 91 ;
  • the third scoring value A 61 corresponding to the first area interval (0, S 1 ), the third scoring value A 71 corresponding to the second area interval [S 1 , S 2 ], the third area interval [ The third scoring value A 81 corresponding to S 2 , S 3 ) and the third scoring value A 91 corresponding to the fourth area interval [S 3 , S 4 ] increase sequentially.
  • the third scoring value A 61 when its corresponding area information is within the first area interval (0, S 1 ), the third scoring value A 61 can be set as 1 point; when its corresponding area information is within the second area interval When it is within [S 1 , S 2 ), the third scoring value A 71 can be set to 4 points, and when its corresponding area information is within the third area interval [S 2 , S 3 ), the third scoring value A 71 can be set to A 81 is set to 7 points, and when its corresponding area information is within the fourth area interval [S 3 , S 4 ], the third scoring value A 91 can be set to 10 points.
  • the third scoring value A 82 corresponding to [S 2 , S 3 ) and the third scoring value A 92 corresponding to the fourth area interval [S 3 , S 4 ] also increase sequentially.
  • the third score value A 63 corresponding to the first area interval (0, S 1 ), the third score value A 73 corresponding to the second area interval [S 1 , S 2 ], the third area interval [S 2 , S 3 ) corresponding to the third scoring value A 83 and the third scoring value A 93 corresponding to the fourth area interval [S 3 , S 4 ] also increase sequentially.
  • the score lookup table stored in the server includes score lookup tables corresponding to multiple applications.
  • the specific content of the lookup table is similar to that of the score lookup table corresponding to the application program A, and will not be repeated here.
  • the view controls corresponding to each application are not limited to the SurfaceView controls, ImageView controls, and TextView controls shown in Table 1, and may also include other view controls; in addition, the division of distance intervals and area intervals is not limited to the above-mentioned way of division.
  • a weight query table corresponding to each application is also set in advance, the server can send the weight query tables corresponding to multiple applications to the terminal device, and the terminal device queries the weight
  • the table is stored locally, and the weight query table is shown in Table 2 below:
  • the weight values corresponding to the attribute information of different application programs can be set for different application programs in combination with the functions of different application programs and the usage scenarios of users, so as to generate weight lookup tables corresponding to different application programs. It can be understood that, due to different functions of different applications, the weight values of the same attribute information in weight lookup tables of different applications may be different.
  • the weight value corresponding to the type information and the weight value corresponding to the area information may be set larger, and the weight value corresponding to the position information may be set smaller.
  • the weight value W 11 corresponding to the type information of application A can be set to 0.4
  • the weight value W 12 corresponding to the location information of application A can be set to 0.2
  • the weight value W 13 corresponding to the area information of application A can be set to 0.4.
  • the location information can be set to The weight value corresponding to the information is set larger, and the weight value corresponding to the type information and the weight value corresponding to the area information are set smaller.
  • the weight value W 21 corresponding to the type information of application B can be set to 0.2
  • the weight value W 22 corresponding to the location information of application B can be set to 0.6
  • the weight value W 23 corresponding to the area information of application B can be set to 0.2.
  • weight values corresponding to the same attribute information of different view controls can be set to be equal or unequal; in addition, each third score value set in Table 1, and Each weight value set can be set according to experience value.
  • the view system of the terminal device after the view system of the terminal device obtains the attribute information of the view control in the target image, it first determines the target application program to which the target image belongs, that is, determines which application program the target image belongs to when it is displayed. The interface is displayed, and then, the view system of the terminal device searches the target score lookup table corresponding to the target application program from the score lookup tables corresponding to each application program stored locally.
  • the view system of the terminal device executes step 601 to look up the attribute information of each view control in the target image from the target score lookup table
  • the attribute information includes at least two of type information, location information and area information.
  • the target application to which the target image belongs is application A
  • look up the score lookup table corresponding to application A if the target image includes 1 SurfaceView control and 1 TextView control, and the position information of the SurfaceView control is located at the first distance In the interval [0, D 1 ), the area information of the SurfaceView control is located in the third area interval [S2, S3), the position information of the TextView control is located in the fourth distance interval [D 3 , D 4 ], the area information of the TextView control Located in the first area interval (0, S1), then obtain the third score value A 11 corresponding to the type information of the SurfaceView control, the third score value A 21 corresponding to the position information of the SurfaceView control, and the third score value A 21 corresponding to the area information of the SurfaceView control
  • the view system of the terminal device may first determine the target application program to which the target image belongs, and then, the view system of the terminal device searches the target weight lookup table corresponding to the target application program from the weight lookup table corresponding to each application program stored locally. .
  • the view system of the terminal device After the view system of the terminal device finds the target weight lookup table, the view system of the terminal device performs step 602 to look up the weight value corresponding to the attribute information of each view control from the target weight lookup table.
  • the target application to which the target image belongs is application A
  • the target image includes a SurfaceView control and a TextView control
  • the weight value corresponding to the type information of the SurfaceView control and the TextView control is W 11
  • the SurfaceView control and the TextView control The weight value corresponding to the position information of the SurfaceView control and the TextView control is W 13 .
  • the view system of the terminal device executes step 603, performing weighted summation according to the corresponding weight value for the third score value corresponding to the attribute information of each view control, to obtain the first score value of each view control.
  • the third score value corresponding to the type information of the SurfaceView control included in it is A 11
  • the corresponding weight value is W 11
  • the third score value corresponding to the position information of the SurfaceView control is A 21
  • its corresponding weight value is W 12
  • the third scoring value corresponding to the area information of the SurfaceView control is A 81
  • the third score value corresponding to the type information of the TextView control included in it is A 13
  • the corresponding weight value is W 11
  • the third score value corresponding to the position information of the TextView control is A 53
  • its corresponding weight value is W 12
  • the third scoring value corresponding to the area information of the TextView control is A 63
  • the view system of the terminal device may execute step 604 to calculate the average of the first score values of each view control value to get the second score value of the target image.
  • the target image includes a SurfaceView control and a TextView control
  • the first score value of the SurfaceView control is F 1
  • the corresponding first score value of the TextView control is F 2
  • the view system of the terminal device executes step 605, comparing the calculated second score value with a preset threshold, and judging whether the second score value is greater than the preset threshold.
  • the view system of the terminal device performs step 606 to determine that the image type of the target image is a visually sensitive frame; when the second score value is less than or equal to the preset threshold, the view system of the terminal device Step 607 is executed to determine that the image type of the target image is a non-visually sensitive frame.
  • the preset threshold can be set according to empirical values, for example, the preset threshold can be set to a value such as 5 or 6.
  • the first score value of each view control can be determined according to the attribute information of each view control in the target image, and then the view system of the terminal device can determine the first score value of each view control according to the first score value of each view control.
  • the attribute information of each view control is any one of type information, position information and area information.
  • a score value after step 601 is executed, the view system of the terminal device may determine the third score value corresponding to the attribute information of each view control in the target image as the first score value of each view control.
  • the target image may also include a view control. Therefore, after step 603 is executed, the view system of the terminal device may determine the first score value of the view control as the second score of the target image value.
  • the target image shown in (a) in FIG. 5 includes two view controls whose display content changes, which are respectively the view control 51 corresponding to the recommended video 1 and the view control 52 corresponding to the recommended video 2 .
  • the view control 51 is a SurfaceView control
  • the third score value corresponding to its type information is A 11
  • the distance between the center coordinates of the view control 51 and the center coordinates of the target image is relatively low
  • its corresponding position information is located in the first distance interval [0, D 1 )
  • the third score value corresponding to its position information is A 21
  • the area information of the view control 51 is 40%, which is located in the second area interval [S 1 , S 2 )
  • the corresponding third score value is A 71
  • the view control 52 is a SurfaceView control
  • the third score value corresponding to its type information is A 11
  • the position information of the view control 52 is located in the second distance interval [D 1 , D 2 )
  • the third score value corresponding to its position information is
  • the score value is A 31
  • the area information of the view control 52 is 40%, which is located in the second area interval [S 1 , S 2 )
  • the third score value corresponding to the area information is A 71
  • the target image shown in (b) in Figure 5 includes two view controls whose display content changes, which are respectively the view control 53 corresponding to the advertisement animation picture shown in the upper left corner and the news summary
  • the view control 54 corresponding to the video content of 4.
  • the view control 53 is an ImageView control
  • the third score value corresponding to its type information is B 12
  • the distance between the center coordinates of the view control 53 and the center coordinates of the target image is far
  • its corresponding position information is located in the fourth distance interval In [D 3 , D 4 ]
  • the third scoring value corresponding to its position information is B 52
  • the area information of the view control 53 is 1%, which is located in the first area interval (0, S 1 )
  • the corresponding third score value is B 62
  • the view control 54 is a SurfaceView control
  • the third score value corresponding to its type information is B 11
  • the position information of the view control 54 is located in the second distance interval [D 1 , D 2 )
  • the third score value corresponding to its position information is
  • the score value is B 31
  • the area information of the view control 54 is 30%, which is located in the second area interval [S 1 , S 2 )
  • the third score value corresponding to the area information is B 71
  • the preset threshold is 5 points
  • the second scoring value of the target image shown in (b) in Figure 5 is less than the preset threshold, then determine that the image type of the target image shown in (b) in Figure 5 is non- Visually sensitive frames.
  • the image type of each frame of the target image in FIG. 4 is a visually sensitive frame or a non-visually sensitive frame.
  • the target images in Figure 4 are the first frame image, the sixth frame image, the eleventh frame image, the sixteenth frame image and the twenty-first frame image, then according to the above method, by obtaining the first frame image, the sixth frame image , the attribute information of the 11th frame image, the 16th frame image and the 21st frame image, it can be determined that the image types of the 1st frame image and the 6th frame image are visually sensitive frames, while the 11th frame image, the 16th frame image and the 21st frame image The image types of the 21 frames of images are all non-visually sensitive frames.
  • Step 304 when it is detected that the image types of the consecutive N frames of target images in the image data are all non-visually sensitive frames, the terminal device switches from the first frame rate to the second frame rate, and performs image drawing at the second frame rate;
  • the second frame rate is less than the first frame rate.
  • the terminal device after the terminal device performs image rendering at the first frame rate, when the view system of the terminal device detects that the image types of the target images in the image data are all non-visually sensitive frames, it determines this
  • the image in the real-time image data is a scene picture with low user attention, therefore, the terminal device may perform image drawing at a lower second frame rate, so as to reduce power consumption of the terminal device.
  • N is a positive integer, for example, N can be 1, 2, 3 and other numerical values.
  • the frame rate adjustment of the terminal device can be realized through the view system and the image drawing module of the terminal device.
  • the view system of the terminal device detects that the image types of the target images in consecutive N frames in the image data are all non-visually sensitive frames
  • the view system of the terminal device extracts one frame of image at intervals of R frame images for the Nth non-visually sensitive frame and each frame of image thereafter, and passes the extracted image to the image drawing module through the interface, while the image not extracted by the view system Discarded, not passed to the image drawing module. Therefore, the image drawing module draws a frame of image at intervals of R frame images for the Nth non-visual sensitive frame and each subsequent frame image, until it detects that there are consecutive M frames of target images in the image data. sensitive frame.
  • R is a positive integer
  • R can be 1, 2, 3 and other values.
  • R is equal to 1, that is, one frame of image is drawn at intervals of one frame, assuming that the maximum drawing frame rate supported by the terminal device is 120fps, the second frame rate of the terminal device is 60fps.
  • the view system transfers the 16th frame image, the 18th frame image, the 20th frame image, and the 22nd frame image to the image drawing module, and the image drawing module performs the 16th frame image, the 18th frame image image, the 20th frame image and the 22nd frame image are drawn, and the view system discards the 17th frame image, the 19th frame image, the 21st frame image and the 23rd frame image, and does not pass them to the image drawing module.
  • R is equal to 3, that is, drawing a frame of image every 3 frames, then the second frame rate of the terminal device is 30fps. The embodiment of the present application does not specifically limit the value of R.
  • Step 305 when it is detected that the image types of the M consecutive target images in the image data are all visually sensitive frames, switch from the second frame rate to the first frame rate, and perform image rendering at the first frame rate.
  • the terminal device after the terminal device performs image rendering at the second frame rate, when the view system of the terminal device detects that the image types of the M consecutive target images in the image data are all visually sensitive frames, it is determined that The image in the image data is a scene with high attention of the user. Therefore, the terminal device needs to draw the image at a higher first frame rate, so that the image picture after drawing, rendering and display is smoother, and the user's vision is improved. experience.
  • M is a positive integer, for example, M can be 1, 2, 3 and other numerical values.
  • the view system of the terminal device uses the interface to convert the Mth frame of visually sensitive frames and each The frame images are all passed to the image drawing module, and then the image drawing module draws the M-th visually sensitive frame and each frame image thereafter until it is detected that the image types of continuous N frames of target images in the image data are all non- Visually sensitive frames so far.
  • the image drawing performed by the terminal device at the first frame rate actually refers to: the drawing frame rate of the image drawing module is the first frame rate, and the drawing frame rate is the number of images drawn per unit time (eg, 1 second).
  • the drawing frame rate is higher, a smoother and more realistic picture can be obtained.
  • the maximum rendering frame rate supported by the terminal device is 120fps
  • the image rendering module renders the M-th visually sensitive frame and every subsequent image frame
  • the first frame rate is 120fps.
  • the view system transfers each frame of images from the sixth frame to the fifteenth frame to the image drawing module, and the image drawing module performs the processing of the sixth to fifteenth frame images Each frame of the image is drawn.
  • K is a positive integer.
  • K is equal to 4, that is, one frame of image is discarded every 4 frames.
  • the maximum drawing frame rate supported by the terminal device is 120fps
  • the first frame rate of the terminal device is 96fps.
  • the embodiment of the present application is mainly aimed at the image data that needs to be drawn, rendered and displayed in the process of using the application program. After the user triggers the touch operation on the application program icon, until the detection of consecutive M frames of visually sensitive frames or The image to be drawn before N frames of non-visually sensitive frames may be drawn at the first frame rate, or at the second frame rate, or at other frame rates, which are not discussed in the embodiments of this application. limited.
  • M is 2, and when the image types of the image to be drawn in the first frame and the image to be drawn in the sixth frame are both visually sensitive frames, the terminal device can be used for the images in the first to fifth frames
  • the image is drawn at the first frame rate, that is, the view system transfers the first frame image value and the fifth frame image to the image drawing module for image drawing.
  • the first frame image can be understood as what needs to be displayed after the user clicks the application icon Frame 1 image.
  • the image drawing module of the terminal device when the view system of the terminal device acquires the target image from the image data and calculates the image type of the target image, the image drawing module of the terminal device also draws the frame of the target image according to the corresponding frame rate The previous image frame to draw on. That is to say, when the view system of the terminal device calculates the image type of the target image, the image drawing module will still perform the image drawing operation instead of waiting for the view system to calculate the image type of the target image before the image drawing module starts to perform image drawing operate.
  • the image drawing module will use the image frame before the 6th frame image (such as the 3rd frame image or the 4th frame image) frame image, etc.) to perform image drawing operations.
  • the terminal device draws images at the first frame rate, if it detects that the number of consecutive non-visually sensitive frames is less than N, it does not need to switch the first frame rate to the second frame rate.
  • the image is drawn until it is detected that the image types of the continuous M frames of the target image are visually sensitive frames; correspondingly, after the terminal device draws the image at the second frame rate, if the number of consecutive visually sensitive frames detected is When it is less than M, it does not need to switch the second frame rate to the first frame rate, and still draws images at the second frame rate, and does not switch the second frame rate to the first frame rate until consecutive M frames of visually sensitive frames are detected.
  • One frame rate, at the first frame rate image rendering is performed on the Mth visually sensitive frame and subsequent images until it is detected that the image types of the
  • M and N may be equal, for example, M and N are both equal to 2; or M and N may not be equal, for example, M is 2, and N is 3.
  • the process of determining whether the image type of the target image is a visually sensitive frame or a non-visually sensitive frame is performed before drawing the target image.
  • the image drawing module draws the image in the image data, it needs to pass the drawn image to the image rendering module.
  • the image rendering module renders, it passes the rendered image to the LCD/LED screen driver at the kernel layer, so that The LED screen driver drives the display to display the rendered image.
  • the rendering frame rate of the image rendering module and the display frame rate of the display screen can also be the first frame rate; when the drawing frame rate of the image drawing module is the second frame rate When the frame rate is set, the rendering frame rate of the image rendering module and the display frame rate of the display screen may both be the second frame rate.
  • FIG. 7 is a schematic diagram of a hardware structure of a terminal device provided by an embodiment of the present application.
  • the terminal device 700 shown in FIG. 7 includes: a memory 701, a processor 702, and a communication interface 703, wherein the memory 701, the processor 702, and the communication interface 703 can communicate; for example, the memory 701, the processor 702, and the communication interface 703 Communication is possible via a communication bus.
  • the memory 701 may be a read only memory (read only memory, ROM), a static storage device, a dynamic storage device or a random access memory (random access memory, RAM).
  • the memory 701 may store a computer program, which is controlled and executed by the processor 702 and communicated by the communication interface 703, so as to realize the frame rate adjustment method provided by the above-mentioned embodiments of the present application.
  • Processor 702 may be a general-purpose central processing unit (central processing unit, CPU), microprocessor, application specific integrated circuit (application specific integrated circuit, ASIC), GPU, or one or more integrated circuits.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • GPU GPU
  • the processor 702 may also be an integrated circuit chip, which has a signal processing capability. During implementation, the functions of the frame rate adjustment method of the present application may be implemented by an integrated logic circuit of hardware in the processor 702 or instructions in the form of software.
  • the above-mentioned processor 702 can also be a general-purpose processor, DSP, an application-specific integrated circuit (ASIC), a ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the methods disclosed in the following embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory 701, and the processor 702 reads the information in the memory 701, and combines its hardware to complete the function of the frame rate adjustment method in the embodiment of the present application.
  • the communication interface 703 in the chip may be an input/output interface, a pin or a circuit, and the like.
  • the terminal device 700 in this embodiment can be correspondingly used to execute the steps executed in the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the methods described in the foregoing embodiments may be fully or partially implemented by software, hardware, firmware or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another.
  • a storage media may be any target media that can be accessed by a computer.
  • the computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage or other magnetic storage devices, or target or any other medium that stores the required program code in the form of instructions or data structures and can be accessed by a computer.
  • any connection is properly termed a computer-readable medium.
  • coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave
  • coaxial Cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium.
  • Disk and disc includes compact disc, laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
  • a computer program product includes one or more computer instructions.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • the usable medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.
  • FIG. 8 is a schematic structural diagram of a frame rate adjustment system provided by an embodiment of the present application.
  • an embodiment of the present application also provides a frame rate adjustment system, which includes the above-mentioned terminal device 700 And the server 800 that is communicatively connected to the terminal device 700 stores a score lookup table and a weight lookup table corresponding to each application program in the server 800 .
  • the server 800 When the data in the score lookup table stored in the server 800 changes, such as the third score value corresponding to a certain attribute information of the view control changes, and when the third score value corresponding to some attribute information is added or deleted, the server 800 The changed score lookup table is sent to the terminal device 700 , and the terminal device 700 updates the locally previously stored score lookup table according to the score lookup table sent by the server 800 .
  • the server 800 sends the changed weight lookup table to the terminal device 700, and the terminal device 700 according to the weight value sent by the server 800
  • the lookup table updates the previously stored weight lookup table locally.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processing unit of other programmable data processing equipment to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Abstract

Embodiments of the present application provide a frame rate adjustment method, a terminal device, and a frame rate adjustment system, applicable to the technical field of terminals. In the method, the image type of a target image is determined according to attribute information of a view control in the target image, when the image types of N consecutive target image frames are all non-visually sensitive frames, it is determined that a current image to be drawn is an image frame with low user attention, and image drawing is performed at a low second frame rate. Thus, by reducing the drawing frame rate, the power consumption of the terminal device is reduced, and the battery life of the terminal device is improved.

Description

帧率调整方法、终端设备及帧率调整系统Frame rate adjustment method, terminal device and frame rate adjustment system
本申请要求于2021年10月22日提交中国国家知识产权局、申请号为202111236271.3、申请名称为“帧率调整方法、终端设备及帧率调整系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111236271.3 and the application name "frame rate adjustment method, terminal equipment and frame rate adjustment system" submitted to the State Intellectual Property Office of China on October 22, 2021, the entire content of which Incorporated in this application by reference.
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种帧率调整方法、终端设备及帧率调整系统。The present application relates to the technical field of terminals, and in particular to a frame rate adjustment method, a terminal device, and a frame rate adjustment system.
背景技术Background technique
随着终端技术的不断发展,智能手机、平板电脑等终端设备在人们的生活和工作中得到了广泛的应用,终端设备通过不断绘制和渲染图像,来呈现不同时刻下的各种显示画面。With the continuous development of terminal technology, terminal devices such as smart phones and tablet computers have been widely used in people's life and work. Terminal devices continuously draw and render images to present various display images at different times.
目前,为了提高用户的视觉感官体验,大部分终端设备均支持较高的绘制帧率,但是,当终端设备以较高的绘制帧率进行图像绘制时,虽然可以使得显示的画面更加流畅,但是也带了更大的功耗开销,导致终端设备的续航能力下降。At present, in order to improve the user's visual sensory experience, most terminal devices support a higher rendering frame rate. It also brings a greater power consumption overhead, resulting in a decrease in the battery life of the terminal device.
发明内容Contents of the invention
本申请实施例提供一种帧率调整方法、终端设备及帧率调整系统,以通过降低用户关注度较低的图像帧的绘制帧率,从而降低终端设备的功耗,提高终端设备的续航能力。Embodiments of the present application provide a frame rate adjustment method, a terminal device, and a frame rate adjustment system, so as to reduce the power consumption of the terminal device and improve the battery life of the terminal device by reducing the drawing frame rate of image frames with low user attention .
第一方面,本申请实施例提出一种帧率调整方法,应用于终端设备,该终端设备从待绘制的图像数据中获取目标图像;终端设备获取目标图像中的视图控件的属性信息;终端设备根据属性信息,确定目标图像的图像类型;当检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,终端设备从第一帧率切换为第二帧率,以第二帧率进行图像绘制;N为正整数,第二帧率小于第一帧率。In the first aspect, the embodiment of the present application proposes a frame rate adjustment method, which is applied to a terminal device. The terminal device acquires a target image from the image data to be drawn; the terminal device acquires the attribute information of the view control in the target image; the terminal device Determine the image type of the target image according to the attribute information; when it is detected that the image types of the consecutive N frames of the target image in the image data are all non-visually sensitive frames, the terminal device switches from the first frame rate to the second frame rate, at the first frame rate Image rendering is performed at a second frame rate; N is a positive integer, and the second frame rate is lower than the first frame rate.
其中,视图控件也可称为view控件。这样,本申请当检测到连续的N帧目标图像的图像类型均为非视觉敏感帧时,确定当前的待绘制图像是用户关注度较低的图像帧,此时以较低的第二帧率进行图像绘制,从而通过降低用户关注度较低的图像帧的绘制帧率,从而降低终端设备的功耗,提高终端设备的续航能力。Wherein, the view control may also be referred to as a view control. In this way, when the present application detects that the image types of the consecutive N frames of target images are all non-visually sensitive frames, it is determined that the current image to be drawn is an image frame with low user attention, and at this time, the second lower frame rate Image drawing is performed, thereby reducing the drawing frame rate of image frames with low user attention, thereby reducing the power consumption of the terminal device and improving the battery life of the terminal device.
在一种可选的实现方式中,终端设备根据属性信息,确定目标图像的图像类型,包括:终端设备根据目标图像中的每个视图控件的属性信息,确定每个视图控件的第一评分值;终端设备根据每个视图控件的第一评分值,计算得到目标图像的第二评分值;终端设备根据第二评分值,确定目标图像的图像类型。由于不同的图像中视图控件的第一评分值不同,本申请可基于目标图像中的每个视图控件的第一评分值,计算得到目标图像的第二评分值,并根据第二评分值确定目标图像的图像类型是视觉敏感帧还是非视觉敏感帧,从而提高目标图像的类型判断结果的准确性。In an optional implementation manner, the terminal device determines the image type of the target image according to the attribute information, including: the terminal device determines the first score value of each view control according to the attribute information of each view control in the target image ; The terminal device calculates the second score value of the target image according to the first score value of each view control; the terminal device determines the image type of the target image according to the second score value. Since the first score value of the view control in different images is different, the application can calculate the second score value of the target image based on the first score value of each view control in the target image, and determine the target according to the second score value Whether the image type of the image is a visually sensitive frame or a non-visually sensitive frame, so as to improve the accuracy of the type judgment result of the target image.
在一种可选的实现方式中,终端设备根据目标图像中的每个视图控件的属性信息,确定每个视图控件的第一评分值,包括:终端设备从目标分值查询表中,查找目标图像中的每个视图控件的属性信息对应的第三评分值;终端设备根据第三评分值,计算 得到每个视图控件的第一评分值。这样,通过查表的方式查找视图控件的属性信息对应的第三评分值,从而进一步确定视图控件的第一评分值,简化了视图控件的第一评分值的计算过程。In an optional implementation manner, the terminal device determines the first score value of each view control according to the attribute information of each view control in the target image, including: the terminal device searches the target score value lookup table for the target The third score value corresponding to the attribute information of each view control in the image; the terminal device calculates the first score value of each view control according to the third score value. In this way, the third score value corresponding to the attribute information of the view control is searched by means of table lookup, thereby further determining the first score value of the view control, which simplifies the calculation process of the first score value of the view control.
在一种可选的实现方式中,属性信息为类型信息、位置信息和面积信息中的任一者;终端设备根据第三评分值,计算得到每个视图控件的第一评分值,包括:终端设备将每个视图控件的属性信息对应的第三评分值,确定为每个视图控件的第一评分值。这样,直接将一个属性信息的第三评分值,确定为对应的视图控件的第一评分值,降低了视图控件的第一评分值的计算复杂度。In an optional implementation, the attribute information is any one of type information, location information, and area information; the terminal device calculates the first score value of each view control according to the third score value, including: the terminal The device determines the third score value corresponding to the attribute information of each view control as the first score value of each view control. In this way, the third score value of an attribute information is directly determined as the first score value of the corresponding view control, which reduces the computational complexity of the first score value of the view control.
在一种可选的实现方式中,属性信息包括类型信息、位置信息和面积信息中的至少二者;终端设备根据第三评分值,计算得到每个视图控件的第一评分值,包括:终端设备从目标权重查询表中,查找每个视图控件的属性信息对应的权重值;终端设备对每个视图控件的属性信息对应的第三评分值,按照对应的权重值进行加权求和,得到每个视图控件的第一评分值。由于不同的应用程序中,视图控件的各个属性信息的权重值可能不同,因此,对每个视图控件的属性信息对应的第三评分值,按照对应的权重值进行加权求和,可提高计算得到的第一评分值的准确性,从而进一步提高目标图像的类型判断结果的准确性。In an optional implementation manner, the attribute information includes at least two of type information, location information, and area information; the terminal device calculates the first score value of each view control according to the third score value, including: the terminal The device looks up the weight value corresponding to the attribute information of each view control from the target weight lookup table; the terminal device performs weighted summation according to the corresponding weight value for the third scoring value corresponding to the attribute information of each view control to obtain each The first score value of a view control. Since in different applications, the weight value of each attribute information of view control may be different, therefore, the third score value corresponding to the attribute information of each view control is weighted and summed according to the corresponding weight value, which can improve the calculation. The accuracy of the first scoring value of , thereby further improving the accuracy of the type judgment result of the target image.
在一种可选的实现方式中,在终端设备从目标分值查询表中,查找目标图像中的每个视图控件的属性信息对应的第三评分值之前,还包括:终端设备确定目标图像所属的目标应用程序;终端设备从预设的各个应用程序对应的分值查询表中,查找目标应用程序对应的目标分值查询表。根据不同应用程序的实际需求,对不同应用程序设置其对应的分值查询表,使得每个分值查询表内的分值,更能准确反映目标图像中的视图控件的属性信息的实际分数,从而提高目标图像的类型判断结果的准确性。In an optional implementation manner, before the terminal device looks up the third score value corresponding to the attribute information of each view control in the target image from the target score lookup table, the terminal device further includes: the terminal device determines that the target image belongs to The target application program; the terminal device searches the target score lookup table corresponding to the target application program from the preset score lookup tables corresponding to each application program. According to the actual needs of different applications, set its corresponding score lookup table for different applications, so that the score in each score lookup table can more accurately reflect the actual score of the attribute information of the view control in the target image, Therefore, the accuracy of the type judgment result of the target image is improved.
在一种可选的实现方式中,在终端设备从目标权重查询表中,查找每个视图控件的属性信息对应的权重值之前,还包括:终端设备确定目标图像所属的目标应用程序;终端设备从预设的各个应用程序对应的权重查询表中,查找目标应用程序对应的目标权重查询表。根据不同应用程序的实际需求,对不同应用程序设置其对应的权重查询表,使得每个权重查询表内的权重值,更能准确反映目标图像中的视图控件的属性信息所占的比重,从而提高目标图像的类型判断结果的准确性。In an optional implementation manner, before the terminal device searches the weight value corresponding to the attribute information of each view control from the target weight lookup table, the terminal device further includes: the terminal device determines the target application program to which the target image belongs; the terminal device Find the target weight lookup table corresponding to the target application program from the preset weight lookup table corresponding to each application program. According to the actual needs of different applications, set their corresponding weight lookup tables for different applications, so that the weight value in each weight lookup table can more accurately reflect the proportion of the attribute information of the view control in the target image, so that Improve the accuracy of the type judgment result of the target image.
在一种可选的实现方式中,终端设备根据每个视图控件的第一评分值,计算得到目标图像的第二评分值,包括:终端设备计算每个视图控件的第一评分值的平均值,得到目标图像的第二评分值。这样,通过综合考虑目标图像中的多个视图控件的第一评分值,最终计算得到目标图像的第二评分值,使得根据第二评分值确定的目标图像的类型判断结果的准确性更高。In an optional implementation manner, the terminal device calculates the second score value of the target image according to the first score value of each view control, including: the terminal device calculates an average value of the first score values of each view control , to get the second score value of the target image. In this way, by comprehensively considering the first scoring values of multiple view controls in the target image, the second scoring value of the target image is finally calculated, so that the accuracy of the type judgment result of the target image determined according to the second scoring value is higher.
在一种可选的实现方式中,终端设备根据第二评分值,确定目标图像的图像类型,包括:终端设备将第二评分值与预设阈值进行对比;当第二评分值大于预设阈值时,确定目标图像的图像类型为视觉敏感帧;当第二评分值小于或等于预设阈值时,确定目标图像的图像类型为非视觉敏感帧。这样,直接通过第二评分值与预设阈值的大小关系,判断目标图像的图像类型,判断过程较为简单。In an optional implementation manner, the terminal device determines the image type of the target image according to the second score value, including: the terminal device compares the second score value with a preset threshold; when the second score value is greater than the preset threshold When , it is determined that the image type of the target image is a visually sensitive frame; when the second score value is less than or equal to a preset threshold, it is determined that the image type of the target image is a non-visually sensitive frame. In this way, the image type of the target image is judged directly through the size relationship between the second scoring value and the preset threshold, and the judgment process is relatively simple.
在一种可选的实现方式中,在终端设备从第一帧率切换为第二帧率,以第二帧率 进行图像绘制之后,还包括:当检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,终端设备从第二帧率切换为第一帧率,以第一帧率进行图像绘制;M为正整数。这样,当检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,确定此时图像数据中的图像是用户关注度较高的场景画面,因此,以较高的第一帧率进行图像绘制,使得经过绘制、渲染和显示后的图像画面更加流畅,提高用户的视觉体验。In an optional implementation, after the terminal device switches from the first frame rate to the second frame rate and performs image drawing at the second frame rate, it also includes: when detecting consecutive M frames of target images in the image data When the image types of are all visually sensitive frames, the terminal device switches from the second frame rate to the first frame rate, and draws images at the first frame rate; M is a positive integer. In this way, when it is detected that the image types of the consecutive M frames of target images in the image data are all visually sensitive frames, it is determined that the image in the image data is a scene picture with a higher degree of user attention, and therefore, a higher first The frame rate is used for image drawing, which makes the image picture after drawing, rendering and display smoother, and improves the user's visual experience.
在一种可选的实现方式中,当检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,终端设备从第一帧率切换为第二帧率,以第二帧率进行图像绘制,包括:当检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,终端设备对第N帧非视觉敏感帧以及之后的每一帧图像,每间隔R帧图像绘制一帧图像,直至检测到图像数据中存在连续的M帧目标图像的图像类型均为视觉敏感帧;R为正整数。In an optional implementation, when it is detected that the image types of the consecutive N frames of target images in the image data are all non-visually sensitive frames, the terminal device switches from the first frame rate to the second frame rate, and uses the second The frame rate is used for image drawing, including: when it is detected that the image types of the consecutive N frames of target images in the image data are all non-visually sensitive frames, the terminal device performs the Nth non-visually sensitive frame and each subsequent frame of image, each Draw a frame of images at intervals of R frames of images until it is detected that there are consecutive M frames of target images in the image data, all of which are visually sensitive frames; R is a positive integer.
在一种可选的实现方式中,当检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,终端设备从第二帧率切换为第一帧率,以第一帧率进行图像绘制,包括:当检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,终端设备对第M帧视觉敏感帧以及之后的每一帧图像均进行绘制,直至检测到图像数据中存在连续的N帧目标图像的图像类型均为非视觉敏感帧。In an optional implementation, when it is detected that the image types of the M consecutive target images in the image data are all visually sensitive frames, the terminal device switches from the second frame rate to the first frame rate, and uses the first frame rate Image drawing at a high rate, including: when it is detected that the image types of the M consecutive target images in the image data are all visually sensitive frames, the terminal device draws the Mth visually sensitive frame and every frame thereafter until It is detected that there are consecutive N frames of target images in the image data, all of which are non-visually sensitive frames.
在一种可选的实现方式中,视图控件为图像数据中,显示内容发生变化的视图控件。这样,本申请实施例针对的视图控件为图像数据中显示内容发生变化的视图控件时,可以减小参与计算的视图控件的数量,降低了后续计算每个目标图像的图像类型的复杂度,从而减少终端设备执行计算操作时的工作量。In an optional implementation manner, the view control is a view control whose display content changes in the image data. In this way, when the view control targeted by the embodiment of the present application is a view control whose display content in the image data changes, the number of view controls involved in the calculation can be reduced, and the complexity of subsequent calculation of the image type of each target image can be reduced, thereby Reduce the workload of terminal devices when performing computing operations.
在一种可选的实现方式中,终端设备从待绘制的图像数据中获取目标图像,包括:终端设备从图像数据包括的多帧图像中,每间隔X帧提取一帧图像作为目标图像;X为正整数。这样,可减小提取到的目标图像的数量,降低了后续计算每个目标图像的图像类型的复杂度,从而减少终端设备执行计算操作时的工作量。In an optional implementation manner, the terminal device obtains the target image from the image data to be drawn, including: the terminal device extracts a frame of image every X frames from the multi-frame images included in the image data as the target image; X is a positive integer. In this way, the number of extracted target images can be reduced, and the complexity of subsequently calculating the image type of each target image is reduced, thereby reducing the workload of the terminal device when performing calculation operations.
第二方面,本申请实施例提出一种终端设备,该终端设备包括处理单元,该处理单元,用于从待绘制的图像数据中获取目标图像;获取目标图像中的视图控件的属性信息;根据属性信息,确定目标图像的图像类型;当检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,从第一帧率切换为第二帧率,以第二帧率进行图像绘制;N为正整数,第二帧率小于第一帧率。In the second aspect, the embodiment of the present application proposes a terminal device, the terminal device includes a processing unit, and the processing unit is configured to acquire a target image from image data to be drawn; acquire attribute information of a view control in the target image; Attribute information to determine the image type of the target image; when it is detected that the image types of the continuous N frames of the target image in the image data are all non-visually sensitive frames, switch from the first frame rate to the second frame rate, and use the second frame rate Perform image drawing; N is a positive integer, and the second frame rate is lower than the first frame rate.
第三方面,本申请实施例提出一种终端设备,包括存储器和处理器,存储器用于存储计算机程序,处理器用于调用计算机程序,以执行以下步骤:从待绘制的图像数据中获取目标图像;获取目标图像中的视图控件的属性信息;根据属性信息,确定目标图像的图像类型;当检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,从第一帧率切换为第二帧率,以第二帧率进行图像绘制;N为正整数,第二帧率小于第一帧率。In the third aspect, the embodiment of the present application proposes a terminal device, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call the computer program to perform the following steps: acquire a target image from the image data to be drawn; Obtain the attribute information of the view control in the target image; determine the image type of the target image according to the attribute information; Switch to the second frame rate, and draw images at the second frame rate; N is a positive integer, and the second frame rate is lower than the first frame rate.
在一种可选的实现方式中,处理器具体用于执行以下步骤:根据目标图像中的每个视图控件的属性信息,确定每个视图控件的第一评分值;根据每个视图控件的第一评分值,计算得到目标图像的第二评分值;根据第二评分值,确定目标图像的图像类 型。In an optional implementation manner, the processor is specifically configured to perform the following steps: determine the first score value of each view control according to the attribute information of each view control in the target image; A score value, calculating a second score value of the target image; according to the second score value, determining the image type of the target image.
在一种可选的实现方式中,处理器具体用于执行以下步骤:从目标分值查询表中,查找目标图像中的每个视图控件的属性信息对应的第三评分值;根据第三评分值,计算得到每个视图控件的第一评分值。In an optional implementation manner, the processor is specifically configured to perform the following steps: from the target score lookup table, look up the third score value corresponding to the attribute information of each view control in the target image; Value, calculate the first score value of each view control.
在一种可选的实现方式中,属性信息为类型信息、位置信息和面积信息中的任一者;处理器具体用于执行以下步骤:将每个视图控件的属性信息对应的第三评分值,确定为每个视图控件的第一评分值。In an optional implementation manner, the attribute information is any one of type information, position information, and area information; the processor is specifically configured to perform the following steps: the third score value corresponding to the attribute information of each view control , determine the first score value for each view control.
在一种可选的实现方式中,属性信息包括类型信息、位置信息和面积信息中的至少二者;处理器具体用于执行以下步骤:从目标权重查询表中,查找每个视图控件的属性信息对应的权重值;对每个视图控件的属性信息对应的第三评分值,按照对应的权重值进行加权求和,得到每个视图控件的第一评分值。In an optional implementation manner, the attribute information includes at least two of type information, position information, and area information; the processor is specifically configured to perform the following steps: Find the attribute of each view control from the target weight lookup table The weight value corresponding to the information; the third score value corresponding to the attribute information of each view control is weighted and summed according to the corresponding weight value to obtain the first score value of each view control.
在一种可选的实现方式中,处理器还用于执行以下步骤:确定目标图像所属的目标应用程序;从预设的各个应用程序对应的分值查询表中,查找目标应用程序对应的目标分值查询表。In an optional implementation manner, the processor is further configured to perform the following steps: determine the target application program to which the target image belongs; and search for the target application program corresponding to the target application program from the preset score lookup table corresponding to each application program. Score lookup table.
在一种可选的实现方式中,处理器还用于执行以下步骤:确定目标图像所属的目标应用程序;从预设的各个应用程序对应的权重查询表中,查找目标应用程序对应的目标权重查询表。In an optional implementation manner, the processor is further configured to perform the following steps: determine the target application program to which the target image belongs; and search for the target weight corresponding to the target application program from the preset weight lookup table corresponding to each application program lookup table.
在一种可选的实现方式中,处理器具体用于执行以下步骤:计算每个视图控件的第一评分值的平均值,得到目标图像的第二评分值。In an optional implementation manner, the processor is specifically configured to perform the following step: calculating an average value of the first score values of each view control to obtain the second score value of the target image.
在一种可选的实现方式中,处理器具体用于执行以下步骤:将第二评分值与预设阈值进行对比;当第二评分值大于预设阈值时,确定目标图像的图像类型为视觉敏感帧;当第二评分值小于或等于预设阈值时,确定目标图像的图像类型为非视觉敏感帧。In an optional implementation manner, the processor is specifically configured to perform the following steps: comparing the second score value with a preset threshold; when the second score value is greater than the preset threshold, determine that the image type of the target image is visual A sensitive frame; when the second scoring value is less than or equal to a preset threshold, determine that the image type of the target image is a non-visually sensitive frame.
在一种可选的实现方式中,处理器还用于执行以下步骤:当检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,从第二帧率切换为第一帧率,以第一帧率进行图像绘制;M为正整数。In an optional implementation manner, the processor is further configured to perform the following steps: when it is detected that the image types of the M consecutive frames of target images in the image data are all visually sensitive frames, switch from the second frame rate to the first Frame rate, image rendering is performed at the first frame rate; M is a positive integer.
在一种可选的实现方式中,处理器具体用于执行以下步骤:当检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,对第N帧非视觉敏感帧以及之后的每一帧图像,每间隔R帧图像绘制一帧图像,直至检测到图像数据中存在连续的M帧目标图像的图像类型均为视觉敏感帧;R为正整数。In an optional implementation, the processor is specifically configured to perform the following steps: when it is detected that the image types of the N consecutive frames of the target image in the image data are all non-visually sensitive frames, the non-visually sensitive frame of the Nth frame And for each frame of image thereafter, draw a frame of image every R frame of image until it is detected that there are consecutive M frames of target images in the image data, and the image types of the target image are all visually sensitive frames; R is a positive integer.
在一种可选的实现方式中,处理器具体用于执行以下步骤:当检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,对第M帧视觉敏感帧以及之后的每一帧图像均进行绘制,直至检测到图像数据中存在连续的N帧目标图像的图像类型均为非视觉敏感帧。In an optional implementation manner, the processor is specifically configured to perform the following steps: when it is detected that the image types of the consecutive M frames of target images in the image data are all visually sensitive frames, for the Mth visually sensitive frame and subsequent Each frame of image is drawn until it is detected that there are consecutive N frames of target images in the image data, all of which are non-visually sensitive frames.
在一种可选的实现方式中,视图控件为图像数据中,显示内容发生变化的视图控件。In an optional implementation manner, the view control is a view control whose display content changes in the image data.
在一种可选的实现方式中,处理器具体用于执行以下步骤:从图像数据包括的多帧图像中,每间隔X帧提取一帧图像作为目标图像;X为正整数。In an optional implementation manner, the processor is specifically configured to perform the following steps: from the multiple frames of images included in the image data, extract a frame of image every X frames as the target image; X is a positive integer.
第四方面,本申请实施例提出一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序或指令,当计算机程序或指令被运行时,实现上述的帧率调整方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed, the above frame rate adjustment method is realized.
第五方面,本申请实施例提出一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行上述的帧率调整方法。In a fifth aspect, the embodiment of the present application provides a computer program product, including a computer program, which, when the computer program is run, causes the computer to execute the above frame rate adjustment method.
第六方面,本申请实施例提出一种帧率调整系统,包括服务器以及上述的终端设备;服务器,用于当服务器内存储的分值查询表内的数据存在变更时,将变更后的分值查询表发送至终端设备;以及当服务器内存储的权重查询表内的数据存在变更时,将变更后的权重查询表发送至终端设备。In the sixth aspect, the embodiment of the present application proposes a frame rate adjustment system, including a server and the above-mentioned terminal device; the server is used to convert the changed score to The query table is sent to the terminal device; and when the data in the weight query table stored in the server is changed, the changed weight query table is sent to the terminal device.
第二方面至第六方面的各可能的实现方式,效果与第一方面以及第一方面的可能的设计中的效果类似,在此不再赘述。The effects of the possible implementations of the second aspect to the sixth aspect are similar to those of the first aspect and possible designs of the first aspect, and will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的终端设备硬件系统结构示意图;FIG. 1 is a schematic structural diagram of a terminal device hardware system provided by an embodiment of the present application;
图2为本申请实施例提供的终端设备软件系统结构示意图;FIG. 2 is a schematic structural diagram of a terminal device software system provided by an embodiment of the present application;
图3为本申请实施例提供的一种帧率调整方法的流程图;FIG. 3 is a flow chart of a frame rate adjustment method provided by an embodiment of the present application;
图4为本申请实施例中的图像绘制帧率变更的示意图;FIG. 4 is a schematic diagram of changing the image rendering frame rate in the embodiment of the present application;
图5为本申请实施例中的两种目标图像的示意图;Fig. 5 is the schematic diagram of two kinds of target images in the embodiment of the present application;
图6为本申请实施例中的根据属性信息确定目标图像的图像类型的流程图;FIG. 6 is a flowchart of determining the image type of a target image according to attribute information in an embodiment of the present application;
图7为本申请实施例提供的一种终端设备的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of a terminal device provided in an embodiment of the present application;
图8为本申请实施例提供的一种帧率调整系统的结构示意图。FIG. 8 is a schematic structural diagram of a frame rate adjustment system provided by an embodiment of the present application.
具体实施方式Detailed ways
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一芯片和第二芯片仅仅是为了区分不同的芯片,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first chip and the second chip are only used to distinguish different chips, and their sequence is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "for example" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
目前,为了提高用户的视觉感官体验,大部分终端设备均支持较高的绘制帧率,但是,当终端设备以较高的绘制帧率进行图像绘制时,虽然可以使得显示的画面更加流畅,但是也带了更大的功耗开销,导致终端设备的续航能力下降。At present, in order to improve the user's visual sensory experience, most terminal devices support a higher rendering frame rate. It also brings a greater power consumption overhead, resulting in a decrease in the battery life of the terminal device.
为了改善因绘制帧率较高导致的终端设备续航能力下降的问题,在相关技术中,可以预先设置应用程序名单,该应用程序名单包括多个应用程序对应的设定绘制帧率, 示例性的,对视频类应用程序或游戏类应用程序设置较高的绘制帧率,如绘制帧率为120每秒帧数(frames per second,fps),对新闻浏览类应用程序设置较低的绘制帧率,如绘制帧率为30fps。当获取到待绘制图像时,先确定待绘制图像所属的应用程序,然后从应用程序名单中获取该应用程序对应的设定绘制帧率,最后基于获取到的设定绘制帧率进行图像绘制。In order to improve the problem of reduced battery life of the terminal device caused by a high rendering frame rate, in related technologies, an application list can be preset, and the application list includes a set rendering frame rate corresponding to multiple applications. Exemplary , set a higher drawing frame rate for video applications or game applications, for example, the drawing frame rate is 120 frames per second (frames per second, fps), and set a lower drawing frame rate for news browsing applications , such as drawing at a frame rate of 30fps. When the image to be drawn is acquired, the application program to which the image to be drawn belongs is determined first, then the set drawing frame rate corresponding to the application program is obtained from the application program list, and finally the image is drawn based on the acquired set drawing frame rate.
因此,相关技术中是通过对部分应用程序采用较低的设定绘制帧率进行图像绘制,以降低终端设备的功耗,从而提高终端设备的续航能力。但是,这种调整绘制帧率的方式,不能根据屏幕实际需要的显示内容进行实时动态地调整绘制帧率,导致对终端设备的显示效果和功耗的改善效果不佳。Therefore, in the related art, some application programs use a lower set rendering frame rate for image rendering to reduce the power consumption of the terminal device, thereby improving the battery life of the terminal device. However, this method of adjusting the drawing frame rate cannot dynamically adjust the drawing frame rate in real time according to the display content actually required by the screen, resulting in a poor effect on improving the display effect and power consumption of the terminal device.
示例性的,针对某一视频类应用程序,会始终以较高的绘制帧率进行图像绘制,然而在某些情况下并不需要维持如此之高的绘制帧率,如当待绘制图像为该视频类应用程序的设置界面时,其不包含视频画面,仅包含一些文字内容和/或图片,设置界面对绘制帧率的要求不是很高,当以较高的绘制帧率绘制该设置界面时,会导致终端设备的功耗增加;或者,针对某一新闻浏览类应用程序,会始终以较低的绘制帧率进行图像绘制,然而在某些情况下以较低的绘制帧率进行图像绘制时,会导致最终的显示画面出现卡顿等现象,如当待绘制图像为该新闻浏览类应用程序中需要进行播放的视频画面时,其需要以较高的绘制帧率进行图像绘制来保证画面的流畅性,若依旧以较低的绘制帧率进行图像绘制时,会导致最终的显示画面出现卡顿等现象。Exemplarily, for a certain video application, image drawing is always performed at a higher drawing frame rate, but in some cases it is not necessary to maintain such a high drawing frame rate, for example, when the image to be drawn is the When setting the interface of a video application, it does not contain video images, but only contains some text content and/or pictures. The setting interface does not require very high drawing frame rate. When drawing the setting interface at a higher drawing frame rate , which will lead to an increase in the power consumption of the terminal device; or, for a news browsing application, image rendering will always be performed at a lower rendering frame rate, but in some cases, image rendering will be performed at a lower rendering frame rate , it will cause the final display screen to appear stuttering and other phenomena. For example, when the image to be drawn is a video screen that needs to be played in the news browsing application, it needs to draw the image at a higher rendering frame rate to ensure that the image If the image is drawn at a lower frame rate, it will cause the final display screen to appear stuttering and other phenomena.
基于此,本申请实施例提供了一种帧率调整方法,通过根据目标图像中的view控件的属性信息,确定目标图像的图像类型是视觉敏感帧还是非视觉敏感帧,当连续的M帧目标图像的图像类型均为视觉敏感帧时,确定当前的待绘制图像是用户关注度较高的图像帧,此时以较高的第一帧率进行图像绘制,直至出现连续的N帧目标图像的图像类型均为非视觉敏感帧,从而提高画面的流畅性,以提高用户的视觉感官体验;而当连续的N帧目标图像的图像类型均为非视觉敏感帧时,确定当前的待绘制图像是用户关注度较低的图像帧,此时以较低的第二帧率进行图像绘制,直至出现连续的M帧目标图像的图像类型均为视觉敏感帧,从而通过降低绘制帧率来减少终端设备的功耗开销,提高终端设备的续航能力。Based on this, the embodiment of the present application provides a frame rate adjustment method, by determining whether the image type of the target image is a visually sensitive frame or a non-visually sensitive frame according to the attribute information of the view control in the target image, when consecutive M frames of the target When the image types of the images are all visually sensitive frames, it is determined that the current image to be drawn is an image frame with high user attention, and at this time, the image is drawn at a higher first frame rate until there are consecutive N frames of the target image The image types are all non-visually sensitive frames, thereby improving the fluency of the picture and improving the user's visual sensory experience; and when the image types of the continuous N frames of target images are all non-visually sensitive frames, it is determined that the current image to be drawn is For image frames with low user attention, image rendering is performed at a lower second frame rate until the image type of the target image in consecutive M frames is a visually sensitive frame, thereby reducing the number of terminal devices by reducing the rendering frame rate. Power consumption overhead, improve the battery life of the terminal equipment.
因此,本申请实施例可根据屏幕实际需要的显示内容进行实时动态地调整绘制帧率,提高用户关注度较高的图像帧的绘制帧率,以改善终端设备的显示效果,并且,降低用户关注度较低的图像帧的绘制帧率,从而降低终端设备的功耗,以提高对终端设备的显示和功耗的改善效果。Therefore, the embodiment of the present application can dynamically adjust the drawing frame rate in real time according to the display content actually required by the screen, and increase the drawing frame rate of image frames with high user attention, so as to improve the display effect of the terminal device, and reduce user attention. The drawing frame rate of the low-resolution image frame is reduced, thereby reducing the power consumption of the terminal device, so as to improve the display and power consumption of the terminal device.
本申请实施例提供的的帧率调整方法,可以应用在具备显示功能的终端设备中,该终端设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city) 中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对终端设备所采用的具体技术和具体设备形态不做限定。The frame rate adjustment method provided in the embodiment of the present application can be applied to a terminal device with a display function, and the terminal device can also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), etc. The terminal device can be mobile phone, smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal device, augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
为了能够更好地理解本申请实施例,下面对本申请实施例的终端设备的结构进行介绍。示例性的,图1为本申请实施例提供的一种终端设备的结构示意图。In order to better understand the embodiment of the present application, the structure of the terminal device in the embodiment of the present application is introduced below. Exemplarily, FIG. 1 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device 100 . In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be recalled from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K, 充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to realize the touch function of the terminal device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。I2S接口和PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both I2S interface and PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through a CSI interface to realize the shooting function of the terminal device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the terminal device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is a schematic description, and does not constitute a structural limitation of the terminal device 100 . In other embodiments of the present application, the terminal device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the terminal device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理 模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input of the battery 142 and/or the charging management module 140, and supplies power for the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。终端设备100中的天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. The antennas in the terminal device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the terminal device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在终端设备100上的包括无线局域(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation, etc. applied on the terminal device 100. Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS), 码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. Wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband code division Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology etc. GNSS can include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou satellite navigation system (beidounavigation satellite system, BDS), quasi-zenith satellite system (quasi-zenith satellite system) , QZSS) and/or satellite based augmentation systems (SBAS).
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像、显示视频和接收滑动操作等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diod,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或多个显示屏194。The display screen 194 is used for displaying images, displaying videos, receiving sliding operations, and the like. The display screen 194 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 or an active-matrix organic light-emitting diode (active-matrixorganic light-emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the terminal device 100 may include one or more display screens 194 .
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the optical signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或多个摄像头193。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may 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, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the terminal device 100 may include one or more cameras 193 .
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结 构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the terminal device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the terminal device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional applications and data processing of the terminal device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 100 may implement an audio function through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。 Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。 Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a phone call or voice information, the receiver 170B can be placed close to the human ear to receive the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In some other embodiments, the terminal device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, identify sound sources, and realize directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端设备100根据电容的变化确定压力的强度。当有触摸操作作用于显 示屏194,终端设备100根据压力传感器180A检测触摸操作强度。终端设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
陀螺仪传感器180B可以用于确定终端设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端设备100围绕三个轴(即,x、y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100 . In some embodiments, the angular velocity of the terminal device 100 around three axes (ie, x, y and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the terminal device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the terminal device 100 through reverse motion to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,终端设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。终端设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端设备100是翻盖机时,终端设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The terminal device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the terminal device 100 is a clamshell machine, the terminal device 100 may detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测终端设备100在各个方向上(一般为三轴)加速度的大小。当终端设备100静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用程序。The acceleration sensor 180E can detect the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of terminal equipment, and it can be applied to applications such as horizontal and vertical screen switching, pedometer, etc.
距离传感器180F,用于测量距离。终端设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备100通过发光二极管向外发射红外光。终端设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备100附近有物体。当检测到不充分的反射光时,终端设备100可以确定终端设备100附近没有物体。终端设备100可以利用接近光传感器180G检测用户手持终端设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The terminal device 100 emits infrared light through the light emitting diode. The terminal device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100 . When insufficient reflected light is detected, the terminal device 100 may determine that there is no object near the terminal device 100 . The terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to make a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器180L用于感知环境光亮度。终端设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in the pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。终端设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to the application lock, take pictures with fingerprints, answer incoming calls with fingerprints, and so on.
温度传感器180J用于检测温度。在一些实施例中,终端设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备100对电池142加热,以避免低温导致终端设备100异常关机。在其他一些实施例中,当温度低于又一阈值 时,终端设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the terminal device 100 may reduce the performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In some other embodiments, when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the terminal device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100 , which is different from the position of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用程序(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或多个SIM卡接口。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The terminal device 100 may support one or more SIM card interfaces. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of multiple cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calling and data communication. In some embodiments, the terminal device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等。本申请实施例以分层架构的Android系统为例,示例性说明终端设备100的软件结构。The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In this embodiment of the present application, an Android system with a layered architecture is taken as an example to illustrate the software structure of the terminal device 100 .
图2是本申请实施例的终端设备100的软件结构框图。FIG. 2 is a block diagram of a software structure of a terminal device 100 according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are application layer, application framework layer, Android runtime and system library, and kernel layer from top to bottom.
应用层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图2所示,应用程序包可以包括电话、邮箱、日历、相机等应用程序。As shown in FIG. 2, the application program package may include application programs such as telephone, email, calendar, and camera.
应用程序框架层为应用层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括输入系统、活动管理器、位置管理器、包管理器、通知管理器、资源管理器、电话管理器和视图系统等。As shown in Figure 2, the application framework layer may include an input system, an activity manager, a location manager, a package manager, a notification manager, a resource manager, a phone manager, and a view system, etc.
输入系统用于管理输入设备的程序。例如,输入系统可以确定鼠标点击操作、键盘输入操作和触摸滑动等输入操作。The input system is a program used to manage input devices. For example, the input system can determine input actions such as mouse clicks, keyboard input actions, and touch swipes.
活动管理器用于管理各个应用程序的生命周期以及导航回退功能。负责Android的主线程创建,各个应用程序的生命周期的维护。The Activity Manager is used to manage the lifecycle of individual applications and navigation fallback functionality. Responsible for the creation of the main thread of Android and the maintenance of the life cycle of each application.
位置管理器用于为应用程序提供位置服务,包括查询上一个已知位置、注册和注销来自某个周期性的位置更新等。The location manager is used to provide location services for applications, including querying the last known location, registering and unregistering from a periodic location update, etc.
包管理器用于系统内的程序管理,例如:应用程序安装、卸载和升级等。The package manager is used for program management within the system, such as application installation, uninstallation, and upgrade.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is issued, the terminal device vibrates, and the indicator light flashes, etc.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
电话管理器用于管理移动设备功能,包括:手机通话状态、获取电话信息(设备、sim卡、网络信息),监听电话状态以及调用电话拨号器拨打电话The phone manager is used to manage mobile device functions, including: phone call status, get phone information (device, sim card, network information), monitor phone status and call the phone dialer to make a call
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
在本申请实施例中,视图系统可通过从待绘制的图像数据中依次提取目标图像,并获取目标图像中的view控件的属性信息,然后视图系统根据目标图像中的view控件的属性信息,确定目标图像的图像类型为视觉敏感帧或非视觉敏感帧。并且,当视图系统检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,视图系统调用系统库中的图像绘制模块,以第一帧率对图像数据中的图像进行绘制,直至视图系统检测到连续的N帧目标图像的图像类型均为非视觉敏感帧;而当视图系统检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,视图系统调用系统库中的图像绘制模块,以第二帧率对图像数据中的图像进行绘制,直至视图系统检测到连续的M帧目标图像的图像类型均为视觉敏感帧,且第二帧率小于第一帧率。In this embodiment of the application, the view system can sequentially extract the target image from the image data to be drawn, and obtain the attribute information of the view control in the target image, and then the view system can determine according to the attribute information of the view control in the target image The image type of the target image is a visually sensitive frame or a non-visually sensitive frame. And, when the view system detects that the image types of the M consecutive target images in the image data are all visually sensitive frames, the view system calls the image drawing module in the system library to draw the images in the image data at the first frame rate , until the view system detects that the image types of the consecutive N frames of target images are all non-vision-sensitive frames; and when the view system detects that the image types of the consecutive N frames of target images in the image data are all non-visual-sensitive frames, the view system Call the image drawing module in the system library to draw the images in the image data at the second frame rate until the view system detects that the image types of the continuous M frames of target images are all visually sensitive frames, and the second frame rate is less than the second frame rate One frame rate.
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用层和应用程序框架层运行在虚拟机中。虚拟机将应用层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程 管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:图像绘制模块、图像渲染模块、图像合成模块、函数库、和输入处理库等。A system library can include multiple function modules. For example: image drawing module, image rendering module, image synthesis module, function library, and input processing library, etc.
图像绘制模块用于二维或三维图像的绘制。图像渲染模块用于二维或三维图像的渲染。图像合成模块用于二维或三维图像的合成。The image drawing module is used for drawing two-dimensional or three-dimensional images. The image rendering module is used for rendering of two-dimensional or three-dimensional images. The image synthesis module is used for the synthesis of two-dimensional or three-dimensional images.
可能的实现方式中,应用通过图像绘制模块对图像进行绘制,然后应用通过图像渲染模块对绘制后的图像进行渲染,然后应用将渲染后的图像发送显示合成进程的到缓存队列中。每当vsync信号到来时,显示合成进程(例如,surface flinger)从缓存队列中按顺序获取待合成的一帧图像,然后通过图像合成模块进行图像合成。In a possible implementation, the application draws the image through the image drawing module, and then the application renders the drawn image through the image rendering module, and then the application sends the rendered image to the cache queue for display synthesis process. Whenever the vsync signal arrives, the display compositing process (for example, surface flinger) sequentially acquires a frame of image to be composited from the buffer queue, and then performs image compositing through the image compositing module.
函数库提供C语言中所使用的宏、类型定义、字符串操作函数、数学计算函数以及输入输出函数等The function library provides macros, type definitions, string manipulation functions, mathematical calculation functions, and input and output functions used in C language
输入处理库用于处理输入设备的库,可以实现鼠标、键盘和触摸输入处理等。The input processing library is a library for processing input devices, which can implement mouse, keyboard and touch input processing, etc.
内核层是硬件和软件之间的层。内核层至少包含触控面板驱动、LCD/LED屏幕驱动、显示驱动、蓝牙驱动、WIFI驱动、键盘驱动、共用存储器驱动和相机驱动等。The kernel layer is the layer between hardware and software. The kernel layer includes at least a touch panel driver, an LCD/LED screen driver, a display driver, a Bluetooth driver, a WIFI driver, a keyboard driver, a shared memory driver, and a camera driver.
硬件可以是音频设备、蓝牙设备、相机设备、传感器设备等。Hardware can be audio devices, bluetooth devices, camera devices, sensor devices, etc.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be implemented independently, or may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
示例性的,图3为本申请实施例提供的一种帧率调整方法的流程图。参照图3所示,该帧率调整方法可以包括如下步骤:Exemplarily, FIG. 3 is a flowchart of a method for adjusting a frame rate provided by an embodiment of the present application. Referring to Figure 3, the frame rate adjustment method may include the following steps:
步骤301,终端设备从待绘制的图像数据中获取目标图像。In step 301, the terminal device acquires a target image from image data to be drawn.
在终端设备上安装有多个应用程序,如游戏类应用程序、视频类应用程序或新闻浏览类应用程序等,在应用程序启动后,应用程序准备待绘制的图像数据,准备完成之后将图像数据推送至终端设备的视图系统,或者,视图系统从缓存中获取预先缓存的图像数据。There are multiple applications installed on the terminal device, such as game applications, video applications, or news browsing applications. After the application is started, the application prepares the image data to be drawn. Push to the view system of the terminal device, or the view system obtains pre-cached image data from the cache.
其中,该图像数据包括多帧连续的图像,帧指的是界面显示中最小单位的单幅画面,一帧可以理解为一副静止的画面,快速连续地显示多个连续的帧可以形成物体运动的假象。Among them, the image data includes multiple frames of continuous images, and a frame refers to a single picture in the smallest unit of interface display. One frame can be understood as a pair of still pictures, and displaying multiple consecutive frames in rapid succession can form an object movement. illusion.
终端设备的视图系统在接收到待绘制的图像数据之后,该视图系统可以从图像数据中依次提取目标图像。一种可选的实施方式中,终端设备的视图系统可以是将图像数据中的每一帧图像均作为目标图像;另一种可选的实施方式中,终端设备的视图系统从图像数据包括的多帧图像中,每间隔X帧提取一帧图像作为目标图像,X为正整数,例如,X可以为1、2、4或5等数值。After the view system of the terminal device receives the image data to be drawn, the view system can sequentially extract target images from the image data. In an optional implementation manner, the view system of the terminal device may use each frame of image in the image data as a target image; in another optional implementation manner, the view system of the terminal device includes the Among the multiple frames of images, one frame of image is extracted every X frames as the target image, and X is a positive integer, for example, X can be a value such as 1, 2, 4 or 5.
如图4所示,待绘制的图像数据包括23帧连续的图像,其依次为第1帧图像、第2帧图像至第23帧图像,可以每间隔4(即X=4)帧提取一帧图像作为目标图像,此时,从这23帧图像中提取到的目标图像分别为第1帧图像、第6帧图像、第11帧图像、第16帧图像和第21帧图像。As shown in Figure 4, the image data to be drawn includes 23 consecutive frames of images, which are the first frame image, the second frame image to the 23rd frame image, and one frame can be extracted every 4 frames (that is, X=4) The image is used as the target image. At this time, the target images extracted from the 23 frames of images are the 1st frame image, the 6th frame image, the 11th frame image, the 16th frame image and the 21st frame image.
当X的取值越小时,从图像数据中提取到的目标图像的数量越多,使得后续的帧率切换更加及时,则使得终端设备的显示效果更好或者终端设备的功耗更低;当X的 取值越大时,从图像数据中提取到的目标图像的数量越少,降低了后续计算每个目标图像的图像类型的复杂度,从而减少终端设备执行计算操作时的工作量。When the value of X is smaller, the number of target images extracted from the image data is more, which makes the subsequent frame rate switching more timely, which makes the display effect of the terminal device better or the power consumption of the terminal device is lower; when When the value of X is larger, the number of target images extracted from the image data is smaller, which reduces the complexity of subsequent calculation of the image type of each target image, thereby reducing the workload of the terminal device when performing calculation operations.
步骤302,终端设备获取目标图像中的view控件的属性信息。 Step 302, the terminal device acquires attribute information of the view control in the target image.
在本申请实施例中,图像数据中的每一帧图像均由一个或多个view(视图)控件构成,这些view控件构成了一帧图像的绘图元素,因此,从图像数据中提取的每一帧目标图像也包括一个或多个view控件。In the embodiment of the present application, each frame of image in the image data is composed of one or more view (view) controls, and these view controls constitute the drawing elements of a frame of image, therefore, each frame of image extracted from the image data The frame target image also includes one or more view controls.
在本申请实施例中,该view控件包括:TextureView控件、SurfaceView控件、ImageView控件、TextView控件、ListView控件、RecycleView控件、Button(按钮)控件、EditView(输入框)控件、自定义view控件等。其中,TextureView控件和SurfaceView控件可以用于显示视频内容,ImageView控件可以用于显示图片内容,TextView控件可以用于显示文字内容,ListView控件和RecycleView控件可以用于显示列表内容。In the embodiment of the present application, the view control includes: TextureView control, SurfaceView control, ImageView control, TextView control, ListView control, RecycleView control, Button (button) control, EditView (input box) control, custom view control, etc. Among them, TextureView control and SurfaceView control can be used to display video content, ImageView control can be used to display picture content, TextView control can be used to display text content, ListView control and RecycleView control can be used to display list content.
每个view控件都包含其对应的特征属性,该特征属性包括:类型信息、宽度、高度、坐标位置、背景色、透明度、是否支持点击事件、是否具备获得焦点、是否可见等,终端设备的视图系统可通过接口函数获取每个view控件的特征属性。例如,视图系统通过接口函数View.getWidth()获取view控件的宽度,视图系统通过接口函数View.getHeight()获取view控件的高度。Each view control contains its corresponding feature attributes, which include: type information, width, height, coordinate position, background color, transparency, whether it supports click events, whether it has focus, whether it is visible, etc., the view of the terminal device The system can obtain the characteristic properties of each view control through the interface function. For example, the view system obtains the width of the view control through the interface function View.getWidth(), and the view system obtains the height of the view control through the interface function View.getHeight().
在本申请实施例中,可以仅采用每个view控件较为重要的3个属性信息(其分别为类型信息、位置信息和面积信息),来确定目标图像的图像类型是视觉敏感帧还是非视觉敏感帧,因此,终端设备的视图系统可以仅获取每个view控件的类型信息、宽度、高度和坐标位置。In the embodiment of this application, only three important attribute information of each view control (they are type information, position information and area information) can be used to determine whether the image type of the target image is a visually sensitive frame or a non-visually sensitive frame. frame, therefore, the view system of the terminal device can only obtain the type information, width, height and coordinate position of each view control.
类型信息指的是view控件用于显示的内容的类型,如SurfaceView控件的类型信息指的是视频类型,ImageView控件的类型信息指的是图片类型,TextView控件的类型信息指的是文字类型。The type information refers to the type of content displayed by the view control. For example, the type information of the SurfaceView control refers to the video type, the type information of the ImageView control refers to the image type, and the type information of the TextView control refers to the text type.
终端设备的视图系统可基于view控件的宽度和view控件的高度,计算得到view控件的面积信息。该面积信息指的是view控件在目标图像的占比,即view控件的面积与目标图像的面积之间的比值,而view控件的面积为view控件的宽度和高度的乘积。The view system of the terminal device can calculate the area information of the view control based on the width of the view control and the height of the view control. The area information refers to the proportion of the view control in the target image, that is, the ratio between the area of the view control and the area of the target image, and the area of the view control is the product of the width and height of the view control.
终端设备的视图系统可基于view控件的坐标位置,计算得到view控件的位置信息。该位置信息指的是view控件的中心坐标与目标图像的中心坐标之间的距离。The view system of the terminal device may calculate the position information of the view control based on the coordinate position of the view control. The location information refers to the distance between the center coordinates of the view control and the center coordinates of the target image.
以目标图像的左上角为坐标原点,视图系统可获取到view控件的左上角的坐标位置(x 1,y 1)、view控件的左下角的坐标位置(x 1,y 2)、view控件的右上角的坐标位置(x 2,y 1)和view控件的右下角的坐标位置(x 2,y 2),基于左上角的坐标位置(x 1,y 1)、左下角的坐标位置(x 1,y 2)、右上角的坐标位置(x 2,y 1)和右下角的坐标位置(x 2,y 2),计算得到view控件的中心坐标(x 3,y 3),即x 3=(x 1+x 2)/2,y 3=(y 1+y 2)/2;或者,视图系统也可以获取view控件的左上角的坐标位置(x 1,y 1)、view控件的左下角的坐标位置(x 1,y 2)、view控件的右上角的坐标位置(x 2,y 1)和view控件的右下角的坐标位置(x 2,y 2)中的任一者,例如,视图系统仅获取view控件的左上角的坐标位置(x 1,y 1),然后根据view控件的宽度d和高度h,确定view 控件的中心坐标(x 3,y 3),即x 3=x 1+d/2,y 3=y 1+h/2。 Taking the upper left corner of the target image as the coordinate origin, the view system can obtain the coordinate position (x 1 , y 1 ) of the upper left corner of the view control, the coordinate position (x 1 , y 2 ) of the lower left corner of the view control, and the coordinate position of the view control The coordinate position of the upper right corner (x 2 , y 1 ) and the coordinate position of the lower right corner of the view control (x 2 , y 2 ), based on the coordinate position of the upper left corner (x 1 , y 1 ), the coordinate position of the lower left corner (x 1 , y 2 ), the coordinate position of the upper right corner (x 2 , y 1 ) and the coordinate position of the lower right corner (x 2 , y 2 ), calculate the center coordinate (x 3 , y 3 ) of the view control, namely x 3 =(x 1 +x 2 )/2, y 3 =(y 1 +y 2 )/2; or, the view system can also obtain the coordinate position (x 1 , y 1 ) of the upper left corner of the view control, the coordinate position of the view control Any one of the coordinate position (x 1 , y 2 ) of the lower left corner, the coordinate position (x 2 , y 1 ) of the upper right corner of the view control, and the coordinate position (x 2 , y 2 ) of the lower right corner of the view control, For example, the view system only obtains the coordinate position (x 1 , y 1 ) of the upper left corner of the view control, and then determines the center coordinates (x 3 , y 3 ) of the view control according to the width d and height h of the view control, that is, x 3 =x 1 +d/2, y 3 =y 1 +h/2.
当计算得到view控件的中心坐标(x 3,y 3)之后,计算view控件的中心坐标(x 3,y 3)与目标图像的中心坐标(x 0,y 0)的距离,该距离可以为欧式距离D,因此,view控件的中心坐标(x 3,y 3)与目标图像的中心坐标(x 0,y 0)的距离D为:
Figure PCTCN2022117608-appb-000001
After calculating the center coordinates (x 3 , y 3 ) of the view control, calculate the distance between the center coordinates (x 3 , y 3 ) of the view control and the center coordinates (x 0 , y 0 ) of the target image, which can be Euclidean distance D, therefore, the distance D between the center coordinate (x 3 , y 3 ) of the view control and the center coordinate (x 0 , y 0 ) of the target image is:
Figure PCTCN2022117608-appb-000001
因此,本申请实施例中,终端设备的视图系统从目标图像中获取的view控件的属性信息,可以包括上述中的类型信息、位置信息和面积信息中的至少一者。Therefore, in this embodiment of the present application, the attribute information of the view control acquired by the view system of the terminal device from the target image may include at least one of the above-mentioned type information, position information, and area information.
此外,在图像数据包括的多帧图像中,同一view控件在不同的图像中显示的内容可能不同,将在不同的图像中显示的内容不同的view控件,称为显示内容发生变化的view控件;在图像数据包括的多帧图像中,同一view控件在不同的图像中显示的内容可能相同,将在不同的图像中显示的内容相同的view控件,称为显示内容不发生变化的view控件。In addition, in the multi-frame images included in the image data, the content displayed by the same view control in different images may be different, and the view control with different content displayed in different images is called a view control whose display content changes; In the multiple frames of images included in the image data, the same view control may display the same content in different images, and the view control that displays the same content in different images is called a view control that does not change the display content.
因此,目标图像中可能包括显示内容发生变化的view控件和显示内容不发生变化的view控件,针对显示内容不发生变化的view控件,图像的绘制帧率是高帧率还是低帧率,对这部分view控件的显示内容不会造成影响,针对显示内容发生变化的view控件,图像的绘制帧率较低的情况下,会对这部分view控件的显示内容造成影响。因此,本申请实施例可以仅关注显示内容发生变化的view控件,也就是说,步骤302中,终端设备可以获取显示内容发生变化的view控件的属性信息。Therefore, the target image may include a view control whose display content changes and a view control whose display content does not change. For the view control whose display content does not change, whether the frame rate of the image is drawn at a high frame rate or a low frame rate depends on this The display content of some view controls will not be affected. For view controls whose display content changes, if the image drawing frame rate is low, the display content of these view controls will be affected. Therefore, the embodiment of the present application may only focus on the view control whose display content changes, that is to say, in step 302, the terminal device may acquire the attribute information of the view control whose display content changes.
并且,在每个view控件的特征属性中还有内容标识,该内容标识表示该view控件的显示内容是否发生变化,因此,终端设备的视图系统可以通过每个view控件的内容标识,确定每个view控件是显示内容发生变化的view控件,还是显示内容不发生变化的view控件。Moreover, there is also a content identifier in the feature attribute of each view control, and the content identifier indicates whether the display content of the view control has changed. Therefore, the view system of the terminal device can determine the content of each view control through the content identifier of each view control. The view control is a view control whose display content changes, or a view control whose display content does not change.
当本申请实施例针对的view控件为图像数据中显示内容发生变化的view控件时,可以减小参与计算的view控件的数量,降低了后续计算每个目标图像的图像类型的复杂度,从而减少终端设备执行计算操作时的工作量。When the view control targeted by the embodiment of the present application is a view control whose display content in the image data changes, the number of view controls involved in the calculation can be reduced, and the complexity of subsequent calculation of the image type of each target image is reduced, thereby reducing The workload of an end device performing a computing operation.
如图5中的(a)所示,针对某一视频类应用程序的显示画面,该显示画面中的显示内容为“订阅”、“精选”、“发现”、“电视剧”和“动漫”等view控件,属于显示内容不发生变化的view控件,因此,视图系统可以不获取这部分view控件的属性信息,而推荐视频1对应的view控件51和推荐视频2对应的view控件52,属于显示内容发生变化的view控件,因此,视图系统可获取推荐视频1对应的view控件51的属性信息,以及推荐视频2对应的view控件52的属性信息。As shown in (a) in Figure 5, for the display screen of a certain video application program, the display content in the display screen is "subscribe", "selection", "discovery", "tv series" and "anime". and other view controls belong to the view controls whose display content does not change. Therefore, the view system does not need to obtain the attribute information of these view controls, and the view control 51 corresponding to the recommended video 1 and the view control 52 corresponding to the recommended video 2 belong to the display The view control whose content changes, therefore, the view system can obtain the attribute information of the view control 51 corresponding to the recommended video 1 and the attribute information of the view control 52 corresponding to the recommended video 2 .
相应的,如图5中的(b)所示,针对某一新闻浏览类应用程序的显示画面,该显示画面中的显示内容为“关注”、“推荐”、“热榜”、“视频”和“小说”等view控件,属于显示内容不发生变化的view控件,而左上角示出的广告动画图片对应的view控件53以及新闻提要4的视频内容对应的view控件54,属于显示内容发生变化的view控件。此外,新闻提要1对应的view控件、新闻提要2对应的view控件、新闻提要3对应的view控件、新闻提要3的图片内容对应的view控件以及新闻提要4对应的view控件,也均属于显示内容不发生变化的view控件。Correspondingly, as shown in (b) in FIG. 5 , for a display screen of a certain news browsing application program, the display content in the display screen is "follow", "recommended", "hot list", "video" The view controls such as "novel" and "novel" belong to the view controls whose display content does not change, while the view control 53 corresponding to the advertisement animation picture shown in the upper left corner and the view control 54 corresponding to the video content of the news feed 4 belong to the view control that changes the display content. The view control. In addition, the view control corresponding to news feed 1, the view control corresponding to news feed 2, the view control corresponding to news feed 3, the view control corresponding to the picture content of news feed 3, and the view control corresponding to news feed 4, all belong to the display content A view control that does not change.
需要说明的是,图5中的(a)和(b)示出的显示画面,是已经绘制、渲染并显 示完成的显示画面,其主要是为了说明一帧图像中可能同时存在显示内容不发生变化的view控件,以及显示内容发生变化的view控件。在实际应用过程中,提取目标图像中的view控件的属性信息,是在目标图像绘制之前执行的。It should be noted that the display screens shown in (a) and (b) in Figure 5 are display screens that have been drawn, rendered and displayed, which is mainly to illustrate that there may be display content that does not occur in one frame of image at the same time. A view control that changes, and a view control that displays content that changes. In the actual application process, the attribute information of the view control in the target image is extracted before the target image is drawn.
步骤303,终端设备根据属性信息,确定目标图像的图像类型;目标图像的图像类型为视觉敏感帧或非视觉敏感帧。 Step 303, the terminal device determines the image type of the target image according to the attribute information; the image type of the target image is a visually sensitive frame or a non-visually sensitive frame.
在本申请实施例中,终端设备的视图系统在获取到目标图像中的view控件的属性信息之后,终端设备的视图系统根据目标图像中的view控件的属性信息,判断该目标图像的图像类型是视觉敏感帧还是非视觉敏感帧。In this embodiment of the application, after the view system of the terminal device acquires the attribute information of the view control in the target image, the view system of the terminal device judges whether the image type of the target image is based on the attribute information of the view control in the target image. Visually sensitive frames or non-visually sensitive frames.
其中,视觉敏感帧指的是用户对画面流畅性较为敏感的场景画面,此时,若以较低的绘制帧率进行图像绘制,会导致用户的视觉体验效果不好;非视觉敏感帧指的是用户对画面流畅性较为不敏感的场景画面。Among them, the visually sensitive frame refers to the scene picture that the user is more sensitive to the smoothness of the picture. At this time, if the image is drawn at a lower rendering frame rate, the user's visual experience will be poor; the non-visually sensitive frame refers to the It is a scene picture in which users are less sensitive to picture fluency.
如图6所示,预先在服务器对应的数据库中,设置有每个应用程序对应的分值查询表,服务器可以将多个应用程序对应的分值查询表发送至终端设备,终端设备将该分值查询表存储在本地,该分值查询表如下表一所示:As shown in Figure 6, a score lookup table corresponding to each application is set in advance in the database corresponding to the server, and the server can send the score lookup tables corresponding to multiple application programs to the terminal device, and the terminal device sends the score lookup table corresponding to each application program to the terminal device. The value lookup table is stored locally, and the score lookup table is shown in Table 1 below:
Figure PCTCN2022117608-appb-000002
Figure PCTCN2022117608-appb-000002
表一Table I
下面针对应用程序A,分别介绍应用程序A对应的分值查询表的具体内容。其中,应用程序A对应的分值查询表包括多个view控件的类型信息、位置信息和面积信息对应的第三评分值,如SurfaceView控件、ImageView控件和TextView控件,各自的类型信息、位置信息和面积信息对应的第三评分值。For the application program A, the specific content of the score lookup table corresponding to the application program A is introduced below. Wherein, the score lookup table corresponding to application A includes the third score value corresponding to the type information, position information and area information of multiple view controls, such as SurfaceView control, ImageView control and TextView control, and their respective type information, position information and area information. The third score value corresponding to the area information.
假设应用程序A为视频类应用程序,针对视频类应用程序,用户对显示内容的关注程度从高到低依次为:视频播放内容、图片显示内容和文字显示内容,因此,将SurfaceView控件的类型信息对应的第三评分值A 11,ImageView控件的类型信息对应的第三评分值A 12,以及TextView控件的类型信息对应的第三评分值A 13依次降低。例如,将SurfaceView控件的类型信息对应的第三评分值A 11设置为10分,ImageView控件的类型信息对应的第三评分值A 12设置为5分,TextView控件的类型信息对应的第三评分值A 13设置为2分。 Assume that application A is a video application. For video applications, the user's attention to the display content is as follows from high to low: video playback content, picture display content, and text display content. Therefore, the type information of the SurfaceView control The corresponding third score value A 11 , the third score value A 12 corresponding to the type information of the ImageView control, and the third score value A 13 corresponding to the type information of the TextView control decrease successively. For example, the third scoring value A11 corresponding to the type information of the SurfaceView control is set to 10 points, the third scoring value A12 corresponding to the type information of the ImageView control is set to 5 points, and the third scoring value corresponding to the type information of the TextView control A 13 is set to 2 points.
并且,针对同一种类型的view控件,当位置信息不同时,其对应的第三评分值也不同,通常,用户重点关注的位置位于显示屏的中心位置,因此,当view控件的位置信息(实际上指的是view控件的中心坐标与目标图像的中心坐标之间的距离)越小时,该view控件的位置信息对应的第三评分值设置得越大,而当view控件的位置信息越大时,该view控件的位置信息对应的第三评分值设置得越小。Moreover, for the same type of view control, when the position information is different, its corresponding third score value is also different. Usually, the position that the user focuses on is located at the center of the display screen. Therefore, when the position information of the view control (actual above refers to the distance between the center coordinates of the view control and the center coordinates of the target image), the smaller the value, the larger the third scoring value corresponding to the position information of the view control is set, and when the position information of the view control is greater , the smaller the third score value corresponding to the position information of the view control is set.
预先将每种类型的view控件对应的位置信息划分为不同的距离区间,如表一中将每种类型的view控件对应的位置信息划分为4个距离区间,即第一距离区间[0,D 1)、第二距离区间[D 1,D 2)、第三距离区间[D 2,D 3)以及第四距离区间[D 3,D 4]。D 4可以指的是在目标图像中,距离目标图像的中心坐标的最大距离,示例性的,D 1=D 4/4,D 2=D 4/2,D 3=3D 4/4。 The position information corresponding to each type of view control is divided into different distance intervals in advance, as shown in Table 1, the position information corresponding to each type of view control is divided into 4 distance intervals, that is, the first distance interval [0, D 1 ), the second distance interval [D 1 , D 2 ), the third distance interval [D 2 , D 3 ), and the fourth distance interval [D 3 , D 4 ]. D 4 may refer to the maximum distance from the center coordinates of the target image in the target image, for example, D 1 =D 4 /4, D 2 =D 4 /2, D 3 =3D 4 /4.
当SurfaceView控件对应的位置信息位于第一距离区间[0,D 1)内时,即0≤D<D 1,该SurfaceView控件此时的位置信息对应的第三评分值为A 21;当SurfaceView控件对应的位置信息位于第二距离区间[D 1,D 2)内时,即D 1≤D<D 2,该SurfaceView控件此时的位置信息对应的第三评分值为A 31;当SurfaceView控件对应的位置信息位于第三距离区间[D 2,D 3)内时,即D 2≤D<D 3,该SurfaceView控件此时的位置信息对应的第三评分值为A 41;当SurfaceView控件对应的位置信息位于第四距离区间[D 3,D 4]内时,即D 3≤D≤D 4,该SurfaceView控件此时的位置信息对应的第三评分值为A 51。因此,针对SurfaceView控件,第一距离区间[0,D 1)对应的第三评分值A 21、第二距离区间[D 1,D 2)对应的第三评分值A 31、第三距离区间[D 2,D 3)对应的第三评分值A 41以及第四距离区间[D 3,D 4]对应的第三评分值A 51依次降低。 When the position information corresponding to the SurfaceView control is within the first distance interval [0, D 1 ), that is, 0≤D<D 1 , the third score value corresponding to the position information of the SurfaceView control at this time is A 21 ; when the SurfaceView control When the corresponding position information is within the second distance interval [D 1 , D 2 ), that is, D 1 ≤ D<D 2 , the third score value corresponding to the position information of the SurfaceView control at this time is A 31 ; when the SurfaceView control corresponds to When the position information of the SurfaceView control is within the third distance interval [D 2 , D 3 ), that is, D 2 ≤ D<D 3 , the third score value corresponding to the position information of the SurfaceView control at this time is A 41 ; when the SurfaceView control corresponds to When the position information is within the fourth distance interval [D 3 , D 4 ], that is, D 3 ≤ D ≤ D 4 , the third score value corresponding to the position information of the SurfaceView control at this time is A 51 . Therefore, for the SurfaceView control, the third scoring value A 21 corresponding to the first distance interval [0, D 1 ), the third scoring value A 31 corresponding to the second distance interval [D 1 , D 2 ), the third scoring value A 31 corresponding to the third distance interval [ The third scoring value A 41 corresponding to D 2 , D 3 ) and the third scoring value A 51 corresponding to the fourth distance interval [D 3 , D 4 ] decrease successively.
例如,针对SurfaceView控件,当其对应的位置信息位于第一距离区间[0,D 1)内时,可以将第三评分值A 21设置为10分,当其对应的位置信息位于第二距离区间[D 1,D 2)内时,可以将第三评分值A 31设置为7分,当其对应的位置信息位于第三距离区间[D 2,D 3)内时,可以将第三评分值A 41设置为4分,而当其对应的位置信息位于第四距离区间[D 3,D 4]内时,可以将第三评分值A 51设置为1分。 For example, for the SurfaceView control, when its corresponding position information is within the first distance interval [0, D 1 ), the third scoring value A21 can be set to 10 points; when its corresponding position information is within the second distance interval When it is within [D 1 , D 2 ), the third score value A 31 can be set to 7 points, and when its corresponding position information is within the third distance interval [D 2 , D 3 ), the third score value A 31 can be set to A 41 is set to 4 points, and when its corresponding position information is within the fourth distance interval [D 3 , D 4 ], the third score value A 51 may be set to 1 point.
相应的,针对ImageView控件,第一距离区间[0,D 1)对应的第三评分值A 22、第二距离区间[D 1,D 2)对应的第三评分值A 32、第三距离区间[D 2,D 3)对应的第三评分值A 42以及第四距离区间[D 3,D 4]对应的第三评分值A 52也依次降低。针对TextView控件,第一距离区间[0,D 1)对应的第三评分值A 23、第二距离区间[D 1,D 2)对应的第三评分值A 33、第三距离区间[D 2,D 3)对应的第三评分值A 43以及第四距离区间[D 3,D 4]对应的第三评分值A 53也依次降低。 Correspondingly, for the ImageView control, the third score value A 22 corresponding to the first distance interval [0, D 1 ), the third score value A 32 corresponding to the second distance interval [D 1 , D 2 ), and the third distance interval The third scoring value A 42 corresponding to [D 2 , D 3 ] and the third scoring value A 52 corresponding to the fourth distance interval [D 3 , D 4 ] also decrease sequentially. For the TextView control, the third scoring value A 23 corresponding to the first distance interval [0, D 1 ), the third scoring value A 33 corresponding to the second distance interval [D 1 , D 2 ), the third scoring value A 33 corresponding to the third distance interval [D 2 , D 3 ) corresponding to the third scoring value A 43 and the third scoring value A 53 corresponding to the fourth distance interval [D 3 , D 4 ] also decrease sequentially.
此外,针对同一种类型的view控件,当面积信息不同时,其对应的第三评分值也 不同。通常,用户重点关注的内容一般是面积较大的窗口显示的内容,因此,当view控件的面积信息越小时,该view控件的面积信息对应的第三评分值设置得越小,而当view控件的面积信息越大时,该view控件的面积信息对应的第三评分值设置得越大。In addition, for the same type of view control, when the area information is different, the corresponding third score value is also different. Usually, what the user focuses on is the content displayed in a window with a larger area. Therefore, when the area information of the view control is smaller, the third score value corresponding to the area information of the view control is set to be smaller. When the area information of the view control is larger, the third score value corresponding to the area information of the view control is set to be larger.
预先将每种类型的view控件对应的面积信息划分为不同的面积区间,如表一中将每种类型的view控件对应的面积信息划分为4个面积区间,即第一面积区间(0,S 1)、第二面积区间[S 1,S 2)、第三面积区间[S 2,S 3)以及第四面积区间[S 3,S 4]。示例性的,S 1可以为25%,S 2可以为50%,S 3可以为75%,S 4可以为100%。 The area information corresponding to each type of view control is divided into different area intervals in advance, as shown in Table 1, the area information corresponding to each type of view control is divided into 4 area intervals, that is, the first area interval (0, S 1 ), the second area interval [S 1 , S 2 ), the third area interval [S 2 , S 3 ] and the fourth area interval [S 3 , S 4 ]. Exemplarily, S 1 may be 25%, S 2 may be 50%, S 3 may be 75%, and S 4 may be 100%.
当SurfaceView控件对应的面积信息位于第一面积区间(0,S 1)内时,即0<S<S 1,该SurfaceView控件此时的面积信息对应的第三评分值为A 61;当SurfaceView控件对应的面积信息位于第二面积区间[S 1,S 2)内时,即S 1≤S<S 2,该SurfaceView控件此时的面积信息对应的第三评分值为A 71;当SurfaceView控件对应的面积信息位于第三面积区间[S 2,S 3)内时,即S 2≤S<S 3,该SurfaceView控件此时的面积信息对应的第三评分值为A 81;当SurfaceView控件对应的面积信息位于第四面积区间[S 3,S 4]内时,即S 3≤S≤S 4,该SurfaceView控件此时的面积信息对应的第三评分值为A 91。因此,针对SurfaceView控件,第一面积区间(0,S 1)对应的第三评分值A 61、第二面积区间[S 1,S 2)对应的第三评分值A 71、第三面积区间[S 2,S 3)对应的第三评分值A 81以及第四面积区间[S 3,S 4]对应的第三评分值A 91依次增高。 When the area information corresponding to the SurfaceView control is within the first area interval (0, S 1 ), that is, 0<S<S 1 , the third scoring value corresponding to the area information of the SurfaceView control at this time is A 61 ; when the SurfaceView control When the corresponding area information is within the second area interval [S 1 , S 2 ), that is, S 1 ≤ S<S 2 , the third scoring value corresponding to the area information of the SurfaceView control at this time is A 71 ; when the SurfaceView control corresponds to When the area information of the SurfaceView control is within the third area interval [S 2 , S 3 ), that is, S 2 ≤ S<S 3 , the third scoring value corresponding to the area information of the SurfaceView control at this time is A 81 ; when the SurfaceView control corresponds to When the area information is within the fourth area interval [S 3 , S 4 ], that is, S 3 ≤ S ≤ S 4 , the third score value corresponding to the area information of the SurfaceView control at this time is A 91 . Therefore, for the SurfaceView control, the third scoring value A 61 corresponding to the first area interval (0, S 1 ), the third scoring value A 71 corresponding to the second area interval [S 1 , S 2 ], the third area interval [ The third scoring value A 81 corresponding to S 2 , S 3 ) and the third scoring value A 91 corresponding to the fourth area interval [S 3 , S 4 ] increase sequentially.
例如,针对SurfaceView控件,当其对应的面积信息位于第一面积区间(0,S 1)内时,可以将第三评分值A 61设置为1分,当其对应的面积信息位于第二面积区间[S 1,S 2)内时,可以将第三评分值A 71设置为4分,当其对应的面积信息位于第三面积区间[S 2,S 3)内时,可以将第三评分值A 81设置为7分,当其对应的面积信息位于第四面积区间[S 3,S 4]内时,可以将第三评分值A 91设置为10分。 For example, for the SurfaceView control, when its corresponding area information is within the first area interval (0, S 1 ), the third scoring value A 61 can be set as 1 point; when its corresponding area information is within the second area interval When it is within [S 1 , S 2 ), the third scoring value A 71 can be set to 4 points, and when its corresponding area information is within the third area interval [S 2 , S 3 ), the third scoring value A 71 can be set to A 81 is set to 7 points, and when its corresponding area information is within the fourth area interval [S 3 , S 4 ], the third scoring value A 91 can be set to 10 points.
相应的,针对ImageView控件,第一面积区间(0,S 1)对应的第三评分值A 62、第二面积区间[S 1,S 2)对应的第三评分值A 72、第三面积区间[S 2,S 3)对应的第三评分值A 82以及第四面积区间[S 3,S 4]对应的第三评分值A 92也依次增高。针对TextView控件,第一面积区间(0,S 1)对应的第三评分值A 63、第二面积区间[S 1,S 2)对应的第三评分值A 73、第三面积区间[S 2,S 3)对应的第三评分值A 83以及第四面积区间[S 3,S 4]对应的第三评分值A 93也依次增高。 Correspondingly, for the ImageView control, the third score value A 62 corresponding to the first area interval (0, S 1 ), the third score value A 72 corresponding to the second area interval [S 1 , S 2 ], the third area interval The third scoring value A 82 corresponding to [S 2 , S 3 ) and the third scoring value A 92 corresponding to the fourth area interval [S 3 , S 4 ] also increase sequentially. For the TextView control, the third score value A 63 corresponding to the first area interval (0, S 1 ), the third score value A 73 corresponding to the second area interval [S 1 , S 2 ], the third area interval [S 2 , S 3 ) corresponding to the third scoring value A 83 and the third scoring value A 93 corresponding to the fourth area interval [S 3 , S 4 ] also increase sequentially.
需要说明的是,服务器内存储的分值查询表包括多个应用程序对应的分值查询表,上述仅说明了应用程序A对应的分值查询表的具体内容,而其他应用程序对应的分值查询表的具体内容,与应用程序A对应的分值查询表的具体内容类似,在此不再赘述。并且,每个应用程序对应的view控件不局限于表一所示的SurfaceView控件、ImageView控件和TextView控件,其还可以包括其他view控件;另外,距离区间和面积区间的划分,也不局限于上述的划分方式。It should be noted that the score lookup table stored in the server includes score lookup tables corresponding to multiple applications. The specific content of the lookup table is similar to that of the score lookup table corresponding to the application program A, and will not be repeated here. Moreover, the view controls corresponding to each application are not limited to the SurfaceView controls, ImageView controls, and TextView controls shown in Table 1, and may also include other view controls; in addition, the division of distance intervals and area intervals is not limited to the above-mentioned way of division.
如图6所示,预先在服务器对应的数据库中,还设置有每个应用程序对应的权重查询表,服务器可以将多个应用程序对应的权重查询表发送至终端设备,终端设备将该权重查询表存储在本地,该权重查询表如下表二所示:As shown in Figure 6, in the database corresponding to the server, a weight query table corresponding to each application is also set in advance, the server can send the weight query tables corresponding to multiple applications to the terminal device, and the terminal device queries the weight The table is stored locally, and the weight query table is shown in Table 2 below:
应用名称Application Name 类型信息type information 位置信息location information 面积信息area information
应用程序AApplication A W 11 W 11 W 12 W 12 W 13 W 13
应用程序Bapplication B W 21 W 21 W 22 W 22 W 23 W 23
表二Table II
在实际应用过程中,可结合不同应用程序的功能和用户的使用场景,为不同的应用程序设置其属性信息对应的权重值,从而生成不同应用程序对应的权重查询表。可以理解的是,由于不同应用程序的功能不同,则同一属性信息在不同应用程序的权重查询表中的权重值可能不同。In the actual application process, the weight values corresponding to the attribute information of different application programs can be set for different application programs in combination with the functions of different application programs and the usage scenarios of users, so as to generate weight lookup tables corresponding to different application programs. It can be understood that, due to different functions of different applications, the weight values of the same attribute information in weight lookup tables of different applications may be different.
假设应用程序A为视频类应用程序,针对视频类应用程序,用户重点关注的显示内容一般是面积较大的视频播放内容,因此,类型信息和面积信息对目标图像的评分值的影响较大,可将类型信息对应的权重值和面积信息对应的权重值设置得较大,而将位置信息对应的权重值设置得较小。例如,可以将应用程序A的类型信息对应的权重值W 11设置为0.4,应用程序A的位置信息对应的权重值W 12设置为0.2,应用程序A的面积信息对应的权重值W 13设置为0.4。 Assume that application A is a video application. For video applications, the display content that users focus on is generally the video playback content with a large area. Therefore, the type information and area information have a greater impact on the score value of the target image. The weight value corresponding to the type information and the weight value corresponding to the area information may be set larger, and the weight value corresponding to the position information may be set smaller. For example, the weight value W 11 corresponding to the type information of application A can be set to 0.4, the weight value W 12 corresponding to the location information of application A can be set to 0.2, and the weight value W 13 corresponding to the area information of application A can be set to 0.4.
假设应用程序B为新闻浏览类应用程序,针对新闻浏览类应用程序,用户重点关注的显示内容一般位于显示屏的中心位置,因此,位置信息对目标图像的评分值的影响较大,可将位置信息对应的权重值设置得较大,而将类型信息对应的权重值和面积信息对应的权重值设置得较小。例如,可以将应用程序B的类型信息对应的权重值W 21设置为0.2,应用程序B的位置信息对应的权重值W 22设置为0.6,应用程序B的面积信息对应的权重值W 23设置为0.2。 Assume that application B is a news browsing application. For news browsing applications, the display content that users focus on is generally located in the center of the display screen. Therefore, the location information has a greater impact on the score value of the target image. The location information can be set to The weight value corresponding to the information is set larger, and the weight value corresponding to the type information and the weight value corresponding to the area information are set smaller. For example, the weight value W 21 corresponding to the type information of application B can be set to 0.2, the weight value W 22 corresponding to the location information of application B can be set to 0.6, and the weight value W 23 corresponding to the area information of application B can be set to 0.2.
需要说明的是,针对同一应用程序,不同view控件的同一属性信息对应的权重值可以设置成相等,也可以设置成不相等;另外,表一中设置的各个第三评分值,以及表二中设置的各个权重值,可根据经验值设定。It should be noted that, for the same application, the weight values corresponding to the same attribute information of different view controls can be set to be equal or unequal; in addition, each third score value set in Table 1, and Each weight value set can be set according to experience value.
在本申请实施例中,当终端设备的视图系统在获取到目标图像中的view控件的属性信息之后,先确定目标图像所属的目标应用程序,也就是确定目标图像在显示时是哪个应用程序的显示界面,然后,终端设备的视图系统从本地存储的各个应用程序对应的分值查询表中,查找目标应用程序对应的目标分值查询表。In this embodiment of the application, after the view system of the terminal device obtains the attribute information of the view control in the target image, it first determines the target application program to which the target image belongs, that is, determines which application program the target image belongs to when it is displayed. The interface is displayed, and then, the view system of the terminal device searches the target score lookup table corresponding to the target application program from the score lookup tables corresponding to each application program stored locally.
如图6所示,终端设备的视图系统在查找到目标分值查询表之后,终端设备的视图系统执行步骤601,从目标分值查询表中,查找目标图像中的每个view控件的属性信息对应的第三评分值,该属性信息包括类型信息、位置信息和面积信息中的至少二者。As shown in Figure 6, after the view system of the terminal device finds the target score lookup table, the view system of the terminal device executes step 601 to look up the attribute information of each view control in the target image from the target score lookup table Corresponding to the third score value, the attribute information includes at least two of type information, location information and area information.
例如,目标图像所属的目标应用程序为应用程序A,则查找应用程序A对应的分值查询表,若目标图像包括1个SurfaceView控件和1个TextView控件,且SurfaceView控件的位置信息位于第一距离区间[0,D 1)内,SurfaceView控件的面积信息位于第三面积区间[S2,S3)内,TextView控件的位置信息位于第四距离区间[D 3,D 4]内,TextView控件的面积信息位于第一面积区间(0,S1)内,则获取SurfaceView控件的类型信息对应的第三评分值A 11,SurfaceView控件的位置信息对应的第三评分值A 21,SurfaceView控件的面积信息对应的第三评分值A 81,TextView控件的类型信息对应的第三评分值A 13,TextView控件的位置信息对应的第三评分值A 53,TextView控件的面积信息对应的第三评分值A 63For example, if the target application to which the target image belongs is application A, then look up the score lookup table corresponding to application A, if the target image includes 1 SurfaceView control and 1 TextView control, and the position information of the SurfaceView control is located at the first distance In the interval [0, D 1 ), the area information of the SurfaceView control is located in the third area interval [S2, S3), the position information of the TextView control is located in the fourth distance interval [D 3 , D 4 ], the area information of the TextView control Located in the first area interval (0, S1), then obtain the third score value A 11 corresponding to the type information of the SurfaceView control, the third score value A 21 corresponding to the position information of the SurfaceView control, and the third score value A 21 corresponding to the area information of the SurfaceView control The third scoring value A 81 , the third scoring value A 13 corresponding to the type information of the TextView control, the third scoring value A 53 corresponding to the position information of the TextView control, and the third scoring value A 63 corresponding to the area information of the TextView control.
当属性信息包括类型信息、位置信息和面积信息中的至少二者时,需要获取view 控件的每个属性信息对应的权重值。具体的,终端设备的视图系统可先确定目标图像所属的目标应用程序,然后,终端设备的视图系统从本地存储的各个应用程序对应的权重查询表中,查找目标应用程序对应的目标权重查询表。When the attribute information includes at least two of type information, location information, and area information, it is necessary to obtain the weight value corresponding to each attribute information of the view control. Specifically, the view system of the terminal device may first determine the target application program to which the target image belongs, and then, the view system of the terminal device searches the target weight lookup table corresponding to the target application program from the weight lookup table corresponding to each application program stored locally. .
如图6所示,终端设备的视图系统在查找到目标权重查询表之后,终端设备的视图系统执行步骤602,从目标权重查询表中,查找每个view控件的属性信息对应的权重值。As shown in FIG. 6 , after the view system of the terminal device finds the target weight lookup table, the view system of the terminal device performs step 602 to look up the weight value corresponding to the attribute information of each view control from the target weight lookup table.
例如,目标图像所属的目标应用程序为应用程序A,该目标图像包括1个SurfaceView控件和1个TextView控件,则SurfaceView控件和TextView控件的类型信息对应的权重值为W 11,SurfaceView控件和TextView控件的位置信息对应的权重值为W 12,SurfaceView控件和TextView控件的面积信息对应的权重值为W 13For example, the target application to which the target image belongs is application A, and the target image includes a SurfaceView control and a TextView control, then the weight value corresponding to the type information of the SurfaceView control and the TextView control is W 11 , and the SurfaceView control and the TextView control The weight value corresponding to the position information of the SurfaceView control and the TextView control is W 13 .
接着,终端设备的视图系统执行步骤603,对每个view控件的属性信息对应的第三评分值,按照对应的权重值进行加权求和,得到每个view控件的第一评分值。Next, the view system of the terminal device executes step 603, performing weighted summation according to the corresponding weight value for the third score value corresponding to the attribute information of each view control, to obtain the first score value of each view control.
例如,针对应用程序A对应的目标图像,其包括的SurfaceView控件的类型信息对应的第三评分值为A 11,其对应的权重值为W 11,SurfaceView控件的位置信息对应的第三评分值为A 21,其对应的权重值为W 12,SurfaceView控件的面积信息对应的第三评分值为A 81,其对应的权重值为W 13,因此,SurfaceView控件对应的第一评分值F 1=A 11×W 11+A 21×W 12+A 81×W 13。相应的,针对应用程序A对应的目标图像,其包括的TextView控件的类型信息对应的第三评分值为A 13,其对应的权重值为W 11,TextView控件的位置信息对应的第三评分值为A 53,其对应的权重值为W 12,TextView控件的面积信息对应的第三评分值为A 63,其对应的权重值为W 13,因此,TextView控件对应的第一评分值F 2=A 13×W 11+A 53×W 12+A 63×W 13For example, for the target image corresponding to application A, the third score value corresponding to the type information of the SurfaceView control included in it is A 11 , the corresponding weight value is W 11 , and the third score value corresponding to the position information of the SurfaceView control is A 21 , its corresponding weight value is W 12 , the third scoring value corresponding to the area information of the SurfaceView control is A 81 , and its corresponding weighting value is W 13 , therefore, the first scoring value F 1 =A corresponding to the SurfaceView control 11 ×W 11 +A 21 ×W 12 +A 81 ×W 13 . Correspondingly, for the target image corresponding to application A, the third score value corresponding to the type information of the TextView control included in it is A 13 , the corresponding weight value is W 11 , and the third score value corresponding to the position information of the TextView control is is A 53 , its corresponding weight value is W 12 , the third scoring value corresponding to the area information of the TextView control is A 63 , and its corresponding weighting value is W 13 , therefore, the first scoring value F 2 corresponding to the TextView control = A 13 ×W 11 +A 53 ×W 12 +A 63 ×W 13 .
在计算得到目标图像中的每个view控件的第一评分值之后,当目标图像包括多个view控件时,终端设备的视图系统可执行步骤604,计算每个view控件的第一评分值的平均值,得到目标图像的第二评分值。After calculating the first score value of each view control in the target image, when the target image includes multiple view controls, the view system of the terminal device may execute step 604 to calculate the average of the first score values of each view control value to get the second score value of the target image.
例如,目标图像包括1个SurfaceView控件和1个TextView控件,且SurfaceView控件的第一评分值为F 1,TextView控件对应的第一评分值为F 2,因此,目标图像的第二评分值F 0=(F 1+F 2)/2。 For example, the target image includes a SurfaceView control and a TextView control, and the first score value of the SurfaceView control is F 1 , and the corresponding first score value of the TextView control is F 2 , therefore, the second score value of the target image is F 0 =(F 1 +F 2 )/2.
然后,终端设备的视图系统执行步骤605,将计算得到的第二评分值与预设阈值进行对比,判断第二评分值是否大于预设阈值。当第二评分值大于预设阈值时,终端设备的视图系统执行步骤606,确定该目标图像的图像类型为视觉敏感帧;当第二评分值小于或等于预设阈值时,终端设备的视图系统执行步骤607,确定目标图像的图像类型为非视觉敏感帧。预设阈值可根据经验值设定,例如,该预设阈值可设置为5或6等数值。Then, the view system of the terminal device executes step 605, comparing the calculated second score value with a preset threshold, and judging whether the second score value is greater than the preset threshold. When the second score value is greater than the preset threshold, the view system of the terminal device performs step 606 to determine that the image type of the target image is a visually sensitive frame; when the second score value is less than or equal to the preset threshold, the view system of the terminal device Step 607 is executed to determine that the image type of the target image is a non-visually sensitive frame. The preset threshold can be set according to empirical values, for example, the preset threshold can be set to a value such as 5 or 6.
因此,基于图6所示的方法,可根据目标图像中的每个view控件的属性信息,确定每个view控件的第一评分值,之后,终端设备的视图系统可根据每个view控件的第一评分值,计算得到目标图像的第二评分值,并根据第二评分值,确定目标图像的图像类型为视觉敏感帧或非视觉敏感帧。Therefore, based on the method shown in FIG. 6, the first score value of each view control can be determined according to the attribute information of each view control in the target image, and then the view system of the terminal device can determine the first score value of each view control according to the first score value of each view control. A score value, calculating a second score value of the target image, and according to the second score value, determining the image type of the target image as a visually sensitive frame or a non-visually sensitive frame.
当然,在一些实施例中,每个view控件的属性信息为类型信息、位置信息和面积信息中的任一者,在这种情况下,无需根据属性信息的权重值计算每个view控件的第 一评分值,终端设备的视图系统在执行步骤601之后,可将目标图像中的每个view控件的属性信息对应的第三评分值,确定为每个view控件的第一评分值。Of course, in some embodiments, the attribute information of each view control is any one of type information, position information and area information. A score value, after step 601 is executed, the view system of the terminal device may determine the third score value corresponding to the attribute information of each view control in the target image as the first score value of each view control.
并且,在另一些实施例中,目标图像也可能包括1个view控件,因此,终端设备的视图系统在执行步骤603之后,可将view控件的第一评分值,确定为目标图像的第二评分值。Moreover, in some other embodiments, the target image may also include a view control. Therefore, after step 603 is executed, the view system of the terminal device may determine the first score value of the view control as the second score of the target image value.
以图5中的(a)所示的目标图像为例,其包括两个显示内容发生变化的view控件,其分别为推荐视频1对应的view控件51和推荐视频2对应的view控件52。view控件51为SurfaceView控件,其类型信息对应的第三评分值为A 11,view控件51的中心坐标与该目标图像的中心坐标之间的距离较低,其对应的位置信息位于第一距离区间[0,D 1)内,则其位置信息对应的第三评分值为A 21,view控件51的面积信息为40%,其位于第二面积区间[S 1,S 2)内,其面积信息对应的第三评分值为A 71,并且,view控件51的类型信息、位置信息和面积信息依次对应的权重值为W 11、W 12和W 13,因此,view控件51的第一评分值F 1=A 11×W 11+A 21×W 12+A 71×W 13。相应的,view控件52为SurfaceView控件,其类型信息对应的第三评分值为A 11,view控件52的位置信息位于第二距离区间[D 1,D 2)内,其位置信息对应的第三评分值为A 31,view控件52的面积信息为40%,其位于第二面积区间[S 1,S 2)内,其面积信息对应的第三评分值为A 71,并且,view控件52的类型信息、位置信息和面积信息依次对应的权重值为W 11、W 12和W 13,因此,view控件52的第一评分值F 2=A 11×W 11+A 31×W 12+A 71×W 13。因此,目标图像的第二评分值F 0=(F 1+F 2)/2。 Taking the target image shown in (a) in FIG. 5 as an example, it includes two view controls whose display content changes, which are respectively the view control 51 corresponding to the recommended video 1 and the view control 52 corresponding to the recommended video 2 . The view control 51 is a SurfaceView control, the third score value corresponding to its type information is A 11 , the distance between the center coordinates of the view control 51 and the center coordinates of the target image is relatively low, and its corresponding position information is located in the first distance interval [0, D 1 ), the third score value corresponding to its position information is A 21 , the area information of the view control 51 is 40%, which is located in the second area interval [S 1 , S 2 ), and its area information The corresponding third score value is A 71 , and the weight values corresponding to the type information, location information and area information of the view control 51 in sequence are W 11 , W 12 and W 13 , therefore, the first score value F of the view control 51 is 1 = A 11 ×W 11 +A 21 ×W 12 +A 71 ×W 13 . Correspondingly, the view control 52 is a SurfaceView control, the third score value corresponding to its type information is A 11 , the position information of the view control 52 is located in the second distance interval [D 1 , D 2 ), and the third score value corresponding to its position information is The score value is A 31 , the area information of the view control 52 is 40%, which is located in the second area interval [S 1 , S 2 ), and the third score value corresponding to the area information is A 71 , and the view control 52’s The weight values corresponding to the type information, position information and area information in turn are W 11 , W 12 and W 13 , therefore, the first score value F 2 of the view control 52 = A 11 ×W 11 +A 31 ×W 12 +A 71 ×W 13 . Therefore, the second score value F 0 =(F 1 +F 2 )/2 of the target image.
例如,若A 11为10分,A 21为10分,A 71为4分,A 31为7分,W 11为0.4,W 12为0.2,W 13为0.4,因此,view控件51的第一评分值F 1=10×0.4+10×0.2+4×0.4=7.6分,view控件52的第一评分值F 2=10×0.4+7×0.2+4×0.4=7分,因此,图5中的(a)所示的目标图像的第二评分值F 0=(7+7.6)/2=7.3分。假设预设阈值为5分,则图5中的(a)所示的目标图像的第二评分值大于预设阈值,则确定图5中的(a)所示的目标图像的图像类型为视觉敏感帧。 For example, if A 11 is 10 points, A 21 is 10 points, A 71 is 4 points, A 31 is 7 points, W 11 is 0.4, W 12 is 0.2, W 13 is 0.4, therefore, the first view control 51 Score value F 1 =10×0.4+10×0.2+4×0.4=7.6 points, the first score value F 2 of view control 52 =10×0.4+7×0.2+4×0.4=7 points, therefore, Fig. 5 The second scoring value F 0 of the target image shown in (a) in (a) = (7+7.6)/2=7.3 points. Assuming that the preset threshold value is 5 points, then the second scoring value of the target image shown in (a) in Fig. 5 is greater than the preset threshold value, then it is determined that the image type of the target image shown in (a) in Fig. 5 is visual sensitive frame.
相应的,以图5中的(b)所示的目标图像为例,其包括两个显示内容发生变化的view控件,其分别为左上角示出的广告动画图片对应的view控件53以及新闻提要4的视频内容对应的view控件54。view控件53为ImageView控件,其类型信息对应的第三评分值为B 12,view控件53的中心坐标与该目标图像的中心坐标之间的距离较远,其对应的位置信息位于第四距离区间[D 3,D 4]内,则其位置信息对应的第三评分值为B 52,view控件53的面积信息为1%,其位于第一面积区间(0,S 1)内,其面积信息对应的第三评分值为B 62,并且,view控件53的类型信息、位置信息和面积信息依次对应的权重值为W 21、W 22和W 23,因此,view控件52的第一评分值F 1=B 12×W 21+B 52×W 22+B 62×W 23。相应的,view控件54为SurfaceView控件,其类型信息对应的第三评分值为B 11,view控件54的位置信息位于第二距离区间[D 1,D 2)内,其位置信息对应的第三评分值为B 31,view控件54的面积信息为30%,其位于第二面积区间[S 1,S 2)内,其面积信息对应的第三评分值为B 71,并且,view控件54的类型信息、位置信息和面积信息依次对应的权重值为W 21、W 22和W 23,因此,view控件54的第一评分值F 2=B 11×W 21+B 31×W 22+B 71×W 23。因此,目标图像的第二评分值F 0=(F 1+F 2) /2。 Correspondingly, taking the target image shown in (b) in Figure 5 as an example, it includes two view controls whose display content changes, which are respectively the view control 53 corresponding to the advertisement animation picture shown in the upper left corner and the news summary The view control 54 corresponding to the video content of 4. The view control 53 is an ImageView control, the third score value corresponding to its type information is B 12 , the distance between the center coordinates of the view control 53 and the center coordinates of the target image is far, and its corresponding position information is located in the fourth distance interval In [D 3 , D 4 ], the third scoring value corresponding to its position information is B 52 , and the area information of the view control 53 is 1%, which is located in the first area interval (0, S 1 ), and its area information The corresponding third score value is B 62 , and the weight values corresponding to the type information, location information and area information of the view control 53 in turn are W 21 , W 22 and W 23 , therefore, the first score value F of the view control 52 is 1 = B 12 ×W 21 +B 52 ×W 22 +B 62 ×W 23 . Correspondingly, the view control 54 is a SurfaceView control, the third score value corresponding to its type information is B 11 , the position information of the view control 54 is located in the second distance interval [D 1 , D 2 ), and the third score value corresponding to its position information is The score value is B 31 , the area information of the view control 54 is 30%, which is located in the second area interval [S 1 , S 2 ), and the third score value corresponding to the area information is B 71 , and the view control 54’s The weight values corresponding to type information, position information and area information in turn are W 21 , W 22 and W 23 , therefore, the first score value F 2 of view control 54 = B 11 ×W 21 +B 31 ×W 22 +B 71 ×W 23 . Therefore, the second score value F 0 of the target image =(F 1 +F 2 )/2.
例如,若B 12为5分,B 52为1分,B 62为1分,B 11为2分,B 31为7分,B 71为4分,W 21为0.2,W 22为0.6,W 23为0.2,因此,view控件53的第一评分值F 1=5×0.2+1×0.6+1×0.2=1.8分,view控件54的第一评分值F 2=2×0.2+7×0.6+4×0.2=5.4分,因此,图5中的(b)所示的目标图像的第二评分值F 0=(1.8+5.4)/2=3.6分。假设预设阈值为5分,则图5中的(b)所示的目标图像的第二评分值小于预设阈值,则确定图5中的(b)所示的目标图像的图像类型为非视觉敏感帧。 For example, if B 12 is 5 points, B 52 is 1 point, B 62 is 1 point, B 11 is 2 points, B 31 is 7 points, B 71 is 4 points, W 21 is 0.2, W 22 is 0.6, W 23 is 0.2, therefore, the first scoring value F 1 of the view control 53 = 5×0.2+1×0.6+1×0.2=1.8 points, and the first scoring value F 2 of the view control 54 =2×0.2+7×0.6 +4×0.2=5.4 points, therefore, the second score value F 0 of the target image shown in (b) in FIG. 5 =(1.8+5.4)/2=3.6 points. Assuming that the preset threshold is 5 points, then the second scoring value of the target image shown in (b) in Figure 5 is less than the preset threshold, then determine that the image type of the target image shown in (b) in Figure 5 is non- Visually sensitive frames.
在本申请实施例中,按照上述的计算方式,确定图4中的每一帧目标图像的图像类型是视觉敏感帧还是非视觉敏感帧。图4中的目标图像分别为第1帧图像、第6帧图像、第11帧图像、第16帧图像和第21帧图像,则按照上述的方式,通过获取第1帧图像、第6帧图像、第11帧图像、第16帧图像和第21帧图像的属性信息,可确定第1帧图像和第6帧图像的图像类型为视觉敏感帧,而第11帧图像、第16帧图像和第21帧图像的图像类型均为非视觉敏感帧。In the embodiment of the present application, according to the above-mentioned calculation method, it is determined whether the image type of each frame of the target image in FIG. 4 is a visually sensitive frame or a non-visually sensitive frame. The target images in Figure 4 are the first frame image, the sixth frame image, the eleventh frame image, the sixteenth frame image and the twenty-first frame image, then according to the above method, by obtaining the first frame image, the sixth frame image , the attribute information of the 11th frame image, the 16th frame image and the 21st frame image, it can be determined that the image types of the 1st frame image and the 6th frame image are visually sensitive frames, while the 11th frame image, the 16th frame image and the 21st frame image The image types of the 21 frames of images are all non-visually sensitive frames.
步骤304,当检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,终端设备从第一帧率切换为第二帧率,以第二帧率进行图像绘制;第二帧率小于第一帧率。 Step 304, when it is detected that the image types of the consecutive N frames of target images in the image data are all non-visually sensitive frames, the terminal device switches from the first frame rate to the second frame rate, and performs image drawing at the second frame rate; The second frame rate is less than the first frame rate.
在本申请实施例中,终端设备在以第一帧率进行图像绘制之后,当终端设备的视图系统检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,确定此时图像数据中的图像是用户关注度较低的场景画面,因此,终端设备可以以较低的第二帧率进行图像绘制,以降低终端设备的功耗。其中,N为正整数,例如,N可以为1、2、3等数值。In the embodiment of this application, after the terminal device performs image rendering at the first frame rate, when the view system of the terminal device detects that the image types of the target images in the image data are all non-visually sensitive frames, it determines this The image in the real-time image data is a scene picture with low user attention, therefore, the terminal device may perform image drawing at a lower second frame rate, so as to reduce power consumption of the terminal device. Wherein, N is a positive integer, for example, N can be 1, 2, 3 and other numerical values.
如图4所示,假设N为2,当检测到第11帧图像和第16帧图像的图像类型均为非视觉敏感帧时,确定检测到连续的2帧目标图像的图像类型均为非视觉敏感帧,此时,以第二帧率进行图像绘制,直至检测连续的M帧目标图像的图像类型均为视觉敏感帧为止,因此,终端设备是以第二帧率绘制第16帧图像至第23帧图像的。As shown in Figure 4, assuming that N is 2, when it is detected that the image types of the 11th frame image and the 16th frame image are both non-visual sensitive frames, it is determined that the image types of the detected 2 consecutive frames of target images are all non-visual Sensitive frames, at this time, image drawing is performed at the second frame rate until the image types of the consecutive M frames of target images are detected to be visually sensitive frames, so the terminal device draws the 16th to the 16th frame images at the second frame rate 23 frames of images.
实际上,终端设备的帧率调整可通过终端设备的视图系统和图像绘制模块实现,当终端设备的视图系统检测到图像数据中连续的N帧目标图像的图像类型均为非视觉敏感帧时,终端设备的视图系统对第N帧非视觉敏感帧以及之后的每一帧图像,每间隔R帧图像提取一帧图像,将提取的图像通过接口传递给图像绘制模块,而视图系统未提取的图像丢弃,不会传递给图像绘制模块。因此,图像绘制模块对第N帧非视觉敏感帧以及之后的每一帧图像,每间隔R帧图像绘制一帧图像,直至检测到图像数据中存在连续的M帧目标图像的图像类型均为视觉敏感帧为止。其中,R为正整数,R可以为1、2、3等数值。In fact, the frame rate adjustment of the terminal device can be realized through the view system and the image drawing module of the terminal device. When the view system of the terminal device detects that the image types of the target images in consecutive N frames in the image data are all non-visually sensitive frames, The view system of the terminal device extracts one frame of image at intervals of R frame images for the Nth non-visually sensitive frame and each frame of image thereafter, and passes the extracted image to the image drawing module through the interface, while the image not extracted by the view system Discarded, not passed to the image drawing module. Therefore, the image drawing module draws a frame of image at intervals of R frame images for the Nth non-visual sensitive frame and each subsequent frame image, until it detects that there are consecutive M frames of target images in the image data. sensitive frame. Wherein, R is a positive integer, and R can be 1, 2, 3 and other values.
例如,R等于1,即每间隔1帧绘制1帧图像,假设终端设备支持的最大绘制帧率为120fps,则终端设备的第二帧率为60fps。此时,如图4所示,视图系统是将第16帧图像、第18帧图像、第20帧图像和第22帧图像传递给图像绘制模块,图像绘制模块对第16帧图像、第18帧图像、第20帧图像和第22帧图像进行绘制,而视图系统将第17帧图像、第19帧图像、第21帧图像和第23帧图像丢弃,不传递给图像绘制模块。或者,R等于3,即每间隔3帧绘制1帧图像,则终端设备的第二帧率为 30fps。本申请实施例对R的数值不做具体限定。For example, R is equal to 1, that is, one frame of image is drawn at intervals of one frame, assuming that the maximum drawing frame rate supported by the terminal device is 120fps, the second frame rate of the terminal device is 60fps. At this time, as shown in Figure 4, the view system transfers the 16th frame image, the 18th frame image, the 20th frame image, and the 22nd frame image to the image drawing module, and the image drawing module performs the 16th frame image, the 18th frame image image, the 20th frame image and the 22nd frame image are drawn, and the view system discards the 17th frame image, the 19th frame image, the 21st frame image and the 23rd frame image, and does not pass them to the image drawing module. Alternatively, R is equal to 3, that is, drawing a frame of image every 3 frames, then the second frame rate of the terminal device is 30fps. The embodiment of the present application does not specifically limit the value of R.
步骤305,当检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,从第二帧率切换为第一帧率,以第一帧率进行图像绘制。 Step 305, when it is detected that the image types of the M consecutive target images in the image data are all visually sensitive frames, switch from the second frame rate to the first frame rate, and perform image rendering at the first frame rate.
在本申请实施例中,终端设备在以第二帧率进行图像绘制之后,当终端设备的视图系统检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,确定此时图像数据中的图像是用户关注度较高的场景画面,因此,终端设备需要以较高的第一帧率进行图像绘制,使得经过绘制、渲染和显示后的图像画面更加流畅,提高用户的视觉体验。其中,M为正整数,例如,M可以为1、2、3等数值。In this embodiment of the application, after the terminal device performs image rendering at the second frame rate, when the view system of the terminal device detects that the image types of the M consecutive target images in the image data are all visually sensitive frames, it is determined that The image in the image data is a scene with high attention of the user. Therefore, the terminal device needs to draw the image at a higher first frame rate, so that the image picture after drawing, rendering and display is smoother, and the user's vision is improved. experience. Wherein, M is a positive integer, for example, M can be 1, 2, 3 and other numerical values.
如图4所示,假设M为2,当依次检测到第1帧图像和第6帧图像的图像类型为视觉敏感帧时,确定检测连续的2帧目标图像的图像类型均为视觉敏感帧,此时,以第一帧率进行图像绘制,直至检测到连续的N帧目标图像的图像类型均为非视觉敏感帧为止,由于第11帧图像和第16帧图像的图像类型均为非视觉敏感帧,因此,终端设备是以第一帧率绘制第6帧图像至第15帧图像。As shown in Figure 4, assuming that M is 2, when the image types of the first frame image and the sixth frame image are successively detected as visually sensitive frames, it is determined that the image types of the detected two consecutive frames of target images are all visually sensitive frames, At this time, the image is drawn at the first frame rate until it is detected that the image types of the consecutive N frames of the target image are all non-visually sensitive frames, because the image types of the 11th frame image and the 16th frame image are all non-visually sensitive frames, therefore, the terminal device draws images from the sixth frame to the fifteenth frame at the first frame rate.
实际上,当终端设备的视图系统检测到图像数据中连续的M帧目标图像的图像类型均为视觉敏感帧时,终端设备的视图系统通过接口,将第M帧视觉敏感帧以及之后的每一帧图像均传递给图像绘制模块,则图像绘制模块对第M帧视觉敏感帧以及之后的每一帧图像均进行绘制,直至检测到图像数据中存在连续的N帧目标图像的图像类型均为非视觉敏感帧为止。In fact, when the view system of the terminal device detects that the image types of the consecutive M frames of target images in the image data are all visually sensitive frames, the view system of the terminal device uses the interface to convert the Mth frame of visually sensitive frames and each The frame images are all passed to the image drawing module, and then the image drawing module draws the M-th visually sensitive frame and each frame image thereafter until it is detected that the image types of continuous N frames of target images in the image data are all non- Visually sensitive frames so far.
终端设备以第一帧率进行图像绘制实际上指的是:图像绘制模块的绘制帧率为第一帧率,绘制帧率为单位时间(如1秒钟)绘制的图像的数量。当绘制帧率越高时,可以得到更加流畅和更加逼真的画面。The image drawing performed by the terminal device at the first frame rate actually refers to: the drawing frame rate of the image drawing module is the first frame rate, and the drawing frame rate is the number of images drawn per unit time (eg, 1 second). When the drawing frame rate is higher, a smoother and more realistic picture can be obtained.
若终端设备支持的最大绘制帧率为120fps时,当图像绘制模块对第M帧视觉敏感帧以及之后的每一帧图像均进行绘制时,该第一帧率为120fps。此时,如图4所示,视图系统是将第6帧图像至第15帧图像中的每一帧图像,均传递给图像绘制模块,图像绘制模块对第6帧图像至第15帧图像中的每一帧图像均进行绘制。If the maximum rendering frame rate supported by the terminal device is 120fps, when the image rendering module renders the M-th visually sensitive frame and every subsequent image frame, the first frame rate is 120fps. At this time, as shown in Figure 4, the view system transfers each frame of images from the sixth frame to the fifteenth frame to the image drawing module, and the image drawing module performs the processing of the sixth to fifteenth frame images Each frame of the image is drawn.
当然,可以理解的是,当检测到连续的M帧目标图像的图像类型均为视觉敏感帧时,终端设备的视图系统也可以每间隔K帧丢弃1帧图像,并将剩余的图像传递给图像绘制模块进行图像绘制。K为正整数。例如,K等于4,即每间隔4帧丢弃1帧图像,假设终端设备支持的最大绘制帧率为120fps,则终端设备的第一帧率为96fps。Of course, it can be understood that when the image types of the target images in consecutive M frames are detected to be visually sensitive frames, the view system of the terminal device can also discard 1 image frame every K frames, and pass the remaining images to the image The drawing module performs image drawing. K is a positive integer. For example, K is equal to 4, that is, one frame of image is discarded every 4 frames. Assuming that the maximum drawing frame rate supported by the terminal device is 120fps, the first frame rate of the terminal device is 96fps.
此外,本申请实施例主要针对在使用应用程序过程中,需要进行绘制、渲染和显示的图像数据,在用户触发对应用程序图标的触控操作后,直至检测到连续的M帧视觉敏感帧或N帧非视觉敏感帧之前的待绘制图像,可以是以第一帧率进行图像绘制,也可以是以第二帧率图像绘制,还可以是以其他帧率进行图像绘制,本申请实施例不作限定。In addition, the embodiment of the present application is mainly aimed at the image data that needs to be drawn, rendered and displayed in the process of using the application program. After the user triggers the touch operation on the application program icon, until the detection of consecutive M frames of visually sensitive frames or The image to be drawn before N frames of non-visually sensitive frames may be drawn at the first frame rate, or at the second frame rate, or at other frame rates, which are not discussed in the embodiments of this application. limited.
例如,如图4所示,M为2,当第1帧待绘制图像和第6帧待绘制图像的图像类型均为视觉敏感帧时,终端设备对第1帧图像至第5帧图像可以是以第一帧率进行图像绘制的,即视图系统将第1帧图像值第5帧图像均传递给图像绘制模块进行图像绘制,第1帧图像可以理解为用户点击应用程序图标后的需要显示的第1帧图像。For example, as shown in Figure 4, M is 2, and when the image types of the image to be drawn in the first frame and the image to be drawn in the sixth frame are both visually sensitive frames, the terminal device can be used for the images in the first to fifth frames The image is drawn at the first frame rate, that is, the view system transfers the first frame image value and the fifth frame image to the image drawing module for image drawing. The first frame image can be understood as what needs to be displayed after the user clicks the application icon Frame 1 image.
需要说明的是,终端设备的视图系统在从图像数据中获取目标图像,并计算该目 标图像的图像类型的过程中,终端设备的图像绘制模块也是按照相应的帧率,对该目标图像所在帧之前的图像帧进行绘制。也就是说,终端设备的视图系统在计算目标图像的图像类型时,图像绘制模块依旧会执行图像绘制操作,而不是等待视图系统计算完成目标图像的图像类型之后,图像绘制模块才开始执行图像绘制操作。It should be noted that when the view system of the terminal device acquires the target image from the image data and calculates the image type of the target image, the image drawing module of the terminal device also draws the frame of the target image according to the corresponding frame rate The previous image frame to draw on. That is to say, when the view system of the terminal device calculates the image type of the target image, the image drawing module will still perform the image drawing operation instead of waiting for the view system to calculate the image type of the target image before the image drawing module starts to perform image drawing operate.
例如,假设目标图像是图像数据中的第6帧图像,视图系统在对6帧图像计算其图像类型时,图像绘制模块是对第6帧图像之前的图像帧(如第3帧图像或第4帧图像等)执行图像绘制操作。For example, assuming that the target image is the 6th frame image in the image data, when the view system calculates the image type for the 6th frame image, the image drawing module will use the image frame before the 6th frame image (such as the 3rd frame image or the 4th frame image) frame image, etc.) to perform image drawing operations.
值得注意的是,在终端设备以第一帧率进行图像绘制之后,若检测到出现连续的非视觉敏感帧的数量小于N时,其不需要将第一帧率切换为第二帧率,依旧以第一帧率进行图像绘制,直至检测到连续的N帧非视觉敏感帧,才将第一帧率切换为第二帧率,以第二帧率对第N帧非视觉敏感帧及之后的图像进行图像绘制,直至检测到连续的M帧目标图像的图像类型均为视觉敏感帧;相应的,在终端设备以第二帧率进行图像绘制之后,若检测到出现连续的视觉敏感帧的数量小于M时,其也不需要将第二帧率切换为第一帧率,依旧以第二帧率进行图像绘制,直至检测到连续的M帧视觉敏感帧,才将第二帧率切换为第一帧率,以第一帧率对第M帧视觉敏感帧及之后的图像进行图像绘制,直至检测到连续的N帧目标图像均的图像类型均为非视觉敏感帧。It is worth noting that after the terminal device draws images at the first frame rate, if it detects that the number of consecutive non-visually sensitive frames is less than N, it does not need to switch the first frame rate to the second frame rate. Perform image drawing at the first frame rate, and switch the first frame rate to the second frame rate until consecutive N frames of non-visually sensitive frames are detected, and use the second frame rate for the Nth frame of non-visually sensitive frames and subsequent frames The image is drawn until it is detected that the image types of the continuous M frames of the target image are visually sensitive frames; correspondingly, after the terminal device draws the image at the second frame rate, if the number of consecutive visually sensitive frames detected is When it is less than M, it does not need to switch the second frame rate to the first frame rate, and still draws images at the second frame rate, and does not switch the second frame rate to the first frame rate until consecutive M frames of visually sensitive frames are detected. One frame rate, at the first frame rate, image rendering is performed on the Mth visually sensitive frame and subsequent images until it is detected that the image types of the consecutive N frames of target images are all non-visually sensitive frames.
并且,当检测到非视觉敏感帧时,视觉敏感帧的计数值清0,直至再次检测到视觉敏感值才重新计数;当检测到视觉敏感帧时,非视觉敏感帧的计数值清0,直至再次检测到非视觉敏感帧才重新计数。And, when a non-visually sensitive frame is detected, the count value of the visually sensitive frame is cleared to 0 until the visually sensitive value is detected again; when a visually sensitive frame is detected, the count value of the non-visually sensitive frame is cleared to 0 until The counting is restarted when a non-visually sensitive frame is detected again.
其中,M和N可以相等,例如,M和N均等于2;或者,M和N也可以不相等,例如,M为2,N为3。Wherein, M and N may be equal, for example, M and N are both equal to 2; or M and N may not be equal, for example, M is 2, and N is 3.
需要说明的是,本申请实施例中的目标图像的图像类型为视觉敏感帧或非视觉敏感帧的判断过程,是在对目标图像绘制之前执行的。图像绘制模块对图像数据中的图像进行绘制之后,需要将绘制的图像传递给图像渲染模块,图像渲染模块渲染完成之后,将渲染完成的图像传递给内核层的LCD/LED屏幕驱动,使得LCD/LED屏幕驱动驱动显示屏,显示渲染完成后的图像。It should be noted that, in the embodiment of the present application, the process of determining whether the image type of the target image is a visually sensitive frame or a non-visually sensitive frame is performed before drawing the target image. After the image drawing module draws the image in the image data, it needs to pass the drawn image to the image rendering module. After the image rendering module renders, it passes the rendered image to the LCD/LED screen driver at the kernel layer, so that The LED screen driver drives the display to display the rendered image.
当图像绘制模块的绘制帧率为第一帧率时,图像渲染模块的渲染帧率以及显示屏的显示帧率也可以均为第一帧率;当图像绘制模块的绘制帧率为第二帧率时,图像渲染模块的渲染帧率以及显示屏的显示帧率也可以均为第二帧率。When the drawing frame rate of the image drawing module is the first frame rate, the rendering frame rate of the image rendering module and the display frame rate of the display screen can also be the first frame rate; when the drawing frame rate of the image drawing module is the second frame rate When the frame rate is set, the rendering frame rate of the image rendering module and the display frame rate of the display screen may both be the second frame rate.
图7为本申请实施例提供的一种终端设备的硬件结构示意图。图7所示的终端设备700包括:存储器701、处理器702和通信接口703,其中,存储器701、处理器702、通信接口703可以通信;示例性的,存储器701、处理器702和通信接口703可以通过通信总线通信。FIG. 7 is a schematic diagram of a hardware structure of a terminal device provided by an embodiment of the present application. The terminal device 700 shown in FIG. 7 includes: a memory 701, a processor 702, and a communication interface 703, wherein the memory 701, the processor 702, and the communication interface 703 can communicate; for example, the memory 701, the processor 702, and the communication interface 703 Communication is possible via a communication bus.
存储器701可以是只读存储器(read only memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(random access memory,RAM)。存储器701可以存储计算机程序,由处理器702来控制执行,并由通信接口703来执行通信,从而实现本申请上述实施例提供的帧率调整方法。The memory 701 may be a read only memory (read only memory, ROM), a static storage device, a dynamic storage device or a random access memory (random access memory, RAM). The memory 701 may store a computer program, which is controlled and executed by the processor 702 and communicated by the communication interface 703, so as to realize the frame rate adjustment method provided by the above-mentioned embodiments of the present application.
处理器702可以采用通用的中央处理器(central processing unit,CPU),微处理器,应用专用集成电路(application specific integrated circuit,ASIC),GPU或者一个 或多个集成电路。 Processor 702 may be a general-purpose central processing unit (central processing unit, CPU), microprocessor, application specific integrated circuit (application specific integrated circuit, ASIC), GPU, or one or more integrated circuits.
处理器702还可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,本申请的帧率调整方法的功能可以通过处理器702中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器702还可以是通用处理器、DSP、专用集成电路(ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请下文实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请下文实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器701,处理器702读取存储器701中的信息,结合其硬件完成本申请实施例的帧率调整方法的功能。The processor 702 may also be an integrated circuit chip, which has a signal processing capability. During implementation, the functions of the frame rate adjustment method of the present application may be implemented by an integrated logic circuit of hardware in the processor 702 or instructions in the form of software. The above-mentioned processor 702 can also be a general-purpose processor, DSP, an application-specific integrated circuit (ASIC), a ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware The components can implement or execute the methods, steps and logic block diagrams disclosed in the following embodiments of the present application. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the following embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 701, and the processor 702 reads the information in the memory 701, and combines its hardware to complete the function of the frame rate adjustment method in the embodiment of the present application.
芯片中的通信接口703可以为输入/输出接口、管脚或电路等。The communication interface 703 in the chip may be an input/output interface, a pin or a circuit, and the like.
本实施例的终端设备700对应地可用于执行上述方法实施例中执行的步骤,其实现原理和技术效果类似,此处不再赘述。The terminal device 700 in this embodiment can be correspondingly used to execute the steps executed in the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。The embodiment of the present application also provides a computer-readable storage medium. The methods described in the foregoing embodiments may be fully or partially implemented by software, hardware, firmware or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another. A storage media may be any target media that can be accessed by a computer.
一种可能的实现方式中,计算机可读介质可以包括RAM,ROM,只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储器,磁盘存储器或其它磁存储设备,或目标于承载的任何其它介质或以指令或数据结构的形式存储所需的程序代码,并且可由计算机访问。而且,任何连接被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,数字用户线(digital subscriber line,DSL)或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘,激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。In a possible implementation, the computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage or other magnetic storage devices, or target or any other medium that stores the required program code in the form of instructions or data structures and can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then coaxial Cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc, laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、 光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. The usable medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.
图8为本申请实施例提供的一种帧率调整系统的结构示意图,参照图8所示,本申请实施例还提供了一种帧率调整系统,该帧率调整系统包括上述的终端设备700以及与终端设备700通信连接的服务器800,在服务器800内存储有各个应用程序对应的分值查询表和权重查询表。FIG. 8 is a schematic structural diagram of a frame rate adjustment system provided by an embodiment of the present application. Referring to FIG. 8 , an embodiment of the present application also provides a frame rate adjustment system, which includes the above-mentioned terminal device 700 And the server 800 that is communicatively connected to the terminal device 700 stores a score lookup table and a weight lookup table corresponding to each application program in the server 800 .
当服务器800内存储的分值查询表内的数据存在变更时,如view控件的某一属性信息对应的第三评分值变化,新增或删除部分属性信息对应的第三评分值时,服务器800将变更后的分值查询表发送至终端设备700,终端设备700根据服务器800发送的分值查询表更新本地之前存储的分值查询表。When the data in the score lookup table stored in the server 800 changes, such as the third score value corresponding to a certain attribute information of the view control changes, and when the third score value corresponding to some attribute information is added or deleted, the server 800 The changed score lookup table is sent to the terminal device 700 , and the terminal device 700 updates the locally previously stored score lookup table according to the score lookup table sent by the server 800 .
当服务器800内存储的权重查询表内的数据存在变更时,如属性信息对应的权重值发生变化,服务器800将变更后的权重查询表发送至终端设备700,终端设备700根据服务器800发送的权重查询表更新本地之前存储的权重查询表。When there is a change in the data in the weight lookup table stored in the server 800, such as the weight value corresponding to the attribute information changes, the server 800 sends the changed weight lookup table to the terminal device 700, and the terminal device 700 according to the weight value sent by the server 800 The lookup table updates the previously stored weight lookup table locally.
而终端设备700的具体执行过程可参照上述的描述,为避免重复,在此不再赘述。For the specific execution process of the terminal device 700, reference may be made to the foregoing description, and details are not repeated here to avoid repetition.
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processing unit of other programmable data processing equipment to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
以上的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The specific implementation above has further described the purpose, technical solutions and beneficial effects of the application in detail. It should be understood that the above is only a specific implementation of the application and is not used to limit the scope of protection of the application. On the basis of the technical solution of this application, any modification, equivalent replacement, improvement, etc. should be included in the protection scope of this application.

Claims (18)

  1. 一种帧率调整方法,其特征在于,应用于终端设备,所述方法包括:A frame rate adjustment method, characterized in that it is applied to a terminal device, the method comprising:
    所述终端设备从待绘制的图像数据中获取目标图像;The terminal device obtains the target image from the image data to be drawn;
    所述终端设备获取所述目标图像中的视图控件的属性信息;The terminal device acquires attribute information of the view control in the target image;
    所述终端设备根据所述属性信息,确定所述目标图像的图像类型;The terminal device determines the image type of the target image according to the attribute information;
    当检测到所述图像数据中连续的N帧所述目标图像的图像类型均为非视觉敏感帧时,所述终端设备从第一帧率切换为第二帧率,以所述第二帧率进行图像绘制;所述N为正整数,所述第二帧率小于所述第一帧率。When it is detected that the image types of the target images in the continuous N frames of the image data are all non-visually sensitive frames, the terminal device switches from the first frame rate to the second frame rate, and the second frame rate Perform image rendering; the N is a positive integer, and the second frame rate is lower than the first frame rate.
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备根据所述属性信息,确定所述目标图像的图像类型,包括:The method according to claim 1, wherein the terminal device determines the image type of the target image according to the attribute information, comprising:
    所述终端设备根据所述目标图像中的每个视图控件的属性信息,确定每个所述视图控件的第一评分值;The terminal device determines the first score value of each view control according to the attribute information of each view control in the target image;
    所述终端设备根据每个所述视图控件的第一评分值,计算得到所述目标图像的第二评分值;The terminal device calculates a second score value of the target image according to the first score value of each view control;
    所述终端设备根据所述第二评分值,确定所述目标图像的图像类型。The terminal device determines the image type of the target image according to the second scoring value.
  3. 根据权利要求2所述的方法,其特征在于,所述终端设备根据所述目标图像中的每个视图控件的属性信息,确定每个所述视图控件的第一评分值,包括:The method according to claim 2, wherein the terminal device determines the first score value of each view control according to the attribute information of each view control in the target image, including:
    所述终端设备从目标分值查询表中,查找所述目标图像中的每个所述视图控件的属性信息对应的第三评分值;The terminal device searches a target score lookup table for a third score value corresponding to the attribute information of each of the view controls in the target image;
    所述终端设备根据所述第三评分值,计算得到每个所述视图控件的第一评分值。The terminal device calculates the first score value of each view control according to the third score value.
  4. 根据权利要求3所述的方法,其特征在于,所述属性信息为类型信息、位置信息和面积信息中的任一者;所述终端设备根据所述第三评分值,计算得到每个所述视图控件的第一评分值,包括:The method according to claim 3, wherein the attribute information is any one of type information, location information, and area information; and the terminal device calculates each of the The first score value of the view control, including:
    所述终端设备将每个所述视图控件的属性信息对应的第三评分值,确定为每个所述视图控件的第一评分值。The terminal device determines the third score value corresponding to the attribute information of each view control as the first score value of each view control.
  5. 根据权利要求3所述的方法,其特征在于,所述属性信息包括类型信息、位置信息和面积信息中的至少二者;所述终端设备根据所述第三评分值,计算得到每个所述视图控件的第一评分值,包括:The method according to claim 3, wherein the attribute information includes at least two of type information, location information, and area information; and the terminal device calculates each of the The first score value of the view control, including:
    所述终端设备从目标权重查询表中,查找每个所述视图控件的属性信息对应的权重值;The terminal device searches the weight value corresponding to the attribute information of each view control from the target weight lookup table;
    所述终端设备对每个所述视图控件的属性信息对应的第三评分值,按照对应的权重值进行加权求和,得到每个所述视图控件的第一评分值。The terminal device performs weighted summation on the third scoring value corresponding to the attribute information of each of the view controls according to the corresponding weight value, to obtain the first scoring value of each of the viewing controls.
  6. 根据权利要求3所述的方法,其特征在于,在所述终端设备从目标分值查询表中,查找所述目标图像中的每个所述视图控件的属性信息对应的第三评分值之前,还包括:The method according to claim 3, wherein, before the terminal device looks up the third score value corresponding to the attribute information of each of the view controls in the target image from the target score lookup table, Also includes:
    所述终端设备确定所述目标图像所属的目标应用程序;The terminal device determines the target application program to which the target image belongs;
    所述终端设备从预设的各个应用程序对应的分值查询表中,查找所述目标应用程序对应的所述目标分值查询表。The terminal device searches the target score lookup table corresponding to the target application program from preset score lookup tables corresponding to each application program.
  7. 根据权利要求5所述的方法,其特征在于,在所述终端设备从目标权重查询表 中,查找每个所述视图控件的属性信息对应的权重值之前,还包括:The method according to claim 5, wherein, before the terminal device searches the weight value corresponding to the attribute information of each of the view controls from the target weight lookup table, it also includes:
    所述终端设备确定所述目标图像所属的目标应用程序;The terminal device determines the target application program to which the target image belongs;
    所述终端设备从预设的各个应用程序对应的权重查询表中,查找所述目标应用程序对应的所述目标权重查询表。The terminal device searches the target weight lookup table corresponding to the target application program from preset weight lookup tables corresponding to each application program.
  8. 根据权利要求2所述的方法,其特征在于,所述终端设备根据每个所述视图控件的第一评分值,计算得到所述目标图像的第二评分值,包括:The method according to claim 2, wherein the terminal device calculates the second score value of the target image according to the first score value of each of the view controls, including:
    所述终端设备计算每个所述视图控件的第一评分值的平均值,得到所述目标图像的第二评分值。The terminal device calculates an average value of the first score values of each of the view controls to obtain the second score value of the target image.
  9. 根据权利要求2所述的方法,其特征在于,所述终端设备根据所述第二评分值,确定所述目标图像的图像类型,包括:The method according to claim 2, wherein the terminal device determines the image type of the target image according to the second scoring value, comprising:
    所述终端设备将所述第二评分值与预设阈值进行对比;The terminal device compares the second scoring value with a preset threshold;
    当所述第二评分值大于所述预设阈值时,确定所述目标图像的图像类型为视觉敏感帧;When the second scoring value is greater than the preset threshold, determine that the image type of the target image is a visually sensitive frame;
    当所述第二评分值小于或等于所述预设阈值时,确定所述目标图像的图像类型为非视觉敏感帧。When the second scoring value is less than or equal to the preset threshold, it is determined that the image type of the target image is a non-visually sensitive frame.
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,在所述终端设备从第一帧率切换为第二帧率,以所述第二帧率进行图像绘制之后,还包括:The method according to any one of claims 1 to 9, characterized in that, after the terminal device switches from the first frame rate to the second frame rate and performs image drawing at the second frame rate, further comprising :
    当检测到所述图像数据中连续的M帧所述目标图像的图像类型均为视觉敏感帧时,所述终端设备从所述第二帧率切换为所述第一帧率,以所述第一帧率进行图像绘制;所述M为正整数。When it is detected that the image types of the target images in the M consecutive frames in the image data are all visually sensitive frames, the terminal device switches from the second frame rate to the first frame rate, and uses the second frame rate Image rendering is performed at a frame rate; the M is a positive integer.
  11. 根据权利要求1所述的方法,其特征在于,所述当检测到所述图像数据中连续的N帧所述目标图像的图像类型均为非视觉敏感帧时,所述终端设备从第一帧率切换为第二帧率,以所述第二帧率进行图像绘制,包括:The method according to claim 1, wherein when it is detected that the image types of the target images in the N consecutive frames in the image data are all non-visually sensitive frames, the terminal device starts from the first frame The frame rate is switched to the second frame rate, and the image drawing is performed at the second frame rate, including:
    当检测到所述图像数据中连续的N帧所述目标图像的图像类型均为非视觉敏感帧时,所述终端设备对第N帧所述非视觉敏感帧以及之后的每一帧图像,每间隔R帧图像绘制一帧图像,直至检测到所述图像数据中存在连续的M帧所述目标图像的图像类型均为视觉敏感帧;所述R为正整数。When it is detected that the image types of the target images in the N consecutive frames in the image data are all non-visually sensitive frames, the terminal device performs an operation on the Nth frame of the non-visually sensitive frame and each subsequent frame of image Draw a frame of images at intervals of R frames of images until it is detected that there are consecutive M frames in the image data. The image types of the target images are all visually sensitive frames; the R is a positive integer.
  12. 根据权利要求10所述的方法,其特征在于,所述当检测到所述图像数据中连续的M帧所述目标图像的图像类型均为视觉敏感帧时,所述终端设备从所述第二帧率切换为所述第一帧率,以所述第一帧率进行图像绘制,包括:The method according to claim 10, wherein when it is detected that the image types of the target images in the M consecutive frames in the image data are all visually sensitive frames, the terminal device starts from the second The frame rate is switched to the first frame rate, and image drawing is performed at the first frame rate, including:
    当检测到所述图像数据中连续的M帧所述目标图像的图像类型均为视觉敏感帧时,所述终端设备对第M帧所述视觉敏感帧以及之后的每一帧图像均进行绘制,直至检测到所述图像数据中存在连续的N帧所述目标图像的图像类型均为非视觉敏感帧。When it is detected that the image types of the target image in consecutive M frames in the image data are all visually sensitive frames, the terminal device draws the visually sensitive frame of the Mth frame and each frame of image thereafter, Until it is detected that there are N consecutive frames in the image data, the image types of the target image are all non-visually sensitive frames.
  13. 根据权利要求1至9中任一项所述的方法,其特征在于,所述视图控件为所述图像数据中,显示内容发生变化的视图控件。The method according to any one of claims 1 to 9, wherein the view control is a view control whose display content changes in the image data.
  14. 根据权利要求1至9中任一项所述的方法,其特征在于,所述终端设备从待绘制的图像数据中获取目标图像,包括:The method according to any one of claims 1 to 9, wherein the terminal device obtains the target image from the image data to be drawn, comprising:
    所述终端设备从所述图像数据包括的多帧图像中,每间隔X帧提取一帧图像作为所述目标图像;所述X为正整数。The terminal device extracts one frame of image every X frames from the multiple frames of images included in the image data as the target image; the X is a positive integer.
  15. 一种终端设备,其特征在于,包括存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于调用所述计算机程序,以执行如权利要求1至14中任一项所述的帧率调整方法。A terminal device, characterized in that it includes a memory and a processor, the memory is used to store a computer program, and the processor is used to call the computer program to execute the method described in any one of claims 1 to 14 Frame rate adjustment method.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或指令,当所述计算机程序或指令被运行时,实现如权利要求1至14中任一项所述的帧率调整方法。A computer-readable storage medium, characterized in that, computer programs or instructions are stored in the computer-readable storage medium, and when the computer programs or instructions are executed, the computer program or instructions described in any one of claims 1 to 14 can be realized. The frame rate adjustment method described above.
  17. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,使得计算机执行如权利要求1至14中任一项所述的帧率调整方法。A computer program product, characterized by comprising a computer program, which causes a computer to execute the frame rate adjustment method according to any one of claims 1 to 14 when the computer program is executed.
  18. 一种帧率调整系统,其特征在于,包括服务器以及如权利要求15所述的终端设备;A frame rate adjustment system, characterized by comprising a server and a terminal device according to claim 15;
    所述服务器,用于当所述服务器内存储的分值查询表内的数据存在变更时,将变更后的所述分值查询表发送至所述终端设备;以及当所述服务器内存储的权重查询表内的数据存在变更时,将变更后的所述权重查询表发送至所述终端设备。The server is configured to send the changed score lookup table to the terminal device when there is a change in the data in the score lookup table stored in the server; and when the weight stored in the server When the data in the lookup table is changed, the changed weight lookup table is sent to the terminal device.
PCT/CN2022/117608 2021-10-22 2022-09-07 Frame rate adjustment method, terminal device, and frame rate adjustment system WO2023065873A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111236271.3 2021-10-22
CN202111236271.3A CN115016869B (en) 2021-10-22 2021-10-22 Frame rate adjusting method, terminal equipment and frame rate adjusting system

Publications (1)

Publication Number Publication Date
WO2023065873A1 true WO2023065873A1 (en) 2023-04-27

Family

ID=83064958

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/117608 WO2023065873A1 (en) 2021-10-22 2022-09-07 Frame rate adjustment method, terminal device, and frame rate adjustment system

Country Status (2)

Country Link
CN (1) CN115016869B (en)
WO (1) WO2023065873A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684668A (en) * 2023-08-03 2023-09-01 湖南马栏山视频先进技术研究院有限公司 Self-adaptive video frame processing method and playing terminal

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115016869B (en) * 2021-10-22 2023-04-18 荣耀终端有限公司 Frame rate adjusting method, terminal equipment and frame rate adjusting system
CN116737294A (en) * 2022-11-14 2023-09-12 荣耀终端有限公司 Dynamic effect drawing method and device
CN117148959A (en) * 2023-02-27 2023-12-01 荣耀终端有限公司 Frame rate adjusting method for eye movement tracking and related device
CN117130459A (en) * 2023-04-06 2023-11-28 荣耀终端有限公司 Frame rate adjustment method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170125064A1 (en) * 2015-11-03 2017-05-04 Seastar Labs, Inc. Method and Apparatus for Automatic Video Production
CN106919402A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, device and mobile terminal
CN106919358A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of display control method of mobile terminal, device and mobile terminal
CN108038059A (en) * 2017-12-22 2018-05-15 广州酷狗计算机科技有限公司 Interface traversal method and device
CN115016869A (en) * 2021-10-22 2022-09-06 荣耀终端有限公司 Frame rate adjusting method, terminal equipment and frame rate adjusting system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4762343B2 (en) * 2009-12-28 2011-08-31 株式会社東芝 Image quality adjusting apparatus and image quality adjusting method
CN106227482B (en) * 2016-07-25 2019-03-15 广东小天才科技有限公司 A kind of control method and relevant device of game picture refreshing
CN106919401B (en) * 2017-03-10 2021-04-09 Oppo广东移动通信有限公司 Method and device for dynamically adjusting resolution and mobile terminal
CN108762652B (en) * 2018-03-27 2020-08-21 Oppo广东移动通信有限公司 Display control method and device of intelligent terminal, storage medium and intelligent terminal
CN110650320B (en) * 2019-10-23 2021-11-02 海能达通信股份有限公司 Dynamic frame rate storage method and device and monitoring equipment
CN110928396B (en) * 2019-11-18 2021-07-30 Oppo(重庆)智能科技有限公司 Screen refreshing method and related equipment
CN111583886A (en) * 2020-04-29 2020-08-25 珠海市魅族科技有限公司 Screen refresh rate adjusting method, device, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170125064A1 (en) * 2015-11-03 2017-05-04 Seastar Labs, Inc. Method and Apparatus for Automatic Video Production
CN106919402A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, device and mobile terminal
CN106919358A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of display control method of mobile terminal, device and mobile terminal
CN108038059A (en) * 2017-12-22 2018-05-15 广州酷狗计算机科技有限公司 Interface traversal method and device
CN115016869A (en) * 2021-10-22 2022-09-06 荣耀终端有限公司 Frame rate adjusting method, terminal equipment and frame rate adjusting system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684668A (en) * 2023-08-03 2023-09-01 湖南马栏山视频先进技术研究院有限公司 Self-adaptive video frame processing method and playing terminal
CN116684668B (en) * 2023-08-03 2023-10-20 湖南马栏山视频先进技术研究院有限公司 Self-adaptive video frame processing method and playing terminal

Also Published As

Publication number Publication date
CN115016869A (en) 2022-09-06
CN115016869B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
CN109814766B (en) Application display method and electronic equipment
US20220247857A1 (en) Full-screen display method for mobile terminal and device
WO2023065873A1 (en) Frame rate adjustment method, terminal device, and frame rate adjustment system
CN115473957B (en) Image processing method and electronic equipment
CN113254120B (en) Data processing method and related device
WO2021036585A1 (en) Flexible screen display method and electronic device
WO2020093988A1 (en) Image processing method and electronic device
CN116055786B (en) Method for displaying multiple windows and electronic equipment
WO2023000772A1 (en) Mode switching method and apparatus, electronic device and chip system
US20230386382A1 (en) Display method, electronic device, and computer storage medium
US20230105934A1 (en) Cross-Device Allocation Method for Service Element, Terminal Device, and Storage Medium
CN113986070B (en) Quick viewing method for application card and electronic equipment
CN115686403A (en) Display parameter adjusting method, electronic device, chip and readable storage medium
CN116048831B (en) Target signal processing method and electronic equipment
WO2024066834A1 (en) Vsync signal control method, electronic device, storage medium and chip
CN116389884B (en) Thumbnail display method and terminal equipment
CN116051351B (en) Special effect processing method and electronic equipment
EP4290375A1 (en) Display method, electronic device and system
EP4239467A1 (en) Frame rate switching method and device
CN117666810A (en) Input method and electronic equipment
CN115480680A (en) Multi-device cooperative control method, terminal device and computer-readable storage medium
CN113973152A (en) Unread message quick reply method and electronic equipment
CN117917632A (en) Display method, electronic equipment and system
CN114579900A (en) Cross-device page switching method, electronic device and storage medium
CN115904185A (en) Data processing method and related device

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: 22882488

Country of ref document: EP

Kind code of ref document: A1