[go: up one dir, main page]

CN103902575B - A kind of pictorial information loading method and relevant apparatus - Google Patents

A kind of pictorial information loading method and relevant apparatus Download PDF

Info

Publication number
CN103902575B
CN103902575B CN201210579051.5A CN201210579051A CN103902575B CN 103902575 B CN103902575 B CN 103902575B CN 201210579051 A CN201210579051 A CN 201210579051A CN 103902575 B CN103902575 B CN 103902575B
Authority
CN
China
Prior art keywords
picture
thumbnail
downloaded
complete graph
data volume
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
CN201210579051.5A
Other languages
Chinese (zh)
Other versions
CN103902575A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210579051.5A priority Critical patent/CN103902575B/en
Publication of CN103902575A publication Critical patent/CN103902575A/en
Application granted granted Critical
Publication of CN103902575B publication Critical patent/CN103902575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

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 kind of pictorial information loading method and relevant apparatus, for optimizing the overall loading velocity of picture in grid interface.Present invention method includes:Obtain the data message of the picture of displaying needed for current interface;According to the data volume size of the thumbnail of the picture, the thumbnail of the picture is downloaded from small to large;After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, the complete graph of the picture is downloaded from small to large.

Description

A kind of pictorial information loading method and relevant apparatus
Technical field
The present invention relates to pictorial information process field, more particularly to a kind of pictorial information loading method and relevant apparatus.
Background technology
Information is to represent the content of event, things, phenomenon etc., number with media such as word, numeral, symbol, language, images Amount or feature, so as to people(Or system)There is provided on real world it is new the fact and knowledge, as production, build, manage, Management, the foundation of analysis and decision.
Existing information display scheme is broadly divided into text and shown and graphic software platform.Text, which is shown, to be referred to use character express Information, graphic software platform refer to be shown information with means such as figure, chart, images.With computer and internet Development, the graphic software platform of information have become more and more ordinary, for example, people can be believed using dynamic picture to express expression Breath, landscape information, etc. is described using photo.
And on mobile terminals, such as mobile phone, the bandwidth limitation, the limitation of hardware performance, screen for wireless network are big Small limitation etc., in a very long time, the existing text message of cellphone exhibition is only used only in people.Recent years, Internet technology is again Have and by leaps and bounds develop, mobile Internet is received by most netizen, and it is essential to turn into many users One of online approach.Therefore user is more and more urgent by the demand of mobile Internet acquisition graphical information.
Internal memory is a kind of dynamic memory, and it is for temporarily depositing the operational data in CPU, and with hard disk etc. that it, which is acted on, The data that external memory storage exchanges.As long as computer is in operation, CPU will be carried out needing the data of computing to be transferred in internal memory Computing, CPU again sends out result after the completion of computing, and the operation of internal memory also determines the stable operation of computer.
Storage external is a kind of static memory, refers to the holder in addition to calculator memory and cpu cache, such storage Data still can be preserved after device typically power-off.Common storage external has hard disk, floppy disk, CD, USB flash disk etc..
Grid interface is a kind of computer system software interface for showing a large amount of pictures.It is by all pictures with latticed Layout is shown on the screen of computer system.
When an interface display is not descended, picture can extend to other interfaces, and user can be checked by sliding interface The picture at other interfaces.After user deletes some picture, interface can be laid out again, to fill the position for being deleted picture Put.
In existing application, user can typically include network picture at grid interface in browsing pictures on network In, and consumption network bandwidth and flow are needed when pulling network piece on network, and pull time-consuming long.In picture During display, if in the presence of the larger picture of some data volumes, it is likely that the overall loading of picture in grid interface can be caused slow, Influence Consumer's Experience.
The content of the invention
The embodiments of the invention provide a kind of pictorial information loading method and relevant apparatus, scheme for optimizing in grid interface The overall loading velocity of piece.
The pictorial information loading method that first aspect present invention provides, including:
Obtain the data message of the picture of displaying needed for current interface;
According to the data volume size of the thumbnail of the picture, the thumbnail of the picture is downloaded from small to large;
After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, from It is small to the complete graph for downloading the picture greatly.
In the first method in the cards of first aspect, methods described also includes:
When downloading the thumbnail of the picture, if receiving user operation instruction, the thumbnail of the picture is disconnected Downloading process, the preferential behaviour performed using the resource of Internet resources and/or dynamic memory indicated by the user operation instruction Make.
It is described preferential in second of method in the cards with reference to the first method in the cards of first aspect After the operation indicated by the user operation instruction is performed using the resource of Internet resources and/or dynamic memory, including:
After the completion of the operation indicated by the user operation instruction, the data volume size of thumbnail to be downloaded is carried out Sequence;
The thumbnail to be downloaded is downloaded according to the data volume size from small to large.
With reference to the first method in the cards of first aspect, in the third method in the cards, if the use Family operational order is picture idsplay order, then described preferential using described in the execution of the resource of Internet resources and/or dynamic memory Operation indicated by user operation instruction, including:
Preferentially download the complete graph of the picture indicated in the picture idsplay order.
With reference to the first method in the cards of first aspect, in the 4th kind of method in the cards, if the use Family operational order is picture more new command, then described preferential using described in the execution of the resource of Internet resources and/or dynamic memory Operation indicated by user operation instruction, including:
If the picture renewal of displaying needed for current interface, according to the Downloadable contracting of the calculation of capacity of the dynamic memory The total amount M of sketch map, if the total amount M is more than the amount K to be downloaded and the renewal amount F in rear thumbnail of first thumbnail, stop The download of several first thumbnails, amount K to be downloaded and the renewal amount after renewal be F's and in rear amount J to be downloaded so that Described to be less than or equal to the total amount M in rear amount J to be downloaded, the M, F and J are all the integer more than zero.
With reference to first to fourth first aspect and first aspect any one method in the cards, in the 5th kind of possibility In the method for realization, the thumbnail of the download pictures, including:
The thumbnail that N number of thread downloads the picture is opened, the N is equal to user network bandwidth divided by single thread takes band Wide result rounds;
The complete graph of the download pictures, including:
Open the complete graph that N number of thread downloads the picture.
With reference to first to fourth first aspect and first aspect any one method in the cards, in the 6th kind of possibility In the method for realization, after the thumbnail for downloading the picture from small to large, including:
By the thumbnail downloaded while it is stored in dynamic memory and static memory.
With reference to first to fourth first aspect and first aspect any one method in the cards, in the 7th kind of possibility In the method for realization, after the complete graph for downloading the picture from small to large, including:
The complete graph downloaded is stored in static memory.
With reference to the 7th kind of method in the cards of first aspect, in the 8th kind of method in the cards,
When showing the complete graph of the picture, the complete graph being stored in the static memory is loaded into dynamic and deposited In reservoir;
When stopping showing the complete graph of the picture, the dynamic of the complete graph occupancy is discharged in the dynamic memory The memory space of state memory.
The pictorial information loading device that second aspect of the present invention provides, including:
Information acquisition unit, for obtaining the data message of the picture shown needed for current interface;
First download unit, for the data volume size of the thumbnail according to the picture, the figure is downloaded from small to large The thumbnail of piece;
Second download unit, after the completion of being downloaded when the thumbnail of each picture, according to the complete of the picture The data volume size of figure, the complete graph of the picture is downloaded from small to large.
In the first method in the cards of second aspect, described device also includes:
Instruction execution unit, for when downloading the thumbnail of the picture, if receiving user operation instruction, disconnecting institute The downloading process of the thumbnail of picture is stated, it is preferential to perform the user behaviour using the resource of Internet resources and/or dynamic memory Instruct indicated operation.
With reference to the first method in the cards of second aspect, in second of method in the cards, the instruction Execution unit includes:
Order module, for after the completion of the operation indicated by the user operation instruction, to thumbnail to be downloaded Data volume size is ranked up;
Download module, for downloading the thumbnail to be downloaded from small to large according to the data volume size.
With reference to the first method in the cards of second aspect, in the third method in the cards, the instruction Execution unit includes:
Picture display module, if being picture idsplay order for the user operation instruction, preferentially download the picture The complete graph of the picture indicated in idsplay order;
Picture update module, if being picture more new command for the user operation instruction, according to the dynamic memory The total amount M of the Downloadable thumbnail of calculation of capacity of device, if the total amount M is more than the amount K to be downloaded of first thumbnail and rear The renewal amount F of thumbnail, then stop the download of several first thumbnails, the amount K's to be downloaded and the renewal amount F after renewal With in rear amount J to be downloaded so that described to be less than or equal to the total amount M in rear amount J to be downloaded, the M, F and J are all to be more than Zero integer.
In the 4th kind of method in the cards of second aspect, described device also includes:
First memory cell, for by the thumbnail downloaded while being stored in dynamic memory and static memory In;
Second memory cell, for the complete graph downloaded to be stored in static memory.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:In embodiments of the present invention, receipts are worked as Into grid interface after the instruction of exhibiting pictures, the data message of the picture of displaying needed for current interface is obtained;According to described The data volume size of the thumbnail of picture, the thumbnail of the picture is downloaded from small to large;When the thumbnail of each picture After the completion of download, according to the data volume size of the complete graph of the picture, the complete graph of the picture is downloaded from small to large;So that The small pictorial information of data volume can be preferentially loaded, and the overall loading velocity of picture in grid interface be improved, so as to carry High Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a schematic flow sheet of pictorial information loading method of the embodiment of the present invention;
Fig. 2 is another schematic flow sheet of pictorial information loading method of the embodiment of the present invention;
Fig. 3 is another schematic flow sheet of pictorial information loading method of the embodiment of the present invention;
Fig. 4 is the logical construction schematic diagram of pictorial information loading device of the embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of pictorial information loading method and relevant apparatus, scheme for optimizing in grid interface The overall loading velocity of piece.
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 carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, one embodiment of pictorial information loading method includes in the embodiment of the present invention:
101st, the data message of the picture of displaying needed for current interface is obtained;
After the instruction of exhibiting pictures in grid interface is received, pictorial information loading device is obtained and opened up needed for current interface The data message of the picture shown, the current interface are grid interface, and the icon at grid interface is sequentially from top to bottom, from a left side It is arranged in order to the right side.
Specifically, the data message of the picture can include:The thumbnail of picture and the data volume size of complete graph, with And the quantity of picture.
102nd, according to the data volume size of the thumbnail of the picture, the thumbnail of the picture is downloaded from small to large;
Pictorial information loading device, can be according to the data message pair after the data message of the picture is got Each picture carries out the sequence of data volume size;Specifically, can be respectively to the data volume size and complete graph of thumbnail Data volume size be ranked up.
Then, further according to the picture thumbnail data volume size, download the thumbnail of the picture from small to large.
103rd, according to the data volume size of the complete graph of the picture, the complete graph of the picture is downloaded from small to large;
After the completion of the thumbnail of each picture is downloaded, pictorial information loading device can be according to the complete of the picture The data volume size of whole figure, the complete graph of the picture is downloaded from small to large, before user does not click on and checks complete graph in advance Complete graph is downloaded, the loading velocity of user's complete graph when clicking on can be improved, further improve Consumer's Experience.
In embodiments of the present invention, after the instruction of exhibiting pictures in grid interface is received, obtain needed for current interface The data message of the picture of displaying;According to the data volume size of the thumbnail of the picture, the picture is downloaded from small to large Thumbnail;After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, from small To the complete graph for downloading the picture greatly;The pictorial information for enabling data volume small is preferentially loaded, and improves grid interface The overall loading velocity of middle picture, so as to improve Consumer's Experience.
In actual applications, because picture loading can take the resource of substantial amounts of dynamic memory, if dynamic memory Resource do not discharged timely, it is easy to cause internal memory to overflow, the embodiments of the invention provide corresponding prioritization scheme, Referring to Fig. 2, another embodiment of pictorial information loading method includes in the embodiment of the present invention:
201st, the data message of the picture of displaying needed for current interface is obtained;
After the instruction of exhibiting pictures in grid interface is received, pictorial information loading device is obtained needed for current interface The data message of the picture of displaying, the current interface are grid interface, the icon at grid interface be sequentially from top to bottom, from Left-to-right is arranged in order.
Specifically, the data message of the picture can include:The thumbnail of picture and the data volume size of complete graph, with And the quantity of picture.
202nd, according to the data volume size of the thumbnail of the picture, the thumbnail of the picture is downloaded from small to large;
Pictorial information loading device, can be according to the data message pair after the data message of the picture is got Each picture carries out the sequence of data volume size;Specifically, can be respectively to the data volume size and complete graph of thumbnail Data volume size be ranked up.
Then, further according to the picture thumbnail data volume size, open N number of thread and download the figure from small to large The thumbnail of piece, and by the thumbnail downloaded while be stored in dynamic memory and static memory, the breviary Figure, which is stored in dynamic memory, can improve current thumbnail loading velocity, be handled when needing the resource of release dynamics memory During other operations, thumbnail can be discharged currently in the memory space of dynamic memory, after the completion of other operations processing, returned During to current interface, the thumbnail can be read from static memory again.
Specifically, the N is equal to user network bandwidth divided by the result of single thread occupied bandwidth rounds;In the prior art The use of how many individual thread down loading network resources is typically a fixed arranges value, fixed setting is unfavorable for effectively utilizing band Wide resource, also, the network bandwidth for working as user can not meet that fixed arranges value is taken, and again the internal memory of terminal can be caused to overflow Go out, user's terminal crash may be made.Dynamically go what setting was downloaded according to the network bandwidth of single thread occupied bandwidth and user Thread, contribute to the Optimum utilization of Internet resources.
If the 203, receiving user operation instruction, the downloading process of the thumbnail of the picture is disconnected;
When downloading the thumbnail of the picture, if receiving user operation instruction, the thumbnail of the picture is disconnected Downloading process, the preferential behaviour performed using the resource of Internet resources and/or dynamic memory indicated by the user operation instruction Make.In this way, then can currently want the operation completed with priority treatment user, Consumer's Experience is improved.
Specifically, the downloading process for disconnecting the thumbnail of the picture refers to stopping the download of the thumbnail, and release Put down the resource for carrying the dynamic memory shared by thumbnail.
204th, according to the data volume size of the complete graph of the picture, the complete graph of the picture is downloaded from small to large;
After the completion of the thumbnail of each picture is downloaded, pictorial information loading device can be according to the complete of the picture The data volume size of whole figure, the complete graph of the picture is downloaded from small to large, and the complete graph downloaded is stored in quiet In state memory;Download complete graph in advance before user does not click on and checks complete graph, it is complete when clicking on that user can be improved The loading velocity of figure, further improves Consumer's Experience.
In embodiments of the present invention, after the instruction of exhibiting pictures in grid interface is received, obtain needed for current interface The data message of the picture of displaying;According to the data volume size of the thumbnail of the picture, the picture is downloaded from small to large Thumbnail;After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, from small To the complete graph for downloading the picture greatly;The pictorial information for enabling data volume small is preferentially loaded, and improves grid interface The overall loading velocity of middle picture, so as to improve Consumer's Experience.When user clicks on the complete graph for showing picture, picture letter The complete graph being stored in the static memory can be loaded into dynamic memory by breath loading device;When stopping display institute When stating the complete graph of picture(Such as, user, which clicks on, returns to operation), discharge what the complete graph took in the dynamic memory The memory space of dynamic memory.
The embodiments of the invention provide a kind of memory management technology scheme for showing pictorial information in grid interface, utilizes Dynamic memory and static memory maximumlly ensure in grid interface, largely when addition, deletion, browse network picture Smooth program, while take into account internal memory, the occupancy of bandwidth resources.
In order to make it easy to understand, below with a concrete application scene to the pictorial information loading side described in the above embodiments Method is described in detail again, refer to Fig. 3, is specially:
301st, user enters the interface that picture is shown;
When user enters the interface that picture is shown, pictorial information loading device program will receive opens up in grid interface The instruction of diagram piece, pictorial information loading device obtains the data message of the picture of displaying needed for current interface, specifically, described The data message of picture can include:The thumbnail of picture and the data volume size of complete graph, and the quantity of picture.
Pictorial information loading device, can be according to the data message pair after the data message of the picture is got Each picture carries out the sequence of data volume size;Specifically, can be respectively to the data volume size and complete graph of thumbnail Data volume size be ranked up;Then, further according to the picture thumbnail data volume size, obtain download pictures information Single thread occupied bandwidth, it is determined that the thread N downloaded, is then turned on the thumbnail that N number of thread downloads the picture from small to large, and will The thumbnail downloaded while it is stored in dynamic memory and static memory.When under the thumbnail of each picture After the completion of load, pictorial information loading device can download institute from small to large according to the data volume size of the complete graph of the picture The complete graph of picture is stated, and the complete graph downloaded is stored in static memory.
302nd, user clicks on the operation of picture;
When user clicks on the thumbnail of picture, pictorial information loading device will receive picture idsplay order, and instruction is aobvious Show completion figure corresponding to the thumbnail;
If now, the download of the thumbnail of current interface remains unfulfilled, then the thumbnail for disconnecting the picture is downloaded into Journey, preferentially download the complete graph of the picture indicated in the picture idsplay order;
Completed if now, the thumbnail of current interface is downloaded, and complete graph does not download completion yet, then preferential download pictures show Show the complete graph of the picture indicated in instruction;
If now, the thumbnail of current interface and complete graph all download completion, then the figure is read from static memory The complete graph indicated in piece idsplay order.
After the completion of the operation indicated by the picture idsplay order, if still there is thumbnail not download completion, treat down The data volume size of the thumbnail of load is ranked up;The breviary to be downloaded is downloaded according to the data volume size from small to large Figure.
Optionally, after the completion of the operation indicated by the picture idsplay order, it can first carry out whether user is grasped The judgement of work, decision logic are as follows:If user is at 3 seconds without click, button, rolling operation, then thinks that now user does not have There is operation;When it is determined that the step of user currently without being operated, then performs above-mentioned thumbnail sequence.
303rd, user switches the operation of current interface;
When user rolls or refreshes current interface, the picture of display be able to may update required for current interface, picture Information loading device can then receive picture more new command, and new picture is added in instruction.
If the picture renewal of displaying needed for current interface, according to the Downloadable contracting of the calculation of capacity of the dynamic memory The total amount M of sketch map, if the total amount M is more than the amount K to be downloaded and the renewal amount F in rear thumbnail of first thumbnail, stop The download of several first thumbnails;Specifically, pictorial information loading device can preferentially download the contracting of the picture in current interface Sketch map, then several thumbnails that data volume is minimum in thumbnail formerly to be downloaded are downloaded, if dischargeing data volume maximum The dynamic memory resource of dry thumbnail.Amount K to be downloaded and the renewal amount after renewal be F's and in rear amount J to be downloaded, So that described be less than or equal to the total amount M in rear amount J to be downloaded, the M, F and J are all the integer more than zero.
After the completion of the operation indicated by the picture idsplay order, if still there is thumbnail not download completion, treat down The data volume size of the thumbnail of load is ranked up;The breviary to be downloaded is downloaded according to the data volume size from small to large Figure.
Optionally, after the completion of the operation indicated by the picture idsplay order, it can first carry out whether user is grasped The judgement of work, decision logic are as follows:If user is at 3 seconds without click, button, rolling operation, then thinks that now user does not have There is operation;When it is determined that the step of user currently without being operated, then performs above-mentioned thumbnail sequence.
In embodiments of the present invention, after the instruction of exhibiting pictures in grid interface is received, obtain needed for current interface The data message of the picture of displaying;According to the data volume size of the thumbnail of the picture, the picture is downloaded from small to large Thumbnail;After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, from small To the complete graph for downloading the picture greatly;The pictorial information for enabling data volume small is preferentially loaded, and improves grid interface The overall loading velocity of middle picture, so as to improve Consumer's Experience.Also, in embodiments of the present invention, further define User is under various operations, the processing priority of background process, gives priority to the current operating experience of user so that Consumer's Experience Further it is improved.
Only the application scenarios in the embodiment of the present invention are illustrated with some examples above, it is to be understood that In practical application, there can also be more application scenarios, this is not limited here.
The pictorial information loading device for performing pictorial information loading method of the present invention is described below, referring to Fig. 4, One embodiment of pictorial information loading device includes in the embodiment of the present invention:
Information acquisition unit 401, for obtaining the data message of the picture shown needed for current interface;
First download unit 402, for the data volume size of the thumbnail according to the picture, download from small to large described in The thumbnail of picture;
Second download unit 403, after the completion of being downloaded when the thumbnail of each picture, according to the complete of the picture The data volume size of whole figure, the complete graph of the picture is downloaded from small to large.
Optionally, described device also includes:
Instruction execution unit 404, for when downloading the thumbnail of the picture, if receiving user operation instruction, breaking The downloading process of the thumbnail of the picture is opened, it is preferential to perform the use using the resource of Internet resources and/or dynamic memory Operation indicated by the operational order of family.
Optionally, the instruction execution unit 404 includes:
Order module 4041, for after the completion of the operation indicated by the user operation instruction, to breviary to be downloaded The data volume size of figure is ranked up;
Download module 4042, for downloading the thumbnail to be downloaded from small to large according to the data volume size.
Optionally, the instruction execution unit 404 includes:
Picture display module 4043, if being picture idsplay order for the user operation instruction, described in preferential download The complete graph of the picture indicated in picture idsplay order.
Picture update module 4044, if being picture more new command for the user operation instruction, according to the dynamic The total amount M of the Downloadable thumbnail of calculation of capacity of memory, if the total amount M be more than first thumbnail amount K to be downloaded and In the renewal amount F of rear thumbnail, then stop the download of several first thumbnails, amount K to be downloaded and the renewal after renewal Amount be F's and in rear amount J to be downloaded so that described to be less than or equal to the total amount M in rear amount J to be downloaded, the M, F and J are all For the integer more than zero.
Optionally, described device also includes:
First memory cell 405, for by the thumbnail downloaded while being stored in dynamic memory and static state is deposited In reservoir;
Second memory cell 406, for the complete graph downloaded to be stored in static memory.
The specific operation process of unit in the embodiment of the present invention, including:
After the instruction of exhibiting pictures in grid interface is received, information acquisition unit 401 is obtained and opened up needed for current interface The data message of the picture shown, the current interface are grid interface, and the icon at grid interface is sequentially from top to bottom, from a left side It is arranged in order to the right side.
Specifically, the data message of the picture can include:The thumbnail of picture and the data volume size of complete graph, with And the quantity of picture.
After the data message of the picture is got, each picture can be carried out according to the data message The sequence of data volume size;Specifically, the data volume size to thumbnail and the data volume size of complete graph it can carry out respectively Sequence.
Then, the first download unit 402 downloads institute from small to large further according to the data volume size of the thumbnail of the picture State the thumbnail of picture.
After the completion of the thumbnail of each picture is downloaded, the second download unit 403 can be according to the complete of the picture The data volume size of whole figure, the complete graph of the picture is downloaded from small to large, before user does not click on and checks complete graph in advance Complete graph is downloaded, the loading velocity of user's complete graph when clicking on can be improved, further improve Consumer's Experience.
In embodiments of the present invention, after the instruction of exhibiting pictures in grid interface is received, obtain needed for current interface The data message of the picture of displaying;According to the data volume size of the thumbnail of the picture, the picture is downloaded from small to large Thumbnail;After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, from small To the complete graph for downloading the picture greatly;The pictorial information for enabling data volume small is preferentially loaded, and improves grid interface The overall loading velocity of middle picture, so as to improve Consumer's Experience.
In another implementation of the embodiment of the present invention, when receive the exhibiting pictures in grid interface instruction it Afterwards, information acquisition unit 401 obtains the data message of the picture of displaying needed for current interface, and the current interface is grid circle Face, the icon at grid interface are sequentially from top to bottom, to array from left to right.Specifically, the data message of the picture It can include:The thumbnail of picture and the data volume size of complete graph, and the quantity of picture.
After the data message of the picture is got, each picture can be carried out according to the data message The sequence of data volume size;Specifically, the data volume size to thumbnail and the data volume size of complete graph it can carry out respectively Sequence.
Then, the first download unit 402 is further according to the data volume size of the thumbnail of the picture, open N number of thread from It is small to the thumbnail for downloading the picture greatly, and by the thumbnail downloaded while be stored in dynamic memory and static state is deposited In reservoir, the thumbnail storage can improve current thumbnail loading velocity in dynamic memory, when needing release dynamics When the resource of memory handles other operations, thumbnail can be discharged currently in the memory space of dynamic memory, as other behaviour After the completion of dealing with, when returning to current interface, the thumbnail can be read from static memory again.
Specifically, the N is equal to user network bandwidth divided by the result of single thread occupied bandwidth rounds;In the prior art The use of how many individual thread down loading network resources is typically a fixed arranges value, fixed setting is unfavorable for effectively utilizing band Wide resource, also, the network bandwidth for working as user can not meet that fixed arranges value is taken, and again the internal memory of terminal can be caused to overflow Go out, user's terminal crash may be made.Dynamically go what setting was downloaded according to the network bandwidth of single thread occupied bandwidth and user Thread, contribute to the Optimum utilization of Internet resources.
When downloading the thumbnail of the picture, if receiving user operation instruction, instruction execution unit 404 disconnects described The downloading process of the thumbnail of picture, it is preferential to perform user's operation using the resource of Internet resources and/or dynamic memory The indicated operation of instruction.In this way, then can currently want the operation completed with priority treatment user, Consumer's Experience is improved.Specifically, Can be big to the data volume of thumbnail to be downloaded after the completion of the operation as described in order module 4041 indicated by user operation instruction It is small to be ranked up;Again by download module 4042, for downloading the contracting to be downloaded from small to large according to the data volume size Sketch map.
Specifically, the downloading process for disconnecting the thumbnail of the picture refers to stopping the download of the thumbnail, and release Put down the resource for carrying the dynamic memory shared by thumbnail.
After the completion of the thumbnail of each picture is downloaded, the second download unit 403 can be according to the complete of the picture The data volume size of whole figure, the complete graph of the picture is downloaded from small to large, and the complete graph downloaded is stored in quiet In state memory;Download complete graph in advance before user does not click on and checks complete graph, it is complete when clicking on that user can be improved The loading velocity of figure, further improves Consumer's Experience.
In embodiments of the present invention, after the instruction of exhibiting pictures in grid interface is received, obtain needed for current interface The data message of the picture of displaying;According to the data volume size of the thumbnail of the picture, the picture is downloaded from small to large Thumbnail;After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, from small To the complete graph for downloading the picture greatly;The pictorial information for enabling data volume small is preferentially loaded, and improves grid interface The overall loading velocity of middle picture, so as to improve Consumer's Experience.When user clicks on the complete graph for showing picture, can incite somebody to action The complete graph being stored in the static memory is loaded into dynamic memory;When stopping showing the complete graph of the picture (Such as, user, which clicks on, returns to operation), the storage for the dynamic memory that the complete graph takes is discharged in the dynamic memory Space.
In another implementation of the embodiment of the present invention, when user enters the interface that picture show, instruction execution The picture display module 4043 of unit 404 will receive the instruction of the exhibiting pictures in grid interface, picture display module 4043 The data message of the picture of displaying needed for current interface is obtained, specifically, the data message of the picture can include:Picture The data volume size of thumbnail and complete graph, and the quantity of picture.
After the data message of the picture is got, each picture can be carried out according to the data message The sequence of data volume size;Specifically, the data volume size to thumbnail and the data volume size of complete graph it can carry out respectively Sequence;Then, further according to the picture thumbnail data volume size, obtain download pictures information single thread occupied bandwidth, It is determined that the thread N downloaded, is then turned on the thumbnail that N number of thread downloads the picture from small to large, and the contracting that will have been downloaded Sketch map is stored in dynamic memory and static memory simultaneously., can be with after the completion of the thumbnail of each picture is downloaded According to the data volume size of the complete graph of the picture, the complete graph of the picture, and the institute that will have been downloaded are downloaded from small to large Complete graph is stated to be stored in static memory.
When user clicks on the thumbnail of picture, pictorial information loading device will receive picture idsplay order, and instruction is aobvious Show completion figure corresponding to the thumbnail;
If now, the download of the thumbnail of current interface remains unfulfilled, then the thumbnail for disconnecting the picture is downloaded into Journey, preferentially download the complete graph of the picture indicated in the picture idsplay order;
Completed if now, the thumbnail of current interface is downloaded, and complete graph does not download completion yet, then preferential download pictures show Show the complete graph of the picture indicated in instruction;
If now, the thumbnail of current interface and complete graph all download completion, then the figure is read from static memory The complete graph indicated in piece idsplay order.
After the completion of the operation indicated by the picture idsplay order, if still there is thumbnail not download completion, treat down The data volume size of the thumbnail of load is ranked up;The breviary to be downloaded is downloaded according to the data volume size from small to large Figure.
Optionally, after the completion of the operation indicated by the picture idsplay order, it can first carry out whether user is grasped The judgement of work, decision logic are as follows:If user is at 3 seconds without click, button, rolling operation, then thinks that now user does not have There is operation;When it is determined that the step of user currently without being operated, then performs above-mentioned thumbnail sequence.
When user rolls or refreshes current interface, the picture of display be able to may update required for current interface, instruct The picture update module 4044 of execution unit 404 can then receive picture more new command, and new picture is added in instruction.
If the picture renewal of displaying needed for current interface, according to the Downloadable contracting of the calculation of capacity of the dynamic memory The total amount M of sketch map, if the total amount M is more than the amount K to be downloaded and the renewal amount F in rear thumbnail of first thumbnail, stop The download of several first thumbnails;Specifically, pictorial information loading device can preferentially download the contracting of the picture in current interface Sketch map, then several thumbnails that data volume is minimum in thumbnail formerly to be downloaded are downloaded, if dischargeing data volume maximum The dynamic memory resource of dry thumbnail.Amount K to be downloaded and the renewal amount after renewal be F's and in rear amount J to be downloaded, So that described be less than or equal to the total amount M in rear amount J to be downloaded, the M, F and J are all the integer more than zero.
After the completion of the operation indicated by the picture idsplay order, if still there is thumbnail not download completion, treat down The data volume size of the thumbnail of load is ranked up;The breviary to be downloaded is downloaded according to the data volume size from small to large Figure.
Optionally, after the completion of the operation indicated by the picture idsplay order, it can first carry out whether user is grasped The judgement of work, decision logic are as follows:If user is at 3 seconds without click, button, rolling operation, then thinks that now user does not have There is operation;When it is determined that the step of user currently without being operated, then performs above-mentioned thumbnail sequence.
In embodiments of the present invention, after the instruction of exhibiting pictures in grid interface is received, obtain needed for current interface The data message of the picture of displaying;According to the data volume size of the thumbnail of the picture, the picture is downloaded from small to large Thumbnail;After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, from small To the complete graph for downloading the picture greatly;The pictorial information for enabling data volume small is preferentially loaded, and improves grid interface The overall loading velocity of middle picture, so as to improve Consumer's Experience.Also, in embodiments of the present invention, further define User is under various operations, the processing priority of background process, gives priority to the current operating experience of user so that Consumer's Experience Further it is improved.
In several embodiments provided herein, it should be understood that disclosed apparatus and method can pass through it Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical by some interfaces, device or unit Letter connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment(Can be personal computer, server, or network equipment etc.)Perform the complete of each embodiment methods described of the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read- OnlyMemory), random access memory(RAM, Random Access Memory), magnetic disc or CD etc. are various to deposit Store up the medium of program code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (14)

  1. A kind of 1. pictorial information loading method, it is characterised in that including:
    The data message of the picture of displaying needed for current interface is obtained, the data message of the picture includes:The thumbnail of picture Data volume size, the data volume size of complete graph of picture and the quantity of picture;
    According to the data volume size of the thumbnail of the picture, the thumbnail of the picture is downloaded from small to large;
    After the completion of the thumbnail of each picture is downloaded, according to the data volume size of the complete graph of the picture, from it is small to The complete graph of the picture is downloaded greatly.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    When downloading the thumbnail of the picture, if receiving user operation instruction, the download of the thumbnail of the picture is disconnected Process, the preferential operation performed using the resource of Internet resources and/or dynamic memory indicated by the user operation instruction.
  3. 3. according to the method for claim 2, it is characterised in that described preferentially to use Internet resources and/or dynamic memory Resource perform the operation indicated by the user operation instruction after, including:
    After the completion of the operation indicated by the user operation instruction, the data volume size of thumbnail to be downloaded is arranged Sequence;
    The thumbnail to be downloaded is downloaded according to the data volume size from small to large.
  4. 4. according to the method for claim 2, it is characterised in that if the user operation instruction is picture idsplay order, The preferential operation performed using the resource of Internet resources and/or dynamic memory indicated by the user operation instruction, bag Include:
    Preferentially download the complete graph of the picture indicated in the picture idsplay order.
  5. 5. according to the method for claim 2, it is characterised in that if the user operation instruction is picture more new command, The preferential operation performed using the resource of Internet resources and/or dynamic memory indicated by the user operation instruction, bag Include:
    If the picture renewal of displaying needed for current interface, according to the Downloadable thumbnail of the calculation of capacity of the dynamic memory Total amount M, if the total amount M be more than first thumbnail amount K to be downloaded and the renewal amount F in rear thumbnail, stop some The download of individual formerly thumbnail, amount K to be downloaded and the renewal amount after renewal be F's and in rear amount J to be downloaded so that described It is less than or equal to the total amount M in rear amount J to be downloaded, the M, F and J are all the integer more than zero.
  6. 6. according to the method described in claim 1 to 5 any one, it is characterised in that
    The thumbnail of the download pictures, including:
    Open the thumbnail that N number of thread downloads the picture, the N is equal to user network bandwidth divided by single thread occupied bandwidth As a result round;
    The complete graph of the download pictures, including:
    Open the complete graph that N number of thread downloads the picture.
  7. 7. according to the method described in claim 1 to 5 any one, it is characterised in that described to download the picture from small to large Thumbnail after, including:
    By the thumbnail downloaded while it is stored in dynamic memory and static memory.
  8. 8. according to the method described in claim 1 to 5 any one, it is characterised in that described to download the picture from small to large Complete graph after, including:
    The complete graph downloaded is stored in static memory.
  9. 9. according to the method for claim 8, it is characterised in that methods described also includes:
    When showing the complete graph of the picture, the complete graph being stored in the static memory is loaded into dynamic memory In;
    When stopping showing the complete graph of the picture, the dynamic that the complete graph takes is discharged in the dynamic memory and is deposited The memory space of reservoir.
  10. A kind of 10. pictorial information loading device, it is characterised in that including:
    Information acquisition unit, for obtaining the data message of the picture shown needed for current interface;
    First download unit, for the data volume size of the thumbnail according to the picture, the picture is downloaded from small to large Thumbnail;
    Second download unit, after the completion of being downloaded when the thumbnail of each picture, according to the complete graph of the picture Data volume size, the complete graph of the picture is downloaded from small to large.
  11. 11. device according to claim 10, it is characterised in that described device also includes:
    Instruction execution unit, for when downloading the thumbnail of the picture, if receiving user operation instruction, disconnecting the figure The downloading process of the thumbnail of piece, it is preferential to be referred to using the resource of Internet resources and/or dynamic memory execution user's operation The indicated operation of order.
  12. 12. device according to claim 11, it is characterised in that the instruction execution unit includes:
    Order module, for after the completion of the operation indicated by the user operation instruction, to the data of thumbnail to be downloaded Amount size is ranked up;
    Download module, for downloading the thumbnail to be downloaded from small to large according to the data volume size.
  13. 13. device according to claim 11, it is characterised in that the instruction execution unit includes:
    Picture display module, if being picture idsplay order for the user operation instruction, preferentially download the picture and show The complete graph of the picture indicated in instruction;
    Picture update module, if being picture more new command for the user operation instruction, according to the dynamic memory The total amount M of the Downloadable thumbnail of calculation of capacity, if the total amount M is more than the amount K to be downloaded of first thumbnail and in rear breviary The renewal amount F of figure, then stop the download of several first thumbnails, and the amount K to be downloaded and the renewal amount after renewal F's and are In rear amount J to be downloaded so that described to be less than or equal to the total amount M in rear amount J to be downloaded, the M, F and J are all more than zero Integer.
  14. 14. device according to claim 10, it is characterised in that described device also includes:
    First memory cell, for by the thumbnail downloaded while being stored in dynamic memory and static memory;
    Second memory cell, for the complete graph downloaded to be stored in static memory.
