CN103544207A - Picture loading and displaying method and system - Google Patents

Picture loading and displaying method and system Download PDF

Info

Publication number
CN103544207A
CN103544207A CN201310361511.1A CN201310361511A CN103544207A CN 103544207 A CN103544207 A CN 103544207A CN 201310361511 A CN201310361511 A CN 201310361511A CN 103544207 A CN103544207 A CN 103544207A
Authority
CN
China
Prior art keywords
picture
list
screen
pictorial information
module
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
Application number
CN201310361511.1A
Other languages
Chinese (zh)
Other versions
CN103544207B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201310361511.1A priority Critical patent/CN103544207B/en
Publication of CN103544207A publication Critical patent/CN103544207A/en
Application granted granted Critical
Publication of CN103544207B publication Critical patent/CN103544207B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A picture loading and displaying method and system are used for picture application loading and picture displaying in a smart system. The method comprises the steps that a picture list used for storing all picture information is established; a picture loading list used for storing the information of pictures needing to be loaded in the picture list is established; a picture displaying list used for storing the information of pictures needing to be displayed in the picture list is established; a downloaded picture list used for storing the information of downloaded pictures is established; the pictures are downloaded after a picture application is started, the information of the picture is stored into the picture list, establishing and displaying are conducted according to the total quantity of the pictures in the picture displaying list, the pictures are loaded or displayed according to the pictures needing to be displayed in a previous screen and/or a next screen of a current display screen, and the pictures which need to be displayed and are beyond the previous screen and/or the next screen of the current display screen are not loaded or displayed. The problem of insufficient memories can be solved through loading and releasing of the memories on purpose and through reasonable picture compression downloading, and the speed of viewing the pictures are also increased.

Description

A kind of method and system of picture loaded and displayed
Technical field
The present invention relates to intelligent terminal system, relate in particular to a kind of picture and load and the method and system showing.
Background technology
At present, in Android system, picture application program often can run into the problem of low memory when Loading Image demonstration, when running into low memory, need could continue to Load Image to show after release portion internal memory, it is more passive for system management that low memory goes releasing memory to continue loading again, also can cause Image Display speed to slow down; And, in Image Display process, the picture of indication range will be exceeded, after discharging in the situation that not affecting user's surfing, can obtain the loading that more internal memory carries out other picture, yet, even if discharged in time no longer Showing Picture of committed memory in the process Showing Picture, still may there is the problem of low memory, such as loading a high-resolution picture, just can cause low memory, cause system in loaded and displayed picture so more effective load mode and memory management mechanism are very important.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the present invention is for addressing the deficiencies of the prior art and deficiency, a kind of method and system of picture loaded and displayed is proposed, propose a kind of releasing memory in time, according to internal memory situation, picture carried out picture loading display method and the system of rationally compression, solve low memory problem in picture downloading process, and improve the fluency of picture browsing.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A method for picture loaded and displayed, loads and Shows Picture for the application of intelligent system picture, wherein, comprises the steps:
Set up picture list, for depositing all pictorial informations;
Set up picture and load list, for depositing described picture list, need the pictorial information loading;
Set up Image Display list, for depositing described picture list, need the pictorial information showing;
Set up download pictures list, for depositing the pictorial information of having downloaded;
When downloading, picture, according to the demonstration needs of screen and the utilization rate of current internal memory, picture is compressed to download; Download pictures pictorial information is saved in described picture list after picture application start, picture application builds and shows photo frame according to the picture total quantity in described Image Display list, and carry out loaded and displayed picture according to the picture that the last screen of current display screen and/or a rear screen need to show, exceed the last screen of current display screen and/or the picture of rear screen a needs demonstration does not all load.
The method of described picture loaded and displayed, wherein, described pictorial information comprises local pictorial information and network pictorial information.
The method of described picture loaded and displayed, wherein, also comprises step: when picture loads after thread startup, by the ID depositing in this list, find pictorial information corresponding in picture list, then according to picture path, obtain object picture.
The method of described picture loaded and displayed, wherein, also comprises step: while building picture display list, the ID of the picture that needs are shown in picture list judges whether the current picture adding in listing not needs to load or show.
The method of described picture loaded and displayed, wherein, also comprise step: when described picture application Loads Image demonstration, this Image ID does not load this picture in described Image Display list, and this Image ID is shifted out from picture loading list, if when user's operation does not show, discharge this picture and no longer show.
A system for picture loaded and displayed, wherein, described system comprises, picture list is set up module, pictorial information module, picture and is downloaded compression module, picture load-on module, Image Display module, download pictures module;
Described picture list is set up module for setting up picture list, for depositing all pictorial informations; Set up picture and load list, for depositing described picture list, need the pictorial information loading; Set up Image Display list, for depositing described picture list, need the pictorial information showing; Set up download pictures list, for depositing the pictorial information of having downloaded;
Described pictorial information module is for download pictures after picture application start and pictorial information is saved to described picture list;
When downloading compression module for picture download, described picture, according to the demonstration needs of screen and the utilization rate of current internal memory, picture is compressed to download;
Described picture load-on module builds and shows photo frame according to the picture total quantity of described Image Display list for picture application, and carry out loaded and displayed picture according to the picture that the last screen of current display screen and/or a rear screen need to show, exceed the last screen of current display screen and/or the picture of rear screen a needs demonstration does not all load;
Described Image Display module loads the picture of list for showing described picture;
The described module of download pictures is for recording the Image ID of having downloaded.
The system of described picture loaded and displayed, wherein, described pictorial information module is for preserving pictorial information according to local pictorial information or network pictorial information.
The system of described picture loaded and displayed, wherein, described picture load-on module is for judging that picture is applied in the picture that whether loads described Image Display list while Loading Image.
Compared with prior art, the present invention by set up picture list, picture load list, Image Display list and download pictures list preserve the whether information of loaded and displayed of picture Download Info, picture, after starting, picture application thread can carry out the action of loaded and displayed or release picture according to the picture concerned information in above-mentioned table and display status information, realize autotelic loading and releasing memory, and carry out rational picture compression download, effectively alleviate the problem of low memory in picture loading procedure, improved the speed of user's browsing pictures.And, when picture is downloaded, can compress download, save internal memory.
Accompanying drawing explanation
Fig. 1 is the Image Display schematic diagram of picture loading display method embodiment mono-of the present invention.
Fig. 2 is the Image Display schematic diagram of picture loading display method embodiment bis-of the present invention.
Fig. 3 is the Image Display schematic diagram of picture loading display method embodiment tri-of the present invention.
Fig. 4 is that the picture of picture loading display method embodiment mono-, two, three of the present invention loads process flow diagram.
Fig. 5 is the picture loaded and displayed process flow diagram of picture loading display method embodiment mono-, two, three of the present invention.
Fig. 6 is the systemic-function theory diagram of the picture loaded and displayed of the embodiment of the present invention.
Embodiment
The method and system of a kind of picture loaded and displayed provided by the invention, for making object of the present invention, technical scheme and advantage clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The method of a kind of picture loaded and displayed that the embodiment of the present invention provides, comprises the following steps:
The first step: model is used for depositing the list of all pictorial information pictures.Described in step 1 specific as follows:
Step 1, obtain each pictorial information and build picture list, be used for depositing all pictorial informations.Comprise: picture name, picture path, photo resolution, picture size etc.
In this example, the picture relating to comprises local picture (being stored in flash, SD card, the medias such as USB flash disk) and network picture.Network picture comprises media picture in the LAN (Local Area Network) that picture that network operator server provides and network neighbor obtain.
Wherein, local pictorial information obtains and comprises: by the scanning of hardware device drivers layer, obtain the pathname of current media medium, then according to picture suffix name (such as .jpg, .png .gif etc.) All Files is scanned, the picture file information scanning is saved in to picture list.
Network picture information acquisition obtains by the following method:
A. the pictorial information that Virtual network operator provides obtains: the interface that application provides by operator obtains pictorial information, and information is kept in picture list.The interface that operator provides is decided through consultation by applying Fang Ji operator side agreement.
B. network neighbor obtains media pictorial information acquisition in LAN (Local Area Network): (network neighbor's detection method is not in this invention scope by network neighbor, to detect interface, therefore do not describe in detail) obtain the network neighbor address (IP) there is shared resource, then scan All Files folder under this address and obtain pictorial information, pictorial information is kept in picture list.
Second step, structure picture load list, build picture display list, build download pictures list (being step 2).
Wherein, step 21, structure picture load list: be used for depositing the callback interface for showing needing after the ID of the picture of loading in picture list downloaded with this picture.
As shown in Figure 1 to Figure 3, when picture loads after thread startup, by this picture, load the ID depositing in list, find pictorial information corresponding in picture list, then according to picture path, obtain object picture; Such as: start most, current screen 10 shows that page is the 1st page, altogether needs to load 2 pages, and the current user's of being shown to is the 1st page, and the 2nd page of next screen 11 as caching page, to guarantee that user checks the fluency of picture speed.If one page shows 15, the so current picture that need to load is 15*2=30 in picture list, and so, this picture loads in list will deposit 0 to 29 according to loading sequence; If current screen Image Display is the 2nd page, the 1st page of a screen on caching page, the 3rd page of next screen, the order that picture loads list is: 15 ~ 29, then 0 ~ 14,30 ~ 44(hypothesis has abundant picture).
The callback interface of the picture providing in list is provided the picture of the embodiment of the present invention, while having downloaded for picture, judges whether picture needs to show and realize the method for Image Display.
Step 22, build picture display list: be used for depositing and need the picture that the shows ID in picture list, and be used for judging whether the picture in current loading list needs to load or show.
Particularly first, the Image ID loading and Image Display list can be contrasted, if this Image ID is not in Image Display list, directly skip over, not load photo current, and ID is shifted out from picture loading list; Secondly, while Loading Image, this picture still needs to show, but needs the time because picture loads, after loading completes, because user's operation, display page changes, and picture does not need to show again, so, should be discharged, allow it no longer show, to guarantee the correctness (this judgement occurs in the picture callback interface of picture loading list definition) of picture browsing.
Step 23, build download pictures list: for depositing the current display screen downloaded and the ID of buffer memory screen shots.Before each pictures is downloaded, judge whether the existing identical picture resource of having downloaded, to reuse resource.
The 3rd step: according to the demonstration needs of screen and the utilization rate of current internal memory, picture is compressed to download when picture is downloaded; Download pictures pictorial information is saved in described picture list after picture application start, picture application builds and shows photo frame according to the picture total quantity in described Image Display list, and need the picture showing to carry out loaded and displayed picture according to the last screen of current display screen and/or a rear screen, exceed the last screen of current display screen and/or the picture of rear screen a needs demonstration does not all load, described in specific as follows
The download of picture is from picture loads list, to obtain Image ID and carry out, if in the process of downloading (picture a has not yet downloaded), user has carried out Image Display switching, no longer show photo current a, but other picture b, after a download finishes, will go to contrast with the pictorial information in Image Display list so, and see and whether still need the picture of demonstration.
Download pictures is to preserve to download successful pictorial information.Because preserve current screen, a upper screen/next screen picture, so switched after a screen, actual is that a upper screen or next screen become current screen.If downloaded on picture the picture of a screen or next screen, just do not needed again to download the effect of this list that Here it is before.Described in specific as follows:
Step 3, be divided into A and two kinds of scenes of B and carry out picture and load the introduction that list and Image Display list load.Other application scenarios only need to design Image Display list and picture loads list, and the principle of work that picture adds carrier thread does not change.
A. every screen need to show multiple thumbnail scenes (photograph album application etc.).
According to picture total quantity, on screen, build the photo frame for Showing Picture, and fill with acquiescence background picture.Revise picture and load list and Image Display list.Set photo current and add up to n, every screen display picture is m, and current page is p, builds screen photo frame to be:
A. when p=1,
As n <=m, need to build m photo frame, and fill acquiescence picture; Image ID 0 ~ m-1 is added to picture and loads list and Image Display list.
As n > m and n > 2*m, need to build 2*m photo frame, and fill acquiescence picture, Image ID 0 ~ 2*m-1 is added to picture and loads list and Image Display list.
As n > m and n <=2*m, need to build n photo frame, and fill acquiescence picture, Image ID 0 ~ n-1 is added to picture and loads list and Image Display list.As shown in Fig. 1 the first half.
B. when having carried out turning over screen, user browses, during p > 1,
When photo current sum n < (p*m), need to build m+(n-(p-1) * m) individual photo frame, and fill acquiescence picture; * m-1 of current screen Image ID (p-1) * m ~ n – 1 and last screen Image ID (p-2) * m ~ (p-1) is added to picture and loads list and Image Display list, as shown in Fig. 3 the first half.
When n > (p*m) and n <=(p+1) * m, need to build 2*m+(n-p * m) individual photo frame, and fill acquiescence picture; The * m-1 of current screen Image ID (p-1) * m ~ p*m – 1, last screen Image ID (p-2) * m ~ (p-1) and a rear screen Image ID p*m ~ n-1 are added to picture and load list and Image Display list.
When n > (p+1) * m, need to build 3*m photo frame, and fill acquiescence picture; * m-1 of * m-1 of current screen Image ID (p-1) * m ~ p*m-1, last screen Image ID (p-2) * m ~ (p-1) and a rear screen Image ID p*m ~ (p+1) is added to picture and loads list and Image Display list.
B. every screen only need to show the application scenarios (Photo Browser, picture browsing etc. in webpage) of a pictures.
Set picture and add up to n, the Image ID of current demonstration is m.
A. when n=1, build a photo frame, fill acquiescence picture.Image ID 0 is added to picture and loads list and Image Display list.
B. when user operates, during n > 1
When m=0, build 2 photo frames, fill acquiescence picture.Image ID 0 and 1 is added to picture and loads list and Image Display list.As shown in Fig. 1 the latter half.
When m>0, build 3 photo frames, fill acquiescence picture.By picture m, m-1 and m+1 are added to picture and load list and Image Display list.As shown in Fig. 2 the latter half.
When m=n-1, build 2 photo frames, fill acquiescence picture.By picture m, m-1 is added to picture and loads list and Image Display list.As shown in Fig. 3 the latter half.
  
In the present embodiment, it should be noted that, the loading of picture is an asynchronous process, and picture loads list and Image Display list for this Asynchronous loading, so picture adds carrier thread and main thread, is concurrent execution in no particular order; When picture in main thread loads list and Image Display list and changes, picture adds the picture that loads in carrier thread and show and all can dynamically change.
It is when preventing asynchronous download pictures that the picture that builds in the present embodiment loads list and Image Display list, and user's toggle screen makes the picture of downloading not need to show and cause mistake.Download pictures list is to preserve to download complete picture to avoid repeated downloads picture.
  
By concrete example, picture downloading process of the present invention and Image Display process are described further below:
Wherein, the detailed process that picture is downloaded as shown in Figure 4, specifically comprises:
Whether step S10, lower carrier thread start, and enter step S11 when being, enter step S12 when no.
After step S11, group thread start, judge that sub-thread, whether in waiting status, enters step S13 when being, when no, enter step S14.
Step S12, no startup of carrier thread instantly, control and allow lower carrier thread not start and proceed to step S14.
Step S13, activation, group thread is starting state, but sub-thread is while being waiting status, need again activate sub-thread.All pictures are downloaded complete, so sub-thread waits task next time need activate sub-thread again.
In the present embodiment, create a new sub-thread and namely do not need to judge waiting status.Before whether just need to judging while only having the thread having created to reuse, in waiting status, need to activate and continue to work.
Do you step S14, judge that it is empty that picture loads list? when being, enter step S15, when no, enter step S16.
Step S15, sub-thread waits.In the present embodiment, when picture loading list length is 0, picture adds carrier thread and enters waiting status, waits for user's operation next time.
First object in step S16, delete list, and obtain this ID, proceed to step S17.
Step S17, judge whether to be Image Display list? when no, return to step S14, when being, enter step S18.
Step S18, judge whether to be present in download pictures list? when being, return to S14, when no, enter step S19.
Step S19, by demand technique compresses multiple, and enter step S20.
Step S20, download pictures, and enter step S21.
Step S21, judge whether internal memory overflows, and enters step S22 when being, enters step S23. when no
Step S22, the compression multiple that setting is larger, and return to step S20.Be step S19-22 when needing download pictures, according to the demonstration of screen, need and the utilization rate of current internal memory is compressed download to picture.This kind of compression method of sacrificing picture quality, the amount of ram that former picture is taken becomes the compression of multiple to get off.Such as the picture of a 1200*1200, wide and height all compresses 8 times, and the internal memory taking is so just 1/ (8*8)=1/64 of former figure.Can prevent low memory.
Step S23, download pictures success, and enter step S24.
Step S24, join download pictures list.
In picture downloading process of the present invention, first judge whether to have started picture and add carrier thread, do not start and start; Started and judged that sub-thread, whether in waiting status, if in waiting status, activates; Wherein, the principle of work of sub-thread is: work in the time of in harness, and when not working, have a rest and wait for.
Then judge whether picture loads list is empty, and empty if, picture adds carrier thread and enters waiting status; If it is not empty that picture loads list, continue following operation.
Remove picture and load first object (as the step S16 in figure tetra-) in list, this object is kept in a temporary variable I and (is removed liking in order to guarantee that list has been empty when all objects of picture loading list all judge end).From this variable I, obtain this Image ID as the Image ID of current loading, and remove to judge whether in Image Display list (as the step S17 in figure tetra-).Do not exist, skip and carry out next pictures download; If be present in Image Display list, then entered download pictures list and go to judge that whether this Image ID successfully downloaded (as step S18), if there is the pinup picture success of explanation picture, do not need again to download, skip the download of carrying out next picture.
When picture is downloaded successfully, Image ID is added into download pictures list, from variable I, obtain the call back function of picture, carry out the Graphics Processing of picture; When loading list length, be 0, thread is in waiting status.
In the present embodiment, before picture is downloaded, need to arrange according to picture demand size, when needing download pictures, according to the demonstration needs of screen and the utilization rate of current internal memory, picture be compressed to download.Be that in the present embodiment, to download to picture in internal memory be through the picture of overcompression rather than download former figure and then adjust picture size.Download former figure and adjust size again and can not reduce the amount of ram that picture takies, at least, in the process of download pictures, the occupancy of internal memory is still very high.Such as former figure size 1200*1200, one pictures size of screen display is: 150*100, the wide height of picture can be carried out to equal proportion compression, carry out the compression of 1200/150=8 times, the picture after downloading is the 1/8 original wide * 1/8 former figure size in height=1/64, has saved very most internal memory.If the picture committed memory after the compression of demand size has still exceeded the memory size that system provides (as step S21), then exception catching can be carried out picture to less ratio compression, obtain less picture, when showing, do suitable stretching, to meet the size of the required picture of application.This way is especially obvious to the optimization of internal memory when thumbnail is made.
In the present invention, as shown in Figure 5, Image Display process specifically comprises the following steps Image Display process:
Step S30, user check next screen picture, proceed to step S31.
Step S31, judge whether next screen picture exists, and enters step S32 when no, enters step S33 when being.
Step S32, prompting user, next screen picture does not exist.
Step S33, next screen Image Display are current screen, and proceed to step S34.
Step S34, empty picture and load list and Image Display list, and proceed to step S35.
Whether step S35, the front upper screen picture of tangent screen exist, and enter step S36 when being, enter step S37 when no.
Step S36, in download pictures list, delete this Image ID, and proceed to step S37.
After step S37, tangent screen, whether next screen picture exists, and enters step S38 when being, enters step S39 when no.
Step S38, establishment next screen photo frame, and proceed to step S39.
Step S39, the sub-thread of download pictures, and proceed to step S40.
Step S40, download pictures success, and proceed to step S41.
Step S41, call picture call back function, and proceed to step S42.
Whether step S42, picture in Image Display list, enter step S43 when no, enters step S44 when being.
Step S43, from download pictures list, delete and releasing memory.
Step S44, corresponding photo frame show.
In the present embodiment, when user browses other page of picture, terminal can be according to the last ping buffer picture of user's indicated number or a rear ping buffer picture as current screen picture.Such as: current screen display shows that page is the 3rd page, and left side is the 2nd page, and right side is the 4th page.User need to browse the 2nd page of picture, and screen slides to the right.Now, current page becomes second page, and left side needs new to add the 1st page as caching page, and the 3rd page, right side is as caching page.The 4th page of picture has not been buffer memory screen picture, needs releasing memory.The Image ID sequence of this page, from deleting download pictures list, is discharged to the internal memory that this screen picture takies.Meanwhile empty picture and load list and Image Display list (step S34 as shown in Figure 5), according to foregoing step 3, recalculate picture and load list and Image Display list.
And download successful picture, be invoked at the call back function (step S41 as shown in Figure 5) that picture loads the picture that in list, registration realizes.This function, by list contrasts with Image Display, judges whether this picture is to Show Picture.If so, show this picture, replace acquiescence picture; Otherwise, discharge the shared internal memory of this picture, and it (is noted: before and after picture obtains from deleting download pictures list, because the time is longer, now user's page turn over operation can cause the variation of Image Display list and loading list, and the picture of downloading can not be released, so there is this judgement).
In the present embodiment, because picture is Asynchronous loading, so picture adds carrier thread (step shown in Fig. 4 and Fig. 5) and main thread, (step 1-> step 3) is concurrent execution in no particular order, when picture in main thread loads list and Image Display list and changes, picture adds the picture that loads in carrier thread and show and all can dynamically change.
Based on above-described embodiment, the present invention also provides a kind of system of picture loaded and displayed, as shown in Figure 6, described system comprises: picture list is set up module 610, pictorial information module 620, picture and downloaded compression module 630, picture load-on module 640, Image Display module 650, download pictures module 660;
Wherein, described picture list is set up module 610 for setting up picture list, for depositing all pictorial informations; Set up picture and load list, for depositing described picture list, need the pictorial information loading; Set up Image Display list, for depositing described picture list, need the pictorial information showing; Set up download pictures list, for depositing the pictorial information of having downloaded;
Described pictorial information module 620 for picture application start after download pictures pictorial information is saved to described picture list;
When downloading for picture, described picture download compression module 630, according to the demonstration needs of screen and the utilization rate of current internal memory, picture is compressed to download;
Described picture load-on module 640 builds and shows photo frame according to the picture total quantity of described Image Display list for picture application, and carry out loaded and displayed picture according to the picture that the last screen of current display screen and/or a rear screen need to show, exceed the last screen of current display screen and/or the picture of rear screen a needs demonstration does not all load;
Described Image Display module 650 loads the picture of list for showing described picture;
The described module of download pictures 660 is for recording the Image ID of having downloaded.
Wherein, described pictorial information module 620 is also for preserving pictorial information according to local pictorial information or network pictorial information.
Described picture load-on module 640 is also for judging that picture is applied in the picture that whether loads described Image Display list while Loading Image.
In sum, the present invention is by setting up picture list, picture loads list, Image Display list and download pictures list, when picture loads after thread startup, according to the data of above-mentioned picture list, judge whether picture is downloaded, the situation that needs the picture of demonstration, with efficent use of resources, when picture download does not have enough internal memories to deposit, can compress rear download deposits, avoid occurring the situation of low memory in picture loading procedure, the list computational data amount of setting up is little, and can autotelicly Load Image and releasing memory, alleviate the problem of low memory, improve the speed of user's browsing pictures.
In the present invention when Loading Image, by picture according to the demonstration needs of screen (full screen display, thumbnail demonstration etc.) carry out picture compression download request, rather than former figure downloads and to expend internal memory; If there is low memory problem in downloading process, picture can be compressed to download again, the picture after download stretches and shows, to sacrifice the mode of Image Display quality, guarantees picture download effect.
In the present invention, Image Display is to take current screen to show user's picture be benchmark.Retain current screen picture, before and after prestrain, a part of picture is as buffer memory picture, just can not affect the fluency of user's browsing pictures, and the picture internal memory that other has loaded will be released, reduce the amount of ram that application takies, make browsing pictures speed faster, also can provide more internal memory to the picture that will show.
Should be understood that; the foregoing is only preferred embodiment of the present invention; be not sufficient to limit technical scheme of the present invention; for those of ordinary skills; within the spirit and principles in the present invention; can be increased and decreased according to the above description, replaced, converted or be improved, and all these increases and decreases, replace, conversion or improve after technical scheme, all should belong to the protection domain of claims of the present invention.

Claims (8)

1. a method for picture loaded and displayed, loads and Shows Picture for the application of intelligent system picture, it is characterized in that, comprises the steps:
Set up picture list, for depositing all pictorial informations;
Set up picture and load list, for depositing described picture list, need the pictorial information loading;
Set up Image Display list, for depositing described picture list, need the pictorial information showing;
Set up download pictures list, for depositing the pictorial information of having downloaded;
When downloading, picture, according to the demonstration needs of screen and the utilization rate of current internal memory, picture is compressed to download; Download pictures pictorial information is saved in described picture list after picture application start, picture application builds and shows photo frame according to the picture total quantity in described Image Display list, and carry out loaded and displayed picture according to the picture that the last screen of current display screen and/or a rear screen need to show, exceed the last screen of current display screen and/or the picture of rear screen a needs demonstration does not all load.
2. the method for picture loaded and displayed according to claim 1, is characterized in that, described pictorial information comprises local pictorial information and network pictorial information.
3. the method for picture loaded and displayed according to claim 1, it is characterized in that, also comprise step: when picture loads after thread startup, by the ID depositing in this list, find pictorial information corresponding in picture list, then according to picture path, obtain object picture.
4. the method for picture loaded and displayed according to claim 1, it is characterized in that, also comprise step: while building picture display list, the ID of the picture that needs are shown in picture list judges whether the current picture adding in listing not needs to load or show.
5. the method for picture loaded and displayed according to claim 1, it is characterized in that, also comprise step: when described picture application Loads Image demonstration, this Image ID does not load this picture in described Image Display list, and this Image ID is shifted out from picture loading list, if when user's operation does not show, discharge this picture and no longer show.
6. a system for picture loaded and displayed, is characterized in that, described system comprises, picture list is set up module, pictorial information module, picture and downloaded compression module, picture load-on module, Image Display module, download pictures module;
Described picture list is set up module for setting up picture list, for depositing all pictorial informations; Set up picture and load list, for depositing described picture list, need the pictorial information loading; Set up Image Display list, for depositing described picture list, need the pictorial information showing; Set up download pictures list, for depositing the pictorial information of having downloaded;
Described pictorial information module is for download pictures after picture application start and pictorial information is saved to described picture list;
When downloading compression module for picture download, described picture, according to the demonstration needs of screen and the utilization rate of current internal memory, picture is compressed to download;
Described picture load-on module builds and shows photo frame according to the picture total quantity of described Image Display list for picture application, and carry out loaded and displayed picture according to the picture that the last screen of current display screen and/or a rear screen need to show, exceed the last screen of current display screen and/or the picture of rear screen a needs demonstration does not all load;
Described Image Display module loads the picture of list for showing described picture;
The described module of download pictures is for recording the Image ID of having downloaded.
7. the system of picture loaded and displayed according to claim 6, is characterized in that, described pictorial information module is for preserving pictorial information according to local pictorial information or network pictorial information.
8. the system of picture loaded and displayed according to claim 6, is characterized in that, described picture load-on module is for judging that picture is applied in the picture that whether loads described Image Display list while Loading Image.
CN201310361511.1A 2013-08-19 2013-08-19 A kind of method and system of picture loaded and displayed Expired - Fee Related CN103544207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310361511.1A CN103544207B (en) 2013-08-19 2013-08-19 A kind of method and system of picture loaded and displayed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310361511.1A CN103544207B (en) 2013-08-19 2013-08-19 A kind of method and system of picture loaded and displayed

Publications (2)

Publication Number Publication Date
CN103544207A true CN103544207A (en) 2014-01-29
CN103544207B CN103544207B (en) 2019-01-29

Family

ID=49967660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310361511.1A Expired - Fee Related CN103544207B (en) 2013-08-19 2013-08-19 A kind of method and system of picture loaded and displayed

Country Status (1)

Country Link
CN (1) CN103544207B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045592A (en) * 2015-07-24 2015-11-11 北京金山安全软件有限公司 Picture display method and device
CN105335047A (en) * 2014-08-14 2016-02-17 小米科技有限责任公司 Picture display method and apparatus
CN105446763A (en) * 2014-09-30 2016-03-30 Tcl集团股份有限公司 Picture loading and displaying method and system
CN105843831A (en) * 2016-01-15 2016-08-10 乐视移动智能信息技术(北京)有限公司 Mobile terminal image display method and system
CN105989166A (en) * 2015-03-04 2016-10-05 阿里巴巴集团控股有限公司 Waterfall flow type object display method, apparatus and system as well as electronic device
WO2016183795A1 (en) * 2015-05-19 2016-11-24 Guangzhou Ucweb Computer Technology Co., Ltd. Method, apparatus for loading a resource in a web page on a device
CN106407367A (en) * 2016-09-08 2017-02-15 深圳市彬讯科技有限公司 Method for quickly viewing pictures online
CN106547624A (en) * 2016-11-04 2017-03-29 武汉斗鱼网络科技有限公司 Picture loading method and device based on Android
CN107179947A (en) * 2017-04-26 2017-09-19 武汉斗鱼网络科技有限公司 A kind of network picture method for down loading and system for mobile terminal
CN107357650A (en) * 2017-06-06 2017-11-17 武汉斗鱼网络科技有限公司 A kind of automatic method for releasing of internal memory based on picture resource and system
CN108073698A (en) * 2017-12-11 2018-05-25 武汉斗鱼网络科技有限公司 Real-time animation display methods, device, electric terminal and readable storage medium storing program for executing
WO2018196582A1 (en) * 2017-04-28 2018-11-01 武汉斗鱼网络科技有限公司 Method and apparatus for loading picture resource
CN108769806A (en) * 2018-06-19 2018-11-06 聚好看科技股份有限公司 The methods of exhibiting and device of media content
CN109947340A (en) * 2016-03-21 2019-06-28 青岛海信移动通信技术股份有限公司 A kind of picture loading method, device and terminal
WO2019128357A1 (en) * 2017-12-29 2019-07-04 北京京东尚科信息技术有限公司 Picture requesting method, method for responding to picture request, and client
CN110175053A (en) * 2019-04-24 2019-08-27 阿里巴巴集团控股有限公司 Picture loading method and device
CN110658969A (en) * 2019-10-08 2020-01-07 广州市百果园信息技术有限公司 Picture processing method, device, equipment and storage medium
CN113360687A (en) * 2021-06-24 2021-09-07 平安普惠企业管理有限公司 Picture saving method and device, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221580A (en) * 2008-01-03 2008-07-16 中兴通讯股份有限公司 Method for improving page layout display performance of embedded browser
CN102541538A (en) * 2011-12-06 2012-07-04 Tcl集团股份有限公司 Picture displaying method and device based on mobile terminal
CN102629254A (en) * 2012-02-29 2012-08-08 惠州市德赛西威汽车电子有限公司 Method for rapidly reading pictures
CN102650946A (en) * 2012-03-22 2012-08-29 杭州梵艺科技有限公司 Method for loading and displaying graphical interface at hand-held terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221580A (en) * 2008-01-03 2008-07-16 中兴通讯股份有限公司 Method for improving page layout display performance of embedded browser
CN102541538A (en) * 2011-12-06 2012-07-04 Tcl集团股份有限公司 Picture displaying method and device based on mobile terminal
CN102629254A (en) * 2012-02-29 2012-08-08 惠州市德赛西威汽车电子有限公司 Method for rapidly reading pictures
CN102650946A (en) * 2012-03-22 2012-08-29 杭州梵艺科技有限公司 Method for loading and displaying graphical interface at hand-held terminal

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335047B (en) * 2014-08-14 2024-05-28 小米科技有限责任公司 Picture display method and device
CN105335047A (en) * 2014-08-14 2016-02-17 小米科技有限责任公司 Picture display method and apparatus
CN105446763A (en) * 2014-09-30 2016-03-30 Tcl集团股份有限公司 Picture loading and displaying method and system
CN105446763B (en) * 2014-09-30 2019-01-29 Tcl集团股份有限公司 A kind of method and system of picture load and display
CN105989166B (en) * 2015-03-04 2019-06-21 阿里巴巴集团控股有限公司 Waterfall-type shows method, apparatus, system and the electronic equipment of object
CN105989166A (en) * 2015-03-04 2016-10-05 阿里巴巴集团控股有限公司 Waterfall flow type object display method, apparatus and system as well as electronic device
WO2016183795A1 (en) * 2015-05-19 2016-11-24 Guangzhou Ucweb Computer Technology Co., Ltd. Method, apparatus for loading a resource in a web page on a device
CN106575304A (en) * 2015-05-19 2017-04-19 广州市动景计算机科技有限公司 Method, apparatus for loading a resource in a web page on a device
US10754767B2 (en) 2015-05-19 2020-08-25 Guangzhou Ucweb Computer Technology Co., Ltd. Method and apparatus for loading a resource in a web page on a device
CN105045592A (en) * 2015-07-24 2015-11-11 北京金山安全软件有限公司 Picture display method and device
CN105843831A (en) * 2016-01-15 2016-08-10 乐视移动智能信息技术(北京)有限公司 Mobile terminal image display method and system
CN109947340A (en) * 2016-03-21 2019-06-28 青岛海信移动通信技术股份有限公司 A kind of picture loading method, device and terminal
CN106407367A (en) * 2016-09-08 2017-02-15 深圳市彬讯科技有限公司 Method for quickly viewing pictures online
CN106547624A (en) * 2016-11-04 2017-03-29 武汉斗鱼网络科技有限公司 Picture loading method and device based on Android
CN106547624B (en) * 2016-11-04 2021-01-01 武汉斗鱼网络科技有限公司 Android-based picture loading method and device
CN107179947A (en) * 2017-04-26 2017-09-19 武汉斗鱼网络科技有限公司 A kind of network picture method for down loading and system for mobile terminal
WO2018196409A1 (en) * 2017-04-26 2018-11-01 武汉斗鱼网络科技有限公司 Network image downloading method and system for mobile terminal
WO2018196582A1 (en) * 2017-04-28 2018-11-01 武汉斗鱼网络科技有限公司 Method and apparatus for loading picture resource
CN107357650A (en) * 2017-06-06 2017-11-17 武汉斗鱼网络科技有限公司 A kind of automatic method for releasing of internal memory based on picture resource and system
CN107357650B (en) * 2017-06-06 2020-12-15 武汉斗鱼网络科技有限公司 Automatic memory release method and system based on picture resources
WO2019114158A1 (en) * 2017-12-11 2019-06-20 武汉斗鱼网络科技有限公司 Real-time animation display method and device, electronic terminal, and readable storage medium
CN108073698B (en) * 2017-12-11 2019-08-23 武汉斗鱼网络科技有限公司 Real-time animation display methods, device, electric terminal and readable storage medium storing program for executing
CN108073698A (en) * 2017-12-11 2018-05-25 武汉斗鱼网络科技有限公司 Real-time animation display methods, device, electric terminal and readable storage medium storing program for executing
WO2019128357A1 (en) * 2017-12-29 2019-07-04 北京京东尚科信息技术有限公司 Picture requesting method, method for responding to picture request, and client
WO2019242217A1 (en) * 2018-06-19 2019-12-26 聚好看科技股份有限公司 Method and device for playing back media content
CN108769806B (en) * 2018-06-19 2020-05-05 聚好看科技股份有限公司 Media content display method and device
CN108769806A (en) * 2018-06-19 2018-11-06 聚好看科技股份有限公司 The methods of exhibiting and device of media content
CN110175053A (en) * 2019-04-24 2019-08-27 阿里巴巴集团控股有限公司 Picture loading method and device
CN110175053B (en) * 2019-04-24 2023-10-27 创新先进技术有限公司 Picture loading method and device
CN110658969A (en) * 2019-10-08 2020-01-07 广州市百果园信息技术有限公司 Picture processing method, device, equipment and storage medium
CN110658969B (en) * 2019-10-08 2024-01-09 广州市百果园信息技术有限公司 Picture processing method, device, equipment and storage medium
CN113360687A (en) * 2021-06-24 2021-09-07 平安普惠企业管理有限公司 Picture saving method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN103544207B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN103544207A (en) Picture loading and displaying method and system
CN103677942B (en) A kind of method and apparatus of movable terminal to browse network pictures
CN103760966B (en) Picture buffering implementation method
CN102541538B (en) Picture displaying method and device based on mobile terminal
CN104699626B (en) Terminal internal memory processing method, device and terminal
EP2763034A1 (en) Method and device for image-capturing application screen for use in mobile terminal
KR20140032924A (en) Method and apparatus to facilitate interoperability of applications in a device
CN103761132A (en) Intelligent terminal starting-up animation play control method
CN106502699A (en) A kind of five application page processing method, apparatus and system
AU2021229220B2 (en) Image processing method and device
CN104793945A (en) Large-batch picture displaying method for preventing memory overflow and device thereof
CN109361947A (en) Internet resources batch loading method, smart television, storage medium and device
CN106453572A (en) Method and system for synchronizing images based on cloud server
CN105868420A (en) Network resource loading mode configuration method and device
CN102769641A (en) Method and system for displaying webpage content by means of self-adaption control
CN102629254A (en) Method for rapidly reading pictures
CN105550181A (en) File classification storage method and apparatus and terminal
CN105912591A (en) Method and device for looking back image documents and mobile terminal
CN103077014A (en) Method and device for recovering pictures based on life cycle of interface
CN111931095A (en) Picture loading method of Android system
CN105760226B (en) A kind of method, device and mobile terminal of quick start mobile terminal camera
CN105025367A (en) Page loading method based on digital set-top box
CN104281590B (en) Picture uploading method and device, application interaction platform, terminal and system
CN106527891B (en) A kind of edit object selection method and relevant apparatus
CN106933702A (en) A kind of method of intelligent terminal storage space management, device and intelligent terminal

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190129

CF01 Termination of patent right due to non-payment of annual fee