CN103902575A - Pictorial information loading method and related device - Google Patents
Pictorial information loading method and related device Download PDFInfo
- Publication number
- CN103902575A CN103902575A CN201210579051.5A CN201210579051A CN103902575A CN 103902575 A CN103902575 A CN 103902575A CN 201210579051 A CN201210579051 A CN 201210579051A CN 103902575 A CN103902575 A CN 103902575A
- Authority
- CN
- China
- Prior art keywords
- thumbnail
- picture
- downloaded
- complete graph
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a pictorial information loading method and a related device. The pictorial information loading method and the related device are used for optimizing the overall loading speed of pictures in a grid interface. The method comprises the steps that the data information of the pictures needing to be shown in the current interfaces is acquired; the thumbnails of the pictures are downloaded from small to large according to the data volume of the thumbnails of the pictures; when downloading of the thumbnails of the pictures is completed, the complete pictures of the pictures are downloaded from small to large according to the data volume of the complete pictures of the pictures.
Description
Technical field
The present invention relates to pictorial information process field, relate in particular to a kind of pictorial information loading method and relevant apparatus.
Background technology
Information is to come content, quantity or the feature of presentation of events, things, phenomenon etc. with media such as word, numeral, symbol, language, images, thereby provide the fact and the knowledge new about real world to people's (or system), as the foundation of production, construction, operation, management, analysis and decision.
Existing information displaying scheme is mainly divided into text display and shows with graphical.Text display refers to the character express information of using, and graphical demonstration refers to and information shown by means such as figure, chart, images.Along with the development of computing machine and internet, the graphical demonstration of information has become more and more ordinary, and for example, people can express expression information with dynamic picture, describes landscape information with photo, etc.
And on mobile terminal, for example mobile phone, for the limit bandwidth of wireless network, restriction, the restriction of screen size etc. of hardware performance, in a very long time, people only use mobile phone to represent text message.Recent years, Internet technology has had again by leaps and bounds development, and mobile Internet is accepted by most netizen, becomes one of requisite online approach of many users.Therefore the demand that user obtains graphical information by mobile Internet is more and more urgent.
Internal memory is a kind of dynamic storage, and its effect is the operational data for temporarily depositing CPU, and with the data of the external memory storage such as hard disk exchange.As long as computing machine is in operation, CPU will be transferred to the data that need computing in internal memory and carry out computing, and after computing completes, CPU sends out result again, and the operation of internal memory has also determined the stable operation of computing machine.
Storage external is a kind of static memory, refers to the reservoir except calculator memory and cpu cache, still can save data after the general power-off of this type of reservoir.Common storage external has hard disk, floppy disk, CD, USB flash disk etc.
Grid interface is a kind of computer system software interface of showing a large amount of pictures.It is presented at all pictures on the screen of computer system with latticed layout.
When an interface display not lower time, figure sector-meeting extends to other interface, and user can check by sliding interface the picture at other interface.After user has deleted certain picture, interface is layout again, to fill the position of deleted picture.
In existing application, user when browsing pictures, generally can be presented at network picture in grid interface on network, and needs consume network bandwidth and flow pull network picture on network time, and pull consuming time long.In the time of Image Display, if there is the picture that some data volumes are larger, likely can cause the entirety of picture in grid interface to load slowly, affect user and experience.
Summary of the invention
The embodiment of the present invention provides a kind of pictorial information loading method and relevant apparatus, for optimizing the overall loading velocity of grid interface picture.
The pictorial information loading method that first aspect present invention provides, comprising:
Obtain the data message of the picture of the required displaying of current interface;
According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture;
After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture.
In the first method in the cards of first aspect, described method also comprises:
In the time downloading the thumbnail of described picture, if receive user's operational order, disconnect the downloading process of the thumbnail of described picture, preferentially use the resource of Internet resources and/or dynamic storage to carry out the indicated operation of described user's operational order.
In conjunction with the first method in the cards of first aspect, in the second method in the cards, the resource of described preferential use Internet resources and/or dynamic storage comprises after carrying out the indicated operation of described user's operational order:
After the indicated operation of described user's operational order completes, the data volume size of thumbnail to be downloaded is sorted;
Download from small to large described thumbnail to be downloaded according to described data volume size.
In conjunction with the first method in the cards of first aspect, in the third method in the cards, if described user's operational order is Image Display instruction, the resource of described preferential use Internet resources and/or dynamic storage is carried out the indicated operation of described user's operational order, comprising:
The preferential complete graph of downloading the picture of indicating in described Image Display instruction.
In conjunction with the first method in the cards of first aspect, in the 4th kind of method in the cards, if described user's operational order is picture update instruction, the resource of described preferential use Internet resources and/or dynamic storage is carried out the indicated operation of described user's operational order, comprising:
If the picture of the required displaying of current interface upgrades, according to the total amount M of the Downloadable thumbnail of calculation of capacity of described dynamic storage, if described total amount M is greater than the amount K to be downloaded of thumbnail formerly and the renewal amount F at rear thumbnail, stop several formerly downloads of thumbnail, amount K to be downloaded after renewal and described renewal amount be F's and be at rear amount J to be downloaded, described in making, be less than or equal to described total amount M at rear amount J to be downloaded, described M, F and J are all the integer that is greater than zero.
In conjunction with first to fourth any one method in the cards first aspect and first aspect, in the 5th kind of method in the cards, the thumbnail of described download pictures, comprising:
Open N thread and download the thumbnail of described picture, described N equals user network bandwidth and rounds divided by the result of single-threaded occupied bandwidth;
The complete graph of described download pictures, comprising:
Open N thread and download the complete graph of described picture.
In conjunction with first to fourth any one method in the cards first aspect and first aspect, in the 6th kind of method in the cards, after the described thumbnail of downloading from small to large described picture, comprising:
The described thumbnail of having downloaded is stored in dynamic storage and static memory simultaneously.
In conjunction with first to fourth any one method in the cards first aspect and first aspect, in the 7th kind of method in the cards, after the described complete graph of downloading from small to large described picture, comprising:
The described complete graph of having downloaded is stored in static memory.
In conjunction with the 7th kind of method in the cards of first aspect, in the 8th kind of method in the cards,
In the time showing the complete graph of described picture, the complete graph being stored in described static memory is loaded in dynamic storage;
In the time stopping showing the complete graph of described picture, in described dynamic storage, discharge the storage space of the dynamic storage that described complete graph takies.
The pictorial information charger that second aspect present invention provides, comprising:
Information acquisition unit, for obtaining the data message of picture of the required displaying of current interface;
The first download unit, for according to the data volume size of the thumbnail of described picture, downloads the thumbnail of described picture from small to large;
The second download unit, after having downloaded when the thumbnail of picture described in each, according to the data volume size of the complete graph of described picture, downloads the complete graph of described picture from small to large.
In the first method in the cards of second aspect, described device also comprises:
Instruction execution unit, for in the time downloading the thumbnail of described picture, if receive user's operational order, disconnect the downloading process of the thumbnail of described picture, preferentially use the resource of Internet resources and/or dynamic storage to carry out the indicated operation of described user's operational order.
In conjunction with the first method in the cards of second aspect, in the second method in the cards, described instruction execution unit comprises:
Order module, after completing when the indicated operation of described user's operational order, sorts to the data volume size of thumbnail to be downloaded;
Download module, for downloading from small to large described thumbnail to be downloaded according to described data volume size.
In conjunction with the first method in the cards of second aspect, in the third method in the cards, described instruction execution unit comprises:
Image Display module, if be Image Display instruction for described user's operational order, the preferential complete graph of downloading the picture of indicating in described Image Display instruction;
Picture update module, if be picture update instruction for described user's operational order, according to the total amount M of the Downloadable thumbnail of calculation of capacity of described dynamic storage, if described total amount M is greater than the amount K to be downloaded of thumbnail formerly and the renewal amount F at rear thumbnail, stop several formerly downloads of thumbnail, amount K to be downloaded after renewal and described renewal amount be F's and be at rear amount J to be downloaded, described in making, be less than or equal to described total amount M at rear amount J to be downloaded, described M, F and J are all the integer that is greater than zero.
In the 4th kind of method in the cards of second aspect, described device also comprises:
The first storage unit, for be stored in dynamic storage and static memory by the described thumbnail of having downloaded simultaneously;
The second storage unit, for being stored in static memory by the described complete graph of having downloaded.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: in embodiments of the present invention, after receiving the indication of exhibiting pictures in grid interface, obtain the data message of the picture of the required displaying of current interface; According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture; After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture; The pictorial information that data volume is little can be preferentially loaded, improve the overall loading velocity of picture in grid interface, thereby improved user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a schematic flow sheet of embodiment of the present invention pictorial information loading method;
Fig. 2 is another schematic flow sheet of embodiment of the present invention pictorial information loading method;
Fig. 3 is another schematic flow sheet of embodiment of the present invention pictorial information loading method;
Fig. 4 is the logical organization schematic diagram of embodiment of the present invention pictorial information charger.
Embodiment
The embodiment of the present invention provides a kind of pictorial information loading method and relevant apparatus, for optimizing the overall loading velocity of grid interface picture.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, in the embodiment of the present invention, pictorial information loading method embodiment comprises:
101, obtain the data message of the picture of the required displaying of current interface;
After receiving the indication of exhibiting pictures in grid interface, pictorial information charger obtains the data message of the picture of the required displaying of current interface, described current interface is grid interface, and the icon at grid interface is sequentially from top to bottom, arrays from left to right.
Concrete, the data message of described picture can comprise: the data volume size of the thumbnail of picture and complete graph, and the quantity of picture.
102,, according to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture;
Pictorial information charger, after getting the data message of described picture, can carry out according to described data message the sequence of data volume size to picture described in each; Concrete, the data volume size to thumbnail and the data volume size of complete graph sort respectively.
, then according to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture then.
103,, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture;
After the thumbnail of picture described in each has been downloaded, pictorial information charger can be according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture, do not click before checking complete graph and download in advance complete graph user, can improve the loading velocity of user's complete graph in the time clicking, further improve user and experience.
In embodiments of the present invention, after receiving the indication of exhibiting pictures in grid interface, obtain the data message of the picture of the required displaying of current interface; According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture; After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture; The pictorial information that data volume is little can be preferentially loaded, improve the overall loading velocity of picture in grid interface, thereby improved user's experience.
In actual applications, because picture loading can take the resource of a large amount of dynamic storagies, if the resource of dynamic storage is not discharged timely, be easy to cause internal memory to overflow, the embodiment of the present invention provides corresponding prioritization scheme, refer to Fig. 2, in the embodiment of the present invention, another embodiment of pictorial information loading method comprises:
201, obtain the data message of the picture of the required displaying of current interface;
After receiving the indication of exhibiting pictures in grid interface, pictorial information charger obtains the data message of the picture of the required displaying of current interface, described current interface is grid interface, and the icon at grid interface is sequentially from top to bottom, arrays from left to right.
Concrete, the data message of described picture can comprise: the data volume size of the thumbnail of picture and complete graph, and the quantity of picture.
202,, according to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture;
Pictorial information charger, after getting the data message of described picture, can carry out according to described data message the sequence of data volume size to picture described in each; Concrete, the data volume size to thumbnail and the data volume size of complete graph sort respectively.
Then, again according to the data volume size of the thumbnail of described picture, open N thread and download from small to large the thumbnail of described picture, and the described thumbnail of having downloaded is stored in dynamic storage and static memory simultaneously, described thumbnail storage can improve current thumbnail loading velocity at dynamic storage, in the time needing the resource of release dynamics storer to process other operation, can discharge the current storage space at dynamic storage of thumbnail, after other operational processes completes, while turning back to current interface, can read described thumbnail from static memory again.
Concrete, described N equals user network bandwidth and rounds divided by the result of single-threaded occupied bandwidth; Use in the prior art normally fixing settings of how many thread down loading network resources, fixing setting is unfavorable for effectively utilizing bandwidth resources, and, when can not meeting fixing settings, user's the network bandwidth takes, can cause again the internal memory of terminal to overflow, may make user terminal crash.Go to set the thread of downloading according to single-threaded occupied bandwidth and user's the network bandwidth dynamically, contribute to the optimization utilization of Internet resources.
If 203 receive user's operational order, disconnect the downloading process of the thumbnail of described picture;
In the time downloading the thumbnail of described picture, if receive user's operational order, disconnect the downloading process of the thumbnail of described picture, preferentially use the resource of Internet resources and/or dynamic storage to carry out the indicated operation of described user's operational order.So, can the current operation of having thought of priority processing user, improve user and experience.
Concrete, the downloading process that disconnects the thumbnail of described picture refers to the download that stops described thumbnail, and discharges the resource of downloading the shared dynamic storage of thumbnail.
204,, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture;
After the thumbnail of picture described in each has been downloaded, pictorial information charger can, according to the data volume size of the complete graph of described picture, be downloaded the complete graph of described picture from small to large, and the described complete graph of having downloaded is stored in static memory; Do not click before checking complete graph and download in advance complete graph user, can improve the loading velocity of user's complete graph in the time clicking, further improve user and experience.
In embodiments of the present invention, after receiving the indication of exhibiting pictures in grid interface, obtain the data message of the picture of the required displaying of current interface; According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture; After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture; The pictorial information that data volume is little can be preferentially loaded, improve the overall loading velocity of picture in grid interface, thereby improved user's experience.In the time that user clicks the complete graph Showing Picture, pictorial information charger can be loaded into the complete graph being stored in described static memory in dynamic storage; In the time stopping showing the complete graph of described picture, (return to operation as, user clicks), in described dynamic storage, discharge the storage space of the dynamic storage that described complete graph takies.
The embodiment of the present invention provides a kind of memory management technology scheme that represents pictorial information in grid interface, utilize dynamic storage and static memory to carry out maximized assurance in grid interface, smooth program when a large amount of interpolations, deletion, browse network picture is taken into account taking of internal memory, bandwidth resources simultaneously.
For the ease of understanding, with a concrete application scenarios, the pictorial information loading method of describing in the above embodiments is described in detail again below, please refer to Fig. 3, be specially:
301, user enters the interface of Image Display;
In the time that user enters the interface of Image Display, the indication that pictorial information charger program will be received exhibiting pictures in grid interface, pictorial information charger obtains the data message of the picture of the required displaying of current interface, concrete, the data message of described picture can comprise: the data volume size of the thumbnail of picture and complete graph, and the quantity of picture.
Pictorial information charger, after getting the data message of described picture, can carry out according to described data message the sequence of data volume size to picture described in each; Concrete, the data volume size to thumbnail and the data volume size of complete graph sort respectively; Then, again according to the data volume size of the thumbnail of described picture, obtain the single-threaded occupied bandwidth of download pictures information, determine the thread N downloading, open again N thread and download from small to large the thumbnail of described picture, and the described thumbnail of having downloaded is stored in dynamic storage and static memory simultaneously.After the thumbnail of picture described in each has been downloaded, pictorial information charger can, according to the data volume size of the complete graph of described picture, be downloaded the complete graph of described picture from small to large, and the described complete graph of having downloaded is stored in static memory.
302, user clicks the operation of picture;
In the time that user clicks the thumbnail of picture, pictorial information charger will be received Image Display instruction, and what this thumbnail of indicated number was corresponding completes figure;
If now, the download of the thumbnail of current interface remains unfulfilled, and disconnects the downloading process of the thumbnail of described picture, preferentially downloads the complete graph of the picture of indicating in described Image Display instruction;
If now, the thumbnail of current interface has been downloaded, and complete graph has not been downloaded yet, the complete graph of the picture of indicating in preferential download pictures idsplay order;
If now, thumbnail and the complete graph of current interface have all been downloaded, and from static memory, read the complete graph of indicating in described Image Display instruction.
After the indicated operation of described Image Display instruction completes, if still have thumbnail not download, the data volume size of thumbnail to be downloaded is sorted; Download from small to large described thumbnail to be downloaded according to described data volume size.
Optionally, after the indicated operation of described Image Display instruction completes, can first carry out the judgement whether user operates, decision logic is as follows: if user did not have click, button, rolling operation at 3 seconds, think that so now user does not operate; Do not operate when definite user is current, carry out the step of above-mentioned thumbnail sequence.
303, user is switched the operation of current interface;
In the time that user rolls or refreshes current interface, the picture of the required demonstration of current interface just may upgrade, and pictorial information charger can be received picture update instruction, and new picture is added in indication.
If the picture of the required displaying of current interface upgrades, according to the total amount M of the Downloadable thumbnail of calculation of capacity of described dynamic storage, if described total amount M is greater than the amount K to be downloaded of thumbnail formerly and the renewal amount F at rear thumbnail, stop several formerly downloads of thumbnail; Concrete, pictorial information charger can preferentially be downloaded the thumbnail of the picture in current interface, then downloads several thumbnails of data volume minimum in thumbnail formerly to be downloaded, discharges the dynamic storage resource of several thumbnails of data volume maximum.Amount K to be downloaded after renewal and described renewal amount be F's and be at rear amount J to be downloaded, make to be describedly less than or equal to described total amount M at rear amount J to be downloaded, and described M, F and J are all the integer that is greater than zero.
After the indicated operation of described Image Display instruction completes, if still have thumbnail not download, the data volume size of thumbnail to be downloaded is sorted; Download from small to large described thumbnail to be downloaded according to described data volume size.
Optionally, after the indicated operation of described Image Display instruction completes, can first carry out the judgement whether user operates, decision logic is as follows: if user did not have click, button, rolling operation at 3 seconds, think that so now user does not operate; Do not operate when definite user is current, carry out the step of above-mentioned thumbnail sequence.
In embodiments of the present invention, after receiving the indication of exhibiting pictures in grid interface, obtain the data message of the picture of the required displaying of current interface; According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture; After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture; The pictorial information that data volume is little can be preferentially loaded, improve the overall loading velocity of picture in grid interface, thereby improved user's experience.And, in embodiments of the present invention, further defining user under various operations, the processing priority of background process, gives priority to the current operating experience of user, user is experienced further and be improved.
Only with some examples, the application scenarios in the embodiment of the present invention is illustrated above, is understandable that, in actual applications, can also have more application scenarios, be specifically not construed as limiting herein.
Below the pictorial information charger of carrying out pictorial information loading method of the present invention is described, refers to Fig. 4, in the embodiment of the present invention, pictorial information charger embodiment comprises:
Information acquisition unit 401, for obtaining the data message of picture of the required displaying of current interface;
The first download unit 402, for according to the data volume size of the thumbnail of described picture, downloads the thumbnail of described picture from small to large;
The second download unit 403, after having downloaded when the thumbnail of picture described in each, according to the data volume size of the complete graph of described picture, downloads the complete graph of described picture from small to large.
Optionally, described device also comprises:
Instruction execution unit 404, for in the time downloading the thumbnail of described picture, if receive user's operational order, disconnect the downloading process of the thumbnail of described picture, preferentially use the resource of Internet resources and/or dynamic storage to carry out the indicated operation of described user's operational order.
Optionally, described instruction execution unit 404 comprises:
Order module 4041, after completing when the indicated operation of described user's operational order, sorts to the data volume size of thumbnail to be downloaded;
Download module 4042, for downloading from small to large described thumbnail to be downloaded according to described data volume size.
Optionally, described instruction execution unit 404 comprises:
Image Display module 4043, if be Image Display instruction for described user's operational order, the preferential complete graph of downloading the picture of indicating in described Image Display instruction.
Picture update module 4044, if be picture update instruction for described user's operational order, according to the total amount M of the Downloadable thumbnail of calculation of capacity of described dynamic storage, if described total amount M is greater than the amount K to be downloaded of thumbnail formerly and the renewal amount F at rear thumbnail, stop several formerly downloads of thumbnail, amount K to be downloaded after renewal and described renewal amount be F's and be at rear amount J to be downloaded, described in making, be less than or equal to described total amount M at rear amount J to be downloaded, described M, F and J are all the integer that is greater than zero.
Optionally, described device also comprises:
The first storage unit 405, for be stored in dynamic storage and static memory by the described thumbnail of having downloaded simultaneously;
The second storage unit 406, for being stored in static memory by the described complete graph of having downloaded.
The specific operation process of unit in the embodiment of the present invention, comprising:
After receiving the indication of exhibiting pictures in grid interface, information acquisition unit 401 is obtained the data message of the picture of the required displaying of current interface, and described current interface is grid interface, and the icon at grid interface is sequentially from top to bottom, arrays from left to right.
Concrete, the data message of described picture can comprise: the data volume size of the thumbnail of picture and complete graph, and the quantity of picture.
After getting the data message of described picture, can carry out according to described data message the sequence of data volume size to picture described in each; Concrete, the data volume size to thumbnail and the data volume size of complete graph sort respectively.
Then, the first download unit 402, again according to the data volume size of the thumbnail of described picture, is downloaded the thumbnail of described picture from small to large.
After the thumbnail of picture described in each has been downloaded, the second download unit 403 can be according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture, do not click before checking complete graph and download in advance complete graph user, can improve the loading velocity of user's complete graph in the time clicking, further improve user and experience.
In embodiments of the present invention, after receiving the indication of exhibiting pictures in grid interface, obtain the data message of the picture of the required displaying of current interface; According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture; After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture; The pictorial information that data volume is little can be preferentially loaded, improve the overall loading velocity of picture in grid interface, thereby improved user's experience.
In embodiment of the present invention another one implementation, after receiving the indication of exhibiting pictures in grid interface, information acquisition unit 401 is obtained the data message of the picture of the required displaying of current interface, described current interface is grid interface, the icon at grid interface is sequentially from top to bottom, arrays from left to right.Concrete, the data message of described picture can comprise: the data volume size of the thumbnail of picture and complete graph, and the quantity of picture.
After getting the data message of described picture, can carry out according to described data message the sequence of data volume size to picture described in each; Concrete, the data volume size to thumbnail and the data volume size of complete graph sort respectively.
Then, the first download unit 402 is again according to the data volume size of the thumbnail of described picture, open N thread and download from small to large the thumbnail of described picture, and the described thumbnail of having downloaded is stored in dynamic storage and static memory simultaneously, described thumbnail storage can improve current thumbnail loading velocity at dynamic storage, in the time needing the resource of release dynamics storer to process other operation, can discharge the current storage space at dynamic storage of thumbnail, after other operational processes completes, while turning back to current interface, can read described thumbnail from static memory again.
Concrete, described N equals user network bandwidth and rounds divided by the result of single-threaded occupied bandwidth; Use in the prior art normally fixing settings of how many thread down loading network resources, fixing setting is unfavorable for effectively utilizing bandwidth resources, and, when can not meeting fixing settings, user's the network bandwidth takes, can cause again the internal memory of terminal to overflow, may make user terminal crash.Go to set the thread of downloading according to single-threaded occupied bandwidth and user's the network bandwidth dynamically, contribute to the optimization utilization of Internet resources.
In the time downloading the thumbnail of described picture, if receive user's operational order, instruction execution unit 404 disconnects the downloading process of the thumbnail of described picture, preferentially uses the resource of Internet resources and/or dynamic storage to carry out the indicated operation of described user's operational order.So, can the current operation of having thought of priority processing user, improve user and experience.Concrete, can, by after described in order module 4041, the indicated operation of user's operational order completes, the data volume size of thumbnail to be downloaded be sorted; Again by download module 4042, for downloading from small to large described thumbnail to be downloaded according to described data volume size.
Concrete, the downloading process that disconnects the thumbnail of described picture refers to the download that stops described thumbnail, and discharges the resource of downloading the shared dynamic storage of thumbnail.
After the thumbnail of picture described in each has been downloaded, the second download unit 403 can, according to the data volume size of the complete graph of described picture, be downloaded the complete graph of described picture from small to large, and the described complete graph of having downloaded is stored in static memory; Do not click before checking complete graph and download in advance complete graph user, can improve the loading velocity of user's complete graph in the time clicking, further improve user and experience.
In embodiments of the present invention, after receiving the indication of exhibiting pictures in grid interface, obtain the data message of the picture of the required displaying of current interface; According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture; After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture; The pictorial information that data volume is little can be preferentially loaded, improve the overall loading velocity of picture in grid interface, thereby improved user's experience.In the time that user clicks the complete graph Showing Picture, the complete graph being stored in described static memory can be loaded in dynamic storage; In the time stopping showing the complete graph of described picture, (return to operation as, user clicks), in described dynamic storage, discharge the storage space of the dynamic storage that described complete graph takies.
In embodiment of the present invention another one implementation, in the time that user enters the interface of Image Display, the Image Display module 4043 of instruction execution unit 404 will be received the indication of exhibiting pictures in grid interface, Image Display module 4043 is obtained the data message of the picture of the required displaying of current interface, concrete, the data message of described picture can comprise: the data volume size of the thumbnail of picture and complete graph, and the quantity of picture.
After getting the data message of described picture, can carry out according to described data message the sequence of data volume size to picture described in each; Concrete, the data volume size to thumbnail and the data volume size of complete graph sort respectively; Then, again according to the data volume size of the thumbnail of described picture, obtain the single-threaded occupied bandwidth of download pictures information, determine the thread N downloading, open again N thread and download from small to large the thumbnail of described picture, and the described thumbnail of having downloaded is stored in dynamic storage and static memory simultaneously.After the thumbnail of picture described in each has been downloaded, can, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture, and the described complete graph of having downloaded is stored in static memory.
In the time that user clicks the thumbnail of picture, pictorial information charger will be received Image Display instruction, and what this thumbnail of indicated number was corresponding completes figure;
If now, the download of the thumbnail of current interface remains unfulfilled, and disconnects the downloading process of the thumbnail of described picture, preferentially downloads the complete graph of the picture of indicating in described Image Display instruction;
If now, the thumbnail of current interface has been downloaded, and complete graph has not been downloaded yet, the complete graph of the picture of indicating in preferential download pictures idsplay order;
If now, thumbnail and the complete graph of current interface have all been downloaded, and from static memory, read the complete graph of indicating in described Image Display instruction.
After the indicated operation of described Image Display instruction completes, if still have thumbnail not download, the data volume size of thumbnail to be downloaded is sorted; Download from small to large described thumbnail to be downloaded according to described data volume size.
Optionally, after the indicated operation of described Image Display instruction completes, can first carry out the judgement whether user operates, decision logic is as follows: if user did not have click, button, rolling operation at 3 seconds, think that so now user does not operate; Do not operate when definite user is current, carry out the step of above-mentioned thumbnail sequence.
In the time that user rolls or refreshes current interface, the picture of the required demonstration of current interface just may upgrade, and 4044 of the picture update module of instruction execution unit 404 can be received picture update instruction, and new picture is added in indication.
If the picture of the required displaying of current interface upgrades, according to the total amount M of the Downloadable thumbnail of calculation of capacity of described dynamic storage, if described total amount M is greater than the amount K to be downloaded of thumbnail formerly and the renewal amount F at rear thumbnail, stop several formerly downloads of thumbnail; Concrete, pictorial information charger can preferentially be downloaded the thumbnail of the picture in current interface, then downloads several thumbnails of data volume minimum in thumbnail formerly to be downloaded, discharges the dynamic storage resource of several thumbnails of data volume maximum.Amount K to be downloaded after renewal and described renewal amount be F's and be at rear amount J to be downloaded, make to be describedly less than or equal to described total amount M at rear amount J to be downloaded, and described M, F and J are all the integer that is greater than zero.
After the indicated operation of described Image Display instruction completes, if still have thumbnail not download, the data volume size of thumbnail to be downloaded is sorted; Download from small to large described thumbnail to be downloaded according to described data volume size.
Optionally, after the indicated operation of described Image Display instruction completes, can first carry out the judgement whether user operates, decision logic is as follows: if user did not have click, button, rolling operation at 3 seconds, think that so now user does not operate; Do not operate when definite user is current, carry out the step of above-mentioned thumbnail sequence.
In embodiments of the present invention, after receiving the indication of exhibiting pictures in grid interface, obtain the data message of the picture of the required displaying of current interface; According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture; After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture; The pictorial information that data volume is little can be preferentially loaded, improve the overall loading velocity of picture in grid interface, thereby improved user's experience.And, in embodiments of the present invention, further defining user under various operations, the processing priority of background process, gives priority to the current operating experience of user, user is experienced further and be improved.
In the several embodiment that provide in the application, should be understood that, disclosed apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.
Claims (14)
1. a pictorial information loading method, is characterized in that, comprising:
Obtain the data message of the picture of the required displaying of current interface;
According to the data volume size of the thumbnail of described picture, download from small to large the thumbnail of described picture;
After the thumbnail of picture described in each has been downloaded, according to the data volume size of the complete graph of described picture, download from small to large the complete graph of described picture.
2. method according to claim 1, is characterized in that, described method also comprises:
In the time downloading the thumbnail of described picture, if receive user's operational order, disconnect the downloading process of the thumbnail of described picture, preferentially use the resource of Internet resources and/or dynamic storage to carry out the indicated operation of described user's operational order.
3. method according to claim 2, is characterized in that, the resource of described preferential use Internet resources and/or dynamic storage comprises after carrying out the indicated operation of described user's operational order:
After the indicated operation of described user's operational order completes, the data volume size of thumbnail to be downloaded is sorted;
Download from small to large described thumbnail to be downloaded according to described data volume size.
4. method according to claim 2, is characterized in that, if described user's operational order is Image Display instruction, the resource of described preferential use Internet resources and/or dynamic storage is carried out the indicated operation of described user's operational order, comprising:
The preferential complete graph of downloading the picture of indicating in described Image Display instruction.
5. method according to claim 2, is characterized in that, if described user's operational order is picture update instruction, the resource of described preferential use Internet resources and/or dynamic storage is carried out the indicated operation of described user's operational order, comprising:
If the picture of the required displaying of current interface upgrades, according to the total amount M of the Downloadable thumbnail of calculation of capacity of described dynamic storage, if described total amount M is greater than the amount K to be downloaded of thumbnail formerly and the renewal amount F at rear thumbnail, stop several formerly downloads of thumbnail, amount K to be downloaded after renewal and described renewal amount be F's and be at rear amount J to be downloaded, described in making, be less than or equal to described total amount M at rear amount J to be downloaded, described M, F and J are all the integer that is greater than zero.
6. according to the method described in claim 1 to 5 any one, it is characterized in that,
The thumbnail of described download pictures, comprising:
Open N thread and download the thumbnail of described picture, described N equals user network bandwidth and rounds divided by the result of single-threaded occupied bandwidth;
The complete graph of described download pictures, comprising:
Open N thread and download the complete graph of described picture.
7. according to the method described in claim 1 to 5 any one, it is characterized in that, after the described thumbnail of downloading from small to large described picture, comprising:
The described thumbnail of having downloaded is stored in dynamic storage and static memory simultaneously.
8. according to the method described in claim 1 to 5 any one, it is characterized in that, after the described complete graph of downloading from small to large described picture, comprising:
The described complete graph of having downloaded is stored in static memory.
9. method according to claim 8, is characterized in that, described method also comprises:
In the time showing the complete graph of described picture, the complete graph being stored in described static memory is loaded in dynamic storage;
In the time stopping showing the complete graph of described picture, in described dynamic storage, discharge the storage space of the dynamic storage that described complete graph takies.
10. a pictorial information charger, is characterized in that, comprising:
Information acquisition unit, for obtaining the data message of picture of the required displaying of current interface;
The first download unit, for according to the data volume size of the thumbnail of described picture, downloads the thumbnail of described picture from small to large;
The second download unit, after having downloaded when the thumbnail of picture described in each, according to the data volume size of the complete graph of described picture, downloads the complete graph of described picture from small to large.
11. devices according to claim 10, is characterized in that, described device also comprises:
Instruction execution unit, for in the time downloading the thumbnail of described picture, if receive user's operational order, disconnect the downloading process of the thumbnail of described picture, preferentially use the resource of Internet resources and/or dynamic storage to carry out the indicated operation of described user's operational order.
12. devices according to claim 11, is characterized in that, described instruction execution unit comprises:
Order module, after completing when the indicated operation of described user's operational order, sorts to the data volume size of thumbnail to be downloaded;
Download module, for downloading from small to large described thumbnail to be downloaded according to described data volume size.
13. devices according to claim 11, is characterized in that, described instruction execution unit comprises:
Image Display module, if be Image Display instruction for described user's operational order, the preferential complete graph of downloading the picture of indicating in described Image Display instruction;
Picture update module, if be picture update instruction for described user's operational order, according to the total amount M of the Downloadable thumbnail of calculation of capacity of described dynamic storage, if described total amount M is greater than the amount K to be downloaded of thumbnail formerly and the renewal amount F at rear thumbnail, stop several formerly downloads of thumbnail, amount K to be downloaded after renewal and described renewal amount be F's and be at rear amount J to be downloaded, described in making, be less than or equal to described total amount M at rear amount J to be downloaded, described M, F and J are all the integer that is greater than zero.
14. devices according to claim 10, is characterized in that, described device also comprises:
The first storage unit, for be stored in dynamic storage and static memory by the described thumbnail of having downloaded simultaneously;
The second storage unit, for being stored in static memory by the described complete graph of having downloaded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210579051.5A CN103902575B (en) | 2012-12-27 | 2012-12-27 | A kind of pictorial information loading method and relevant apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210579051.5A CN103902575B (en) | 2012-12-27 | 2012-12-27 | A kind of pictorial information loading method and relevant apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103902575A true CN103902575A (en) | 2014-07-02 |
CN103902575B CN103902575B (en) | 2018-02-27 |
Family
ID=50993903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210579051.5A Active CN103902575B (en) | 2012-12-27 | 2012-12-27 | A kind of pictorial information loading method and relevant apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103902575B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104267918A (en) * | 2014-09-17 | 2015-01-07 | 深圳市九洲电器有限公司 | Picture display method and system |
CN105824533A (en) * | 2016-03-21 | 2016-08-03 | 青岛海信移动通信技术股份有限公司 | Method and device for loading picture and terminal |
CN105938440A (en) * | 2015-12-28 | 2016-09-14 | 乐视移动智能信息技术(北京)有限公司 | Picture display method and system for mobile terminal |
CN105991728A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Method for downloading file and terminal |
CN106028060A (en) * | 2016-05-25 | 2016-10-12 | 努比亚技术有限公司 | Picture check device, system and method |
CN107786463A (en) * | 2015-03-16 | 2018-03-09 | 广东欧珀移动通信有限公司 | The method for down loading and device and medium product of a kind of network data |
CN108874477A (en) * | 2017-05-11 | 2018-11-23 | 武汉斗鱼网络科技有限公司 | A kind of method and apparatus showing static images and dynamic picture |
CN110377853A (en) * | 2019-07-04 | 2019-10-25 | 北京奇艺世纪科技有限公司 | Cardon playback method, equipment and storage medium |
CN112860590A (en) * | 2019-11-28 | 2021-05-28 | 北京沃东天骏信息技术有限公司 | Picture analysis method and device |
WO2024212965A1 (en) * | 2023-04-10 | 2024-10-17 | 北京字跳网络技术有限公司 | Method and apparatus for sliding image preview and terminal device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004234561A (en) * | 2003-01-31 | 2004-08-19 | Secom Co Ltd | Image display system |
CN101107603A (en) * | 2005-01-20 | 2008-01-16 | 皇家飞利浦电子股份有限公司 | User interface for image browse |
US20080126967A1 (en) * | 2006-11-29 | 2008-05-29 | Siemens Medical Solutions Usa, Inc. | Document Viewing and Management System |
CN102651001A (en) * | 2011-02-28 | 2012-08-29 | 腾讯科技(深圳)有限公司 | Method and device for browsing picture |
-
2012
- 2012-12-27 CN CN201210579051.5A patent/CN103902575B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004234561A (en) * | 2003-01-31 | 2004-08-19 | Secom Co Ltd | Image display system |
CN101107603A (en) * | 2005-01-20 | 2008-01-16 | 皇家飞利浦电子股份有限公司 | User interface for image browse |
US20080126967A1 (en) * | 2006-11-29 | 2008-05-29 | Siemens Medical Solutions Usa, Inc. | Document Viewing and Management System |
CN102651001A (en) * | 2011-02-28 | 2012-08-29 | 腾讯科技(深圳)有限公司 | Method and device for browsing picture |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104267918A (en) * | 2014-09-17 | 2015-01-07 | 深圳市九洲电器有限公司 | Picture display method and system |
CN104267918B (en) * | 2014-09-17 | 2017-09-29 | 深圳市九洲电器有限公司 | A kind of image display method and system |
CN105991728B (en) * | 2015-02-12 | 2020-03-03 | Oppo广东移动通信有限公司 | File downloading method and terminal |
CN105991728A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Method for downloading file and terminal |
CN107786463A (en) * | 2015-03-16 | 2018-03-09 | 广东欧珀移动通信有限公司 | The method for down loading and device and medium product of a kind of network data |
CN107786463B (en) * | 2015-03-16 | 2021-09-14 | Oppo广东移动通信有限公司 | Network data downloading method and device and medium product |
CN105938440A (en) * | 2015-12-28 | 2016-09-14 | 乐视移动智能信息技术(北京)有限公司 | Picture display method and system for mobile terminal |
CN105824533A (en) * | 2016-03-21 | 2016-08-03 | 青岛海信移动通信技术股份有限公司 | Method and device for loading picture and terminal |
CN105824533B (en) * | 2016-03-21 | 2019-06-18 | 青岛海信移动通信技术股份有限公司 | A kind of picture loading method, device and terminal |
CN110058764A (en) * | 2016-03-21 | 2019-07-26 | 青岛海信移动通信技术股份有限公司 | A kind of picture loading method, device and terminal |
CN106028060A (en) * | 2016-05-25 | 2016-10-12 | 努比亚技术有限公司 | Picture check device, system and method |
CN108874477B (en) * | 2017-05-11 | 2021-06-15 | 武汉斗鱼网络科技有限公司 | Method and device for displaying static pictures and dynamic pictures |
CN108874477A (en) * | 2017-05-11 | 2018-11-23 | 武汉斗鱼网络科技有限公司 | A kind of method and apparatus showing static images and dynamic picture |
CN110377853A (en) * | 2019-07-04 | 2019-10-25 | 北京奇艺世纪科技有限公司 | Cardon playback method, equipment and storage medium |
CN112860590A (en) * | 2019-11-28 | 2021-05-28 | 北京沃东天骏信息技术有限公司 | Picture analysis method and device |
WO2024212965A1 (en) * | 2023-04-10 | 2024-10-17 | 北京字跳网络技术有限公司 | Method and apparatus for sliding image preview and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN103902575B (en) | 2018-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103902575A (en) | Pictorial information loading method and related device | |
CN102937979B (en) | The self-defined optimization of webpage | |
US20130111368A1 (en) | Creating and maintaining images of browsed documents | |
JP2020504865A (en) | Application data processing method, apparatus, and storage medium | |
US9367211B1 (en) | Interface tab generation | |
CN109446570B (en) | Business process display method, device, computer equipment and storage medium | |
CN103235686A (en) | Application management method and device | |
CN102541538A (en) | Picture displaying method and device based on mobile terminal | |
CN108345478B (en) | Application processing method and device, storage medium and electronic equipment | |
CN103984781A (en) | Webpage loading method and device | |
WO2015149344A1 (en) | Expandable application representation and sending content | |
CN103428251A (en) | Download task allocation method and device | |
CN101777065A (en) | Multi-page browser for mobile communication equipment terminals and application method thereof | |
CN108563469A (en) | page loading method, device, storage medium and terminal device | |
CN108304274A (en) | A kind of method of information exchange, server and computer-readable medium | |
CN117194828B (en) | Table rolling paging method and device in reaction and electronic equipment | |
CN112783783A (en) | Webpage point burying method, device and equipment and readable storage medium | |
WO2017012488A1 (en) | Scrolling view display method and apparatus | |
US9618995B2 (en) | System and method for displaying content on a computing device during an inactive or off-state | |
CN112052420A (en) | Page sharing picture generation method and device and page sharing method and device | |
US20140289248A1 (en) | Display apparatus and method for displaying information regarding activities thereof | |
CN103543901A (en) | Method and device for generating menus | |
CN103678393A (en) | Information obtaining method and device | |
CN114089885A (en) | Application icon management method and device, electronic equipment and readable storage medium | |
CN102354262B (en) | Electricity-saving control method of client side software and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |