CN111045576B - Display control method, display control device, terminal equipment and electronic equipment - Google Patents

Display control method, display control device, terminal equipment and electronic equipment Download PDF

Info

Publication number
CN111045576B
CN111045576B CN201811184660.4A CN201811184660A CN111045576B CN 111045576 B CN111045576 B CN 111045576B CN 201811184660 A CN201811184660 A CN 201811184660A CN 111045576 B CN111045576 B CN 111045576B
Authority
CN
China
Prior art keywords
image
processed
display control
image processing
processing
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811184660.4A
Other languages
Chinese (zh)
Other versions
CN111045576A (en
Inventor
陈程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811184660.4A priority Critical patent/CN111045576B/en
Publication of CN111045576A publication Critical patent/CN111045576A/en
Application granted granted Critical
Publication of CN111045576B publication Critical patent/CN111045576B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application relates to a display control method, a display control device, a terminal device and an electronic device. The display control method comprises the following steps: acquiring an image to be processed for performing predetermined image processing for image switching, the image to be processed being stored in a cache; creating an asynchronous thread for performing the predetermined image processing; performing the predetermined image processing on at least a part of the image to be processed through the asynchronous thread; and adjusting the image subjected to the predetermined image processing to obtain a final display image. Therefore, the predetermined image processing for image switching can be performed through the asynchronous thread based on the caching technology, so that the smoothness of image switching is ensured, and the user experience is improved.

Description

Display control method, display control device, terminal equipment and electronic equipment
Technical Field
The present invention relates generally to the field of display control technology, and more particularly, to a display control method, a display control apparatus, a terminal device, and an electronic device.
Background
With the popularization of various electronic devices, more and more people choose to read at the electronic devices, so that the electronic devices replace the traditional paper media, and more reading applications are presented.
The bookshelf is a main page in the reading application and is responsible for showing books which are already owned, recently read and want to read by a user.
When a user browses a book displayed on a bookshelf, the user often has the need of switching displayed data, and common ways of switching images include displacement, scaling, fading and the like. A smooth image switching effect can enable a user to experience better, feel smooth, and can experience the design intention of a designer.
Accordingly, it is desirable to provide an improved display control scheme for image switching.
Disclosure of Invention
The present application has been made in order to solve the above technical problems. The embodiment of the application provides a display control method, a display control device, terminal equipment and electronic equipment, which are used for carrying out preset image processing for image switching through an asynchronous thread based on a cache technology, so that the smoothness of image switching is ensured, and the user experience is improved.
According to an aspect of the present application, there is provided a display control method including: acquiring an image to be processed for performing predetermined image processing for image switching, the image to be processed being stored in a cache; creating an asynchronous thread for performing the predetermined image processing; performing the predetermined image processing on at least a part of the image to be processed through the asynchronous thread; and adjusting the image subjected to the predetermined image processing to obtain a final display image.
In the above display control method, acquiring the image to be processed to be subjected to the predetermined image processing includes: and scaling the image to be processed according to the original size of the image to be processed so as to be suitable for the size of the cache.
In the above display control method, performing, by the asynchronous thread, predetermined image processing on at least a part of the image to be processed includes: cutting out a required part of the image to be processed; and performing predetermined image processing on the required portion.
In the above display control method, acquiring the image to be processed to be subjected to the predetermined image processing includes: acquiring a current image which is being displayed in an image sequence, and a previous image and a next image of the current image in the image sequence; and adjusting the image subjected to the predetermined image processing to obtain a final display image, further comprising: displaying the adjusted current image processed by the preset image; and storing the adjusted previous image and the adjusted subsequent image which are subjected to the predetermined image processing in the buffer memory.
In the above display control method, further comprising: receiving an image switching instruction; reading the previous image or the next image from the cache in response to the image switching instruction; and displaying the read previous image or the read subsequent image.
In the above display control method, the image to be processed is a background image corresponding to a book cover image displayed on a bookshelf page in reading application.
In the above display control method, the predetermined image processing is gaussian blur processing.
In the above display control method, adjusting the image subjected to the predetermined image processing to obtain a final display image includes: and cutting out special effects of Gaussian blur edges of the Gaussian blur processed image.
In the above display control method, after clipping out the special effect of the gaussian blur edge of the gaussian blur processed image, further comprising: at least one of saturation, hue and brightness of the image of the special effect cut off the Gaussian blur edge is adjusted.
According to another aspect of the present application, there is provided a display control apparatus including: an image acquisition unit configured to acquire an image to be processed to be subjected to predetermined image processing for image switching, the image to be processed being stored in a cache; a thread creation unit for creating an asynchronous thread for executing predetermined image processing; an image processing unit, configured to perform predetermined image processing on at least a part of the image to be processed by the asynchronous thread; and an image adjustment unit configured to adjust the image subjected to the predetermined image processing to obtain a final display image.
In the above display control apparatus, the image acquisition unit is configured to: and scaling the image to be processed according to the original size of the image to be processed so as to be suitable for the size of the cache.
In the above display control apparatus, the image processing unit is configured to: cutting out a required part of the image to be processed; and performing predetermined image processing on the required portion.
In the above display control apparatus, the image acquisition unit is configured to: acquiring a current image which is being displayed in an image sequence, and a previous image and a next image of the current image in the image sequence; and, further comprising an image control unit for: displaying the adjusted current image processed by the preset image; and storing the adjusted previous image and the adjusted subsequent image which are subjected to the predetermined image processing in the buffer memory.
The display control device described above further includes: an operation input unit for receiving an image switching instruction; and the image control unit is further configured to: reading the previous image or the next image from the cache in response to the image switching instruction; and displaying the read previous image or the read subsequent image.
In the display control device, the image to be processed is a background image corresponding to a book cover image displayed on a bookshelf page in reading application.
In the above display control apparatus, the predetermined image processing is gaussian blur processing.
In the above display control apparatus, the image adjustment unit is configured to: and cutting out special effects of Gaussian blur edges of the Gaussian blur processed image.
In the above display control apparatus, the image adjustment unit is further configured to: after the special effect of the Gaussian blur edge of the Gaussian blur processed image is clipped, at least one of the saturation, hue and brightness of the clipped special effect image is adjusted.
According to still another aspect of the present application, there is provided a terminal device, including: a display for displaying a display page including a display image; and a display control device as described above.
According to still another aspect of the present application, there is provided an electronic apparatus including: a processor; and a memory in which computer program instructions are stored which, when executed by the processor, cause the processor to perform the display control method as described above.
According to yet another aspect of the present application, there is provided a computer readable medium having stored thereon computer program instructions which, when executed by a processor, cause the processor to perform the display control method as described above.
According to the display control method, the display control device, the terminal equipment and the electronic equipment, the preset image processing for image switching is performed through the asynchronous thread based on the cache technology, so that the terminal equipment with different performances can smoothly switch images through the preset image processing, the requirements of UI designers are met, and the user experience is improved.
Drawings
Various other advantages and benefits of the present application will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. It is apparent that the drawings described below are only some embodiments of the present application and that other drawings may be obtained from these drawings by those of ordinary skill in the art without inventive effort. Also, like reference numerals are used to designate like parts throughout the figures.
FIG. 1 illustrates a flow chart of a display control method according to an embodiment of the present application;
fig. 2 illustrates a flowchart of a gaussian blur processing procedure in a display control method according to an embodiment of the present application.
Fig. 3 illustrates a flowchart of a multi-image switching process in a display control method according to an embodiment of the present application.
Fig. 4 illustrates a block diagram of a display control apparatus according to an embodiment of the present application;
fig. 5 illustrates a block diagram of a terminal device according to an embodiment of the present application;
fig. 6 illustrates a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application and not all of the embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein.
Summary of the application
As described above, for the demand of image switching in existing mobile terminal applications, a smooth image switching effect can have a good user experience and can embody the design intent of a designer. For example, gaussian blur is used as a way of image switching, so that design intent can be better expressed under a certain scene, and good experience is given to users.
However, in practical use, the gaussian blur calculation is a process with great calculation amount, and cannot be directly applied to the application of the mobile terminal. Similarly, other image processing methods for image switching have a problem that good processing effects and reasonable computation amounts cannot be achieved.
Aiming at the technical problems, the basic idea of the application is to process the image which needs to be processed by the preset image in the asynchronous thread through the cache technology, so that the UI thread is not interfered and is not blocked during the calculation, and the repeated calculation can be reduced to the maximum extent through the cache.
The application provides a display control method, a display control device, a terminal device and an electronic device, wherein the display control method, the display control device, the terminal device and the electronic device firstly acquire an image to be processed for performing predetermined image processing for image switching, wherein the image to be processed is stored in a cache, then an asynchronous thread for executing the predetermined image processing is created, at least one part of the image to be processed is subjected to the predetermined image processing through the asynchronous thread, and finally the image subjected to the predetermined image processing is adjusted to obtain a final display image. Therefore, the problems of blocking and unsmooth image processing caused by large operation amount in the application process of the terminal equipment are solved, the terminal equipment with different performances can be ensured to smoothly switch images through preset image processing, the requirements of UI designers are met, and the user experience is improved.
Here, it will be understood by those skilled in the art that the display control method of the present application may be applied to reading applications in various different terminal devices, and is not limited to mobile devices such as smartphones. Further, the display control method of the present application can be used for various image processing for image switching including gaussian blur processing to solve the problem of mismatch between the amount of computation required for image processing and the amount of resources of the terminal device.
Having described the basic principles of the present application, various non-limiting embodiments of the present application will now be described in detail with reference to the accompanying drawings.
Exemplary method
Fig. 1 illustrates a flowchart of a display control method according to an embodiment of the present application.
As shown in fig. 1, a display control method according to an embodiment of the present application includes: s110, acquiring an image to be processed for performing predetermined image processing for image switching, wherein the image to be processed is stored in a cache; s120, creating an asynchronous thread for executing the preset image processing; s130, performing the predetermined image processing on at least one part of the image to be processed through the asynchronous thread; and S140, adjusting the image processed by the preset image to obtain a final display image.
In step S110, a to-be-processed image to be subjected to predetermined image processing for image switching is acquired. Here, as described above, the predetermined image processing for image switching may be any image processing for generating a specific effect at the time of switching an image, such as gaussian blur processing. And, the image to be processed may be an image to be switched involved in various applications requiring switching of images, such as a bookshelf application, or other image browsing applications.
For bookshelf applications, when images of books are switched, corresponding processing is generally required to be performed on background images of cover diagrams of the books, so that the switching of the cover diagrams of the books achieves an expected visual design effect.
Therefore, in the display control method according to the embodiment of the application, the image to be processed is a background image corresponding to a book cover image displayed on a bookshelf page in reading application.
Also, in the display control method according to the embodiment of the present application, the predetermined image processing is gaussian blur processing.
Further, the image to be processed is not limited to a single image, but may be a plurality of images displayed simultaneously on a page, and thus, the image to be processed may be presented in the form of an image list.
The image to be processed is stored in a buffer memory while the predetermined image processing is performed, thereby less affecting the display process of the current User Interface (UI).
Thus, for each image, the size of the buffer may be scaled according to the original size of the image to obtain a suitable image size to prevent buffer overflow.
That is, in the display control method according to the embodiment of the present application, acquiring the image to be processed to be subjected to the predetermined image processing includes: and scaling the image to be processed according to the original size of the image to be processed so as to be suitable for the size of the cache.
In step S120, an asynchronous thread for executing the predetermined image processing is created. That is, the predetermined image processing is performed by an asynchronous thread independent of the current UI processing, so that the display process of the current UI is not affected.
In step S130, the predetermined image processing is performed on at least a part of the image to be processed by the asynchronous thread. That is, in the actual image processing, especially for a specific image processing, such as gaussian blur processing, not all the portions of the image to be processed need to be processed, and in order to save the calculation amount of image processing, only the portions of the image to be processed that need to be processed may be cut out for calculation.
That is, in the display control method according to the embodiment of the present application, performing, by the asynchronous thread, predetermined image processing on at least a part of the image to be processed includes: cutting out a required part of the image to be processed; and performing predetermined image processing on the required portion.
In step S140, the image subjected to the predetermined image processing is adjusted to obtain a final display image. That is, after predetermined image processing for image switching is performed, it may be necessary to adjust the processed image to obtain an image finally used for display.
Taking gaussian blur processing as an example, after gaussian processing is performed on a desired portion of the image to be processed, special effects of the gaussian blur edges also need to be cut off.
That is, in the display control method according to the embodiment of the present application, adjusting the image subjected to the predetermined image processing to obtain the final display image includes: and cutting out special effects of Gaussian blur edges of the Gaussian blur processed image.
And, for the image after the gaussian blur is adjusted, one or more of its saturation, hue and brightness are further adjusted, if necessary, to generate an image that is finally displayed on the display interface.
That is, in the display control method according to the embodiment of the present application, after clipping out the special effect of the gaussian blur edge of the gaussian blur processed image, further includes: at least one of saturation, hue and brightness of the image of the special effect cut off the Gaussian blur edge is adjusted.
Fig. 2 illustrates a flowchart of a gaussian blur processing procedure in a display control method according to an embodiment of the present application. As shown in fig. 2, the gaussian blur processing procedure includes: s210, acquiring an image needing Gaussian blur processing; s220, scaling the image to prevent cache overflow; s230, creating an asynchronous thread for executing the Gaussian blur processing task; s240, cutting out a required part of the image and performing Gaussian blur processing calculation; s250, performing secondary clipping on the processed image to remove special effects of Gaussian blur edges; s260, adjusting the saturation, hue and brightness after Gaussian blur; and S270, obtaining a final display image.
In addition, in order to further improve the smoothness of image switching, the display control method according to the embodiment of the application further adopts a three-image switching technology. This is because in a scene in which images are sequentially switched, there are actually only two cases of the image to be switched, namely, the next image and the previous image. Therefore, in order to make the switching flow smooth and smooth, and can be better suited for mobile terminals of different capabilities, the switching flow is handled by using three image superimposition.
Specifically, by default, the current image is presented while the previous and subsequent images are cached. In the switching process, whether the previous image or the next image is switched, the switching process is smooth and fluent since the previous image or the next image is already cached and the image has already undergone processing. And after the switching is finished, reading a previous image or a next image in the cache, and setting the previous image or the next image to a corresponding position. Similarly, the user has the same switching effect when switching next time.
Thus, in the display control method according to the embodiment of the present application, acquiring the image to be processed to be subjected to the predetermined image processing includes: acquiring a current image which is being displayed in an image sequence, and a previous image and a next image of the current image in the image sequence; and adjusting the image subjected to the predetermined image processing to obtain a final display image, further comprising: displaying the adjusted current image processed by the preset image; and storing the adjusted previous image and the adjusted subsequent image which are subjected to the predetermined image processing in the buffer memory.
The display control method further includes: receiving an image switching instruction; reading the previous image or the next image from the cache in response to the image switching instruction; and displaying the read previous image or the read subsequent image.
Fig. 3 illustrates a flowchart of a multi-image switching process in a display control method according to an embodiment of the present application. As shown in fig. 3, the multi-image switching process includes: s310, acquiring a current image which is being displayed in an image sequence, a previous image and a next image; s320, performing predetermined image processing for image switching on the current image, the previous image and the next image; s330, displaying the current image processed by the preset image; s340, storing a previous image and a next image which are subjected to the predetermined image processing in the buffer; s350, receiving an image switching instruction; s360, responding to the image switching instruction, and reading the previous image or the next image from the cache; and S370, displaying the read previous image or the read subsequent image.
Therefore, when the display control method according to the embodiment of the application is applied to a bookshelf page of a reading application, since the background image follows the currently selected book cover, the corresponding Gaussian blur image can be calculated according to the currently selected book cover image and set on the background, so that a specific visual design effect is achieved. In addition, in the process of switching covers, in order to increase the smoothness of switching, a preloading technique is used. That is, normally only one cover and its corresponding gaussian blurred background are displayed on the screen, where the previous and next are loaded in advance, for a total of 3 covers and their corresponding gaussian blurred backgrounds. Therefore, when the next cover/previous cover is switched, the pictures corresponding to the next cover/previous cover are loaded in advance, so that the smoothness in switching is ensured.
In the prior art, for a calculation process with very large calculation amount, such as gaussian blur processing, besides some mobile phones with high performance, such as iphone, for example, can calculate in real time, many other mobile phones cannot calculate in real time, which also makes it more difficult to use gaussian blur real-time switching. According to the display control method, terminal equipment with different performances, such as a smart phone, can smoothly switch pictures by using a Gaussian blur effect through asynchronous loading, caching of processing results and further using a three-image switching technology. In addition, in the image processing process, the size of the picture and specific requirements of preset image processing, such as the marginal effect of Gaussian blur, are considered, and the corresponding problems are solved through scaling and clipping, so that the requirements of designers are met, and better experience is provided for users.
Schematic device
Fig. 4 illustrates a block diagram of a display control apparatus according to an embodiment of the present application.
As shown in fig. 4, a display control apparatus 400 according to an embodiment of the present application includes: an image acquisition unit 410 for acquiring an image to be processed to be subjected to predetermined image processing for image switching, the image to be processed being stored in a buffer memory; a thread creation unit 420 for creating an asynchronous thread for performing predetermined image processing; an image processing unit 430, configured to perform predetermined image processing on at least a portion of the image to be processed through the asynchronous thread; and an image adjustment unit 440 for adjusting the image subjected to the predetermined image processing to obtain a final display image.
In one example, in the display control apparatus 400, the image acquisition unit 410 is configured to: and scaling the image to be processed according to the original size of the image to be processed so as to be suitable for the size of the cache.
In one example, in the display control apparatus 400, the image processing unit 430 is configured to: cutting out a required part of the image to be processed; and performing predetermined image processing on the required portion.
In one example, in the display control apparatus 400, the image acquisition unit 410 is configured to: acquiring a current image which is being displayed in an image sequence, and a previous image and a next image of the current image in the image sequence; and, further comprising an image control unit for: displaying the adjusted current image processed by the preset image; and storing the adjusted previous image and the adjusted subsequent image which are subjected to the predetermined image processing in the buffer memory.
In one example, in the display control apparatus 400, further comprising: an operation input unit for receiving an image switching instruction; and the image control unit is further configured to: reading the previous image or the next image from the cache in response to the image switching instruction; and displaying the read previous image or the read subsequent image.
In one example, in the display control apparatus 400, the image to be processed is a background image corresponding to a book cover image displayed on a bookshelf page in a reading application.
In one example, in the above-described display control apparatus 400, the predetermined image processing is gaussian blur processing.
In one example, in the display control apparatus 400, the image adjustment unit 440 is configured to: and cutting out special effects of Gaussian blur edges of the Gaussian blur processed image.
In one example, in the display control apparatus 400, the image adjusting unit 440 is further configured to: after the special effect of the Gaussian blur edge of the Gaussian blur processed image is clipped, at least one of the saturation, hue and brightness of the clipped special effect image is adjusted.
Here, it will be understood by those skilled in the art that the specific functions and operations of the respective units and modules in the above-described display control apparatus 400 have been described in detail in the display control method described above with reference to fig. 1 to 3, and thus, repetitive descriptions thereof will be omitted.
As described above, the display control apparatus 400 according to the embodiment of the present application may be implemented in various terminal devices, such as a smart phone, a tablet computer, and the like. In one example, the apparatus 400 according to embodiments of the present application may be integrated into the terminal device as one software module and/or hardware module. For example, the apparatus 400 may be a software module in the operating system of the terminal device, or may be an application developed for the terminal device; of course, the apparatus 400 may also be one of a plurality of hardware modules of the terminal device.
Alternatively, in another example, the display control apparatus 400 and the terminal device may be separate devices, and the apparatus 400 may be connected to the terminal device through a wired and/or wireless network and transmit the interactive information in a contracted data format.
Fig. 5 illustrates a block diagram of a terminal device according to an embodiment of the present application.
As shown in fig. 5, a terminal device 500 according to an embodiment of the present application includes: a display 510 for displaying a display page including a display image; and a display control device 520 as described above.
Here, as will be understood by those skilled in the art, the configuration of the display control apparatus 520 is identical to that of the display control apparatus 400 described above, and will not be repeated here for redundancy.
Also, it is understood by those skilled in the art that the image to be processed by the display control device 520 for performing the predetermined image processing for image switching is not necessarily identical to the display image. For example, in a bookshelf page of a reading-class application, the image to be processed for performing the predetermined image processing, such as gaussian blur processing, is a background image corresponding to the book cover map. However, depending on the specific type of the predetermined image processing, the image to be processed may also be the display image itself, for example, predetermined image processing for obtaining an image fade-in and fade-out effect in an image browser-like application is applied to the display image itself.
Exemplary electronic device
Next, an electronic device according to an embodiment of the present application is described with reference to fig. 6.
Fig. 6 illustrates a block diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 6, the electronic device 10 includes one or more processors 11 and a memory 12.
The processor 11 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
Memory 12 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 11 to implement the display control methods and/or other desired functions of the various embodiments of the present application described above. Data such as images to be processed, processed display images, processed cached images, etc. may also be stored in the computer readable storage medium.
In one example, the electronic device 10 may further include: an input device 13 and an output device 14, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
For example, the input means 13 may comprise an image capturing device such as a camera, or a keyboard, a mouse, etc.
The output device 14 can output various information to the outside, for example, a display image having a specific image switching effect or the like to the user. The output device 14 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device 10 that are relevant to the present application are shown in fig. 6 for simplicity, components such as buses, input/output interfaces, etc. are omitted. In addition, the electronic device 10 may include any other suitable components depending on the particular application.
Exemplary computer program product and computer readable storage Medium
In addition to the methods and apparatus described above, embodiments of the present application may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform steps in a display control method according to various embodiments of the present application described in the "exemplary methods" section of the present specification.
The computer program product may write program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium, having stored thereon computer program instructions, which when executed by a processor, cause the processor to perform steps in a display control method according to various embodiments of the present application described in the above-mentioned "exemplary method" section of the present specification.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present application have been described above in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present application are merely examples and not limiting, and these advantages, benefits, effects, etc. are not to be considered as necessarily possessed by the various embodiments of the present application. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, as the application is not intended to be limited to the details disclosed herein as such.
The block diagrams of the devices, apparatuses, devices, systems referred to in this application are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
It is also noted that in the apparatus, devices and methods of the present application, the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent to the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the application to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (14)

1. A display control method, comprising:
acquiring an image to be processed for performing predetermined image processing for image switching, the image to be processed being stored in a cache;
creating an asynchronous thread for performing the predetermined image processing;
performing the predetermined image processing on at least a part of the image to be processed through the asynchronous thread; and
adjusting the image subjected to the predetermined image processing to obtain a final display image;
wherein performing, by the asynchronous thread, predetermined image processing on at least a portion of the image to be processed, includes:
cutting out a required part of the image to be processed; and performing predetermined image processing on the required portion;
acquiring an image to be processed to be subjected to predetermined image processing, comprising:
acquiring a current image which is being displayed in an image sequence, and a previous image and a next image of the current image in the image sequence; and
adjusting the image subjected to the predetermined image processing to obtain a final display image further includes:
displaying the adjusted current image processed by the preset image; and
and storing the adjusted previous image and the adjusted subsequent image which are subjected to the predetermined image processing in the buffer memory.
2. The display control method according to claim 1, further comprising:
receiving an image switching instruction;
reading the previous image or the next image from the cache in response to the image switching instruction; and
displaying the read previous image or the read subsequent image.
3. The display control method according to claim 1 or 2, wherein,
the image to be processed is a background image corresponding to a book cover image displayed on a bookshelf page in reading application.
4. A display control method according to claim 3, wherein the predetermined image processing is gaussian blur processing.
5. The display control method according to claim 4, wherein adjusting the image subjected to the predetermined image processing to obtain a final display image includes:
and cutting out special effects of Gaussian blur edges of the Gaussian blur processed image.
6. The display control method according to claim 5, wherein after clipping out special effects of gaussian blur edges of the gaussian blur processed image, further comprising:
at least one of saturation, hue and brightness of the image of the special effect cut off the Gaussian blur edge is adjusted.
7. A display control apparatus comprising:
an image acquisition unit configured to acquire an image to be processed to be subjected to predetermined image processing for image switching, the image to be processed being stored in a cache;
a thread creation unit for creating an asynchronous thread for executing predetermined image processing;
an image processing unit, configured to perform predetermined image processing on at least a part of the image to be processed by the asynchronous thread; and
an image adjustment unit for adjusting the image subjected to the predetermined image processing to obtain a final display image;
the image processing unit is used for cutting out a required part of the image to be processed; and performing predetermined image processing on the required portion;
the image acquisition unit is specifically configured to:
acquiring a current image which is being displayed in an image sequence, and a previous image and a next image of the current image in the image sequence;
the apparatus further comprises an image control unit for:
displaying the adjusted current image processed by the preset image; and
and storing the adjusted previous image and the adjusted subsequent image which are subjected to the predetermined image processing in the buffer memory.
8. The display control apparatus according to claim 7, further comprising:
an operation input unit for receiving an image switching instruction; and
the image control unit is further configured to:
reading the previous image or the next image from the cache in response to the image switching instruction; and
displaying the read previous image or the read subsequent image.
9. The display control apparatus according to claim 7 or 8, wherein the image to be processed is a background image corresponding to a book cover image presented by a bookshelf page in a reading-class application.
10. The display control apparatus according to claim 9, wherein the predetermined image processing is gaussian blur processing.
11. The display control apparatus according to claim 10, wherein the image adjustment unit is configured to:
and cutting out special effects of Gaussian blur edges of the Gaussian blur processed image.
12. The display control apparatus according to claim 11, wherein the image adjustment unit is further configured to:
after the special effect of the Gaussian blur edge of the Gaussian blur processed image is clipped, at least one of the saturation, hue and brightness of the clipped special effect image is adjusted.
13. A terminal device, comprising:
a display for displaying a display page including a display image; and
the display control apparatus according to any one of claims 7 to 12.
14. An electronic device, comprising:
a processor; and
a memory in which computer program instructions are stored which, when executed by the processor, cause the processor to perform the display control method of any one of claims 1-6.
CN201811184660.4A 2018-10-11 2018-10-11 Display control method, display control device, terminal equipment and electronic equipment Active CN111045576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811184660.4A CN111045576B (en) 2018-10-11 2018-10-11 Display control method, display control device, terminal equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811184660.4A CN111045576B (en) 2018-10-11 2018-10-11 Display control method, display control device, terminal equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN111045576A CN111045576A (en) 2020-04-21
CN111045576B true CN111045576B (en) 2023-06-02

Family

ID=70229134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811184660.4A Active CN111045576B (en) 2018-10-11 2018-10-11 Display control method, display control device, terminal equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN111045576B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782095B (en) * 2020-06-15 2022-02-25 网易(杭州)网络有限公司 Switching display method and device for display objects in visual area
CN112488964B (en) * 2020-12-18 2024-04-16 深圳市镜玩科技有限公司 Image processing method, related device, equipment and medium for sliding list

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120118773A (en) * 2011-04-19 2012-10-29 삼성전자주식회사 Image processing apparatus and control method thereof
CN102819521A (en) * 2011-06-08 2012-12-12 深圳市万兴软件有限公司 Portable electronic device for reading multi-page document and rendering method thereof
CN103034465A (en) * 2011-09-29 2013-04-10 腾讯科技(深圳)有限公司 Browsing method and browsing system for images
CN106572381A (en) * 2016-11-07 2017-04-19 青岛海信电器股份有限公司 Processing method of photo thumbnail and intelligent television
CN108509241A (en) * 2018-03-15 2018-09-07 广东欧珀移动通信有限公司 A kind of full screen display process of image, full screen display device and mobile terminal
CN108564539A (en) * 2018-01-04 2018-09-21 网宿科技股份有限公司 A kind of method and apparatus of display image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120118773A (en) * 2011-04-19 2012-10-29 삼성전자주식회사 Image processing apparatus and control method thereof
CN102819521A (en) * 2011-06-08 2012-12-12 深圳市万兴软件有限公司 Portable electronic device for reading multi-page document and rendering method thereof
CN103034465A (en) * 2011-09-29 2013-04-10 腾讯科技(深圳)有限公司 Browsing method and browsing system for images
CN106572381A (en) * 2016-11-07 2017-04-19 青岛海信电器股份有限公司 Processing method of photo thumbnail and intelligent television
CN108564539A (en) * 2018-01-04 2018-09-21 网宿科技股份有限公司 A kind of method and apparatus of display image
CN108509241A (en) * 2018-03-15 2018-09-07 广东欧珀移动通信有限公司 A kind of full screen display process of image, full screen display device and mobile terminal

Also Published As

Publication number Publication date
CN111045576A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
US10430075B2 (en) Image processing for introducing blurring effects to an image
KR102010712B1 (en) Distortion Correction Method and Terminal
JP2022524889A (en) Image rendering methods, equipment, equipment and computer programs
CN108228050B (en) Picture scaling method and device and electronic equipment
EP2874054B1 (en) Application text adjusting method, device, and terminal
US9449584B2 (en) Display control apparatus, method for controlling the same, and storage medium
KR20070026681A (en) Method and system for viewing and enhancing images
KR102121905B1 (en) Method and apparatus for setting background of ui control, and terminal
CN108932702B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
EP4329283A1 (en) Image processing method and apparatus, and device and storage medium
CN104754223A (en) Method for generating thumbnail and shooting terminal
WO2021243788A1 (en) Screenshot method and apparatus
CN103702032A (en) Image processing method, device and terminal equipment
CN111045576B (en) Display control method, display control device, terminal equipment and electronic equipment
US11190653B2 (en) Techniques for capturing an image within the context of a document
CN104954699A (en) Shooting parameter setting method and user terminal
CN115294055A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN107908380B (en) Configuration-based multi-screen display method and device, terminal equipment and storage medium
US10079981B2 (en) Image dynamic range adjustment method, terminal, and storage medium
CN112801882B (en) Image processing method and device, storage medium and electronic equipment
CN109739403B (en) Method and apparatus for processing information
CN105635832B (en) A kind of method for processing video frequency and device
CN113379768A (en) Image processing method, image processing device, storage medium and computer equipment
CN112269957A (en) Picture processing method, device, equipment and storage medium
CN112396669A (en) Picture processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant