Search

US-20260129300-A1 - Display Method, Mobile Terminal, and Computer-Readable Storage Medium

US20260129300A1US 20260129300 A1US20260129300 A1US 20260129300A1US-20260129300-A1

Abstract

This disclosure provides a display method, a mobile terminal, and a computer-readable storage medium. The mobile terminal sequentially receives a first zooming operation, at least one second zooming operation, and a third zooming operation. The mobile terminal first responds to the first zooming operation, and obtains a first zoomed image at a zoom ratio of the first zooming operation, then responds to the third zooming operation and correspondingly obtains a third zoomed image, and displays the third zoomed image. The third zooming operation that is generated later may be processed and displayed in advance before the at least one second zooming operation that is received earlier. The time for responding to all or some image obtaining operations of the at least one second zooming operation is reduced, so that a display delay of a zooming operation received later is reduced, and hand-following smoothness of the zooming operation is improved.

Inventors

  • Longshan Yao

Assignees

  • HONOR DEVICE CO., LTD.

Dates

Publication Date
20260507
Application Date
20251230
Priority Date
20230703

Claims (20)

  1. 1 . A display method, applied to a mobile terminal, wherein the display method comprises: receiving a first zooming operation and a second zooming operation, wherein receiving time of the first zooming operation is earlier than receiving time of the second zooming operation, wherein the first zooming operation corresponds to a first zoom ratio, and wherein the second zooming operation corresponds to a second zoom ratio; and when a ratio difference between the second zoom ratio and the first zoom ratio is within a preset range, processing first image data at the second zoom ratio to obtain a second zoomed image, wherein the first image data is image data obtained based on the first zooming operation.
  2. 2 . The display method of claim 1 , wherein receiving the first zooming operation comprises receiving at least two first zooming operations each corresponding to a respective zoom ratio, wherein a receiving time of each first zooming operation is earlier than the receiving time of the second zooming operation, and wherein when the ratio difference between the second zoom ratio and the first zoom ratio is within the preset range, processing the first image data at the second zoom ratio to obtain the second zoomed image comprises: searching the at least two zoom ratios for a target zoom ratio, wherein the target zoom ratio is the first zoom ratio, and wherein a ratio difference between the first zoom ratio and the second zoom ratio is within the preset range; and processing target image data at the second zoom ratio to obtain the second zoomed image, wherein the target image data is image data obtained based on a target zooming operation, and wherein the target zooming operation is a first zooming operation corresponding to the target zoom ratio.
  3. 3 . The display method of claim 2 , wherein searching the at least two zoom ratios for the target zoom ratio comprises determining a target zooming request corresponding to the target zoom ratio from at least two first zooming requests, wherein each first zooming request corresponds to a first zooming operation, wherein generation time of each first zooming request is earlier than generation time of a second zooming request corresponding to the second zooming operation, and wherein the target zooming request is a first zooming request corresponding to the target zoom ratio, and wherein processing the target image data at the second zoom ratio to obtain the second zoomed image comprises: responding to the target zooming request and the second zooming request; and processing the target image data at the second zoom ratio to obtain the second zoomed image.
  4. 4 . The display method of claim 3 , wherein responding to the target zooming request and the second zooming request and processing the target image data at the second zoom ratio to obtain the second zoomed image comprises: responding to the target zooming request and obtaining the target image data; processing the target image data at the second zoom ratio to obtain the second zoomed image; and displaying the second zoomed image.
  5. 5 . The display method of claim 3 , wherein responding to the target zooming request and the second zooming request and processing the target image data at the second zoom ratio to obtain the second zoomed image comprises: responding to the target zooming request, obtaining the target image data, processing the target image data at the target zoom ratio to obtain a target zoomed image, and canceling displaying the target zoomed image; and responding to the second zooming request, obtaining second image data, processing the second image data at the second zoom ratio to obtain the second zoomed image, and displaying the second zoomed image.
  6. 6 . The display method of claim 3 , wherein responding to the target zooming request and the second zooming request and displaying the second zoomed image comprises: without responding to the target zooming request, responding to the second zooming request and obtaining second image data; processing the second image data at the second zoom ratio to obtain the second zoomed image; and displaying the second zoomed image.
  7. 7 . The display method of claim 3 , wherein after obtaining the second zoomed image, the display method further comprises stopping responding to a fourth zooming request, and wherein the fourth zooming request is a first zooming request whose generation time is after that of the target zooming request.
  8. 8 . The display method of claim 4 , wherein receiving the first zooming operation and the second zooming operation comprises: receiving the first zooming operation, generating the first zooming request, and adding the first zooming request to a request queue; and receiving the second zooming operation, generating the second zooming request, and adding the second zooming request to the request queue, wherein the request queue is a first-in-first-out queue, wherein a time at which the first zooming request is added to the request queue is earlier than a time at which the second zooming request is added to the request queue, and wherein responding to the target zooming request comprises responding to the target zooming request after the target zooming request is dequeued from the request queue.
  9. 9 . The display method of claim 8 , wherein the target zooming request comprises a first zooming request that is already dequeued from the request queue, and wherein a ratio difference between a zoom ratio of the first zooming request and the second zoom ratio is within the preset range.
  10. 10 . The display method of claim 9 , wherein image processing operations corresponding to zooming requests after the zooming requests are dequeued sequentially comprise: an original image capture operation, an image signal front-end processing operation, a spatial alignment transform processing operation, and an image signal post-end processing operation, wherein determining the target zooming request corresponding to the target zoom ratio from the at least two first zooming requests comprises selecting a first zooming request subjected to the spatial alignment transform processing operation or the image signal post-end processing operation as the target zooming request, and wherein a ratio difference between a zoom ratio of the first zooming request and the second zoom ratio is within the preset range.
  11. 11 . The display method of claim 1 , wherein the first zooming operation comprises a first target operation and a second target operation, wherein the second zooming operation comprises a third zooming operation and a fourth zooming operation, wherein a receiving time of the first target operation is earlier than a receiving time of the third zooming operation, wherein a receiving time of the second target operation is earlier than a receiving time of the fourth zooming operation, wherein the first target operation corresponds to a first target zoom ratio, wherein the second target operation corresponds to a second target zoom ratio, wherein the third zooming operation corresponds to a third zoom ratio, wherein the fourth zooming operation corresponds to a fourth zoom ratio, and wherein when the ratio difference between the second zoom ratio and the first zoom ratio is within the preset range, processing the first image data at the second zoom ratio to obtain the second zoomed image comprises: receiving the first target operation, the second target operation, the third zooming operation, and the fourth zooming operation; when a ratio difference between the first target zoom ratio and the third zoom ratio is within the preset range, processing first target image data at the third zoom ratio to obtain a third zoomed image, wherein the first target image data is image data obtained based on the first target zooming operation; and when a ratio difference between the second target zoom ratio and the fourth zoom ratio is within the preset range, processing second target image data at the fourth zoom ratio to obtain a fourth zoomed image, wherein the second target image data is image data obtained based on the second target zooming operation.
  12. 12 . A computer-readable storage medium comprising a computer program stored in the computer-readable storage medium which when executed on a computer, configures the computer to perform a display method that comprises: receiving a first zooming operation and a second zooming operation, wherein receiving time of the first zooming operation is earlier than receiving time of the second zooming operation, wherein the first zooming operation corresponds to a first zoom ratio, and wherein the second zooming operation corresponds to a second zoom ratio; and when a ratio difference between the second zoom ratio and the first zoom ratio is within a preset range, processing first image data at the second zoom ratio to obtain a second zoomed image, wherein the first image data is image data obtained based on the first zooming operation.
  13. 13 . A mobile terminal, comprising: a camera; a memory storing computer-executable instructions; and a processor coupled to the camera and the memory and configured to execute the computer-executable instructions to configure the mobile terminal to perform a display method that comprises: receiving a first zooming operation and a second zooming operation, wherein receiving time of the first zooming operation is earlier than receiving time of the second zooming operation, wherein the first zooming operation corresponds to a first zoom ratio, and wherein the second zooming operation corresponds to a second zoom ratio; and when a ratio difference between the second zoom ratio and the first zoom ratio is within a preset range, processing first image data at the second zoom ratio to obtain a second zoomed image, wherein the first image data is image data obtained based on the first zooming operation.
  14. 14 . The mobile terminal of claim 13 , wherein receiving the first zooming operation comprises receiving at least two first zooming operations each corresponding to a respective zoom ratio, wherein a receiving time of each first zooming operation is earlier than the receiving time of the second zooming operation, and wherein when the ratio difference between the second zoom ratio and the first zoom ratio is within the preset range, processing the first image data at the second zoom ratio to obtain the second zoomed image comprises: searching the at least two zoom ratios for a target zoom ratio, wherein the target zoom ratio is the first zoom ratio, and wherein a ratio difference between the first zoom ratio and the second zoom ratio is within the preset range; and processing target image data at the second zoom ratio to obtain the second zoomed image, wherein the target image data is image data obtained based on a target zooming operation, and wherein the target zooming operation is a first zooming operation corresponding to the target zoom ratio.
  15. 15 . The mobile terminal of claim 14 , wherein searching the at least two zoom ratios for the target zoom ratio comprises determining a target zooming request corresponding to the target zoom ratio from at least two first zooming requests, wherein each first zooming request corresponds to a first zooming operation, wherein generation time of each first zooming request is earlier than generation time of a second zooming request corresponding to the second zooming operation, and wherein the target zooming request is a first zooming request corresponding to the target zoom ratio, and wherein processing the target image data at the second zoom ratio to obtain the second zoomed image comprises: responding to the target zooming request and the second zooming request; and processing the target image data at the second zoom ratio to obtain the second zoomed image.
  16. 16 . The mobile terminal of claim 15 , wherein responding to the target zooming request and the second zooming request and processing the target image data at the second zoom ratio to obtain the second zoomed image comprises: responding to the target zooming request and obtaining the target image data; processing the target image data at the second zoom ratio to obtain the second zoomed image; and displaying the second zoomed image.
  17. 17 . The mobile terminal of claim 15 , wherein responding to the target zooming request and the second zooming request and processing the target image data at the second zoom ratio to obtain the second zoomed image comprises: responding to the target zooming request, obtaining the target image data, processing the target image data at the target zoom ratio to obtain a target zoomed image, and canceling displaying the target zoomed image; and responding to the second zooming request, obtaining second image data, processing the second image data at the second zoom ratio to obtain the second zoomed image, and displaying the second zoomed image.
  18. 18 . The mobile terminal of claim 15 , wherein responding to the target zooming request and the second zooming request and displaying the second zoomed image comprises: without responding to the target zooming request, responding to the second zooming request and obtaining second image data; processing the second image data at the second zoom ratio to obtain the second zoomed image; and displaying the second zoomed image.
  19. 19 . The mobile terminal of claim 15 , wherein after obtaining the second zoomed image, the display method further comprises stopping responding to a fourth zooming request, and wherein the fourth zooming request is a first zooming request whose generation time is after that of the target zooming request.
  20. 20 . The mobile terminal of claim 16 , wherein receiving the first zooming operation and the second zooming operation comprises: receiving the first zooming operation, generating the first zooming request, and adding the first zooming request to a request queue; and receiving the second zooming operation, generating the second zooming request, and adding the second zooming request to the request queue, wherein the request queue is a first-in-first-out queue, wherein a time at which the first zooming request is added to the request queue is earlier than a time at which the second zooming request is added to the request queue, and wherein responding to the target zooming request comprises responding to the target zooming request after the target zooming request is dequeued from the request queue.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This is a continuation of International Patent Application No. PCT/CN2024/100202, filed on June 19, 2024, which claims priority to Chinese Patent Application No. 202310807236.5, filed on July 3, 2023, both of which are incorporated herein by reference. TECHNICAL FIELD Embodiments of this disclosure relate to the field of terminal technologies, and in particular, to a display method, a mobile terminal, and a computer-readable storage medium. BACKGROUND With the development of science and technology, mobile terminals such as mobile phones have more and more powerful functions. A photographing function of the mobile terminal can implement front and rear photographing, image beautification processing, zooming, and the like. The mobile terminal is usually assembled with a plurality of groups of lenses. Different lenses correspond to different focal lengths, and lenses with different focal lengths can collect images of different distances, different field of views, and different definitions. A zooming operation (Zoom) of the mobile terminal is to adjust positions of several groups of lenses with different focal lengths, to change focal lengths of the adjusted lenses, so as to collect images of different focal lengths. When using the mobile terminal to perform photographing preview, a user may apply different zooming touch actions on a photographing preview interface of the mobile terminal. The mobile terminal detects a touch parameter of the zooming touch action of the user, to generate a corresponding zooming request, delivers the generated zooming request to a corresponding functional module to process the zooming request, and displays a finally obtained preview image. When performing photographing preview, the user may have different zooming requirements successively, so that the user may trigger a plurality of zooming operations, and correspondingly, a plurality of zooming requests are generated. The mobile terminal sequentially processes the zooming requests and displays corresponding preview images according to a sequence in which the zooming requests are generated. As a result, a zooming request generated by the mobile terminal in real time may be processed only after being triggered for a period of time, and a preview image corresponding to the zooming request may also be displayed only after a period of time, and consequently, a delay from applying the zooming touch operation to displaying a zoomed preview image is long. It can be learned that, when an existing mobile terminal performs photographing preview, a response delay of the zooming operation is long, and hand-following smoothness of the zooming operation is poor. Embodiments of this disclosure provide a display method, a mobile terminal, and a computer-readable storage medium, to implement a solution in which a zooming operation received later jumps to a zooming operation received earlier to cut in line for processing and display in advance, thereby reducing response and display delays of a newly received zooming operation, and optimizing hand-following smoothness of zooming display. To achieve the foregoing objective, the following technical solutions are used in the embodiments of this disclosure: According to a first aspect, a display control method is provided. A mobile terminal successively receives a plurality of zooming operations, sequentially including a first zooming operation, at least one second zooming operation, and a third zooming operation. Receiving time of the first zooming operation is earlier than receiving time of the third zooming operation, the first zooming operation and the third zooming operation are spaced by at least one second zooming operation, and zoom ratios of different zooming operations may be different. The second zooming operation mentioned in this specification may be equivalent to the first zooming operation mentioned in the claims, and the third zooming operation mentioned in this specification may be equivalent to the second zooming operation mentioned in the claims, and details are not described one by one again. In addition, the first zooming operation mentioned in this specification may exist or may not exist during actual photographing, and this is not limited. The mobile terminal first responds to the first zooming operation, and obtains a first zoomed image at a zoom ratio of the first zooming operation. Before responding to all the second zooming operations or displaying second zoomed images corresponding to all the second zooming operations, the mobile terminal first correspondingly responds to the third zooming operation, obtains a third zoomed image, and displays the third zoomed image. A process of responding to a zooming processing operation may sequentially include: zooming request generation, zooming request delivery, an image capture operation, an image signal front-end processing operation, a spatial alignment transform processing operation, an image