Search

CN-121998836-A - Image processing method, readable storage medium, and electronic apparatus

CN121998836ACN 121998836 ACN121998836 ACN 121998836ACN-121998836-A

Abstract

The application provides an image processing method, a readable storage medium and electronic equipment, and belongs to the technical field of image processing. The method is applied to an electronic device comprising an application processor and an enhanced rendering processor, the application processor may obtain a plurality of first images by synthesizing portions of the layers at a synthesis frequency having a value lower than a value of a refresh rate of the display screen. The application processor may then send the first images and the image processing parameters for each first image to the enhanced rendering processor by time-division multiplexing MIPI. The enhanced rendering processor may then perform enhanced rendering processing on the received first image and synthesize the synthesized image with a synthesized frame rate having a value that is the same as a value of the refresh rate of the display screen. In this way, the application processor can be ensured to timely transmit the first image and the image processing parameters of the first image to the enhanced rendering processor without increasing the number of physical channels of the MIPI.

Inventors

  • ZHANG FENGJU
  • LIU TIANJIAO

Assignees

  • 荣耀终端股份有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (16)

  1. 1. An image processing method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a first processor and a second processor, and the method comprises the following steps: Synthesizing part of the layers in the P layers by the first processor to obtain Q first images, wherein the synthesis frequency of the first processor is a first numerical value, P is an integer greater than 2, Q is an integer greater than 1, and P is greater than or equal to Q; transmitting the Q first images to the second processor through the first processor, wherein the number of image frames transmitted to the second processor by the first processor per unit time is a second numerical value, and the second numerical value is larger than the first numerical value; and displaying a second image based on the Q first images.
  2. 2. The method of claim 1, wherein the displaying a second image based on the Q first images comprises: rendering the first image by the second processor; synthesizing the Q first images after rendering processing through the second processor to obtain the second image; and displaying the second image.
  3. 3. The method of claim 1, wherein the displaying a second image based on the Q first images comprises: And displaying the second image according to a first refresh rate based on the Q first images, wherein the value of the first refresh rate is larger than the first value.
  4. 4. The method of claim 3, wherein after reducing the refresh rate of the electronic device from the first refresh rate to a second refresh rate, the method further comprises: Synthesizing R layers by the first processor to obtain a first image, wherein the synthesis frequency of synthesizing the R layers by the first processor is a third value, the third value is the same as the value of the second refresh rate, and R is an integer larger than 2; Transmitting, by the first processor, the one first image to the second processor, wherein the number of image frames transmitted to the second processor per unit time by the first processor is the third value; The one first image is displayed.
  5. 5. The method of claim 4, wherein the second value is greater than the first value based on the first refresh rate being greater than or equal to a refresh rate threshold, and/or wherein the third value is the same as the second refresh rate value based on the second refresh rate being less than the refresh rate threshold.
  6. 6. The method of claim 1, wherein the Q first images include images synthesized by the partial layers, and/or images corresponding to each of the P layers except the partial layers.
  7. 7. The method of claim 2, wherein the transmitting, by the first processor, the Q first images to the second processor comprises: generating, by the first processor, a plurality of image frames based on the Q first images, and transmitting the plurality of image frames to the second processor, wherein each image frame includes a plurality of data packets, and the data packets are short packets or long packets.
  8. 8. The method of claim 7, wherein each of the data packets comprises at least one of: At least part of the image data of at least one of said first images; at least one image processing parameter corresponding to the first image, wherein the image processing parameter comprises at least one of the following parameters, namely, the type of image quality enhancement processing, the dynamic efficiency parameter of the attribute animation corresponding to the first image for the image area of the rendering processing in the first image; and motion information corresponding to at least one first image.
  9. 9. The method of claim 7, wherein at least a portion of the plurality of data packets are transmitted in at least one of a vertical trailing edge, a vertical leading edge, a vertical sync length, a horizontal trailing edge, a horizontal leading edge, a horizontal sync length of the image frame.
  10. 10. The method of claim 8, wherein the first processor is an application processor and the second processor is an enhanced rendering processor, and wherein the transmitting the plurality of image frames to the second processor comprises: The plurality of image frames are transmitted by the first processor to the second processor based on a mobile industry processor interface.
  11. 11. The method of claim 2, wherein the electronic device further comprises a display driver chip, and wherein the displaying the second image comprises: Transmitting first image data to the display driving chip through the second processor, wherein the first image data is data in a first image area with different content from a third image in the second image, and the third image is a previous frame image of the second image; And refreshing a first display screen area of a display screen of the electronic device according to the first image data through the display driving chip, wherein the first display screen area is a display screen area corresponding to the first image area.
  12. 12. The method of claim 11, wherein the sending, by the second processor, the first image data to the display driver chip comprises: generating, by the second processor, at least one first data packet and at least one second data packet based on the first image data, wherein the first data packet includes the first image data, and the second data packet indicates other image areas outside the first image area; and sending the at least one first data packet and the at least one second data packet to the display driving chip through the second processor.
  13. 13. The method of claim 12, wherein the second image comprises m rows and n columns of pixels, the first image region is an x-th column to a y-th column of pixels in an i-th row to a j-th row of the m rows and n columns, wherein m, n, i, j, x, y is a positive integer, i is less than or equal to j, j is less than or equal to m, x is less than or equal to y, and y is less than n; The at least one first data packet comprises j-i+1 first data packets respectively corresponding to image data in an x column to a y column in an i row to a j row; The at least one second data packet comprises one second data packet indicating the 1 st row to the i-1 st row, j-i+1 second data packets respectively indicating the 1 st column to the x-1 st column in the i st row to the j th row, j-i+1 second data packets respectively indicating the y+1 st column to the n th column in the i st row to the j th row, and one second data packet indicating the j+1 th row to the m th row.
  14. 14. The method according to claim 1, wherein the method further comprises: After the second image is displayed, rendering at least part of the first images in the Q first images through a second processor, and synthesizing and displaying at least one third image based on the at least part of the first images after rendering, wherein the numerical value of the synthesized frame rate of the third image synthesized through the second processor is the same as the numerical value of the refresh rate of the display screen.
  15. 15. A readable storage medium, characterized in that the readable storage medium stores one or more programs, which when executed on an electronic device, cause the electronic device to perform the image processing method of any of claims 1 to 14.
  16. 16. An electronic device, comprising: one or more first processors, one or more second processors, one or more memories; The one or more memories store one or more computer programs that, when executed by the first processor and the second processor, cause the electronic device to perform the image processing method of any of claims 1-14.

Description

Image processing method, readable storage medium, and electronic apparatus Technical Field The present application relates to the field of image processing technologies, and in particular, to an image processing method, a readable storage medium, and an electronic device. Background The processing of each composite image to be displayed by the electronic device typically includes rendering, compositing, and post-processing (optional). Wherein, drawing means generating image data of each layer of the composite image, rendering means rendering the layer data of each layer into a layer, compositing means laminating each layer into a composite image, post-processing means performing image quality enhancement processing such as super resolution, super frame, contrast/sharpness adjustment, and the like on the composite image. To avoid a screen displayed by the electronic device from being stuck, the value of the frame rate of the composite image synthesized by the electronic device is typically greater than or equal to the value of the refresh rate of the display screen of the electronic device. But electronic devices implement rendering, as well as rendering, compositing, and post-processing processes-image processing-consume significant power. Disclosure of Invention In view of the above, the present application provides an image processing method, a readable storage medium, and an electronic device, which are advantageous for reducing power consumption of the electronic device for image processing. The image processing method is applied to electronic equipment and comprises the steps of synthesizing part of image layers in P image layers through the first processor to obtain Q first images, wherein the synthesis frequency of the first processor is a first numerical value, P is an integer larger than 2, Q is an integer larger than 1 and P is larger than or equal to Q, the Q first images are transmitted to the second processor through the first processor, the number of image frames transmitted to the second processor in unit time of the first processor is a second numerical value, the second numerical value is larger than the first numerical value, and the second images are displayed based on the Q first images. In the method, the electronic device synthesizes at least part of the P layers corresponding to the user interface to be displayed through the first processor to obtain Q first images and sends the Q first images to the second processor. The electronic device then displays, via the second processor, a second image based on the Q first images. In this way, since the power consumption of the second processor to generate the second image based on the Q first images is low, the overall power consumption of the electronic device to generate the second image can be reduced. In addition, since the data size of the Q image layers is larger than the data size that can be accommodated by one image frame, the first processor may transmit the Q first images to the second processor in a period (inverse of the first value) corresponding to the synthesis frequency by transmitting a plurality of (second value) image frames in a unit time, so that the second processor may generate and display the second image based on the Q first images in time. In some implementations, in the process of processing the layers of the user interface to be displayed, P and Q may be equal for some user interfaces to be displayed (i.e., the first processor only needs to render to obtain P layers without synthesizing the P layers, where the P layers obtained by rendering are Q first images), and P may be greater than Q for another portion of the user interface to be displayed (i.e., the first processor needs to render to obtain P layers first and then synthesize some of the P layers to obtain Q first images). In one possible implementation of the first aspect, the displaying the second image based on the Q first images includes performing rendering processing on the first images by a second processor, synthesizing the Q first images after the rendering processing by the second processor to obtain the second image, and displaying the second image. In one possible implementation of the first aspect, the rendering process includes at least one of super-resolution processing, contrast adjustment, image sharpening processing, super-frame processing, detail enhancement processing, high dynamic range processing, image noise reduction processing, blurring processing, and generating an animated image of an attribute animation. In this implementation, since the power consumption of the second processor for performing the rendering process is low, the overall power consumption of the electronic device for obtaining the second image based on the P layers can be reduced by performing the rendering process on the first image by the second processor. In a possible implementation of the first aspect, displaying the second image based on the Q first images inc