CN201210579051.5A 2012-12-27 2012-12-27 A kind of pictorial information loading method and relevant apparatus Active CN103902575B (en)

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 CN103902575A (en) 2014-07-02
CN103902575B true 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)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN109947340A (en) * 2016-03-21 2019-06-28 青岛海信移动通信技术股份有限公司 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
CN110377853B (en) * 2019-07-04 2025-08-22 北京奇艺世纪科技有限公司 Motion picture playback method, device and storage medium
CN112860590B (en) * 2019-11-28 2025-02-21 北京沃东天骏信息技术有限公司 Image analysis method and device
CN114741633A (en) * 2022-04-13 2022-07-12 深圳市大头兄弟科技有限公司 Method, device and equipment for loading browser webpage picture resources and storage medium
CN118778865A (en) * 2023-04-10 2024-10-15 北京字跳网络技术有限公司 Method, device and terminal equipment for sliding image preview

Citations (3)

* Cited by examiner, † Cited by third party
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 皇家飞利浦电子股份有限公司 A user interface for image browsing
CN102651001A (en) * 2011-02-28 2012-08-29 腾讯科技(深圳)有限公司 Method and device for browsing picture

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8151204B2 (en) * 2006-11-29 2012-04-03 Siemens Medical Solutions Usa, Inc. Document viewing and management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 皇家飞利浦电子股份有限公司 A user interface for image browsing
CN102651001A (en) * 2011-02-28 2012-08-29 腾讯科技(深圳)有限公司 Method and device for browsing picture

