CN108287892B - Picture loading method and device and electronic equipment - Google Patents

Picture loading method and device and electronic equipment Download PDF

Info

Publication number
CN108287892B
CN108287892B CN201810049852.8A CN201810049852A CN108287892B CN 108287892 B CN108287892 B CN 108287892B CN 201810049852 A CN201810049852 A CN 201810049852A CN 108287892 B CN108287892 B CN 108287892B
Authority
CN
China
Prior art keywords
picture
processed
thumbnail
resolution
size
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
CN201810049852.8A
Other languages
Chinese (zh)
Other versions
CN108287892A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810049852.8A priority Critical patent/CN108287892B/en
Publication of CN108287892A publication Critical patent/CN108287892A/en
Application granted granted Critical
Publication of CN108287892B publication Critical patent/CN108287892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces

Abstract

The embodiment of the invention provides a method and a device for loading a picture to be processed and electronic equipment, wherein the method comprises the following steps: downloading a thumbnail of a picture to be processed according to the obtained loading instruction, obtaining a resolution parameter and a size parameter of the picture to be processed, judging whether the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or whether the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed, if the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed, performing picture enhancement on the thumbnail of the picture to be processed by using a preset picture enhancement algorithm, and loading the thumbnail of the picture to be processed after picture enhancement as the picture to be processed. By applying the method, the device and the electronic equipment for loading the picture to be processed, which are provided by the embodiment of the invention, less flow is required, and the flow can be saved for a user.

Description

Picture loading method and device and electronic equipment
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image loading method and apparatus, and an electronic device.
Background
When a user browses a webpage on the internet, the webpage shows some pictures containing specific content to the user. For example, when a shopping webpage loads a commodity picture, the shopping webpage downloads a thumbnail of the commodity picture from the network and then displays the thumbnail to the user. When a user clicks the thumbnail, the shopping webpage downloads the picture with the highest resolution corresponding to the thumbnail from the network, then loads the picture to the position corresponding to the shopping webpage, and displays the picture to the user. Through the picture loading mode, the user can see the clearest picture. However, this loading method has two downloading processes, which results in a high user traffic overhead and a long time-consuming picture loading process.
In order to solve the above problems, the mainstream solutions at present are: fresco is taken as a picture loading frame, wherein Fresco is an opening source frame issued by Facebook. The cache in the open source frame is divided into a disk cache and a memory cache, wherein the memory cache is divided into a Bitmap (Bitmap file) cache and a memory cache of an undecoded picture. In order to enable the user to see the clearest picture when clicking on the thumbnail picture. When the picture is loaded in the webpage, the picture is firstly searched in the cache, if the picture cannot be searched, the picture with the highest resolution ratio is downloaded to the cache, and the thumbnail of the picture is displayed to a user. When a user needs to check the picture with the highest resolution, the user clicks the thumbnail of the picture, the browser receives a loading instruction for loading the picture with the highest resolution corresponding to the picture by the user, and the browser reads the picture from the cache and displays the picture with the highest resolution to the user.
However, if the user browses the web page, when the user clicks the thumbnail of the picture on the web page, the browser receives a loading instruction for the user to load the picture with the highest resolution corresponding to the picture, and the browser needs to download the picture with the highest resolution, so that the consumed flow is large.
Disclosure of Invention
The embodiment of the invention aims to provide a picture loading method, a picture loading device and electronic equipment, so as to achieve the purpose of saving user traffic. The specific technical scheme is as follows:
the embodiment of the invention provides a method for loading a picture to be processed, which comprises the following steps:
downloading a thumbnail of a picture to be processed according to the obtained loading instruction, and obtaining a resolution parameter and a size parameter of the picture to be processed;
judging whether the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or whether the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed;
if the resolution of the picture to be processed is larger than the resolution of the thumbnail of the picture to be processed, and/or the size of the picture to be processed is larger than the size of the thumbnail of the picture to be processed, performing picture enhancement processing on the thumbnail of the picture to be processed by using a preset picture enhancement algorithm;
and loading the thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
Optionally, in a specific implementation manner of the embodiment of the present invention, before downloading the thumbnail of the picture to be processed according to the obtained loading instruction, the method further includes:
searching a picture corresponding to the picture to be processed in an internal memory cache according to the obtained loading instruction;
if the picture corresponding to the picture to be processed is not found in the memory cache, searching the picture corresponding to the picture to be processed in a hard disk cache according to the loading instruction;
if the picture corresponding to the picture to be processed is found in the hard disk cache, and the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed; taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed, and executing the step of performing picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm;
or if the picture corresponding to the picture to be processed is found in the hard disk cache, and the resolution of the picture corresponding to the picture to be processed is not smaller than the resolution of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is not smaller than the size of the picture to be processed, taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed after picture enhancement processing, and executing the step of loading the thumbnail of the picture to be processed after picture enhancement processing as the picture to be processed;
and if the picture corresponding to the picture to be processed is not found in the hard disk cache, executing the step of downloading the thumbnail of the picture to be processed according to the obtained loading instruction.
Optionally, in a specific implementation manner of the embodiment of the present invention, in a case that the picture corresponding to the to-be-processed picture is found in the memory cache, the method further includes:
searching a picture corresponding to the picture to be processed in a Bitmap cache;
if the picture corresponding to the picture to be processed is found in the Bitmap cache, the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, the picture corresponding to the picture to be processed is used as a thumbnail of the picture to be processed, and the thumbnail of the picture to be processed and the loading instruction are sent to a memory cache of an undecoded picture so that the Bitmap cache executes the picture enhancement algorithm by using the preset picture enhancement algorithm to perform the picture enhancement processing on the thumbnail of the picture to be processed;
or if the picture corresponding to the picture to be processed is found in the Bitmap cache, and the resolution of the picture corresponding to the picture to be processed is not smaller than the resolution of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is not smaller than the size of the picture to be processed, taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed after picture enhancement processing, and executing the step of loading the thumbnail of the picture to be processed after picture enhancement processing as the picture to be processed;
or if the picture corresponding to the picture to be processed is not found in the Bitmap cache, according to the loading instruction, the picture corresponding to the picture to be processed is found in the memory cache of the undecoded picture;
if the picture corresponding to the picture to be processed is found in the memory cache of the undecoded picture, the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, the picture corresponding to the picture to be processed is used as a thumbnail of the picture to be processed, and the thumbnail of the picture to be processed and the loading instruction are sent to a hard disk cache so that the hard disk cache executes the picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm;
or if the picture corresponding to the picture to be processed is found in the memory cache of the undecoded picture, and the resolution of the picture corresponding to the picture to be processed is not smaller than the resolution of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is not smaller than the size of the picture to be processed, taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed after picture enhancement processing, and executing the step of loading the thumbnail of the picture to be processed after picture enhancement processing as the picture to be processed;
or if the picture corresponding to the picture to be processed is not found in the memory cache of the undecoded picture, executing the step of finding the picture corresponding to the picture to be processed in the hard disk cache.
Optionally, in a specific implementation manner of the embodiment of the present invention, the method further includes:
storing the thumbnail of the picture to be processed after the picture enhancement processing into an internal memory cache and a hard disk cache of an undecoded picture;
and storing the decoded thumbnail subjected to the picture enhancement processing into a Bitmap cache.
Optionally, in a specific implementation manner of the embodiment of the present invention, the performing, by using a preset picture enhancement algorithm, picture enhancement processing on the thumbnail of the picture to be processed includes:
taking the added value of the resolution of the picture to be processed relative to the resolution of the thumbnail of the picture to be processed and the added value of the size of the picture to be processed relative to the size of the picture to be processed as picture enhancement parameters;
and taking the picture enhancement parameters as parameters of a preset picture enhancement algorithm, and carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing the preset picture enhancement algorithm.
Optionally, in a specific implementation manner of the embodiment of the present invention, the loading, as the to-be-processed picture, the thumbnail of the to-be-processed picture after the picture enhancement processing includes:
decoding the thumbnail of the picture to be processed after the picture enhancement processing;
and loading the thumbnail of the decoded picture to be processed after the picture enhancement processing as the picture to be processed.
The embodiment of the invention also provides a device for loading the picture to be processed, which comprises: a download module, a judgment module, an enhancement module and a first setting module, wherein,
the downloading module is used for downloading the thumbnail of the picture to be processed according to the obtained loading instruction and obtaining the resolution parameter and the size parameter of the picture to be processed;
the judging module is used for judging whether the resolution of the picture to be processed is greater than the thumbnail resolution of the picture to be processed and/or whether the size of the picture to be processed is greater than the thumbnail size of the picture to be processed;
the enhancement module is used for carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm under the condition that the judgment result of the judgment module is yes;
the first setting module is used for loading the thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
Optionally, in a specific implementation manner of the embodiment of the present invention, the apparatus further includes: a first search module, a second setting module, and a third setting module, wherein,
the first searching module is used for searching a picture corresponding to the picture to be processed in a memory cache according to the obtained loading instruction;
the second searching module is configured to search for the picture corresponding to the picture to be processed in a hard disk cache according to the loading instruction under the condition that the picture corresponding to the picture to be processed is not found in the memory cache;
the second setting module is used for finding the picture corresponding to the picture to be processed in the hard disk cache, and the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed; taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed, and triggering the enhancement module;
and the third setting module is used for searching the picture corresponding to the picture to be processed in the hard disk cache, taking the picture corresponding to the picture to be processed as the thumbnail of the picture to be processed after the picture enhancement processing under the condition that the resolution of the picture corresponding to the picture to be processed is not smaller than the resolution of the picture to be processed and/or the size of the picture corresponding to the picture to be processed is not smaller than the size of the picture to be processed, and triggering the first setting module.
The downloading module is specifically configured to execute the step of downloading the thumbnail of the picture to be processed according to the obtained loading instruction if the picture corresponding to the picture to be processed is not found in the hard disk cache.
Optionally, in a specific implementation manner of the embodiment of the present invention, the apparatus further includes: a third searching module, a fourth setting module, a fifth setting module, a fourth searching module, a sixth setting module and a seventh setting module, wherein,
the third searching module is used for searching the picture corresponding to the picture to be processed in the Bitmap cache;
the fourth setting module is configured to, when the picture corresponding to the to-be-processed picture is found in a Bitmap cache, and the picture resolution corresponding to the to-be-processed picture is smaller than the resolution of the to-be-processed picture, and/or the picture size corresponding to the to-be-processed picture is smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture, and send the thumbnail of the to-be-processed picture and the loading instruction to a memory cache of an un-decoded picture so that the memory cache of the un-decoded picture triggers the enhancement module;
the fifth setting module is configured to, in the Bitmap cache, find the picture corresponding to the to-be-processed picture, and when the picture resolution corresponding to the to-be-processed picture is not smaller than the resolution of the to-be-processed picture and/or the picture size corresponding to the to-be-processed picture is not smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture after picture enhancement processing, and trigger the first setting module;
the fourth searching module is used for searching the picture corresponding to the picture to be processed in the memory cache of the undecoded picture according to the loading instruction under the condition that the picture corresponding to the picture to be processed is not searched in the Bitmap cache;
the sixth setting module is configured to, in a memory cache of an undecoded picture, find the picture corresponding to the to-be-processed picture, and when the picture resolution corresponding to the to-be-processed picture is smaller than the resolution of the to-be-processed picture and/or the picture size corresponding to the to-be-processed picture is smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture, and send the thumbnail of the to-be-processed picture and the loading instruction to a hard disk cache, so that the hard disk cache triggers the enhancement module;
the seventh setting module is configured to, in a case that the picture corresponding to the to-be-processed picture is found in the memory cache of the undecoded picture, and the resolution of the picture corresponding to the to-be-processed picture is not smaller than the resolution of the to-be-processed picture, and/or the size of the picture corresponding to the to-be-processed picture is not smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture after picture enhancement processing, and trigger the first setting module;
the second searching module is specifically configured to execute the step of searching the picture corresponding to the picture to be processed in the hard disk cache when the picture corresponding to the picture to be processed is not found in the memory cache of the undecoded picture.
Optionally, in a specific implementation manner of the embodiment of the present invention, the apparatus further includes: a first memory module and a second memory module, wherein,
the first storage module is used for storing the thumbnail of the picture to be processed after the picture enhancement processing into the memory cache and the hard disk cache of the undecoded picture;
and the second storage module is used for storing the decoded thumbnail subjected to the picture enhancement processing into a Bitmap cache.
Optionally, in a specific implementation manner of the embodiment of the present invention, the enhancement module includes: a first setup submodule and an enhancement submodule, wherein,
the first setting sub-module is used for taking an increased value of the resolution of the picture to be processed relative to the resolution of the thumbnail of the picture to be processed and an increased value of the size of the picture to be processed relative to the size of the picture to be processed as picture enhancement parameters;
and the enhancement submodule is used for taking the picture enhancement parameters as parameters of a preset picture enhancement algorithm and carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing the preset picture enhancement algorithm.
Optionally, in a specific implementation manner of the embodiment of the present invention, the first setting module includes: a decoding sub-module and a second setting sub-module, wherein,
the decoding submodule is used for decoding the thumbnail of the picture to be processed after the picture enhancement processing;
and the second setting sub-module is used for loading the decoded thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
The embodiment of the invention also provides electronic equipment which is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the to-be-processed picture loading methods when executing the program stored in the memory.
In another aspect of the present invention, there is also provided a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute any one of the above-mentioned to-be-processed picture loading methods.
In another aspect of the present invention, an embodiment of the present invention further provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the above-mentioned to-be-processed picture loading methods.
By applying the method, the device and the electronic equipment for loading the picture to be processed, the thumbnail of the picture to be processed is acquired from the network, when the picture to be processed needs to be loaded, the thumbnail of the picture to be processed is enhanced by using the picture enhancement algorithm, and the picture to be processed is further acquired. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a first method for loading a to-be-processed picture according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a pending picture loading method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating another pending picture loading method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a second method for loading a to-be-processed picture according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a third method for loading a to-be-processed picture according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a method for enhancing a picture according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of a method for loading a thumbnail of a to-be-processed picture after picture enhancement according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a first to-be-processed picture loading apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a second to-be-processed picture loading apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a third to-be-processed picture loading apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In the prior art, the user can see the clearest picture when clicking the thumbnail picture. When the webpage loads the picture to be processed, downloading a picture with the highest resolution of the picture to be processed, and displaying the thumbnail of the picture to be processed to a user. When a user needs to view a picture with the highest resolution of a picture to be processed, the user clicks a thumbnail of the picture to be processed, the electronic device 11 where the browser is located receives a loading instruction of the user to load the picture with the highest resolution corresponding to the picture to be processed, the electronic device 11 where the browser is located downloads the picture with the highest resolution of the picture to be processed from the network server 12, and the picture with the highest resolution of the picture to be processed is displayed to the user. However, if the user browses the web page, when the user clicks the thumbnail of the to-be-processed picture, the browser receives a loading instruction for the user to load the picture with the highest resolution corresponding to the to-be-processed picture, and the browser needs to download the picture with the highest resolution of the to-be-processed picture, so that the consumed flow is large. In order to solve the problem of the prior art, an embodiment of the present invention provides a method, an apparatus, and an electronic device for loading a to-be-processed picture, where fig. 1 is an application scene schematic diagram of an embodiment of the present invention, as shown in fig. 1, when a user clicks a thumbnail, an electronic device 11 where a browser is located downloads a thumbnail a-1 of a to-be-processed picture a from a network server 12, and then determines whether the size of the to-be-processed picture a is larger than the size of the thumbnail a-1, or determines whether the resolution of the to-be-processed picture a is larger than the resolution of the thumbnail a-1, when the size of the to-be-processed picture a is larger than the size of the thumbnail a-1, and/or when the resolution of the to-be-processed picture a is larger than the resolution of the thumbnail a-1, the thumbnail a-1 of the to-be-processed picture a is enhanced by using a picture enhancement algorithm, so as to obtain the to-be-processed picture a, compared with the picture with the highest resolution ratio needing to be downloaded in the prior art, the method has the advantages that the required flow is less, and the flow can be saved for the user.
The embodiment of the invention provides a to-be-processed picture loading method, a to-be-processed picture loading device and electronic equipment, and firstly introduces the to-be-processed picture recording method provided by the embodiment of the invention.
Fig. 2 is a schematic flowchart of a first method for loading a to-be-processed picture according to an embodiment of the present invention, and fig. 3 is a schematic diagram of a principle of the method for loading the to-be-processed picture according to the embodiment of the present invention; as shown in fig. 2 and 3, the method includes:
s201: and downloading the thumbnail of the picture to be processed according to the obtained loading instruction, and obtaining the resolution parameter and the size parameter of the picture to be processed.
Illustratively, when the user browses a web page, for example, when shopping on the web, the electronic device 11, such as a mobile phone, a computer, etc., displays the thumbnail a-1 of the to-be-processed picture a at the position of the to-be-processed picture a. If the user is interested in the content corresponding to the thumbnail A-1 of the picture A to be processed, the user clicks the thumbnail A-1 to observe the details of the thumbnail A-1, the clicking behavior of the user can be used as a loading instruction, and the loading instruction can be a picture loading request. The size of the to-be-processed picture a set by the webpage is inconsistent with the size of the thumbnail a-1, and the resolution of the to-be-processed picture a set by the webpage is inconsistent with the resolution of the thumbnail a-1, so that the resolution parameter and the size parameter of the to-be-processed picture a also need to be acquired.
It can be understood that when the user opens the web page, the web page loads the thumbnail a-1 of the picture a to be processed, but does not load a high-definition picture or a picture with the highest resolution or a picture with the largest size of the picture to be processed.
In practical application, the process of acquiring the loading instruction can be completed by the picture request module; the process of downloading the thumbnail of the picture to be processed can be realized by a network downloading module, and the thumbnail of the picture to be processed can be obtained from a network. The process of fetching a load instruction may be implemented by the following code:
void request(Image Request request);
the process of downloading the thumbnail of the picture to be processed can be realized by the following codes:
EncodedImage newNetworkFetchProducer(ImageRequest request)。
s202: and judging whether the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or whether the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed, if the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed, executing step 203, if the resolution of the picture to be processed is not greater than the resolution of the thumbnail of the picture to be processed and/or the size of the picture to be processed is not greater than the size of the thumbnail of the picture to be processed, executing step 205, and ending.
Illustratively, according to the resolution parameter and the size parameter of the to-be-processed picture a acquired in step S201, the determination manner in step S202 includes the following three ways:
comparing the resolution of the picture A to be processed with the resolution of the thumbnail A-1, and judging whether the resolution of the picture A to be processed is greater than the resolution of the thumbnail A-1;
comparing the size of the picture A to be processed with the size of the thumbnail A-1, and judging whether the size of the picture A to be processed is larger than the size of the thumbnail A-1;
and thirdly, comparing the resolution of the picture A to be processed with the resolution of the thumbnail A-1, then comparing the size of the picture A to be processed with the size of the thumbnail A-1, and judging whether the size of the picture A to be processed is larger than the size of the thumbnail A-1 or not under the condition that the resolution of the picture A to be processed is larger than the resolution of the thumbnail A-1.
If any of the three determination methods is yes, step S203 is executed, otherwise step S205 is executed.
For example, if the resolution of the to-be-processed picture a obtained in step S201 is 1000 × 1000, the size is 50 × 50 mm. And the resolution of the thumbnail is 300 × 300, and the size is 30 × 30mm, then the resolution of the to-be-processed picture a is greater than that of the thumbnail a-1, and step S203 is executed.
In practical applications, the process of step S202 may be completed by the hard disk cache module.
It can be understood that the judgment of whether the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or whether the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed means that whether enhancement processing needs to be performed on the thumbnail of the picture to be processed.
S203: and carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm.
Illustratively, the thumbnail A-1 is subjected to picture enhancement by using a picture enhancement algorithm so as to enhance the thumbnail to the same size and/or resolution as the picture A to be processed, so as to obtain an enhanced picture A-2 of the thumbnail A-1.
For example, the resolution of thumbnail a-1 may be enhanced to 1000 x 1000; or enhance the size of thumbnail a-1 to 50 x 50 mm; or enhance the size of thumbnail a-1 to 50 x 50mm while enhancing the resolution of thumbnail a-1 to 1000 x 1000.
In practical applications, a picture enhancer may be used to perform picture enhancement processing on the thumbnail of the picture to be processed. In addition, it may be the prior art to enhance the picture by using the picture enhancement algorithm, which is not described herein again, and the picture enhancement algorithm includes, but is not limited to, a logarithmic picture enhancement algorithm and an exponential picture enhancement algorithm.
S204: and taking the thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed for loading.
Illustratively, the enhanced picture A-2 of the thumbnail A-1 is loaded as the picture A to be processed and displayed to the user. It can be understood that displaying the to-be-processed picture a to the User means performing UI rendering on the to-be-processed picture a obtained in this step, and rendering the enhanced picture a-2 of the thumbnail a-1 as the to-be-processed picture a to a UI (User Interface) by the renderer.
By applying the embodiment shown in fig. 2 of the invention, the thumbnail of the picture to be processed is obtained from the network, and when the picture to be processed needs to be loaded, the thumbnail of the picture to be processed is enhanced by using the picture enhancement algorithm, so that the picture to be processed is obtained.
The process of loading the thumbnail of the picture to be processed can be realized by the following codes:
void magnifierAI(EncodedImage image)。
in order to solve the problem of the prior art, the embodiment of the invention also provides a second to-be-processed picture loading method.
Fig. 4 is a schematic diagram illustrating another method for loading a to-be-processed picture according to an embodiment of the present invention, as shown in fig. 4, in which an electronic device determines, according to a received picture loading request, whether or not picture enhancement is required to be performed on a picture corresponding to a to-be-processed picture a if the picture corresponding to the to-be-processed picture a is searched in a Bitmap cache, and if picture enhancement is not required, decodes the picture corresponding to the to-be-processed picture a and then renders a UI to display the UI to a user; if the picture is required to be enhanced and the picture is not enhanced, sending the picture corresponding to the picture A to be processed to the memory cache of the undecoded picture to enhance the picture corresponding to the picture A to be processed; if picture enhancement is needed and the picture is subjected to picture enhancement, the picture corresponding to the picture A to be processed is decoded and then UI rendering is carried out to display the picture to a user.
If the picture corresponding to the picture A to be processed does not exist in the Bitmap cache, sending a loading request to a memory cache of an undecoded picture, searching whether the picture corresponding to the picture A to be processed exists in the memory cache of the undecoded picture, judging whether picture enhancement needs to be carried out on the picture corresponding to the picture A to be processed or not if the picture enhancement does not need to be carried out, converting the picture corresponding to the picture A to be processed into a Bitmap picture, decoding the Bitmap picture, and carrying out UI rendering on the decoded Bitmap picture to display the Bitmap picture to a user; if the picture is required to be enhanced and the picture is not enhanced, enhancing the picture corresponding to the picture A to be processed; if picture enhancement is needed and the picture is subjected to picture enhancement, converting the picture corresponding to the picture A to be processed into a Bitmap picture, then decoding, storing the decoded Bitmap picture into a Bitmap cache, and then performing UI rendering and displaying to a user.
If the picture corresponding to the picture A to be processed exists in the hard disk cache, judging whether picture enhancement needs to be carried out on the picture corresponding to the picture A to be processed or not, if the picture enhancement does not need to be carried out, converting the picture corresponding to the picture A to be processed into a bitmap picture, decoding the bitmap picture, and carrying out UI rendering on the decoded bitmap picture and displaying the bitmap picture to a user; if the picture is required to be enhanced and the picture is not enhanced, enhancing the picture corresponding to the picture A to be processed; if the picture needs to be enhanced and the picture is enhanced, the picture A to be processed and the picture A are converted into a bitmap picture, decoding is carried out, and UI rendering is carried out on the decoded bitmap picture to display the bitmap picture to a user.
If the picture corresponding to the picture A to be processed does not exist in the hard disk cache, obtaining the picture corresponding to the picture A to be processed from the network; judging whether picture enhancement needs to be carried out on the picture corresponding to the picture A to be processed or not, if picture enhancement does not need to be carried out, storing the picture corresponding to the picture A to be processed into a hard disk cache and a memory cache, then converting the picture into a Bitmap picture, decoding the Bitmap picture, storing the decoded Bitmap picture into a Bitmap cache, and then carrying out UI rendering and displaying to a user; and if the picture enhancement is needed, carrying out the picture enhancement on the picture corresponding to the picture A to be processed.
Fig. 5 is a flowchart illustrating a second method for loading a to-be-processed picture according to an embodiment of the present invention, and as shown in fig. 5, on the basis of the embodiment shown in fig. 2 of the present invention, in the embodiment shown in fig. 5, before step S201, the following steps are added:
s205: and searching the picture corresponding to the picture to be processed in the memory cache according to the acquired loading instruction.
And searching a picture A-3 corresponding to the picture A to be processed in a memory cache of the electronic equipment according to the acquired loading instruction. If the picture a-3 corresponding to the picture a to be processed is not found in the memory cache, the step S206 is executed.
It can be understood that the picture a-3 corresponding to the picture a to be processed is a picture containing the same content. For example, if the picture a to be processed shows a lady yellow chang style coat, the picture a-3 corresponding to the picture a to be processed also contains a lady yellow chang style coat. In practical applications, the resolution of the picture a-3 corresponding to the picture a to be processed may be different from that of the picture a to be processed, for example, the resolution of the picture a-3 corresponding to the picture a to be processed may be greater than that of the picture a to be processed, the resolution of the picture a-3 corresponding to the picture a to be processed may be the same as that of the picture a to be processed, and the resolution of the picture a to be processed may be smaller than that of the picture a to be processed. Similarly, the size of the picture a-3 corresponding to the picture a to be processed may be different from the picture a to be processed, for example, the size of the picture a-3 corresponding to the picture a to be processed may be larger than the size of the picture a to be processed, the size of the picture a-3 corresponding to the picture a to be processed may be the same as the size of the picture a to be processed, and the size of the picture a to be processed may be smaller than the size of the picture a to be processed.
It should be noted that, when searching whether the picture corresponding to the picture a to be processed exists in the memory cache, the process may be completed by the memory cache module.
As shown in fig. 4, in step S205, if the picture a-3 corresponding to the picture a to be processed is found in the memory cache of the electronic device according to the obtained load instruction. If the picture A-3 corresponding to the picture A to be processed is found in the memory cache, the method further comprises the following steps:
it should be noted that the memory cache includes a Bitmap cache and a memory cache of an undecoded picture, which are collectively referred to as a memory cache in this step. In practical application, when the thumbnail corresponding to the picture a to be processed is searched in the memory cache of the electronic device, the searching may be performed according to the steps S2011-S2016.
S2011 (not shown in the figure): searching a picture corresponding to the picture to be processed in a Bitmap cache;
if the picture A-3 corresponding to the picture to be processed is not found in the Bitmap cache, executing step S2014; and if the picture A-3 corresponding to the picture to be processed is found in the Bitmap cache, executing the step S2012 or the step S2013.
And if the picture A-3 corresponding to the picture to be processed is found in the Bitmap cache, and the resolution of the picture A-3 corresponding to the picture to be processed is smaller than that of the picture A to be processed, and/or the size of the picture A-3 corresponding to the picture to be processed is smaller than that of the picture A to be processed, executing the step S2012.
And if the picture A-3 corresponding to the picture to be processed is found in the Bitmap cache, and the resolution of the picture A-3 corresponding to the picture to be processed is not less than the resolution of the picture A to be processed, and/or the size of the picture A-3 corresponding to the picture to be processed is not less than the size of the picture A to be processed, executing the step S2013. The process of searching the picture corresponding to the picture to be processed in the Bitmap cache can be realized by the following codes:
Bitmap newBitmapMemoryCacheGetProducer(ImageRequest request)。
s2012 (not shown in the figure): and taking the picture corresponding to the picture to be processed as the thumbnail of the picture to be processed, and sending the thumbnail of the picture to be processed and the loading instruction to the memory cache of the undecoded picture so as to enable the memory cache of the undecoded picture to execute the step S203.
And taking the picture A-3 corresponding to the picture to be processed as the thumbnail A-1 of the picture A to be processed, and sending the thumbnail A-1 and the loading instruction to the memory cache of the picture which is not decoded so as to enable the memory cache of the picture which is not decoded to carry out picture enhancement on the thumbnail A-1 of the picture A to be processed.
In practical application, after the application showing the picture a to be processed to the user is closed, the system of the electronic device may clear the Bitmap cache in the electronic device and the cache in the memory cache of the undecoded picture, so that the memory cache of the undecoded picture may send the thumbnail of the picture to be processed and the loading instruction to the hard disk cache, so as to perform picture enhancement on the thumbnail a-1 of the picture a to be processed in the hard disk cache.
It is understood that the execution process of step S203 in this step is identical to the execution process of step S203 described above, and is not described here again.
S2013 (not shown in the figure): and taking the picture corresponding to the picture to be processed as the thumbnail of the picture to be processed after the picture enhancement processing, and executing the step S204.
And taking the picture A-3 corresponding to the picture to be processed as a thumbnail of the picture A to be processed after the picture enhancement processing, and executing the step S204.
It is understood that the execution process of step S204 in this step is identical to the execution process of step S204, and is not described here again.
S2014 (not shown in the figure): according to the loading instruction, searching a picture corresponding to the picture to be processed in the memory cache of the undecoded picture;
it is to be understood that the load instruction acquired in this step is sent from the Bitmap cache in step S2011.
If the picture corresponding to the picture to be processed is found in the memory cache of the undecoded picture, and the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, the step S2015 is executed. If the picture corresponding to the picture to be processed is found in the memory cache of the undecoded picture, and the resolution of the picture corresponding to the picture to be processed is not less than the resolution of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is not less than the size of the picture to be processed, the step S2016 is executed.
And if the picture corresponding to the picture to be processed is not found in the memory cache of the undecoded picture, executing the step of finding the picture corresponding to the picture to be processed in the hard disk cache.
Searching the picture corresponding to the picture to be processed in the memory cache of the undecoded picture can be realized by the following codes:
ByteBuffer newEncodedMemoryCacheProducer(ImageRequest request)。
s2015 (not shown in the figure): and taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed, and sending the thumbnail of the picture to be processed and the loading instruction to the hard disk cache so as to enable the hard disk cache to execute the step S203.
And taking the picture A-3 corresponding to the picture to be processed as a thumbnail A-1 of the picture A to be processed, and sending the thumbnail A-1 and the loading instruction to the hard disk cache so that the hard disk cache performs picture enhancement processing on the thumbnail A-1 of the picture A to be processed.
It is understood that the execution process of step S203 in this step is identical to the execution process of step S203 described above, and is not described here again.
S2016 (not shown): and taking the picture corresponding to the picture to be processed as the thumbnail of the picture to be processed after the picture enhancement processing, and executing the step S204.
And taking the picture A-3 corresponding to the picture to be processed as a thumbnail of the picture A to be processed after the picture enhancement processing, and executing the step S204.
It is understood that the execution process of step S204 in this step is identical to the execution process of step S204, and is not described here again.
It should be noted that, when searching whether a picture corresponding to the picture a to be processed exists in the Bitmap cache and the memory cache of the undecoded picture, the process may be completed by the memory cache module, and the Bitmap cache and the memory cache of the undecoded picture belong to different parts in the memory cache, which may be collectively referred to as memory caches.
S206: and searching the picture corresponding to the picture to be processed in the hard disk cache according to the loading instruction.
Illustratively, according to the obtained loading instruction, a picture a-3 corresponding to the picture a to be processed is searched in a hard disk cache of the electronic device. If the picture corresponding to the picture to be processed is not found in the hard disk cache, executing the step S201; and if the picture corresponding to the picture to be processed is found in the hard disk cache, executing the step S207 or S208.
And if the picture A-3 corresponding to the picture to be processed is found in the hard disk cache, and the resolution of the picture A-3 corresponding to the picture to be processed is smaller than that of the picture A to be processed, and/or the size of the picture A-3 corresponding to the picture to be processed is smaller than that of the picture A to be processed, executing the step S207.
And if the picture A-3 corresponding to the picture to be processed is found in the hard disk cache, and the resolution of the picture A-3 corresponding to the picture to be processed is not less than the resolution of the picture A to be processed, and/or the size of the picture A-3 corresponding to the picture to be processed is not less than the size of the picture A to be processed, executing the step S208.
It can be understood that the picture a-3 corresponding to the picture a to be processed is a picture containing the same content. For example, if the picture a to be processed shows a lady yellow chang style coat, the picture a-3 corresponding to the picture a to be processed also contains a lady yellow chang style coat. In practical applications, the term "hard disk" may refer to: a mechanical hard disk, a solid state disk, an SD Card (Secure Digital Memory Card), a TF Card (Trans-flash Card), and the like can support a storage device that can not lose stored data after the device is powered off.
It should be noted that, when searching whether a picture corresponding to the picture a to be processed exists in the hard disk, the process may be completed by the hard disk cache module. The process of searching the picture corresponding to the picture to be processed in the hard disk cache can be realized by the following codes:
EncodedImage newDiskCacheProducer(ImageRequest request)。
s207: and taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed, and executing the step S203.
For example, since the resolution of the picture a-3 corresponding to the picture to be processed is smaller than the resolution of the picture a to be processed, and/or the size of the picture a-3 corresponding to the picture to be processed is smaller than the size of the picture a to be processed, if the picture a-3 corresponding to the picture to be processed is directly displayed, the user experience may be reduced, and therefore, the picture a-3 corresponding to the picture to be processed is subjected to picture enhancement. It is necessary to take the picture a-3 corresponding to the picture to be processed as the thumbnail a-1 of the picture a to be processed and perform the step S203.
It is understood that the execution process of step S203 in this step is identical to the execution process of step S203 described above, and is not described here again.
S208: and taking the picture corresponding to the picture to be processed as the thumbnail of the picture to be processed after the picture enhancement processing, and executing the step S204.
Illustratively, since the resolution of the picture a-3 corresponding to the picture to be processed is not less than the resolution of the picture a to be processed, and/or the size of the picture a-3 corresponding to the picture to be processed is not less than the size of the picture a to be processed, the picture a-3 corresponding to the picture to be processed is directly displayed, which does not reduce user experience, and therefore, the picture a-3 corresponding to the picture to be processed does not need to be enhanced. The picture a-3 corresponding to the picture to be processed may be directly taken as the thumbnail a-1 of the picture a to be processed after the image enhancement processing, and the step S204 is performed.
It is understood that the execution process of step S204 in this step is identical to the execution process of step S204, and is not described here again.
By applying the embodiment shown in fig. 5 of the present invention, before downloading the thumbnail of the picture to be processed, whether the picture corresponding to the picture to be processed exists is searched in the memory cache of the electronic device, and if the picture corresponding to the picture to be processed exists, the thumbnail of the picture to be processed does not need to be downloaded from the network, so that the traffic consumption of the user can be reduced. In addition, when the picture corresponding to the picture to be processed existing in the memory cache is used, the picture is directly read from the memory cache of the electronic equipment, and compared with the method for acquiring the thumbnail of the picture to be processed from the network, the method can reduce the reaction time, improve the speed of displaying the picture to be processed and further improve the user experience.
In order to solve the problem of the prior art, the embodiment of the invention also provides a third method for loading the picture to be processed.
Fig. 6 is a schematic flow chart of a third method for loading a to-be-processed picture according to an embodiment of the present invention, and as shown in fig. 6, the embodiment shown in fig. 6 of the present invention adds the following steps on the basis of the embodiment shown in fig. 2 of the present invention:
s209: and storing the thumbnail of the picture to be processed after the picture enhancement processing into the memory cache and the hard disk cache of the undecoded picture.
And storing the thumbnail A-1 of the picture A to be processed after the picture enhancement processing in the step S203 in the memory cache and the hard disk cache of the undecoded picture.
S2010: and storing the decoded thumbnail subjected to the picture enhancement processing into a Bitmap cache.
And decoding the thumbnail A-1 of the picture A to be processed after the picture enhancement processing is carried out in the step S203 to obtain a picture A-4, and storing the picture A-4 into a Bitmap cache.
In practical application, the thumbnail A-1 can be subjected to picture conversion, and after the picture is converted into a Bitmap picture, the decoded Bitmap picture corresponding to the thumbnail A-1 is stored in a Bitmap cache.
By applying the embodiment shown in fig. 6 of the present invention, the thumbnail of the to-be-processed picture after enhancement processing in the picture can be stored in the memory cache and the hard disk cache, and can be directly called when being used next time, so that the loading speed of displaying the to-be-processed picture is increased, and the user experience is improved.
Fig. 7 is a flowchart illustrating a picture enhancement processing method according to an embodiment of the present invention, as shown in fig. 7, the step S203 may include steps S203A and S203B, wherein,
S203A: and taking the added value of the resolution of the picture to be processed relative to the resolution of the thumbnail of the picture to be processed and the added value of the size of the picture to be processed relative to the size of the picture to be processed as picture enhancement parameters.
Illustratively, the ratio of the resolution of the picture a to be processed to the thumbnail a-1 of the picture a to be processed can be calculated according to the resolution of the picture a to be processed and the resolution of the thumbnail a-1 of the picture a to be processed, and similarly, the ratio of the size of the picture a to be processed to the thumbnail a-1 of the picture a to be processed can also be calculated. Calculating the added value of the resolution ratio according to the calculated resolution ratio of the thumbnail A-1 of the picture A to be processed relative to the picture A to be processed; similarly, the size increase value is calculated according to the ratio of the size of the to-be-processed picture A relative to the thumbnail A-1 of the to-be-processed picture A, and then the resolution increase value and/or the size increase value are/is used as the picture enhancement parameters.
For example, if the ratio of the resolution of the picture a to be processed to the resolution of the thumbnail a-1 is 1.5, the resolution of the picture a to be processed to the thumbnail a-1 is increased by 1.5-1 to 0.5 times; similarly, the size increase value of the picture a to be processed relative to the thumbnail a-1 can be calculated, and then the resolution increase value and/or the size increase value can be used as the picture enhancement parameter.
In practical application, the difference of the resolution of the picture a to be processed relative to the thumbnail a-1 of the picture a to be processed can be calculated according to the resolution of the picture a to be processed and the resolution of the thumbnail a-1 of the picture a to be processed, and similarly, the difference of the size of the picture a to be processed relative to the thumbnail a-1 of the picture a to be processed can be calculated. And taking the difference value as an image enhancement parameter. And the calculated resolution ratio of the picture A to be processed relative to the thumbnail A-1 of the picture A to be processed and/or the ratio of the size of the picture A to be processed relative to the thumbnail A-1 of the picture A to be processed can be used as picture enhancement parameters.
S203B: and taking the picture enhancement parameters as the parameters of a preset picture enhancement algorithm, and carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing the preset picture enhancement algorithm.
Illustratively, the picture enhancement parameters acquired in the step S203A are used as parameters of a preset picture enhancement algorithm, and the thumbnail a-1 of the picture to be processed is subjected to picture enhancement by using the picture enhancement algorithm.
By applying the embodiment of the invention, the thumbnail of the picture to be processed can be enhanced.
Fig. 8 is a flowchart illustrating a method for loading a thumbnail of a to-be-processed picture after picture enhancement according to an embodiment of the present invention, as shown in fig. 8, step S204 may include steps S204A and S204B, wherein,
S204A: and decoding the thumbnail of the picture to be processed after the picture enhancement processing.
Illustratively, a thumbnail A-1 of the picture A to be processed after the picture enhancement processing is decoded by using a picture decoding algorithm, so as to obtain a decoded picture A-5.
It can be understood that the process of decoding a picture by using a picture decoding algorithm is prior art and is not described herein again.
S204B: and loading the thumbnail of the decoded picture to be processed after the picture enhancement processing as the picture to be processed.
Illustratively, the picture a-5 obtained in step S204A is loaded as the picture a to be processed.
By applying the embodiment of the invention, the picture to be processed can be loaded.
Corresponding to the embodiment of fig. 2 of the present invention, the present invention further provides a first device for loading a to-be-processed picture.
Fig. 9 is a schematic structural diagram of a first to-be-processed picture loading apparatus according to an embodiment of the present invention, and as shown in fig. 9, the apparatus includes: a download module 901, a determination module 902, an enhancement module 903, and a first setup module 904, wherein,
the downloading module 901 is configured to download a thumbnail of a to-be-processed picture according to the obtained loading instruction, and obtain a resolution parameter and a size parameter of the to-be-processed picture;
the determining module 902 is configured to determine whether the resolution of the to-be-processed picture is greater than the thumbnail resolution of the to-be-processed picture, and/or whether the size of the to-be-processed picture is greater than the thumbnail size of the to-be-processed picture;
the enhancement module 903 is configured to perform picture enhancement processing on the thumbnail of the picture to be processed by using a preset picture enhancement algorithm if the determination result of the determination module is yes;
the first setting module 904 is configured to load the thumbnail of the to-be-processed picture after the picture enhancement processing as the to-be-processed picture.
By applying the embodiment shown in fig. 9 of the present invention, the thumbnail of the picture to be processed is obtained from the network, and when the picture to be processed needs to be loaded, the thumbnail of the picture to be processed is enhanced by using the picture enhancement algorithm, so as to obtain the picture to be processed.
Corresponding to the embodiment shown in fig. 5 of the present invention, a second apparatus for loading a to-be-processed picture is provided in the embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a second to-be-processed picture loading apparatus according to an embodiment of the present invention. As shown in fig. 10, the embodiment of the present invention shown in fig. 10 is based on the embodiment of the present invention shown in fig. 9, and is added with: a first lookup module 905, a second lookup module 906, a second setup module 907, and a third setup module 908, wherein,
the first searching module 905 is configured to search, according to the obtained loading instruction, a picture corresponding to the picture to be processed in an internal memory cache;
the second searching module 906 is configured to search, according to the loading instruction, a picture corresponding to the picture to be processed in a hard disk cache under the condition that the picture corresponding to the picture to be processed is not found in the memory cache;
a second setting module 907, configured to find the picture corresponding to the to-be-processed picture in a hard disk cache, where the resolution of the picture corresponding to the to-be-processed picture is smaller than the resolution of the to-be-processed picture, and/or the size of the picture corresponding to the to-be-processed picture is smaller than the size of the to-be-processed picture; taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed, and triggering the enhancement module;
a third setting module 908, configured to find the picture corresponding to the to-be-processed picture in a hard disk cache, and when the resolution of the picture corresponding to the to-be-processed picture is not smaller than the resolution of the to-be-processed picture and/or the size of the picture corresponding to the to-be-processed picture is not smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture after picture enhancement processing, and trigger the first setting module.
The downloading module 901 is specifically configured to execute the step of downloading the thumbnail of the picture to be processed according to the obtained loading instruction if the picture corresponding to the picture to be processed is not found in the hard disk cache.
By applying the embodiment shown in fig. 10 of the present invention, before downloading the thumbnail of the picture to be processed, whether the picture corresponding to the picture to be processed exists is searched in the memory cache of the electronic device, and if the picture corresponding to the picture to be processed exists, the thumbnail of the picture to be processed does not need to be downloaded from the network, so that the traffic consumption of the user can be reduced. In addition, when the picture corresponding to the picture to be processed existing in the memory cache is used, the picture is directly read from the memory cache of the electronic equipment, and compared with the method for acquiring the thumbnail of the picture to be processed from the network, the method can reduce the reaction time, improve the speed of displaying the picture to be processed and further improve the user experience.
Optionally, in a specific implementation manner of the embodiment of the present invention, the apparatus further includes: a third searching module, a fourth setting module, a fifth setting module, a fourth searching module, a sixth setting module and a seventh setting module, wherein,
the third searching module is used for searching the picture corresponding to the picture to be processed in the Bitmap cache;
the fourth setting module is configured to, when the picture corresponding to the to-be-processed picture is found in a Bitmap cache, and the resolution of the picture corresponding to the to-be-processed picture is smaller than the resolution of the to-be-processed picture, and/or the size of the picture corresponding to the to-be-processed picture is smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture, and send the thumbnail of the to-be-processed picture and the load instruction to a memory cache of an un-decoded picture, so that the memory cache of the un-decoded picture triggers the enhancement module 903;
the fifth setting module is configured to, in a Bitmap cache, find the picture corresponding to the to-be-processed picture, and when the picture resolution corresponding to the to-be-processed picture is not smaller than the resolution of the to-be-processed picture and/or the picture size corresponding to the to-be-processed picture is not smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture after picture enhancement processing, and trigger the first setting module 904;
the fourth searching module is used for searching the picture corresponding to the picture to be processed in the memory cache of the undecoded picture according to the loading instruction under the condition that the picture corresponding to the picture to be processed is not searched in the Bitmap cache;
the sixth setting module is configured to, in a case that the picture corresponding to the to-be-processed picture is found in an internal memory cache of an undecoded picture, and the resolution of the picture corresponding to the to-be-processed picture is smaller than the resolution of the to-be-processed picture, and/or the size of the picture corresponding to the to-be-processed picture is smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture, and send the thumbnail of the to-be-processed picture and the loading instruction to a hard disk cache, so that the hard disk cache triggers the enhancement module 903;
the seventh setting module is configured to, in a case that the picture corresponding to the to-be-processed picture is found in the memory cache of the undecoded picture, and the resolution of the picture corresponding to the to-be-processed picture is not smaller than the resolution of the to-be-processed picture, and/or the size of the picture corresponding to the to-be-processed picture is not smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture after picture enhancement processing, and trigger the first setting module 904;
the second searching module 906 is specifically configured to execute the step of searching the picture corresponding to the picture to be processed in the hard disk cache when the picture corresponding to the picture to be processed is not found in the memory cache of the undecoded picture.
By applying the embodiment of the invention, whether the picture corresponding to the picture to be processed exists in the Bitmap cache and the memory cache of the undecoded picture can be searched.
Corresponding to the embodiment shown in fig. 6 of the present invention, a third to-be-processed picture loading apparatus is further provided in the embodiment of the present invention.
Fig. 11 is a schematic structural diagram of a third to-be-processed picture loading apparatus according to an embodiment of the present invention, as shown in fig. 11, the embodiment shown in fig. 11 of the present invention is added with a first storage module 909 and a second storage module 9010 on the basis of the embodiment shown in fig. 9 of the present invention, wherein,
the first storage module 909 is configured to store the thumbnail of the to-be-processed picture after the picture enhancement processing into the memory cache and the hard disk cache of the undecoded picture;
the second storage module 9010 is configured to store the decoded thumbnail subjected to the picture enhancement processing in a Bitmap cache.
By applying the embodiment shown in fig. 11 of the present invention, the thumbnail of the to-be-processed picture after enhancement processing in the picture can be stored in the memory cache and the hard disk cache, and can be directly called when being used next time, so that the loading speed of displaying the to-be-processed picture is increased, and the user experience is improved.
Optionally, in a specific implementation manner of the embodiment of the present invention, the enhancing module 903 includes: a first setup submodule and an enhancement submodule, wherein,
the first setting sub-module is used for taking an increased value of the resolution of the picture to be processed relative to the resolution of the thumbnail of the picture to be processed and an increased value of the size of the picture to be processed relative to the size of the picture to be processed as picture enhancement parameters;
and the enhancement submodule is used for taking the picture enhancement parameters as parameters of a preset picture enhancement algorithm and carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing the preset picture enhancement algorithm.
By applying the embodiment of the invention, the thumbnail of the picture to be processed can be enhanced.
Optionally, in a specific implementation manner of the embodiment of the present invention, the first setting module 904 includes: a decoding sub-module and a second setting sub-module, wherein,
the decoding submodule is used for decoding the thumbnail of the picture to be processed after the picture enhancement processing;
and the second setting sub-module is used for loading the decoded thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
By applying the embodiment of the invention, the picture to be processed can be loaded.
Corresponding to the embodiment shown in fig. 2 of the present invention, an embodiment of the present invention further provides an electronic device.
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 12, the electronic device includes a processor 1201, a communication interface 1202, a memory 1203, and a communication bus 1204, where the processor 1201, the communication interface 1202, and the memory 1203 complete communication with each other through the communication bus 1204;
a memory 1203 for storing a computer program;
the processor 1201 is configured to implement the following steps when executing the program stored in the memory:
downloading a thumbnail of a picture to be processed according to the obtained loading instruction, and obtaining a resolution parameter and a size parameter of the picture to be processed;
judging whether the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or whether the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed;
if so, carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm;
and loading the thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present invention, there is also provided a computer-readable storage medium having stored therein instructions which, when run on a computer, implement the steps of:
downloading a thumbnail of a picture to be processed according to the obtained loading instruction, and obtaining a resolution parameter and a size parameter of the picture to be processed;
judging whether the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or whether the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed;
if so, carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm;
and loading the thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to carry out the steps of:
downloading a thumbnail of a picture to be processed according to the obtained loading instruction, and obtaining a resolution parameter and a size parameter of the picture to be processed;
judging whether the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or whether the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed;
if so, carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm;
and loading the thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (13)

1. A picture loading method to be processed is characterized by comprising the following steps:
downloading a thumbnail of a picture to be processed according to the obtained loading instruction, and obtaining a resolution parameter and a size parameter of the picture to be processed;
judging whether the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or whether the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed;
if the resolution of the picture to be processed is larger than the resolution of the thumbnail of the picture to be processed, and/or the size of the picture to be processed is larger than the size of the thumbnail of the picture to be processed, performing picture enhancement processing on the thumbnail of the picture to be processed by using a preset picture enhancement algorithm;
and loading the thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
2. The method according to claim 1, wherein before downloading the thumbnail of the picture to be processed according to the obtained loading instruction, the method further comprises:
searching a picture corresponding to the picture to be processed in an internal memory cache according to the obtained loading instruction;
if the picture corresponding to the picture to be processed is not found in the memory cache, searching the picture corresponding to the picture to be processed in a hard disk cache according to the loading instruction;
if the picture corresponding to the picture to be processed is found in the hard disk cache, and the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed; taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed, and executing the step of performing picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm;
or if the picture corresponding to the picture to be processed is found in the hard disk cache, and the resolution of the picture corresponding to the picture to be processed is not smaller than the resolution of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is not smaller than the size of the picture to be processed, taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed after picture enhancement processing, and executing the step of loading the thumbnail of the picture to be processed after picture enhancement processing as the picture to be processed;
and if the picture corresponding to the picture to be processed is not found in the hard disk cache, executing the step of downloading the thumbnail of the picture to be processed according to the obtained loading instruction.
3. The method according to claim 2, wherein when the picture corresponding to the picture to be processed is found in the memory cache, the method further comprises:
searching a picture corresponding to the picture to be processed in a Bitmap cache;
if the picture corresponding to the picture to be processed is found in the Bitmap cache, the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, the picture corresponding to the picture to be processed is used as a thumbnail of the picture to be processed, and the thumbnail of the picture to be processed and the loading instruction are sent to a memory cache of an undecoded picture so that the Bitmap cache executes the picture enhancement algorithm by using the preset picture enhancement algorithm to perform the picture enhancement processing on the thumbnail of the picture to be processed;
or if the picture corresponding to the picture to be processed is found in the Bitmap cache, and the resolution of the picture corresponding to the picture to be processed is not smaller than the resolution of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is not smaller than the size of the picture to be processed, taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed after picture enhancement processing, and executing the step of loading the thumbnail of the picture to be processed after picture enhancement processing as the picture to be processed;
or if the picture corresponding to the picture to be processed is not found in the Bitmap cache, according to the loading instruction, the picture corresponding to the picture to be processed is found in the memory cache of the undecoded picture;
if the picture corresponding to the picture to be processed is found in the memory cache of the undecoded picture, the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, the picture corresponding to the picture to be processed is used as a thumbnail of the picture to be processed, and the thumbnail of the picture to be processed and the loading instruction are sent to a hard disk cache so that the hard disk cache executes the picture enhancement processing on the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm;
or if the picture corresponding to the picture to be processed is found in the memory cache of the undecoded picture, and the resolution of the picture corresponding to the picture to be processed is not smaller than the resolution of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is not smaller than the size of the picture to be processed, taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed after picture enhancement processing, and executing the step of loading the thumbnail of the picture to be processed after picture enhancement processing as the picture to be processed;
or if the picture corresponding to the picture to be processed is not found in the memory cache of the undecoded picture, executing the step of finding the picture corresponding to the picture to be processed in the hard disk cache.
4. The method of claim 1, further comprising:
storing the thumbnail of the picture to be processed after the picture enhancement processing into an internal memory cache and a hard disk cache of an undecoded picture;
and storing the decoded thumbnail subjected to the picture enhancement processing into a Bitmap cache.
5. The method according to claim 1, wherein the performing picture enhancement processing on the thumbnail of the picture to be processed by using a preset picture enhancement algorithm comprises:
taking the added value of the resolution of the picture to be processed relative to the resolution of the thumbnail of the picture to be processed and the added value of the size of the picture to be processed relative to the size of the picture to be processed as picture enhancement parameters;
and taking the picture enhancement parameters as parameters of a preset picture enhancement algorithm, and carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing the preset picture enhancement algorithm.
6. The method according to claim 1, wherein the loading the thumbnail of the to-be-processed picture after the picture enhancement processing as the to-be-processed picture comprises:
decoding the thumbnail of the picture to be processed after the picture enhancement processing;
and loading the thumbnail of the decoded picture to be processed after the picture enhancement processing as the picture to be processed.
7. A pending picture loading apparatus, comprising: a download module, a judgment module, an enhancement module and a first setting module, wherein,
the downloading module is used for downloading the thumbnail of the picture to be processed according to the obtained loading instruction, and obtaining the resolution parameter and the size parameter of the picture to be processed;
the judging module is used for judging whether the resolution of the picture to be processed is greater than the thumbnail resolution of the picture to be processed and/or whether the size of the picture to be processed is greater than the thumbnail size of the picture to be processed;
the enhancement module is used for enhancing the thumbnail of the picture to be processed by utilizing a preset picture enhancement algorithm if the resolution of the picture to be processed is greater than the resolution of the thumbnail of the picture to be processed and/or the size of the picture to be processed is greater than the size of the thumbnail of the picture to be processed;
the first setting module is used for loading the thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
8. The apparatus of claim 7, further comprising: a first search module, a second setting module, and a third setting module, wherein,
the first searching module is used for searching a picture corresponding to the picture to be processed in a memory cache according to the obtained loading instruction;
the second searching module is configured to search for the picture corresponding to the picture to be processed in a hard disk cache according to the loading instruction under the condition that the picture corresponding to the picture to be processed is not found in the memory cache;
the second setting module is used for finding the picture corresponding to the picture to be processed in the hard disk cache, and the resolution of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed, and/or the size of the picture corresponding to the picture to be processed is smaller than that of the picture to be processed; taking the picture corresponding to the picture to be processed as a thumbnail of the picture to be processed, and triggering the enhancement module;
the third setting module is used for searching the picture corresponding to the picture to be processed in the hard disk cache, taking the picture corresponding to the picture to be processed as the thumbnail of the picture to be processed after the picture enhancement processing under the condition that the resolution of the picture corresponding to the picture to be processed is not smaller than the resolution of the picture to be processed and/or the size of the picture corresponding to the picture to be processed is not smaller than the size of the picture to be processed, and triggering the first setting module;
the downloading module is specifically configured to execute the step of downloading the thumbnail of the picture to be processed according to the obtained loading instruction if the picture corresponding to the picture to be processed is not found in the hard disk cache.
9. The apparatus of claim 8, further comprising: a third searching module, a fourth setting module, a fifth setting module, a fourth searching module, a sixth setting module and a seventh setting module, wherein,
the third searching module is used for searching the picture corresponding to the picture to be processed in the Bitmap cache;
the fourth setting module is configured to, when the picture corresponding to the to-be-processed picture is found in a Bitmap cache, and the picture resolution corresponding to the to-be-processed picture is smaller than the resolution of the to-be-processed picture, and/or the picture size corresponding to the to-be-processed picture is smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture, and send the thumbnail of the to-be-processed picture and the loading instruction to a memory cache of an un-decoded picture so that the memory cache of the un-decoded picture triggers the enhancement module;
the fifth setting module is configured to, in the Bitmap cache, find the picture corresponding to the to-be-processed picture, and when the picture resolution corresponding to the to-be-processed picture is not smaller than the resolution of the to-be-processed picture and/or the picture size corresponding to the to-be-processed picture is not smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture after picture enhancement processing, and trigger the first setting module;
the fourth searching module is used for searching the picture corresponding to the picture to be processed in the memory cache of the undecoded picture according to the loading instruction under the condition that the picture corresponding to the picture to be processed is not searched in the Bitmap cache;
the sixth setting module is configured to, in a memory cache of an undecoded picture, find the picture corresponding to the to-be-processed picture, and when the picture resolution corresponding to the to-be-processed picture is smaller than the resolution of the to-be-processed picture and/or the picture size corresponding to the to-be-processed picture is smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture, and send the thumbnail of the to-be-processed picture and the loading instruction to a hard disk cache, so that the hard disk cache triggers the enhancement module;
the seventh setting module is configured to, in a case that the picture corresponding to the to-be-processed picture is found in the memory cache of the undecoded picture, and the resolution of the picture corresponding to the to-be-processed picture is not smaller than the resolution of the to-be-processed picture, and/or the size of the picture corresponding to the to-be-processed picture is not smaller than the size of the to-be-processed picture, take the picture corresponding to the to-be-processed picture as a thumbnail of the to-be-processed picture after picture enhancement processing, and trigger the first setting module;
the second searching module is specifically configured to execute the step of searching the picture corresponding to the picture to be processed in the hard disk cache when the picture corresponding to the picture to be processed is not found in the memory cache of the undecoded picture.
10. The apparatus of claim 7, further comprising: a first memory module and a second memory module, wherein,
the first storage module is used for storing the thumbnail of the picture to be processed after the picture enhancement processing into the memory cache and the hard disk cache of the undecoded picture;
and the second storage module is used for storing the decoded thumbnail subjected to the picture enhancement processing into a Bitmap cache.
11. The apparatus of claim 7, wherein the enhancement module comprises: a first setup submodule and an enhancement submodule, wherein,
the first setting sub-module is used for taking an increased value of the resolution of the picture to be processed relative to the resolution of the thumbnail of the picture to be processed and an increased value of the size of the picture to be processed relative to the size of the picture to be processed as picture enhancement parameters;
and the enhancement submodule is used for taking the picture enhancement parameters as parameters of a preset picture enhancement algorithm and carrying out picture enhancement processing on the thumbnail of the picture to be processed by utilizing the preset picture enhancement algorithm.
12. The apparatus of claim 7, wherein the first setup module comprises: a decoding sub-module and a second setting sub-module, wherein,
the decoding submodule is used for decoding the thumbnail of the picture to be processed after the picture enhancement processing;
and the second setting sub-module is used for loading the decoded thumbnail of the picture to be processed after the picture enhancement processing as the picture to be processed.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
CN201810049852.8A 2018-01-18 2018-01-18 Picture loading method and device and electronic equipment Active CN108287892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810049852.8A CN108287892B (en) 2018-01-18 2018-01-18 Picture loading method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810049852.8A CN108287892B (en) 2018-01-18 2018-01-18 Picture loading method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108287892A CN108287892A (en) 2018-07-17
CN108287892B true CN108287892B (en) 2022-03-04

