CN102541538A - Picture displaying method and device based on mobile terminal - Google Patents

Picture displaying method and device based on mobile terminal Download PDF

Info

Publication number
CN102541538A
CN102541538A CN201110401619XA CN201110401619A CN102541538A CN 102541538 A CN102541538 A CN 102541538A CN 201110401619X A CN201110401619X A CN 201110401619XA CN 201110401619 A CN201110401619 A CN 201110401619A CN 102541538 A CN102541538 A CN 102541538A
Authority
CN
China
Prior art keywords
picture
tabulation
loading
thread
display list
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
CN201110401619XA
Other languages
Chinese (zh)
Other versions
CN102541538B (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 CN201110401619.XA priority Critical patent/CN102541538B/en
Publication of CN102541538A publication Critical patent/CN102541538A/en
Application granted granted Critical
Publication of CN102541538B publication Critical patent/CN102541538B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention is suitable for the technical field of a mobile terminal and provides a picture displaying method and device based on the mobile terminal. The method comprises a first thread and a second thread which is performed concurrently with the first thread, wherein the first thread comprises the steps of: establishing and initializing a picture list, a loading list and a displaying list, and displaying a preset background picture, and when the loading list is changed, updating the loading list and the displaying list; and the second thread comprises the steps of: when the loading list is not empty, acquiring a first ID (identifier) from the loading list and a picture object corresponding to the ID from the picture list, and when the ID is existent in the displaying list, updating the currently displayed picture into the picture object, deleting the ID in the loading list, updating the loading list, returning to the step of continuously acquiring the first ID from the loading list, and stopping until the loading list is empty. In such a way, the picture displaying speed is increased, the occupied system resource is reduced, and the user experience effect is improved.

Description

A kind of image display method and device based on portable terminal
Technical field
The invention belongs to technical field of mobile terminals, relate in particular to a kind of image display method and device based on portable terminal.
Background technology
At present; In the portable terminal (televisor, mobile phone etc.) that uses the android system, when coming the preview picture, because existing image display method exists some defectives to make that the user experience sense is relatively poor through grid view GridView control; For example; The picture of preview is too many if desired, can't locate the picture that needs destruction, will cause internal memory to overflow; After if every pictures all need be handled (for example: the picture cutting, network is got picture) show that again if adopt the multithreading load mode, the cpu processing power is poor when running into, and will have a strong impact on the display speed of picture; In addition, use other asynchronous methods to load and when Showing Picture, can not make picture sequence show, also cause user's experience effect poor.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of image display method and device based on portable terminal; Be intended to solve and utilize existing image display method in portable terminal during browsing pictures; The picture display speed is slow, and occupying system resources is more, causes the relatively poor problem of user experience effect.
The embodiment of the invention is achieved in that a kind of image display method based on portable terminal, said method comprise first thread and with second thread of the concurrent execution of said first thread, wherein:
Said first thread may further comprise the steps:
A1: make up and picture tabulation, order that initialization is used to deposit all pictorial informations are deposited loading tabulation and display list and the background picture of picture for presetting of the current demonstration of initialization of depositing the ID of the picture that current page need show of the ID of the picture that needs load;
B1: when said loading tabulation changes, upgrade said loading tabulation and said display list, and show said preset background picture; And
Said second thread may further comprise the steps:
A2:, obtain the object picture of ID correspondence described in first ID and the tabulation of said picture in the said loading tabulation when said loading tabulation when be empty;
B2: when having said ID in the said display list, the picture that upgrades said current demonstration is said object picture;
C2: delete the said ID in the said loading tabulation, upgrade said loading tabulation;
D2: return execution in step A2, when said loading tabulation is sky, stop.
Another purpose of the embodiment of the invention is to provide a kind of image display apparatus based on portable terminal, said device comprise first thread units and with second thread units of the concurrent execution of said first thread units, wherein:
First thread units; Be used to make up and display list that loading that picture tabulation, order that initialization is used to deposit all pictorial informations are deposited the ID of the picture that needs load is tabulated and deposited the ID of the picture that current page need show; And the picture of the current demonstration of initialization is preset background picture; And when said loading tabulation changes, upgrade said loading tabulation and said display list, and show said preset background picture; And
Second thread units; Be used for when judging said loading tabulation not for sky; Obtain the corresponding object picture of ID described in first ID and the tabulation of said picture in the said loading tabulation; When having said ID in the said display list; The picture that upgrades said current demonstration is said object picture, deletes the said ID in the said loading tabulation, upgrades said loading tabulation; Return continuation and carry out the step of obtaining first ID in the said loading tabulation, when said loading tabulation is sky, stop.
What the embodiment of the invention proposed can concurrent execution first thread and second thread based on the image display method of portable terminal; The display list that the loading of depositing the ID of the picture that needs load through picture tabulation, the order of utilizing this first threading building and initialization to be used to deposit all pictorial informations is tabulated and deposited the ID of the picture that current page need show; And the picture of the current demonstration of initialization is preset background picture; And when this loading tabulation changes, upgrade and loading to tabulate and this display list, utilize this second thread to judge when this loading tabulation is not sky; When having this ID that loads first width of cloth picture in the tabulation in this display list; The picture that upgrades this current demonstration is the corresponding object picture of this ID in this picture tabulation, and deletes this ID in this loading tabulation, and then renewal should load tabulation; Return and continue to carry out the included step of second thread, load tabulation for empty, solved and utilized existing image display method in portable terminal during browsing pictures until this; The picture display speed is slow; Occupying system resources is more, causes the relatively poor problem of user experience effect, has improved the picture display speed; Reduce taking of system resource, reached the purpose that promotes the user experience effect.
Description of drawings
Fig. 1 is the realization flow figure based on first thread of the image display method of portable terminal that first embodiment of the invention provides;
Fig. 2 is the realization flow figure based on second thread of the image display method of portable terminal that first embodiment of the invention provides;
Fig. 3 is the realization flow figure based on first thread of the image display method of portable terminal that second embodiment of the invention provides;
Fig. 4 is the realization flow figure based on second thread of the image display method of portable terminal that second embodiment of the invention provides;
Fig. 5 is the structural drawing based on the image display apparatus of portable terminal that third embodiment of the invention provides.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is through the step of concurrent execution first thread and second thread; In time dynamically update and load tabulation and display list; Stop the execution of second thread when empty until this loading tabulation, when making in portable terminal browsing pictures, the picture display speed is accelerated; Occupying system resources is less, and the user experience effect gets a promotion.
The embodiment of the invention provides a kind of image display method based on portable terminal, said method comprise first thread and with second thread of the concurrent execution of said first thread, wherein:
Said first thread may further comprise the steps:
A1: make up and picture tabulation, order that initialization is used to deposit all pictorial informations are deposited loading tabulation and the display list of depositing the ID of the picture that current page need show of the ID of the picture that needs load and the background picture of the picture of the current demonstration of initialization for presetting;
B1: when said loading tabulation changes, upgrade said loading tabulation and said display list, and show said preset background picture; And
Said second thread may further comprise the steps:
A2:, obtain the object picture of ID correspondence described in first ID and the tabulation of said picture in the said loading tabulation when said loading tabulation when be empty;
B2: when having said ID in the said display list, the picture that upgrades said current demonstration is said object picture;
C 2: delete the said ID in the said loading tabulation, upgrade said loading tabulation;
D2: return execution in step A2, when said loading tabulation is sky, stop.
The embodiment of the invention also provides a kind of image display apparatus based on portable terminal, said device comprise first thread units and with second thread units of the concurrent execution of said first thread units, wherein:
First thread units; Be used to make up and display list that loading that picture tabulation, order that initialization is used to deposit all pictorial informations are deposited the ID of the picture that needs load is tabulated and deposited the ID of the picture that current page need show; And the picture of the current demonstration of initialization is preset background picture; And when said loading tabulation changes, upgrade said loading tabulation and said display list, and show said preset background picture; And
Second thread units; Be used for when judging said loading tabulation not for sky; Obtain the corresponding object picture of ID described in first ID and the tabulation of said picture in the said loading tabulation; When having said ID in the said display list; The picture that upgrades said current demonstration is said object picture, deletes the said ID in the said loading tabulation, upgrades said loading tabulation; Return continuation and carry out the step of obtaining first ID in the said loading tabulation, when said loading tabulation is sky, stop.
The embodiment of the invention is through concurrent execution first thread and second thread; Utilize the first threading building initialization list related, and when this reference position that loads tabulation changes, dynamically update and load tabulation and display list; Loading tabulation that second thread basis is upgraded synchronously and display list load this picture and show; The Image ID that deletion has in time loaded stops the execution of second thread when loading tabulation for sky, improved the display speed of picture; Reduce taking of system resource, thereby realized promoting the purpose of user experience effect.
Below in conjunction with specific embodiment concrete realization of the present invention is described in detail:
Embodiment one:
Fig. 1,2 show that first embodiment of the invention provides based on first thread of the image display method of portable terminal and the realization flow of second thread, details are as follows:
Should based on image display method of portable terminal comprise first thread and with second thread of the concurrent execution of this first thread, wherein:
This first thread may further comprise the steps, and is as shown in Figure 1:
In step S101; Make up and picture tabulation, order that initialization is used to deposit all pictorial informations are deposited loading tabulation and the display list of depositing the ID of the picture that current page need show of the ID of the picture that needs load and the background picture of the picture of the current demonstration of initialization for presetting.
Wherein, This pictorial information comprises the ID of all pictures, corresponding picture path, object picture etc.; This ID is used to identify each width of cloth picture; Can be the sequence number of picture, picture name etc., this object picture is meant a picture entity, is an object picture or picture entity such as the picture of a width of cloth jpg form.When it is to be noted initialization, the ID of this picture and picture path all exist, and object picture does not exist; Be sky, and only in the subsequent step implementation, when getting access to the object picture that needs demonstration; This object picture is processed into needed dimension of picture; After reasonable demonstration, just this object picture is filled into the corresponding position in this picture tabulation, avoided the wasting of resources.
Particularly, this loading tabulation is used for depositing in proper order the ID of the picture in the picture tabulation that needs loading, after second thread starts; Also be after picture adds the startup of carrier thread; Through the ID that deposits in this loading tabulation, from this picture tabulation, find corresponding pictorial information, and then obtain corresponding object picture; When this object picture is sky, then obtain this object picture according to the Image ID in this pictorial information, path etc.
Particularly, this display list is used for depositing the ID of the picture in the picture tabulation that current page need show, this display list can be used for judging whether the picture that photo current loads in the tabulation need load or show.
In embodiments of the present invention, through making up the tabulation and the construction method of data structure form, can accurately control this picture tabulation, loading tabulation and display list; Because when initialization, current demonstration is generally sky, the user experience effect is relatively poor, through the background picture of picture for presetting of the current demonstration of initialization, and should can be the empty or any picture that is provided with by preset background picture, can promote the user experience effect.
In step S102, when this loading tabulation changes, upgrade to load tabulation and this display list, and show the background picture that this is preset.
Wherein, this loading tabulation changes to the scroll bar of mobile terminal screen is dragged through quick button or the mode that touches or slides, the variation that perhaps causes during current screen generation conversion.Particularly, during beginning, if screen one page shows 15 width of cloth pictures; The so current picture that needs to load is preceding 15 width of cloth in the picture tabulation, and the ID of these pictures will deposit according to loading sequence in this loading tabulation, for example is followed successively by 0 to 14 ID number; If when load this loadings tabulate in ID when being 0 picture, user's screen that slided, at this moment; ID becomes 0 to 19 in proper order in this loading tabulation, and after several seconds, ID is after 0 picture has loaded; Will its ID be removed from this loading tabulation, at this moment, ID just becomes 1 to 19 in this loading tabulation; And order Loads Image and can improve user's experience effect, and length that should loadings tabulation also can add the carrier thread according to picture, also promptly the loading progress of second thread with slide up and down screen minimizing and increase.
In the practical implementation process, when the reference position of this loading tabulation does not change, then delete in the picture tabulation; At the object picture that last page or leaf showed and this page do not show; Thereby in time obtain the picture that needs destruction,, reduce the probability that internal memory overflows with releasing memory; The step that need to prove this deletion can utilize existing GridView control to realize deletion automatically; And without confirming whether delete or destroy picture in the terminal, and delete this this display list and load the ID of the corresponding picture of tabulation, with this display list of further renewal with load tabulation.
This second thread may further comprise the steps, and is as shown in Figure 2:
In step S201, when this when to load tabulation be empty, obtain first ID and this picture in this loadings tabulation tabulate in the object picture of this ID correspondence.
In the practical implementation process; After second thread starts, need to judge whether this loading tabulation is empty, can judge also whether the length of this loading tabulation is 0; If this loads tabulation is not empty; Perhaps this length is not 0, then carries out the step of second thread, obtains first ID in this loading tabulation; Otherwise; Stop to carry out second thread, and have only this first thread carrying out this moment.
S201 is further comprising the steps of for this step:
When the corresponding object picture of this ID does not exist in this picture tabulation, obtain corresponding object picture according to the corresponding already present pictorial information of this ID;
The size of this object picture is processed into needed size, preserves corresponding position in this object picture to this picture tabulation after handling.
Particularly, behind first ID in obtaining this loading tabulation, also promptly need load first width of cloth picture; Because the Image ID in this loading tabulation is to load ordering in order, when having loaded a width of cloth picture, ID deletion that will this picture is corresponding; Thereby next width of cloth Image ID of this picture is first width of cloth Image ID, for this loads first ID in the tabulation, has carried out dynamically updating of this loading tabulation; Therefore in obtaining the Image ID process of loading; First ID that only need obtain in this loading tabulation can load in proper order in realization, and further realization shows in proper order, has improved user experience.
In step S202, when having this ID in this display list, the picture that upgrades this current demonstration is this object picture.
This step S202 also comprises:
When not having this ID in this display list, directly delete this ID in this loading tabulation, upgrade to load tabulation.
In the practical implementation process, through the mode of filtering, the current picture that needs demonstration in the parsing and displaying tabulation; Replace this preset background picture simultaneously, when not having the ID that Loads Image in this display list, no longer show the object picture that this ID is corresponding; Particularly, because this first thread and the concurrent execution of this second thread, when the mobile terminal screen current state changes; Real-time update should load tabulation and display list, and judge whether there is this ID in this display list this moment, can avoid display list to change and when not having corresponding ID; Still show corresponding object picture, it is too high to cause resource to be used, and the picture display speed is slow; And button do not have the generation of response condition, pointed out the display speed of picture effectively.
In step S203, delete this ID in this loading tabulation, upgrade this loading tabulation.
In step S204, return and continue to carry out the included above-mentioned steps of this second thread, when being empty, stop when this loading tabulation.
Particularly, when having loaded a width of cloth picture, will delete this ID in this loading tabulation, thereby the ID of next width of cloth picture of this picture is first ID, has carried out loading dynamically updating of tabulation, realized the purpose that Loads Image in proper order.After loading completion, this second thread need continue to load other pictures, then jumps at this moment step S201 and carries out, and when this loading tabulation is sky, stops the execution of this second thread.
In embodiments of the present invention; Owing to should be asynchronous loading based on the method that picture in the image display method of portable terminal loads; Then it first thread that comprises and second thread are concurrent in no particular order execution; Also promptly corresponding respectively main thread and picture add the carrier thread, and when loading tabulation in the main thread and display list change, picture adds the picture that loads in the carrier thread and show and also can dynamically change.And do not adopt multithreading in the embodiment of the invention; But the mode that directly adopts HandlerThread is controlled the single-threaded picture processing consuming time carried out; Because for low terminal, multithreading is to consume very much the cpu resource, in picture decoding with reduce this workload hard work; Not only can not play the effect that improves performance, and can reduce performance.Can be used for creating easily a new thread through HandlerThread; Obtain a looper then,, and need not oneself remove to write a thread class again so that specify follow-up handler in new thread, to carry out; Create operations such as looper then; So avoided creating the expense of new thread, improved the thread utilization factor, reduced taking of system resource.
Embodiment two:
The realization flow that Fig. 3 shows that second embodiment of the invention provides based on first thread of the image display method of portable terminal; Be specially this realization flow based on first thread of the image display method of portable terminal; This first thread journey of serving as theme; And with the concurrent execution of this second thread, details are as follows:
In step S301, make up and the tabulation of initialization picture, load tabulation and display list.
Wherein, this picture tabulation is used to deposit all pictorial informations, and this pictorial information comprises the ID of all pictures; Corresponding picture path; Object pictures etc., this ID are used to identify each width of cloth picture, can be the sequence number of picture, picture name etc.; This object picture is meant a picture entity, is an object picture or picture entity such as the picture of a width of cloth jpg form.When it is to be noted initialization, the ID of this picture and picture path all exist, and object picture does not exist; Be sky, and only in the subsequent step implementation, when getting access to the object picture that needs demonstration; This object picture is processed into needed dimension of picture; After reasonable demonstration, just this object picture is filled into the corresponding position in this picture tabulation, avoided the wasting of resources.
This loading tabulation is used for depositing in proper order the ID of the picture in the picture tabulation that needs loading; After second thread starts, also be after picture adds the startup of carrier thread, through the ID that deposits in this loading tabulation; From this picture tabulation, find corresponding pictorial information; And then obtain corresponding object picture, when this object picture is sky, then obtain this object picture according to the Image ID in this pictorial information, path etc.
This display list is used for depositing the ID of the picture in the picture tabulation that current page need show, this display list can be used for judging whether the picture that photo current loads in the tabulation need load or show.
In step S302, show preset background picture.
Particularly, because when initialization, the current screen demonstration is generally sky; The user experience effect is relatively poor; Picture through the current demonstration of initialization is preset background picture, and the background picture that should preset can be the picture of any setting, can promote the user experience effect.
In step S303, judge whether second thread starts, be execution in step S304 then, otherwise execution in step S307.
In step S304, judge whether this loading tabulation changes, and is, execution in step S305 then, otherwise execution in step S306.
In step S305, renewal was returned execution in step S302 after should loading tabulation and display list.
In step S306, go up the object picture that page or leaf shows and this page do not show in the tabulation of deletion picture.
In step S307, judge whether this loading tabulation is empty, be then return execution in step S304, otherwise execution in step S308 to start this second thread.
Wherein, this loading tabulation changes to the scroll bar of mobile terminal screen is dragged through quick button or the mode that touches or slides, the variation that perhaps causes during current screen generation conversion.
In the practical implementation process; No matter whether this second thread starts,, then upgrade this loading tabulation and display list as long as this loading is tabulated when changing; If this moment, this second thread started, then employed loading tabulation and display list synchronous dynamic are upgraded in this thread; When the original position of this loading tabulation does not change; Then delete in the picture tabulation; At the object picture that last page or leaf showed and this page do not show; Thereby in time obtain the picture that needs destruction; With releasing memory; Reduce the probability that internal memory overflows; The step that need to prove this deletion can utilize existing GridView control to realize deletion automatically; And without confirming whether delete or destroy picture in the terminal; And delete this this display list and load the ID of the corresponding picture of tabulation, with this display list of further renewal with load tabulation.
In addition, if this second thread starts, then in the second thread process of execution; After accomplishing the loading of picture, this loads tabulation for empty, then stops to carry out this second thread; Thereby only carry out this first thread, can draw and should go to step S304 place execution according to Rule of judgment this moment.
In embodiments of the present invention, through making up the tabulation and the construction method of data structure form, can accurately control this picture tabulation, loading tabulation and display list; Through dynamically updating this loading tabulation, display list, make the picture implementation load in proper order and the order demonstration, can promote user's effect; When changing according to the reference position when this loading tabulation, the display list of second thread and loading tabulation also can dynamically update synchronously, to improve the utilization factor of thread; When not changing, do not delete in the picture tabulation,,,, reduce the probability that internal memory overflows with releasing memory in time to obtain the picture that needs destruction at the object picture that last page or leaf showed and this page do not show according to reference position when this loading tabulation.
The realization flow that Fig. 4 shows that second embodiment of the invention provides based on second thread of the image display method of portable terminal; Be specially this realization flow based on second thread of the image display method of portable terminal; This second thread is that picture adds the carrier thread; And with the concurrent execution of this first thread, details are as follows:
In step S401, start this second thread.
In step S402, judge whether this loading tabulation is empty, and not, then execution in step S404 is that then execution in step S403 stops to carry out this second thread.
In the practical implementation process, if second thread starts, then after the loading of accomplishing picture, this loads tabulation for empty, then stops to carry out this second thread, thereby only carries out this first thread.
In step S404, obtain the corresponding object picture of this ID in first ID and the tabulation of this picture in this loading tabulation.
In step S405, judge whether this ID exists in this display list, is, then jumps to execution in step S408, otherwise execution in step S406.
In step S406, obtain corresponding object picture according to the corresponding already present pictorial information of this ID.
In step S407, the size of this object picture is processed into needed size, preserve corresponding position in this object picture to this picture tabulation after handling.
Particularly, behind first ID in obtaining this loading tabulation, also promptly need load first width of cloth picture; Because the Image ID in this loading tabulation is to load ordering in order, when having loaded a width of cloth picture, ID deletion that will this picture is corresponding; Thereby next width of cloth Image ID of this picture is first width of cloth Image ID, for this loads first ID in the tabulation, has carried out dynamically updating of this loading tabulation; Therefore in obtaining the Image ID process of loading; First ID that only need obtain in this loading tabulation can load in proper order in realization, and further realization shows in proper order, has improved user experience.During the corresponding object picture of first ID in obtaining this loading tabulation; Owing to reasons such as initialization, in this picture tabulation, possibly not store this object picture, information such as the ID of picture, picture path are obtained this object picture in then tabulating according to this picture; After this object picture processing; In being saved to the tabulation of said picture, thereby just store all object pictures during without initialization, saved memory source.
In step S408, judge whether this ID exists in this display list, is, execution in step S409 then, not, execution in step S410 then.
In the practical implementation process, when having this ID in this display list, then show corresponding object picture; Yet, also maybe be in the very short time of carrying out before judging action, there is this ID in this display list; But when carrying out this determining step; Because this display list variation makes this ID not exist in first thread, and because the dynamic synchronization of this display list is upgraded, makes that judged result is that this ID does not exist in this display list; So utilize two concurrent execution of thread, can improve the display speed of picture or its thumbnail effectively.
In step S409, utilize this picture to replace this preset background picture to show.
In step S410, delete this ID in this loading tabulation, upgrade to load tabulation, and return execution in step S402.
In the practical implementation process, through the mode of filtering, the current picture that needs demonstration in the parsing and displaying tabulation; Replace this preset background picture simultaneously, when not having the ID that Loads Image in this display list, no longer show the object picture that this ID is corresponding; Particularly, because this first thread and the concurrent execution of this second thread, when the mobile terminal screen current state changes; Real-time update should load tabulation and display list, and judge whether there is this ID in this display list this moment, can avoid display list to change when not having corresponding ID; Still show corresponding object picture, it is too high to cause resource to be used, and the picture display speed is slow; And button do not have the generation of response condition, pointed out the display speed of picture effectively.And when having loaded a width of cloth picture; Will delete this ID in this loading tabulation; Thereby the ID of the following piece image of this picture is first ID; Carried out loading dynamically updating of tabulation; Realized the purpose that Loads Image in proper order, then returned and judge whether this loading tabulation is empty step, repeats above-mentioned steps; Be loaded as sky until this, stop to carry out this second thread.
In embodiments of the present invention; Utilize this second thread with the concurrent execution of first thread to carry out the loading and the demonstration of picture, can be effectively must load and show, improve the display speed of picture picture; Improve the thread utilization factor, the resource overhead when having reduced to open thread etc.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; Described storage medium is like ROM/RAM, disk, CD etc.
Embodiment three:
The structure based on the image display apparatus of portable terminal that Fig. 5 shows that third embodiment of the invention provides for the ease of explanation, only shows the part relevant with the embodiment of the invention.
Should based on image display apparatus of portable terminal comprise first thread units 51 and with second thread units 52 of these first thread units, 51 concurrent execution, wherein:
The display list that the loading that picture tabulation, the order that first thread units 51 is used to make up and initialization is used to deposit all pictorial informations deposited the ID of the picture that needs load is tabulated and deposited the ID of the picture that current page need show; And the picture of the current demonstration of initialization is preset background picture; And when this loading tabulation changes; Upgrade this loading tabulation and this display list, and show the background picture that this is preset.
Wherein, This pictorial information comprises the ID of all pictures, corresponding picture path, object picture etc.; This ID is used to identify each width of cloth picture; Can be the sequence number of picture, picture name etc., this object picture is meant a picture entity, is an object picture or picture entity such as the picture of a width of cloth jpg form.
Should preset background picture be picture empty or that be provided with arbitrarily.
This loading tabulation changes to the scroll bar of mobile terminal screen is dragged through quick button or the mode that touches or slides, the variation that perhaps causes during current screen generation conversion.
In embodiments of the present invention, through making up the tabulation and the construction method of data structure form, can accurately control this picture tabulation, loading tabulation and display list; Because when initialization, current demonstration is generally sky, the user experience effect is relatively poor, and the background picture of picture for presetting through the current demonstration of initialization can promote the user experience effect.
This first thread units 51 also is used for when the reference position of this loading tabulation does not change, and then the picture that page or leaf shows and this page do not show is gone up in deletion.
In embodiments of the present invention, when the reference position of this loading tabulation does not change, then delete in the picture tabulation; At the object picture that last page or leaf showed and this page do not show; Thereby in time obtain the picture that needs destruction,, reduce the probability that internal memory overflows with releasing memory; The step that need to prove this deletion can utilize existing GridView control to realize deletion automatically; And without confirming whether delete or destroy picture in the terminal, and delete this this display list and load the ID of the corresponding picture of tabulation, with this display list of further renewal with load tabulation.
Second thread units 52 is used for when this loading tabulation is not sky; Obtain the corresponding object picture of this ID in first width of cloth ID and the tabulation of this picture in this loading tabulation, and when in this display list during this ID of existence, the picture that upgrades this current demonstration is this object picture; Delete the said ID in this loading tabulation; Upgrade to load and tabulate, return continuation and carry out the step of obtaining first ID in this loading tabulation, when this loading tabulation is sky, stop.
This second thread units 52 also is used for when the corresponding object picture of this this ID of picture tabulation does not exist; Obtain corresponding object picture according to the corresponding already present pictorial information of this ID; And the size of this object picture is processed into needed size, preserve corresponding position in this object picture to this picture tabulation after handling.
In embodiments of the present invention, when utilizing this second thread units 52 to obtain the object picture of first ID correspondence in this loading tabulation, owing to reasons such as initialization; In this picture tabulation, possibly not store this object picture; Information such as the ID of picture, picture path are obtained this object picture in then tabulating according to this picture, after this object picture is handled, in being saved to said picture tabulation; Thereby just store all object pictures during without initialization, saved memory source.
This second thread units 52 also is used for when there is not this ID in this display list, directly deletes this ID in this loading tabulation, upgrades to load tabulation.
In embodiments of the present invention, through the mode of filtering, the current picture that needs demonstration in the parsing and displaying tabulation; Replace this preset background picture simultaneously, when in utilizing these second thread units, 52 these display lists of judgement, not having the ID that Loads Image, no longer show the object picture that this ID is corresponding; Particularly, because this first thread and the concurrent execution of this second thread, when the mobile terminal screen current state changes; Real-time update should load tabulation and display list, and judge whether there is this ID in this display list this moment, can avoid display list to change when not having corresponding ID; Still show corresponding object picture, it is too high to cause resource to be used, and the picture display speed is slow; And button do not have the generation of response condition, pointed out the display speed of picture effectively.
In embodiments of the present invention, utilize comprise first thread units 51 and with the image display apparatus based on portable terminal of second thread units 52 of these first thread units, 51 concurrent execution, when having improved in portable terminal browsing pictures; The picture display speed is slow; Occupying system resources is more, causes the relatively poor problem of user experience effect, has improved the picture display speed; Reduce taking of system resource, thereby promoted the user experience effect.
The embodiment of the invention provides the image display method based on portable terminal of a kind of concurrent execution first thread and second thread, when the loading tabulation changes, dynamically updates this loading tabulation and display list through first thread execution; Second thread execution when this when to load tabulation be empty, obtain the object picture of this ID correspondence in first ID and the picture tabulation in this loadings tabulation, when in this display list during this ID of existence; The picture that upgrades this current demonstration is this object picture, in time deletes this ID in this loading tabulation, upgrades to load tabulation;, this loading tabulation stops to carry out second thread when being sky; Solved and utilized existing image display method in portable terminal during browsing pictures, the picture display speed is slow, and occupying system resources is more; Cause the relatively poor problem of user experience effect; Improve the picture display speed, reduced taking of system resource, thereby promoted the user experience effect.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the image display method based on portable terminal is characterized in that, said method comprise first thread and with second thread of the concurrent execution of said first thread, wherein:
Said first thread may further comprise the steps:
A1: make up and picture tabulation, order that initialization is used to deposit all pictorial informations are deposited loading tabulation and display list and the background picture of picture for presetting of the current demonstration of initialization of depositing the ID of the picture that current page need show of the ID of the picture that needs load;
B1: when said loading tabulation changes, upgrade said loading tabulation and said display list, and show said preset background picture; And
Said second thread may further comprise the steps:
A2:, obtain the object picture of ID correspondence described in first ID and the tabulation of said picture in the said loading tabulation when said loading tabulation when be empty;
B2: when having said ID in the said display list, the picture that upgrades said current demonstration is said object picture;
C2: delete the said ID in the said loading tabulation, upgrade said loading tabulation;
D2: return execution in step A2, when said loading tabulation is sky, stop.
2. the method for claim 1 is characterized in that, said pictorial information comprises the ID of picture, corresponding picture path, and object picture, and during initialization, the ID of said each width of cloth picture and picture path all exist, and object picture does not exist.
3. the method for claim 1 is characterized in that, said first thread is further comprising the steps of:
When said loading tabulation did not change, then the picture that page or leaf shows and this page do not show was gone up in deletion.
4. the method for claim 1 is characterized in that, after said steps A 2, before the step B2, said second thread is further comprising the steps of:
When the corresponding object picture of ID does not exist described in the said picture tabulation, obtain corresponding object picture according to the corresponding already present pictorial information of said ID;
The size of said object picture is processed into needed size, preserves corresponding position in said object picture to the said picture tabulation after handling.
5. the method for claim 1 is characterized in that, said second thread also comprises:
When not having said ID in the said display list, directly delete the said ID in the said loading tabulation, upgrade said loading tabulation.
6. the image display apparatus based on portable terminal is characterized in that, said device comprise first thread units and with second thread units of the concurrent execution of said first thread units, wherein:
First thread units; Be used to make up and display list that loading that picture tabulation, order that initialization is used to deposit all pictorial informations are deposited the ID of the picture that needs load is tabulated and deposited the ID of the picture that current page need show; And the picture of the current demonstration of initialization is preset background picture; And when said loading tabulation changes, upgrade said loading tabulation and said display list, and show said preset background picture; And
Second thread units; Be used for when judging said loading tabulation not for sky; Obtain the corresponding object picture of ID described in first ID and the tabulation of said picture in the said loading tabulation; When having said ID in the said display list; The picture that upgrades said current demonstration is said object picture, deletes the said ID in the said loading tabulation, upgrades said loading tabulation; Return continuation and carry out the step of obtaining first ID in the said loading tabulation, when said loading tabulation is sky, stop.
7. device as claimed in claim 6 is characterized in that, said preset background picture is empty or any image.
8. device as claimed in claim 6 is characterized in that, said first thread units also is used for when said loading tabulation does not change, and then the picture that page or leaf shows and this page do not show is gone up in deletion.
9. device as claimed in claim 6; It is characterized in that; Said second thread units also is used for when the corresponding object picture of ID does not exist described in the said picture tabulation; Obtain corresponding object picture according to the corresponding already present pictorial information of said ID, and the size of said object picture is processed into needed size, preserve corresponding position in said object picture to the said picture tabulation after handling.
10. device as claimed in claim 6 is characterized in that, said second thread units also is used for when there is not said ID in said display list, directly deletes the said ID in the said loading tabulation, upgrades said loading tabulation.
CN201110401619.XA 2011-12-06 2011-12-06 Picture displaying method and device based on mobile terminal Expired - Fee Related CN102541538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110401619.XA CN102541538B (en) 2011-12-06 2011-12-06 Picture displaying method and device based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110401619.XA CN102541538B (en) 2011-12-06 2011-12-06 Picture displaying method and device based on mobile terminal

Publications (2)

Publication Number Publication Date
CN102541538A true CN102541538A (en) 2012-07-04
CN102541538B CN102541538B (en) 2015-02-11

Family

ID=46348515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110401619.XA Expired - Fee Related CN102541538B (en) 2011-12-06 2011-12-06 Picture displaying method and device based on mobile terminal

Country Status (1)

Country Link
CN (1) CN102541538B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544207A (en) * 2013-08-19 2014-01-29 Tcl集团股份有限公司 Picture loading and displaying method and system
CN103593231A (en) * 2012-08-14 2014-02-19 腾讯科技(深圳)有限公司 Data processing method and device and mobile terminal
CN103593158A (en) * 2013-11-27 2014-02-19 广东欧珀移动通信有限公司 Method and device for displaying pictures of picture wall
CN103678357A (en) * 2012-09-13 2014-03-26 腾讯科技(深圳)有限公司 Method and device for obtaining picture thumbnail through mobile terminal
CN103678612A (en) * 2013-12-17 2014-03-26 深圳市东信时代信息技术有限公司 Photo-wall distributing device and method
CN103760966A (en) * 2013-05-02 2014-04-30 乐视网信息技术(北京)股份有限公司 Picture buffering implementation method
CN104238888A (en) * 2014-09-18 2014-12-24 深圳市中兴移动通信有限公司 Mobile terminal as well as method and device for globally viewing pictures of mobile terminal
WO2014206190A1 (en) * 2013-06-28 2014-12-31 深圳市九洲电器有限公司 Picture display method, apparatus and set-top box
CN104252367A (en) * 2013-06-27 2014-12-31 北京新媒传信科技有限公司 Method and system for loading picture asynchronously in intelligent terminal
CN104252350A (en) * 2013-06-28 2014-12-31 北京新媒传信科技有限公司 Method and device for loading picture in listbox
CN104391618A (en) * 2014-07-01 2015-03-04 贵阳朗玛信息技术股份有限公司 Method and device for loading pictures
CN104424333A (en) * 2013-09-11 2015-03-18 北大方正集团有限公司 Method and system for loading table data
CN105512170A (en) * 2015-11-19 2016-04-20 南京信息工程大学 Radar mosaic display optimizing method based on gestures
CN105573767A (en) * 2014-10-10 2016-05-11 惠州市德赛西威汽车电子股份有限公司 Interface image loading method in vehicle-mounted entertainment system
CN105843831A (en) * 2016-01-15 2016-08-10 乐视移动智能信息技术(北京)有限公司 Mobile terminal image display method and system
CN108874477A (en) * 2017-05-11 2018-11-23 武汉斗鱼网络科技有限公司 A kind of method and apparatus showing static images and dynamic picture
CN109240766A (en) * 2018-08-31 2019-01-18 北京龙创悦动网络科技有限公司 A kind of method and apparatus for the resource that Loads Image
CN109756709A (en) * 2018-12-28 2019-05-14 北京工业大学 A kind of performance improvement method in infrared panorama monitoring software
CN110058764A (en) * 2016-03-21 2019-07-26 青岛海信移动通信技术股份有限公司 A kind of picture loading method, device and terminal
CN110377374A (en) * 2018-04-13 2019-10-25 夏普株式会社 Electronic equipment, control device, control method and control program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183386A (en) * 2007-12-07 2008-05-21 腾讯科技(深圳)有限公司 Multi-page browsers web page sub-windows process method and multi-page browsers
CN101794567A (en) * 2010-02-10 2010-08-04 中兴通讯股份有限公司 Method and terminal for loading pictures

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183386A (en) * 2007-12-07 2008-05-21 腾讯科技(深圳)有限公司 Multi-page browsers web page sub-windows process method and multi-page browsers
CN101794567A (en) * 2010-02-10 2010-08-04 中兴通讯股份有限公司 Method and terminal for loading pictures

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593231A (en) * 2012-08-14 2014-02-19 腾讯科技(深圳)有限公司 Data processing method and device and mobile terminal
US9619275B2 (en) 2012-08-14 2017-04-11 Tencent Technology (Shenzhen) Company Limited Data processing method, apparatus and mobile terminal
WO2014026602A1 (en) * 2012-08-14 2014-02-20 Tencent Technology (Shenzhen) Company Limited A data processing method, apparatus and mobile terminal
CN103593231B (en) * 2012-08-14 2016-06-01 腾讯科技(深圳)有限公司 A kind of data processing method, device and mobile terminal
CN103678357A (en) * 2012-09-13 2014-03-26 腾讯科技(深圳)有限公司 Method and device for obtaining picture thumbnail through mobile terminal
CN103678357B (en) * 2012-09-13 2018-12-11 腾讯科技(深圳)有限公司 A kind of method and device of acquisition for mobile terminal picture thumbnail
CN103760966A (en) * 2013-05-02 2014-04-30 乐视网信息技术(北京)股份有限公司 Picture buffering implementation method
CN104252367A (en) * 2013-06-27 2014-12-31 北京新媒传信科技有限公司 Method and system for loading picture asynchronously in intelligent terminal
CN104252367B (en) * 2013-06-27 2017-12-19 北京新媒传信科技有限公司 The method and system of Asynchronous loading picture in a kind of intelligent terminal
WO2014206190A1 (en) * 2013-06-28 2014-12-31 深圳市九洲电器有限公司 Picture display method, apparatus and set-top box
CN104252350A (en) * 2013-06-28 2014-12-31 北京新媒传信科技有限公司 Method and device for loading picture in listbox
CN104252350B (en) * 2013-06-28 2018-05-11 北京新媒传信科技有限公司 A kind of method and apparatus of picture in loading list box
CN103544207B (en) * 2013-08-19 2019-01-29 Tcl集团股份有限公司 A kind of method and system of picture loaded and displayed
CN103544207A (en) * 2013-08-19 2014-01-29 Tcl集团股份有限公司 Picture loading and displaying method and system
CN104424333A (en) * 2013-09-11 2015-03-18 北大方正集团有限公司 Method and system for loading table data
CN103593158A (en) * 2013-11-27 2014-02-19 广东欧珀移动通信有限公司 Method and device for displaying pictures of picture wall
CN103678612A (en) * 2013-12-17 2014-03-26 深圳市东信时代信息技术有限公司 Photo-wall distributing device and method
CN104391618A (en) * 2014-07-01 2015-03-04 贵阳朗玛信息技术股份有限公司 Method and device for loading pictures
CN104238888A (en) * 2014-09-18 2014-12-24 深圳市中兴移动通信有限公司 Mobile terminal as well as method and device for globally viewing pictures of mobile terminal
CN104238888B (en) * 2014-09-18 2019-06-07 努比亚技术有限公司 A kind of mobile terminal and its global method and apparatus for checking picture
CN105573767A (en) * 2014-10-10 2016-05-11 惠州市德赛西威汽车电子股份有限公司 Interface image loading method in vehicle-mounted entertainment system
CN105512170A (en) * 2015-11-19 2016-04-20 南京信息工程大学 Radar mosaic display optimizing method based on gestures
CN105843831A (en) * 2016-01-15 2016-08-10 乐视移动智能信息技术(北京)有限公司 Mobile terminal image display method and system
CN110058764A (en) * 2016-03-21 2019-07-26 青岛海信移动通信技术股份有限公司 A kind of picture loading method, device and terminal
CN108874477A (en) * 2017-05-11 2018-11-23 武汉斗鱼网络科技有限公司 A kind of method and apparatus showing static images and dynamic picture
CN108874477B (en) * 2017-05-11 2021-06-15 武汉斗鱼网络科技有限公司 Method and device for displaying static pictures and dynamic pictures
CN110377374A (en) * 2018-04-13 2019-10-25 夏普株式会社 Electronic equipment, control device, control method and control program
CN109240766A (en) * 2018-08-31 2019-01-18 北京龙创悦动网络科技有限公司 A kind of method and apparatus for the resource that Loads Image
CN109756709A (en) * 2018-12-28 2019-05-14 北京工业大学 A kind of performance improvement method in infrared panorama monitoring software

Also Published As

Publication number Publication date
CN102541538B (en) 2015-02-11

Similar Documents

Publication Publication Date Title
CN102541538B (en) Picture displaying method and device based on mobile terminal
US11531625B2 (en) Memory management method and apparatus
KR102058465B1 (en) Management system and method for remote controller of electronic device
CN103544207B (en) A kind of method and system of picture loaded and displayed
JP2020504865A (en) Application data processing method, apparatus, and storage medium
RU2617388C2 (en) Method, terminal and electronic device for e-book document processing
EP2527999A1 (en) Method and apparatus for splitting media files
WO2011000238A1 (en) Method for managing application information implemented by a mobile phone and application manager
CN104571877A (en) Display processing method and device for pages
US11232066B2 (en) Method for data migration and terminal
CN103902575A (en) Pictorial information loading method and related device
CN102708197A (en) Multimedia file management method and device
CN105955770A (en) Application program uninstalling method and terminal
CN104424333A (en) Method and system for loading table data
US9754391B2 (en) Webpage display method and apparatus
CN105677483A (en) Data caching method and device
CN104199729A (en) Resource management method and system
CN110286954B (en) Application program starting method and device and storage medium
CN103699296A (en) Intelligent terminal and episode serial number prompt method
CN103208128A (en) Method and device for displaying picture
CN103942199A (en) Method and device for obtaining picture information on webpages and terminal
CN101986662A (en) Widget instance operation method and system
CN108958808A (en) Method for starting terminal and device, terminal and storage medium
CN103377071A (en) Data batch delete method and system
KR20200003356A (en) Management system and method for remote controller of electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150211

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