Also Published As

Publication number Publication date
CN103902575A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103902575B (en) A kind of pictorial information loading method and relevant apparatus
CN103020025B (en) Technology for the automatic animation of document content
CN103699576B (en) A kind of method and apparatus for being used to provide search result
CN103914205B (en) A kind of file thumbnail methods of exhibiting of intelligent terminal and device
CN103235686A (en) Application management method and device
CN114185508B (en) Method for left-right screen splitting on Linux compatible android system
CN106371946A (en) Browser exception recovery processing method and device
CN104462516B (en) A kind of information cuing method and mobile terminal
CN102790727A (en) Method and system for dynamically pushing personal labels of users
CN109639749A (en) Access method, device, equipment and the storage medium of cloud desktop
CN103902562B (en) A kind of terminal database upgrade method and relevant apparatus
CN103259690B (en) Information processing method and client
CN114168355B (en) Application keep-alive method and electronic equipment
CN212541377U (en) Electric power AI training platform based on containerization management
WO2017012488A1 (en) Scrolling view display method and apparatus
CN103379476A (en) Terminal and contact information updating method
CN108268578A (en) The method and system of Web page picture loading
CN107678789A (en) The update method and device at UI interfaces
CN103414750A (en) System and method for web visual editing of ANDROID client application
CN104679388A (en) Method for starting application through duplicated icon and mobile terminal thereof
CN106383752A (en) Browser page abnormity recovery processing method and device
CN109299041A (en) A kind of image cache method for cleaning and terminal device
CN105138227B (en) A kind of icon display method and terminal
CN103729440B (en) A kind of method and device of access website
CN108416149A (en) The real-time formative method of 3 d part unrelated CAD, terminal and storage medium

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