Family

ID=62835486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810049852.8A Active CN108287892B (en) 2018-01-18 2018-01-18 Picture loading method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108287892B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918592A (en) * 2019-01-17 2019-06-21 平安城市建设科技(深圳)有限公司 Loading method, device, terminal and the computer readable storage medium of picture
CN111581553B (en) * 2020-04-17 2024-02-06 上海携程商务有限公司 Network image display method, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528617A (en) * 2016-09-30 2017-03-22 北京小米移动软件有限公司 Webpage picture display method and apparatus
CN107463627A (en) * 2017-07-11 2017-12-12 深圳市云领天下科技有限公司 A kind of picture loading method and terminal
CN107480169A (en) * 2017-06-28 2017-12-15 努比亚技术有限公司 Picture loading method, terminal and computer-readable recording medium
CN107566733A (en) * 2017-09-29 2018-01-09 深圳市聚宝汇科技有限公司 A kind of picture transmission method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951317A (en) * 2014-03-26 2015-09-30 北京奇虎科技有限公司 Image loading device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528617A (en) * 2016-09-30 2017-03-22 北京小米移动软件有限公司 Webpage picture display method and apparatus
CN107480169A (en) * 2017-06-28 2017-12-15 努比亚技术有限公司 Picture loading method, terminal and computer-readable recording medium
CN107463627A (en) * 2017-07-11 2017-12-12 深圳市云领天下科技有限公司 A kind of picture loading method and terminal
CN107566733A (en) * 2017-09-29 2018-01-09 深圳市聚宝汇科技有限公司 A kind of picture transmission method and system

Also Published As

Publication number Publication date
CN108287892A (en) 2018-07-17

Similar Documents

Publication Publication Date Title
CN109194960B (en) Image frame rendering method and device and electronic equipment
CN111666497B (en) Application program loading method and device, electronic equipment and readable storage medium
CN110096660B (en) Method and device for loading page pictures and electronic equipment
WO2018176960A1 (en) Network picture displaying method, device and user terminal
US9325717B1 (en) Web-store restriction of external libraries
US10158740B2 (en) Method and apparatus for webpage resource acquisition
CN108322789B (en) Network picture display method and device and mobile terminal
CN107943997B (en) Remote website evidence obtaining method based on Google browser, terminal device and storage medium
CN110365973B (en) Video detection method and device, electronic equipment and computer readable storage medium
US10152213B2 (en) Techniques for selecting objects in images
CN111310482A (en) Real-time translation method, device, terminal and storage medium
CN108287892B (en) Picture loading method and device and electronic equipment
US20190114989A1 (en) Systems and methods for image optimization
CN103631616B (en) Picture is quickly loaded and caching method and system
CN107391257B (en) Method, device and server for estimating memory capacity required by service
CN112565890B (en) Video clipping method and device, storage medium and electronic equipment
CN109558187B (en) User interface rendering method and device
US20160124696A1 (en) Downsampled rendering of web page loads to save power
CN116010743A (en) Page processing method and device, electronic equipment and storage medium
CN108572985B (en) Page display method and device
CN111597476B (en) Image processing method and device
CN112835671A (en) Application page scene switching method, device and equipment
CN111988405B (en) Message rewriting method of load balancing device and load balancing device
US11379653B2 (en) Rendering method for on-demand loading of PDF file on network
CN110807114B (en) Method, device, terminal and storage medium for picture display

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