CN111045576A - Display control method, display control device, terminal device and electronic device - Google Patents
Display control method, display control device, terminal device and electronic device Download PDFInfo
- Publication number
- CN111045576A CN111045576A CN201811184660.4A CN201811184660A CN111045576A CN 111045576 A CN111045576 A CN 111045576A CN 201811184660 A CN201811184660 A CN 201811184660A CN 111045576 A CN111045576 A CN 111045576A
- Authority
- CN
- China
- Prior art keywords
- image
- display control
- processed
- processing
- subjected
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04845—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution 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 includes: 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 cache; creating an asynchronous thread for performing the predetermined image processing; performing the predetermined image processing on at least one 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 preset image processing for image switching can be carried out through the asynchronous thread based on the cache technology, so that the fluency of image switching is ensured, and the user experience is improved.
Description
Technical Field
The present application 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 on the electronic devices, so that the traditional paper media is replaced, and more reading applications appear.
The bookshelf is a main page in reading application and is responsible for displaying books which a user already owns, reads recently and wants to read.
When a user browses books displayed on the bookshelf, the user often needs to switch displayed data, and common image switching modes include displacement, zooming, fading and the like. The smooth image switching effect can enable the user to experience better and feel smoother, and can realize 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 is proposed to solve the above-mentioned technical problems. The embodiment of the application provides a display control method, a display control device, a terminal device and an electronic device, which perform predetermined image processing for image switching through an asynchronous thread based on a cache technology, thereby ensuring the fluency of image switching and improving the user experience.
According to an aspect of the present application, there is provided a display control method including: 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 cache; creating an asynchronous thread for performing the predetermined image processing; performing the predetermined image processing on at least one 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 on which the predetermined image processing is to be performed includes: and scaling the image to be processed according to the original size of the image to be processed 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 a required part in 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 on which the predetermined image processing is to be performed 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 further comprising, after adjusting the image subjected to the predetermined image processing to obtain a final display image: displaying the adjusted current image processed by the preset image; and storing the adjusted previous image and the adjusted next image 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 next image.
In the display control method, 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 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 off the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing.
In the above display control method, after clipping the special effect of the gaussian blur edge of the image subjected to the gaussian blur processing, the method further includes: and adjusting at least one of the saturation, hue and brightness of the image which cuts off the special effect of the Gaussian blur edge.
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 creating unit for creating an asynchronous thread for performing predetermined image processing; the image processing unit is used for performing preset image processing on at least one part of the image to be processed through the asynchronous thread; and an image adjusting unit for adjusting 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 to be suitable for the size of the cache.
In the above display control apparatus, the image processing unit is configured to: cutting a required part in 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 next image subjected to the predetermined image processing in the buffer memory.
In the above display control apparatus, 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 next image.
In the display control apparatus, 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 the above display control apparatus, the predetermined image processing is gaussian blur processing.
In the above display control apparatus, the image adjusting unit is configured to: and cutting off the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing.
In the above display control apparatus, the image adjusting unit is further configured to: after the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing is cut off, at least one of the saturation, the hue and the brightness of the image with the special effect cut off 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 apparatus as described above.
According to yet another aspect of the present application, there is provided an electronic device 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 carried out 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 obvious that the drawings described below are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. Also, like parts are designated by like reference numerals throughout the drawings.
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 application;
FIG. 6 illustrates a block diagram of an electronic device in accordance with 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 understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein.
Summary of the application
As described above, for the requirement of image switching in the existing mobile terminal application, the smooth image switching effect may have a good user experience and can embody the design intention of the designer. For example, gaussian blur is used as a mode of image switching, and can better express design intention under certain situations, so that good experience is provided for users.
However, in practical use, the calculation of the gaussian blur is a process with a large amount of computation, and thus cannot be directly applied to the application of the mobile terminal. Similarly, other image processing methods for switching images have a problem that a good processing effect and a reasonable amount of computation cannot be achieved at the same time.
In view of the above technical problems, the basic concept of the present application is to compute and process an image to be subjected to predetermined image processing in an asynchronous thread through a caching technique, so that, on one hand, during computation, a UI (user interface) thread is not disturbed and thus jamming is not caused, and on the other hand, repeated computation can be minimized through caching.
Specifically, the present application provides a display control method, a display control apparatus, a terminal device, and an electronic device, which first acquire a to-be-processed image to be subjected to predetermined image processing for image switching, wherein the to-be-processed image is stored in a cache, then create an asynchronous thread for executing the predetermined image processing, and perform the predetermined image processing on at least a part of the to-be-processed image by the asynchronous thread, and finally adjust the image subjected to the predetermined image processing to obtain a final display image. Therefore, the problems of unsmooth 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 smoothly switch images through preset image processing, the requirements of UI designers are met, and the user experience is improved.
Here, those skilled in the art can understand that the display control method of the present application can be applied to reading applications in various different terminal devices, and is not limited to mobile devices such as smartphones. Also, 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 general principles of the present application, various non-limiting embodiments of the present application will now be described 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 carrying out preset image processing for image switching, wherein the image to be processed is stored in a cache; s120, creating an asynchronous thread for executing the predetermined image processing; s130, performing the preset image processing on at least one part of the image to be processed through the asynchronous thread; and S140, adjusting the image subjected to the predetermined image processing 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 can be an image to be switched related in various applications needing image switching, such as a bookshelf application or other image browsing applications.
For bookshelf applications, when images of a book are switched, corresponding processing is generally required to be performed on background images of a cover image of the book, so that the switching of the cover image of the book 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 a 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, and may be a plurality of images displayed on a page at the same time, and therefore, the image to be processed may be represented in the form of an image list.
When the predetermined image processing is performed, the image to be processed is stored in the cache, thereby less affecting the display process of the current User Interface (UI).
Therefore, for the size of the buffer, for each image, scaling can be performed according to the original size of the image to obtain an appropriate image size to prevent buffer overflow.
That is, in the display control method according to the embodiment of the present application, acquiring an image to be processed on which predetermined image processing is to be performed includes: and scaling the image to be processed according to the original size of the image to be processed to be suitable for the size of the cache.
In step S120, an asynchronous thread for performing 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 as not to affect the display process of the current UI.
In step S130, the predetermined image processing is performed on at least a portion of the image to be processed by the asynchronous thread. That is, in the actual image processing process, especially for a specific image processing, such as gaussian blur processing, not all parts of the image to be processed need to be processed, and in order to save the calculation amount of image processing, only the parts of the image to be processed that need to be processed may be clipped for calculation.
That is, in the display control method according to the embodiment of the present application, performing predetermined image processing on at least a part of the image to be processed by the asynchronous thread includes: cutting a required part in 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 further adjust the processed image to obtain an image finally for display.
Taking gaussian blur processing as an example, after gaussian processing is performed on a required part in the image to be processed, the special effect of the gaussian blur edge needs 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 off the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing.
And, for the image after adjusting the gaussian blur, if necessary, further adjusting one or more of the saturation, hue and brightness thereof to generate an image finally displayed on the display interface.
That is, in the display control method according to the embodiment of the present application, after clipping the special effect of the gaussian blur edge of the image subjected to the gaussian blur processing, further includes: and adjusting at least one of the saturation, hue and brightness of the image which cuts off the special effect of the Gaussian blur edge.
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 blurring process includes: s210, acquiring an image needing Gaussian blur processing; s220, scaling the image to prevent buffer overflow; s230, creating an asynchronous thread for executing the Gaussian blur processing task; s240, cutting a needed part in the image and calculating Gaussian blur; s250, performing secondary cutting on the processed image to remove the special effect of the Gaussian blur edge; 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 fluency 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 where images are switched in order, there are actually only two cases of the image to be switched, i.e., the next image and the previous image. Therefore, in order to make the switching flow smooth and smooth, and to be better adapted to mobile terminals of different performances, the flow of switching is handled by using the superposition of three images.
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, since the buffering is performed and the image is processed, the switching process is smooth. And after the switching is finished, reading the previous image or the next image in the cache and setting the previous image or the next image to the corresponding position. Similarly, the user has the same switching effect when switching next time.
Therefore, in the display control method according to the embodiment of the present application, acquiring an image to be processed to be subjected to 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 further comprising, after adjusting the image subjected to the predetermined image processing to obtain a final display image: displaying the adjusted current image processed by the preset image; and storing the adjusted previous image and the adjusted next image subjected to the predetermined image processing in the buffer memory.
Further, in the display control method, the 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 next 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, a previous image and a next image which are displayed in an image sequence; 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 the previous image and the next image subjected to the predetermined image processing in the buffer memory; 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 next 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 fuzzy picture can be calculated according to the currently selected book cover image and set on the background to achieve a specific visual design effect. And, in the process of switching the cover, in order to increase the fluency of switching, a preloading technology is used. That is, normally only one cover and its corresponding gaussian-blurred background are displayed on the screen, where the previous and next covers are loaded in advance, for a total of 3 covers and their corresponding gaussian-blurred backgrounds. Therefore, when the next cover/the previous cover is switched, the picture corresponding to the next cover/the previous cover is loaded in advance, and therefore fluency during switching is guaranteed.
In the prior art, for an operation process with a very large calculation amount, such as gaussian fuzzy processing, except for some high-performance mobile phones, such as iphone, real-time calculation can be performed, and many other mobile phones cannot perform real-time calculation, which also makes it more difficult to use gaussian fuzzy real-time switching. According to the display control method, the terminal equipment with different performances, such as a smart phone, can smoothly switch pictures by using the Gaussian blur effect through asynchronous loading and caching of processing results and further using the three-image switching technology. In addition, in the image processing process, the size of the picture and specific requirements of preset image processing are considered, such as the marginal effect of Gaussian blur, the corresponding problems are solved through zooming and cutting, 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, the display control apparatus 400 according to the 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 cache; a thread creating 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 adjusting unit 440 for adjusting the image subjected to the predetermined image processing to obtain a final display image.
In one example, in the above 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 to be suitable for the size of the cache.
In one example, in the above-described display control apparatus 400, the image processing unit 430 is configured to: cutting a required part in the image to be processed; and performing predetermined image processing on the required portion.
In one example, in the above 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 next image subjected to the predetermined image processing in the buffer memory.
In one example, in the above 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 next image.
In one example, in the display control apparatus 400 described above, the image to be processed is a background image corresponding to a book cover image displayed on a bookshelf page in a reading-type 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 above display control apparatus 400, the image adjusting unit 440 is configured to: and cutting off the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing.
In one example, in the above display control apparatus 400, the image adjusting unit 440 is further configured to: after the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing is cut off, at least one of the saturation, the hue and the brightness of the image with the special effect cut off is adjusted.
Here, it can 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, a repetitive description 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 the embodiment of the present application may be integrated into a terminal device as a software module and/or a hardware module. For example, the apparatus 400 may be a software module in an 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 many 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 according to an agreed data format.
Fig. 5 illustrates a block diagram of a terminal device according to an embodiment of the 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, it can be understood by those skilled in the art that the configuration of the display control apparatus 520 is identical to that of the display control apparatus 400 described above, and the description thereof is omitted for redundancy.
Also, it will be understood by those skilled in the art that the image to be processed for the display control device 520 to perform the predetermined image processing for image switching is not necessarily identical to the display image. For example, in a bookshelf page of a reading-type application, an image to be processed for performing the predetermined image processing, such as gaussian blur processing, is a background image corresponding to the book cover image. 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, the predetermined image processing for obtaining an image fade-in and fade-out effect in an image viewer type application is applied to the display image itself.
Exemplary electronic device
Next, an electronic apparatus 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 in accordance with an embodiment of the present application.
As shown in fig. 6, the electronic device 10 includes one or more processors 11 and memory 12.
The processor 11 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
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 form of connection mechanism (not shown).
The input device 13 may include, for example, an image pickup apparatus such as a camera, or a keyboard, a mouse, or the like.
The output device 14 can output various information to the outside, such as presenting a display image having a specific image switching effect to the user. The output devices 14 may include, for example, a display, speakers, a printer, and a communication network and its connected remote output devices, among others.
Of course, for simplicity, only some of the components of the electronic device 10 relevant to the present application are shown in fig. 6, and components such as buses, input/output interfaces, and the like 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 above-described methods and apparatus, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the display control method according to various embodiments of the present application described in the "exemplary methods" section of this specification, supra.
The computer program product may be written with 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 and 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 that, 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 above of this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but 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 include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of 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, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
Claims (18)
1. A display control method comprising:
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 cache;
creating an asynchronous thread for performing the predetermined image processing;
performing the predetermined image processing on at least one part of the image to be processed through the asynchronous thread; and
and adjusting the image subjected to the predetermined image processing to obtain a final display image.
2. The display control method according to claim 1, wherein acquiring the image to be processed on which the predetermined image processing is to be performed includes:
and scaling the image to be processed according to the original size of the image to be processed to be suitable for the size of the cache.
3. The display control method according to claim 1, wherein performing predetermined image processing on at least a part of the image to be processed by the asynchronous thread includes:
cutting a required part in the image to be processed; and
and performing predetermined image processing on the required portion.
4. The display control method according to claim 1,
acquiring an image to be processed to be subjected to 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
further comprising after adjusting the image subjected to the predetermined image processing to obtain a final display image:
displaying the adjusted current image processed by the preset image; and
and storing the adjusted previous image and the adjusted next image which are subjected to the preset image processing in the cache.
5. The display control method according to claim 4, 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 next image.
6. The display control method according to any one of claims 1 to 5,
the image to be processed is a background image corresponding to a book cover image displayed on a bookshelf page in reading application.
7. The display control method according to claim 6, wherein the predetermined image processing is gaussian blur processing.
8. The display control method according to claim 7, wherein adjusting the image subjected to the predetermined image processing to obtain a final display image includes:
and cutting off the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing.
9. The display control method according to claim 8, further comprising, after clipping out a special effect of a gaussian blur edge of the image subjected to the gaussian blur processing:
and adjusting at least one of the saturation, hue and brightness of the image which cuts off the special effect of the Gaussian blur edge.
10. 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 creating unit for creating an asynchronous thread for performing predetermined image processing;
the image processing unit is used for performing preset image processing on at least one part of the image to be processed through the asynchronous thread; and
an image adjusting unit for adjusting the image subjected to the predetermined image processing to obtain a final display image.
11. The display control apparatus according to claim 10, wherein 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
and storing the adjusted previous image and the adjusted next image which are subjected to the preset image processing in the cache.
12. The display control apparatus according to claim 11, 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 next image.
13. The display control apparatus according to any one of claims 10 to 12, wherein the image to be processed is a background image corresponding to a book cover image displayed on a bookshelf page in a reading-type application.
14. The display control apparatus according to claim 13, wherein the predetermined image processing is gaussian blur processing.
15. The display control apparatus according to claim 14, wherein the image adjusting unit is configured to:
and cutting off the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing.
16. The display control apparatus of claim 15, wherein the image adjustment unit is further configured to:
after the special effect of the Gaussian blur edge of the image subjected to the Gaussian blur processing is cut off, at least one of the saturation, the hue and the brightness of the image with the special effect cut off is adjusted.
17. 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 10 to 16.
18. An electronic device, comprising:
a processor; and
a memory having stored therein computer program instructions which, when executed by the processor, cause the processor to perform the display control method of any one of claims 1-9.
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 true CN111045576A (en) | 2020-04-21 |
CN111045576B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782095A (en) * | 2020-06-15 | 2020-10-16 | 网易(杭州)网络有限公司 | Switching display method and device for display objects in visual area |
CN112488964A (en) * | 2020-12-18 | 2021-03-12 | 深圳市镜玩科技有限公司 | Image processing method for sliding list, related device, equipment and medium |
Citations (6)
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 |
-
2018
- 2018-10-11 CN CN201811184660.4A patent/CN111045576B/en active Active
Patent Citations (6)
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 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782095A (en) * | 2020-06-15 | 2020-10-16 | 网易(杭州)网络有限公司 | Switching display method and device for display objects in visual area |
CN111782095B (en) * | 2020-06-15 | 2022-02-25 | 网易(杭州)网络有限公司 | Switching display method and device for display objects in visual area |
CN112488964A (en) * | 2020-12-18 | 2021-03-12 | 深圳市镜玩科技有限公司 | Image processing method for sliding list, related device, equipment and medium |
CN112488964B (en) * | 2020-12-18 | 2024-04-16 | 深圳市镜玩科技有限公司 | Image processing method, related device, equipment and medium for sliding list |
Also Published As
Publication number | Publication date |
---|---|
CN111045576B (en) | 2023-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20160328877A1 (en) | Method and apparatus for making personalized dynamic emoticon | |
CN108228050B (en) | Picture scaling method and device and electronic equipment | |
EP2874054B1 (en) | Application text adjusting method, device, and terminal | |
WO2014046851A1 (en) | System, method and computer program for image processing, in particular for introducing blurring effects to an image | |
US9449584B2 (en) | Display control apparatus, method for controlling the same, and storage medium | |
CN108924440B (en) | Sticker display method, device, terminal and computer-readable storage medium | |
US9754350B2 (en) | Systems and methods of automatic image sizing | |
EP4329283A1 (en) | Image processing method and apparatus, and device and storage medium | |
CN109725970B (en) | Method and device for displaying application client window and electronic equipment | |
CN104123383A (en) | Method and device used in media application | |
US11190653B2 (en) | Techniques for capturing an image within the context of a document | |
WO2022194211A1 (en) | Image processing method and apparatus, electronic device and readable storage medium | |
CN110909275A (en) | Page browsing method and device and electronic equipment | |
CN111757177B (en) | Video clipping method and device | |
CN111045576B (en) | Display control method, display control device, terminal equipment and electronic equipment | |
CN110069313B (en) | Image switching method and device, electronic equipment and storage medium | |
CN107908380B (en) | Configuration-based multi-screen display method and device, terminal equipment and storage medium | |
CN112269957A (en) | Picture processing method, device, equipment and storage medium | |
US20240220567A1 (en) | Page skipping method and apparatus, and computer device and storage medium | |
JP7566937B2 (en) | Video processing method, device, apparatus and computer-readable storage medium | |
CN113379768A (en) | Image processing method, image processing device, storage medium and computer equipment | |
CN113168286A (en) | Terminal, control method for the terminal, and recording medium recording program for implementing the method | |
KR101430964B1 (en) | Method for controlling display | |
US12014019B2 (en) | Display method, apparatus and computer readable storage medium | |
US10904536B2 (en) | Frame processing method and device |
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 |