CN105989039B - Method and device for processing pictures in mobile terminal - Google Patents

Method and device for processing pictures in mobile terminal Download PDF

Info

Publication number
CN105989039B
CN105989039B CN201510057205.8A CN201510057205A CN105989039B CN 105989039 B CN105989039 B CN 105989039B CN 201510057205 A CN201510057205 A CN 201510057205A CN 105989039 B CN105989039 B CN 105989039B
Authority
CN
China
Prior art keywords
picture
flow
information
traffic
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510057205.8A
Other languages
Chinese (zh)
Other versions
CN105989039A (en
Inventor
刘锋俊
何卫星
张文
谭君
刘文超
杨云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510057205.8A priority Critical patent/CN105989039B/en
Publication of CN105989039A publication Critical patent/CN105989039A/en
Application granted granted Critical
Publication of CN105989039B publication Critical patent/CN105989039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and a device for processing pictures in a mobile terminal; the method comprises the steps of obtaining picture information carrying the size of a picture, initiating a flow resource application according to the picture information, and obtaining current flow resource information according to the application, wherein the flow resource information comprises a pre-download available flow limit and a flow waste value; the scheme can control the flow resources more flexibly, so that unnecessary flow consumption is reduced while the user can quickly check the pictures, and the flow resources are greatly saved.

Description

Method and device for processing pictures in mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for processing pictures in a mobile terminal.
Background
for mobile social contact, the inter-transmission pictures are not only very common scenes but also a very intuitive social contact method, but the transmission of pictures, especially high fidelity pictures, generally takes much time, so how to reduce the waiting time for users to view the pictures is also a problem of much attention of people.
in the prior art, in order to reduce the waiting time of a user when viewing a picture and bring a 'quick' experience to the user, the picture is generally pre-downloaded and stored locally in a mobile terminal, and then when the user needs to view the picture, the picture is extracted locally for display.
in the process of research and practice of the prior art, the inventor of the present invention finds that although the waiting time for a user to view pictures can be reduced in the prior art, the prior art needs to pre-download all pictures, which consumes more traffic, and especially for pictures that the user does not need to view subsequently, the consumed traffic is unnecessary, which is not favorable for saving resources.
Disclosure of Invention
the embodiment of the invention provides a method and a device for processing pictures in a mobile terminal, which can flexibly control the flow, reduce unnecessary flow consumption and save resources while realizing quick picture checking of a user.
The embodiment of the invention provides a method for processing pictures in a mobile terminal, which comprises the following steps:
Acquiring picture information, wherein the picture information carries the size of a picture;
Initiating a flow resource application according to the picture information;
acquiring current flow resource information according to the application, wherein the flow resource information comprises a pre-download available flow limit and a flow waste value;
And when the pre-download available flow limit is determined to be larger than the size of the picture, and the sum of the flow waste value and the size of the picture does not exceed the preset upper limit of the waste flow, pre-downloading the corresponding picture according to the picture information.
Correspondingly, an embodiment of the present invention further provides a device for processing pictures in a mobile terminal, including:
The device comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring picture information, and the picture information carries the size of a picture;
An application unit, configured to initiate a traffic resource application according to the picture information;
A second obtaining unit, configured to obtain current traffic resource information according to the application, where the traffic resource information includes a pre-download available traffic limit and a traffic waste value;
And the downloading unit is used for determining that the available pre-downloading flow quota is larger than the size of the picture, and pre-downloading the corresponding picture according to the picture information when the sum of the flow waste value and the size of the picture does not exceed the preset upper limit of the waste flow.
The method comprises the steps of obtaining picture information carrying the size of a picture, initiating a flow resource application according to the picture information, and obtaining current flow resource information according to the application, wherein the flow resource information comprises a pre-download available flow limit and a flow waste value; when the scheme allocates the flow resource for the user to pre-download the picture, not only the size of the picture is considered, but also the pre-download available flow limit and the flow waste value are added as consideration factors, and the pre-download available flow limit and the flow waste value can reflect the viewing condition of the user on the pre-downloaded picture, namely whether the allocated flow resource for pre-downloading the picture is necessary or not and whether the allocated flow resource is valuable or not can be reflected to a certain extent.
drawings
in order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for processing pictures in a mobile terminal according to an embodiment of the present invention;
Fig. 2 is another flowchart of a method for processing pictures in a mobile terminal according to an embodiment of the present invention;
fig. 3a is a schematic structural diagram of a device for processing pictures in a mobile terminal according to an embodiment of the present invention;
Fig. 3b is another schematic structural diagram of a device for processing pictures in a mobile terminal according to an embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
the embodiment of the invention provides a method and a device for processing pictures in a mobile terminal. The following are detailed below.
the first embodiment,
In this embodiment, a description will be given from the perspective of a processing apparatus for pictures in a mobile terminal, where the processing apparatus for pictures in the mobile terminal may be specifically integrated in the mobile terminal, and the terminal may specifically include a device such as a mobile phone or a tablet computer.
A method for processing pictures in a mobile terminal comprises the following steps: acquiring picture information, wherein the picture information carries the size of a picture; initiating a flow resource application according to the picture information; obtaining current flow resource information according to the flow resource application, wherein the flow resource information comprises a pre-download available flow limit and a flow waste value; and when the available pre-downloading flow limit is determined to be larger than the size of the picture and the sum of the flow waste value and the size of the picture does not exceed the preset upper limit of the waste flow, pre-downloading the corresponding picture according to the picture information.
as shown in fig. 1, the specific flow of the method for processing pictures in the mobile terminal may be as follows:
101. and acquiring picture information.
for example, when a webpage access request, a microblog viewing request, a friend circle information viewing request, or the like initiated by a user is received, picture information contained in a page is acquired according to the requests.
The picture information may carry the size of the picture, and may also carry information such as the download address of the picture.
it should be noted that, in the embodiment of the present invention, the picture size carried in the picture refers to the picture size of the original picture.
102. And initiating a flow resource application according to the picture information.
For example, a traffic resource allocation request may be specifically sent according to the picture information, where the traffic resource allocation request carries a required traffic size, and the traffic size may be greater than or equal to a size of a picture to be downloaded.
It should be noted that, in a scenario of a mobile network, traffic resources are relatively limited, and in a scenario of Wireless Fidelity (WIFI), traffic resources are relatively abundant, so that only the traffic resources in the scenario of the mobile network may be controlled, and in the scenario of the WIFI, an existing manner, for example, a pre-download manner is uniformly applied to all pictures, and the like, may be applied. Or, in a mobile network scenario, the pre-download is not performed, and in a WIFI scenario, the traffic resource control is performed; that is, before the step "initiate a traffic resource application according to the picture information", the method may further include:
and determining the network type to which the mobile terminal belongs currently, and if the network type is the first network type, executing the step of initiating a flow resource application according to the picture information.
the first network type may be set according to requirements of actual applications, for example, the first network type may be set to WIFI, or may be set to a mobile network, and the like.
103. And obtaining the current flow resource information according to the flow resource application.
The traffic resource information may include information such as a pre-download available traffic quota and a traffic waste value, and in addition, the traffic resource information may also include information such as a waste traffic upper limit and/or a pre-download available traffic quota upper limit.
The initial value of the pre-download available flow rate limit can be set according to the requirements of practical application, and can be adjusted according to factors such as the click rate of a user on a pre-download picture and the like; the initial value of the flow waste value can be set to 0, and the adjustment can be carried out subsequently according to factors such as the click rate of a user on a pre-downloaded picture and the like; the upper limit of the wasteable flow and the upper limit of the pre-download available flow limit may be set according to the requirements of the practical application, for example, the upper limit of the wasteable flow may be set to an upper limit of a daily wasteable flow, an upper limit of a weekly wasteable flow, or an upper limit of a monthly wasteable flow, and so on, which will not be described herein again.
104. And when the available pre-download flow limit is determined to be larger than the size of the picture, and the sum of the flow waste value and the size of the picture does not exceed the preset upper limit of the waste flow, pre-downloading the corresponding picture according to the picture information, for example, pre-downloading the corresponding picture according to the download address of the picture.
Otherwise, if the pre-download available flow quota is determined to be smaller than or equal to the size of the picture, or the sum of the flow waste value and the size of the picture exceeds a preset upper limit of the waste flow, the picture corresponding to the picture information is not pre-downloaded.
After downloading the corresponding picture according to the picture information, the current traffic resource information may also be updated, for example, the pre-download available traffic quota and the traffic waste value may be updated as follows:
subtracting the size of the picture from the available pre-download flow limit in the current flow resource information to obtain an updated available pre-download flow limit, wherein the updated available pre-download flow limit is expressed by a formula:
FlowPrei=FlowPrei-1–PicSize;
and adding the size of the picture to the traffic waste value in the current traffic resource information to obtain an updated traffic waste value.
FlowWastei=FlowWastei-1+PicSize;
wherein FlowPrei-1Indicating the current pre-download available flow credit, FlowPreiIndicating updated pre-download available flow credit, FlowWastei-1indicating the current traffic waste value, FlowWasteiIndicates the updated traffic waste value, and PicSize indicates the picture size.
in addition, the flow resource information may also be adjusted according to the operation condition of the user on the thumbnail of the picture, including the thumbnail of the picture that has been pre-downloaded and the thumbnail of the picture that has not been pre-downloaded (i.e. the picture that is manually downloaded), that is, the method for processing the picture in the mobile terminal may further include:
And acquiring the operation information of the user on the picture thumbnail, and adjusting the flow resource information according to the operation information.
The operation information may include operations of viewing or saving a picture corresponding to the thumbnail, for example, the operation information may be obtained by specifically receiving that the user selects the thumbnail of the picture by clicking or sliding, and the like.
The method for adjusting the traffic resource information according to the operation information may be various, and for example, the method may specifically include the following steps:
(1) If the operation information indicates that the picture corresponding to the picture thumbnail is pre-downloaded, calculating a hit click repayment amount, adding the pre-download available flow amount in the flow resource information to the hit click repayment amount, and subtracting the flow waste value in the flow resource information by the size of the clicked picture.
Wherein, the hit click repayment amount refers to a flow value to be compensated to the 'available flow amount for pre-download' when the user clicks the hit pre-download picture. The way of calculating the hit click repayment amount may be various, for example, as follows:
and acquiring a large image viewing proportion of the user, and calculating a quotient of the size of the image of the clicked image of the user and the large image viewing proportion to obtain a hit click repayment amount.
The above algorithm is formulated as follows:
FlowPrei′=FlowPrei+PicSize*(1/RateLarge);
FlowWastei′=FlowWastei–PicSize。
Wherein FlowPreiFlowPre, the pre-download available flow quota that needs to be adjustedi'FlowWaste' is the adjusted pre-download available flow rateiFlow adjusted for the needWaste value, flowwaiti' for the adjusted flow waste value, ' PicSize × (1/RateLarge) ' is the hit click repayment amount, PicSize is the size of the picture, RateLarge is the large picture viewing ratio of the user, and the large picture viewing ratio is the ratio of the number of the pre-downloaded pictures clicked by the user to the total number of the pictures.
(2) if the operation information indicates that the picture corresponding to the picture thumbnail is not pre-downloaded, calculating a non-hit click repayment limit, and subtracting the non-hit click repayment limit from a pre-download available flow limit in the flow resource information.
The non-hit click repayment amount is a flow value which is compensated for the 'available pre-download flow amount' by the picture manually downloaded by the user. The way of calculating the non-hit click repayment amount can be various, for example, the following can be specifically mentioned:
Acquiring the average size of the pictures, acquiring the large picture viewing proportion of a user, and calculating the difference between 1 and the large picture viewing proportion to obtain a first difference value; and calculating the product of the average size of the picture and the first difference value to obtain a non-hit click repayment amount.
the above algorithm is formulated as follows:
FlowPrei′=FlowPrei+PicSizeAvg*(1–RateLarge)。
Wherein FlowPreiFlowPre, the pre-download available flow quota that needs to be adjustedi' for the adjusted pre-download available flow rate limit, ' picsizevavg (1-RateLarge) ' is a non-hit click repayment limit, picsizevavg is the average size of all pre-downloaded pictures, RateLarge is the large picture viewing ratio of the user, and the large picture viewing ratio refers to the ratio of the number of pre-downloaded pictures clicked by the user to the total number of the pictures.
optionally, in order to avoid the excessive pre-download traffic, an upper limit may be set for the pre-download available traffic limit, which is referred to as the pre-download available traffic limit upper limit, in an embodiment of the present invention, the flowplimit is used to indicate, before adjusting the updated traffic resource information, whether the pre-download available traffic limit has exceeded the pre-download available traffic limit upper limit may be determined, if not, the step of adjusting the updated traffic resource information according to the operation information is performed, otherwise, if the pre-download available traffic limit is equal to the pre-download available traffic limit upper limit, the step of adjusting the updated traffic resource information may not be performed.
it should be noted that, because the pre-download available flow rate limit is less than or equal to the pre-download available flow rate limit upper limit, the situation that the pre-download available flow rate limit is greater than the pre-download available flow rate limit upper limit does not occur, and if the obtained value is greater than the pre-download available flow rate limit upper limit after the pre-download available flow rate limit is adjusted, the pre-download available flow rate limit upper limit is used as the adjusted pre-download available flow rate limit, which is not described herein again.
It should be further noted that the execution sequence of the adjustment of the flow resource information and the pre-downloading of the picture may not be sequential, for example, the operation time of the user may be obtained, if the operation event indicates that the picture is to be pre-downloaded, a process of determining whether to pre-download the picture is performed is executed, and if the operation event indicates that the picture is to be checked, a process of adjusting the flow resource information is executed. Namely before the step of "acquiring picture information", further comprising:
Acquiring an operation event of a user; if the operation event indicates that the picture is pre-downloaded, executing a step of obtaining picture information; and if the operation event indicates to view the picture, executing the step of acquiring the operation information of the picture by the user.
as can be seen from the above, in this embodiment, picture information carrying a picture size is obtained, a traffic resource application is initiated according to the picture information, and current traffic resource information is obtained according to the application, where the traffic resource information includes a pre-download available traffic quota and a traffic waste value, and if it is determined that the pre-download available traffic quota is greater than the picture size and the sum of the traffic waste value and the picture size does not exceed a preset upper limit of the waste traffic, a corresponding picture is pre-downloaded according to the picture information; when the scheme allocates the flow resource for the user to pre-download the picture, not only the size of the picture is considered, but also the pre-download available flow limit and the flow waste value are added as consideration factors, and the pre-download available flow limit and the flow waste value can reflect the viewing condition of the user on the pre-downloaded picture, namely whether the allocated flow resource for pre-downloading the picture is necessary or not and whether the allocated flow resource is valuable or not can be reflected to a certain extent.
example II,
The method described in the first embodiment is further illustrated by way of example.
In this embodiment, an example in which the processing apparatus for the picture in the mobile terminal is specifically integrated in the mobile terminal will be described.
As shown in fig. 2, a method for processing a picture in a mobile terminal may specifically include the following steps:
201. The mobile terminal acquires an operation event of a user, and if the operation event indicates that a picture is pre-downloaded, step 202 is executed; if the operation event indicates to view the picture, step 209 is executed.
202. And the mobile terminal acquires the picture information.
For example, when receiving a web page access request, a microblog viewing request, a friend circle information viewing request, or the like initiated by a user, the mobile terminal acquires picture information contained in a page according to the requests.
The picture information may carry the size of the picture, and may also carry information such as the download address of the picture.
203. the mobile terminal determines the network type to which the mobile terminal belongs, if the network type is the first network type, step 204 is executed, otherwise, the process is ended.
The first network type may be set according to requirements of actual applications, for example, the first network type may be set to WIFI, or may be set to a mobile network, and the like.
204. And the mobile terminal initiates a flow resource allocation request according to the picture information.
The traffic resource allocation request carries a required traffic size, and the traffic size may be greater than or equal to a size of a picture to be downloaded.
205. And the mobile terminal acquires the current flow resource information according to the flow resource application.
the traffic resource information may include information such as a pre-download available traffic quota and a traffic waste value, and in addition, the traffic resource information may also include information such as a waste traffic upper limit and/or a pre-download available traffic quota upper limit.
the initial value of the pre-download available flow rate limit can be set according to the requirements of practical application, and can be adjusted according to factors such as the click rate of a user on a pre-download picture and the like; the initial value of the flow waste value can be set to 0, and the adjustment can be carried out subsequently according to factors such as the click rate of a user on a pre-downloaded picture and the like; the upper limit of the wasteful traffic and the upper limit of the pre-download available traffic limit may be set according to the requirement of the actual application, for example, the upper limit of the wasteful traffic may be set to 500k, and so on, which is not described herein again.
206. The mobile terminal judges whether the available pre-download flow quota is larger than the size of the picture, and judges whether the sum of the flow waste value and the size of the picture exceeds a preset upper limit of the waste flow, namely whether the conditions are met:
FlowPre > PicSize, and FlowWaste + PicSize < FlowWasteLimit;
if the condition is satisfied, that is, it is determined that the pre-download available traffic quota is greater than the size of the picture, and the sum of the traffic waste value and the size of the picture does not exceed the preset upper limit of the waste traffic, step 207 is executed.
Otherwise, if the sum of the flow waste value and the picture size exceeds a preset waste flow upper limit, the picture corresponding to the picture information is not pre-downloaded.
wherein, FlowPre is the available flow quota of the pre-download, PicSize is the picture size, flowwait is the flow waste value, flowwait limit is the upper limit of the flow that can be wasted.
207. and when the mobile terminal determines that the available pre-download flow quota is larger than the size of the picture and the sum of the flow waste value and the size of the picture does not exceed the preset upper limit of the waste flow, pre-downloading the corresponding picture according to the picture information, and then executing step 208.
208. The mobile terminal subtracts the size of the picture from the pre-download available flow limit in the current flow resource information to obtain an updated pre-download available flow limit, and adds the flow waste value in the current flow resource information to the size of the picture to obtain an updated flow waste value.
Is expressed by the formula:
FlowPrei=FlowPrei-1–PicSize;
FlowWastei=FlowWastei-1++PicSize。
wherein FlowPrei-1Indicating the current pre-download available flow credit, FlowPreiIndicating updated pre-download available flow credit, FlowWastei-1indicating the current traffic waste value, FlowWasteiIndicates the updated traffic waste value, and PicSize indicates the picture size.
Thereafter, step 201 may be returned to.
209. the mobile terminal obtains the operation information of the user on the picture thumbnail, adjusts the traffic resource information according to the operation information, and can return to execute step 201.
The operation information may include operations of viewing or saving a certain picture, for example, the operation information may be obtained by specifically receiving that a user selects a thumbnail (i.e., a thumbnail) of a certain picture by clicking or sliding, and the like.
For example, taking an example that a user clicks a small picture of a certain picture, the adjustment mode may specifically be as follows:
(1) if the operation information indicates that the picture clicked by the user is pre-downloaded, calculating a hit click repayment amount, adding the current pre-download available flow amount to the hit click repayment amount to obtain an adjusted pre-download available flow amount, and subtracting the size of the clicked picture from the current flow waste value to obtain an adjusted flow waste value.
the way of calculating the hit click repayment amount may be various, for example, as follows:
And acquiring a large image viewing proportion of the user, and calculating a quotient of the size of the image of the clicked image of the user and the large image viewing proportion to obtain a hit click repayment amount.
the above algorithm is formulated as follows:
FlowPrei′=FlowPrei+PicSize*(1/RateLarge);
FlowWastei′=FlowWastei–PicSize。
Wherein FlowPreiFlowPre, the pre-download available flow quota that needs to be adjustedi'FlowWaste' is the adjusted pre-download available flow rateiFor the value of flow waste to be adjusted, FlowWastei' for the adjusted flow waste value, ' PicSize × (1/RateLarge) ' is the hit click repayment amount, PicSize is the size of the picture, RateLarge is the large picture viewing ratio of the user, and the large picture viewing ratio is the ratio of the number of the pre-downloaded pictures clicked by the user to the total number of the pictures.
(2) if the operation information indicates that the picture clicked by the user is not pre-downloaded, calculating a non-hit click repayment limit, and subtracting the non-hit click repayment limit from the current pre-download available flow limit to obtain an adjusted pre-download available flow limit.
The way of calculating the non-hit click repayment amount may be various, for example, the following may be specifically used:
acquiring the average size of the pictures, acquiring the large picture viewing proportion of a user, and calculating the difference between 1 and the large picture viewing proportion to obtain a first difference value; and calculating the product of the average size of the picture and the first difference value to obtain a non-hit click repayment amount.
the above algorithm is formulated as follows:
FlowPrei′=FlowPrei+PicSizeAvg*(1–RateLarge)。
Wherein FlowPreiFlowPre, the pre-download available flow quota that needs to be adjustedi' for the adjusted pre-download available flow rate limit, ' picsizevavg (1-RateLarge) ' is a non-hit click repayment limit, picsizevavg is the average size of all pre-downloaded pictures, RateLarge is the large picture viewing ratio of the user, and the large picture viewing ratio refers to the ratio of the number of pre-downloaded pictures clicked by the user to the total number of the pictures.
Optionally, in order to avoid the excessive pre-download traffic, an upper limit may be set for the pre-download available traffic limit, which is referred to as the pre-download available traffic limit upper limit, in an embodiment of the present invention, the flowplimit is used to indicate, before adjusting the updated traffic resource information, whether the pre-download available traffic limit has exceeded the pre-download available traffic limit upper limit may be determined, if not, the step of adjusting the updated traffic resource information according to the operation information is performed, otherwise, if the pre-download available traffic limit is equal to the pre-download available traffic limit upper limit, the step of adjusting the updated traffic resource information may not be performed.
It should be noted that, because the pre-download available flow rate limit is less than or equal to the pre-download available flow rate limit upper limit, the situation that the pre-download available flow rate limit is greater than the pre-download available flow rate limit upper limit does not occur, and if the obtained value is greater than the pre-download available flow rate limit upper limit after the pre-download available flow rate limit is adjusted, the pre-download available flow rate limit upper limit is used as the adjusted pre-download available flow rate limit, which is not described herein again.
As can be seen from the above, in this embodiment, picture information carrying a picture size is obtained, a traffic resource application is initiated according to the picture information, and current traffic resource information is obtained according to the application, where the traffic resource information includes a pre-download available traffic quota and a traffic waste value, and if it is determined that the pre-download available traffic quota is greater than the picture size and the sum of the traffic waste value and the picture size does not exceed a preset upper limit of the waste traffic, a corresponding picture is pre-downloaded according to the picture information; when the scheme allocates the flow resource for the user to pre-download the picture, not only the size of the picture is considered, but also the pre-download available flow limit and the flow waste value are added as consideration factors, and as the pre-download available flow limit and the flow waste value can reflect the viewing condition (namely the hit condition) of the pre-downloaded picture by the user, whether the flow resource allocated to the part of the pre-downloaded picture is necessary or valuable can be reflected to a certain extent, therefore, compared with the prior art, the scheme can more flexibly control the flow resource, reduce the unnecessary flow consumption while realizing the quick viewing of the picture by the user, and greatly save the flow resource.
Example III,
In order to better implement the above method, an embodiment of the present invention may further provide a processing apparatus for pictures in a mobile terminal, as shown in fig. 3a, the processing apparatus for pictures in a mobile terminal may further include a first obtaining unit 301, an applying unit 302, a second obtaining unit 303, and a downloading unit 304, as follows:
a first obtaining unit 301, configured to obtain picture information.
The picture information carries the size of the picture, and can also carry information such as the download address of the picture.
an applying unit 302, configured to initiate a traffic resource application according to the picture information.
A second obtaining unit 303, configured to obtain current traffic resource information according to the application.
The traffic resource information may include information such as a pre-download available traffic quota and a traffic waste value, and in addition, the traffic resource information may also include information such as a waste traffic upper limit and/or a pre-download available traffic quota upper limit.
The initial value of the pre-download available flow rate limit can be set according to the requirements of practical application, and can be adjusted according to factors such as the click rate of a user on a pre-download picture and the like; the initial value of the flow waste value can be set to 0, and the adjustment can be carried out subsequently according to factors such as the click rate of a user on a pre-downloaded picture and the like; the upper limit of the waste traffic and the upper limit of the pre-download available traffic limit can be set according to the requirements of practical applications, and are not described herein again.
a downloading unit 304, configured to determine that the pre-downloading available flow quota is greater than the size of the picture, and when the sum of the flow waste value and the size of the picture does not exceed a preset upper limit of the waste flow, pre-download the corresponding picture according to the picture information.
Otherwise, if the pre-download available flow quota is determined to be smaller than or equal to the size of the picture, or the sum of the flow waste value and the size of the picture exceeds a preset upper limit of the waste flow, the picture corresponding to the picture information is not pre-downloaded.
After downloading the corresponding picture according to the picture information, the current traffic resource information may also be updated, for example, the pre-download available traffic quota and the traffic waste value are updated, that is, as shown in fig. 3b, the apparatus may further include an updating unit 305, as follows:
the updating unit 305 is configured to update the current traffic resource information, and specifically may be as follows:
Subtracting the size of the picture from the available pre-download flow limit in the current flow resource information to obtain an updated available pre-download flow limit, wherein the updated available pre-download flow limit is expressed by a formula:
FlowPrei=FlowPrei-1–PicSize;
And adding the size of the picture to the traffic waste value in the current traffic resource information to obtain an updated traffic waste value.
FlowWastei=FlowWastei-1+PicSize;
Wherein FlowPrei-1Indicating the current pre-download available flow credit, FlowPreiIndicating updated pre-download available flow credit, FlowWastei-1Indicating the current traffic waste value, FlowWasteiIndicates the updated traffic waste value, and PicSize indicates the picture size.
In addition, the flow resource information may also be adjusted according to the operation condition of the user on the thumbnail of the picture, including the thumbnail of the picture that has been pre-downloaded and the thumbnail of the picture that has not been pre-downloaded (i.e. the picture that is manually downloaded), that is, the apparatus may further include an adjusting unit 306, as follows:
The first obtaining unit 301 may be further configured to obtain operation information of the user on the picture,
The adjusting unit 306 may be configured to adjust the traffic resource information according to the operation information.
The operation information may include operations of viewing or saving a picture corresponding to the thumbnail, for example, the operation information may be obtained by specifically receiving that the user selects the thumbnail of the picture by clicking or sliding, and the like.
The method for adjusting the traffic resource information according to the operation information may be in various manners, that is, the adjusting unit 306 may specifically perform the following operations:
(1) if the operation information indicates that the picture corresponding to the picture thumbnail is pre-downloaded, calculating a hit click repayment amount, adding the pre-download available flow amount in the flow resource information to the hit click repayment amount, and subtracting the flow waste value in the flow resource information by the size of the clicked picture.
The way of calculating the hit click repayment amount may be various, for example, as follows:
and acquiring a large image viewing proportion of the user, and calculating a quotient of the size of the image of the clicked image of the user and the large image viewing proportion to obtain a hit click repayment amount.
(2) if the operation information indicates that the picture corresponding to the picture thumbnail is not pre-downloaded, calculating a non-hit click repayment limit, and subtracting the non-hit click repayment limit from a pre-download available flow limit in the flow resource information.
The way of calculating the non-hit click repayment amount may be various, for example, the following may be specifically used:
acquiring the average size of the pictures, acquiring the large picture viewing proportion of a user, and calculating the difference between 1 and the large picture viewing proportion to obtain a first difference value; and calculating the product of the average size of the picture and the first difference value to obtain a non-hit click repayment amount.
optionally, in order to avoid the excessive pre-download traffic, an upper limit may be set for the pre-download available traffic limit, which is referred to as the pre-download available traffic limit upper limit, in an embodiment of the present invention, the flowplimit is used to indicate, before adjusting the updated traffic resource information, whether the pre-download available traffic limit has exceeded the pre-download available traffic limit upper limit may be determined, if not, the step of adjusting the updated traffic resource information according to the operation information is performed, otherwise, if the pre-download available traffic limit is equal to the pre-download available traffic limit upper limit, the step of adjusting the updated traffic resource information may not be performed.
it should be noted that, because the pre-download available flow rate limit is less than or equal to the pre-download available flow rate limit upper limit, the situation that the pre-download available flow rate limit is greater than the pre-download available flow rate limit upper limit does not occur, and if the obtained value is greater than the pre-download available flow rate limit upper limit after the pre-download available flow rate limit is adjusted, the pre-download available flow rate limit upper limit is used as the adjusted pre-download available flow rate limit, which is not described herein again.
It should be further noted that the execution sequence of the adjustment of the flow resource information and the pre-downloading of the picture may not be sequential, for example, the operation time of the user may be obtained, if the operation event indicates that the picture is to be pre-downloaded, a process of determining whether to pre-download the picture is performed is executed, and if the operation event indicates that the picture is to be checked, a process of adjusting the flow resource information is executed. Namely:
The first obtaining unit 301 is further configured to obtain an operation event of a user, and if the operation event indicates that a picture is to be pre-downloaded, execute an operation of obtaining picture information; and if the operation event indicates to view the picture, executing the operation of acquiring the operation information of the picture by the user.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing embodiments, which are not described herein again.
The processing device for the pictures in the mobile terminal can be specifically integrated in the mobile terminal, and the mobile terminal can be specifically a mobile phone or a tablet computer and other devices.
As can be seen from the above, the first obtaining unit 301 of the device for processing a picture in a mobile terminal of this embodiment may obtain picture information carrying a picture size, then the applying unit 302 initiates a traffic resource application according to the picture information, and the second obtaining unit 303 obtains current traffic resource information according to the application, where the traffic resource information includes a pre-download available traffic quota and a traffic waste value, and if it is determined that the pre-download available traffic quota is greater than the picture size and the sum of the traffic waste value and the picture size does not exceed a preset upper limit of the pre-download available traffic, the downloading unit 304 pre-downloads a corresponding picture according to the picture information; when the scheme allocates the flow resource for the user to pre-download the picture, not only the size of the picture is considered, but also the pre-download available flow limit and the flow waste value are added as consideration factors, and the pre-download available flow limit and the flow waste value can reflect the viewing condition of the user on the pre-downloaded picture, namely whether the allocated flow resource for pre-downloading the picture is necessary or not and whether the allocated flow resource is valuable or not can be reflected to a certain extent.
Example four,
Accordingly, as shown in fig. 4, the mobile terminal may include a Radio Frequency (RF) circuit 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a wireless fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
The RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 404 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The mobile terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile terminal, further description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the mobile terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another mobile terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal.
WiFi belongs to short distance wireless transmission technology, and the mobile terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the mobile terminal, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the mobile phone. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The mobile terminal also includes a power supply 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
although not shown, the mobile terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the mobile terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application program stored in the memory 402, thereby implementing various functions:
acquiring picture information, wherein the picture information carries the size of a picture; initiating a flow resource application according to the picture information; obtaining current flow resource information according to the flow resource application, wherein the flow resource information comprises a pre-download available flow limit and a flow waste value; and when the available pre-downloading flow limit is determined to be larger than the size of the picture and the sum of the flow waste value and the size of the picture does not exceed the preset upper limit of the waste flow, pre-downloading the corresponding picture according to the picture information.
otherwise, if the pre-download available flow quota is determined to be smaller than or equal to the size of the picture, or the sum of the flow waste value and the size of the picture exceeds a preset upper limit of the waste flow, the picture corresponding to the picture information is not pre-downloaded.
after downloading the corresponding picture according to the picture information, the current traffic resource information may also be updated, for example, the pre-download available traffic quota and the traffic waste value may be updated as follows:
Subtracting the picture size from the available pre-download flow limit in the current flow resource information to obtain an updated available pre-download flow limit, and adding the picture size to the flow waste value in the current flow resource information to obtain an updated flow waste value.
in addition, the flow resource information may also be adjusted according to the user operation condition on the thumbnail of the picture, including the thumbnail of the picture that has been pre-downloaded and the thumbnail of the picture that has not been pre-downloaded (i.e. the picture that has been manually downloaded), that is, the processor 408 may further execute the following instructions:
Acquiring operation information of a user on a picture thumbnail, and adjusting traffic resource information according to the operation information, for example, the following may be specifically performed:
(1) If the operation information indicates that the picture corresponding to the picture thumbnail is pre-downloaded, calculating a hit click repayment amount, adding the pre-download available flow amount in the flow resource information to the hit click repayment amount, and subtracting the flow waste value in the flow resource information by the size of the clicked picture.
The way of calculating the hit click repayment amount may be various, for example, as follows:
And acquiring a large image viewing proportion of the user, and calculating a quotient of the size of the image of the clicked image of the user and the large image viewing proportion to obtain a hit click repayment amount.
(2) If the operation information indicates that the picture corresponding to the picture thumbnail is not pre-downloaded, calculating a non-hit click repayment limit, and subtracting the non-hit click repayment limit from a pre-download available flow limit in the flow resource information.
The way of calculating the non-hit click repayment amount may be various, for example, the following may be specifically used:
Acquiring the average size of the pictures, acquiring the large picture viewing proportion of a user, and calculating the difference between 1 and the large picture viewing proportion to obtain a first difference value; and calculating the product of the average size of the picture and the first difference value to obtain a non-hit click repayment amount.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
as can be seen from the above, the mobile terminal of this embodiment acquires picture information carrying a picture size, initiates a traffic resource application according to the picture information, and acquires current traffic resource information according to the application, where the traffic resource information includes a pre-download available traffic quota and a traffic waste value, and if it is determined that the pre-download available traffic quota is greater than the picture size and the sum of the traffic waste value and the picture size does not exceed a preset upper limit of the waste traffic, pre-downloads a corresponding picture according to the picture information; when the scheme allocates the flow resource for the user to pre-download the picture, not only the size of the picture is considered, but also the pre-download available flow limit and the flow waste value are added as consideration factors, and the pre-download available flow limit and the flow waste value can reflect the viewing condition of the user on the pre-downloaded picture, namely whether the allocated flow resource for pre-downloading the picture is necessary or not and whether the allocated flow resource is valuable or not can be reflected to a certain extent.
the following is a sample analysis of the beneficial effects that can be achieved by the scheme provided by the embodiment of the present invention:
Through data analysis, it can be found that in the behavior of looking at the image, users can be divided into three categories:
(1) The user A: the large image viewing proportion (viewing the large image number divided by the total number of images) is larger than 90%;
(2) User B, completely invisible, i.e. the large graph viewing scale is equal to 0;
(3) and the user C, seeing the partial graph, namely the large graph, views the scale between 0 and 90 percent.
for User _ a, the consumed traffic of the pre-downloaded picture can always be hit and repayed back, so the pre-download available traffic (FlowPre) can mostly always be kept at the upper limit of the pre-download available traffic (FlowPre), and the traffic waste value (flowwait) can also be kept at 0 or a very low value.
for User _ B, since the pre-downloaded picture is not clicked all the time, the pre-download available traffic limit (FlowPre) is reduced to 0 or a value of one picture size is not enough, so that the subsequent pre-download is not performed any more, and at this time, the waste of traffic is equal to the upper limit of the waste limit (FlowPre limit).
For User _ C, some pre-downloaded pictures are clicked, and the flow can be controlled according to the large picture viewing proportion of the User; taking the mobile phone QQ as an example, if the view ratio of the big picture is 70%, hit-click extra compensation can keep the operation of the whole pre-download process smoother, missed pictures will accumulate to a flow waste value (flowwait), and a waste limit (flowlimit) is accumulated to a waste limit (flowlimit), for example, 500KB, approximately 7 pictures need to be wasted (i.e., 7 pre-download pictures are not clicked by the user), that is, the user clicks approximately 14 pre-download pictures, whereas for the big mobile phone QQ disc, the friend conversation and discussion group pictures, the user ratio of more than 21(7+14 ═ 21) pictures per day is less than 0.50%, and 500KB needs to be continuously wasted according to this rule, so even for this very active user, the 500KB traffic waste is not affordable, and therefore, the whole traffic waste is controllable.
for another example, another user type may also be extended, such as called user D, for which several pictures of just one session are not opened, wasting the amount of wasted credit (FlowPre), and accumulating to the upper limit of the amount of wasted credit (FlowPre limit), so that it can not be pre-downloaded any more, but at this time, user D may operate the pre-download process again by clicking the manually downloaded picture, only compensating for half of the flow of the large picture, and also making the amount of wasted credit controllable.
For another example, another user type may be further extended, for example, referred to as a user E, and for the user E, the user E belongs to a step view, that is, switching is performed between two user types, that is, as long as a certain number of pre-downloaded pictures are not clicked, so that the waste quota (FlowPre) reaches the waste quota upper limit (FlowPre limit), the pre-download will not operate, and the user traffic will not be wasted, and if the pre-download needs to operate, only two pictures need to be manually downloaded.
Therefore, the scheme can realize the pre-downloading of the pictures in the mobile scene and can reduce the flow risk of the user. Taking the mobile phone QQ as an example, the waiting time of the user when looking at the picture is greatly reduced, wherein the WiFi has a reduction of 90%, and the 3G/4G has a reduction of 65%, while in terms of the flow, the flow is not significantly improved, and the waste flow of 60% of users per day is only within 10K.
those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The above detailed description is provided for the method and apparatus for processing pictures in a mobile terminal according to the embodiments of the present invention, and a specific example is applied in the detailed description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (15)

1. A method for processing pictures in a mobile terminal is characterized by comprising the following steps:
acquiring picture information, wherein the picture information carries the size of a picture;
Initiating a flow resource application according to the picture information;
acquiring current flow resource information according to the application, wherein the flow resource information comprises a pre-download available flow limit and a flow waste value; the initial value of the flow waste value is preset in the current flow resource information and is adjusted based on the picture downloading condition and the click condition of a user on the pre-downloaded picture;
And when the pre-download available flow limit is determined to be larger than the size of the picture, and the sum of the flow waste value and the size of the picture does not exceed the preset upper limit of the waste flow, pre-downloading the corresponding picture according to the picture information.
2. the method according to claim 1, further comprising, after downloading the corresponding picture according to the picture information:
And updating the current flow resource information.
3. The method of claim 2, wherein the updating the current traffic resource information comprises:
Subtracting the size of the picture from the pre-download available flow limit in the current flow resource information to obtain an updated pre-download available flow limit;
And adding the size of the picture to the traffic waste value in the current traffic resource information to obtain an updated traffic waste value.
4. The method of any of claims 1 to 3, further comprising:
Acquiring operation information of a user on a picture thumbnail;
And adjusting the traffic resource information according to the operation information.
5. The method of claim 4, wherein the adjusting traffic resource information according to the operation information comprises:
If the operation information indicates that the picture corresponding to the picture thumbnail is pre-downloaded, calculating a hit click repayment amount, adding a pre-download available flow amount in the flow resource information to the hit click repayment amount, and subtracting the flow waste value in the flow resource information by the size of the clicked picture;
If the operation information indicates that the picture corresponding to the picture thumbnail is not pre-downloaded, calculating a non-hit click repayment limit, and subtracting the non-hit click repayment limit from a pre-download available flow limit in the flow resource information.
6. The method of claim 5, wherein calculating a hit click redemption amount includes:
acquiring a large image viewing proportion of a user, wherein the large image viewing proportion is the proportion of clicking a pre-downloaded image by the user;
and calculating the quotient of the picture size of the picture clicked by the user and the large picture viewing proportion to obtain a hit click repayment amount.
7. the method of claim 5, wherein calculating the non-hit click redemption amount comprises:
Acquiring the average size of pictures, wherein the average size of the pictures is the average size of all pre-downloaded pictures, and acquiring the large picture viewing proportion of a user, and the large picture viewing proportion is the proportion of clicking the pre-downloaded pictures by the user;
Calculating the difference between 1 and the large graph viewing proportion to obtain a first difference value;
And calculating the product of the average size of the picture and the first difference value to obtain a non-hit click repayment amount.
8. The method according to any one of claims 5 to 7, wherein before the obtaining the picture information, the method further comprises:
acquiring an operation event of a user;
If the operation event indicates that the picture is pre-downloaded, executing a step of obtaining picture information;
and if the operation event indicates to view the picture, executing the step of acquiring the operation information of the picture by the user.
9. An apparatus for processing pictures in a mobile terminal, comprising:
The device comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring picture information, and the picture information carries the size of a picture;
an application unit, configured to initiate a traffic resource application according to the picture information;
A second obtaining unit, configured to obtain current traffic resource information according to the application, where the traffic resource information includes a pre-download available traffic limit and a traffic waste value; the initial value of the flow waste value is preset in the current flow resource information and is adjusted based on the picture downloading condition and the click condition of a user on the pre-downloaded picture;
and the downloading unit is used for determining that the available pre-downloading flow quota is larger than the size of the picture, and pre-downloading the corresponding picture according to the picture information when the sum of the flow waste value and the size of the picture does not exceed the preset upper limit of the waste flow.
10. The apparatus of claim 9, further comprising an update unit;
and the updating unit is used for updating the current flow resource information.
11. The apparatus of claim 10,
The updating unit is specifically configured to subtract the size of the picture from the pre-download available flow limit in the current flow resource information to obtain an updated pre-download available flow limit; and adding the size of the picture to the traffic waste value in the current traffic resource information to obtain an updated traffic waste value.
12. The apparatus according to any one of claims 9 to 11, further comprising an adjustment unit;
the first acquisition unit is also used for acquiring the operation information of the user on the picture thumbnail,
And the adjusting unit is used for adjusting the traffic resource information according to the operation information.
13. The apparatus according to claim 12, wherein the adjusting unit is specifically configured to:
If the operation information indicates that the picture corresponding to the picture thumbnail is pre-downloaded, calculating a hit click repayment amount, adding a pre-download available flow amount in the flow resource information to the hit click repayment amount, and subtracting the flow waste value in the flow resource information by the size of the clicked picture;
if the operation information indicates that the picture corresponding to the picture thumbnail is not pre-downloaded, calculating a non-hit click repayment limit, and subtracting the non-hit click repayment limit from a pre-download available flow limit in the flow resource information.
14. The apparatus of claim 13,
The adjusting unit is specifically used for acquiring a large image viewing proportion of a user, wherein the large image viewing proportion is the proportion of clicking a pre-downloaded image by the user; and calculating the quotient of the picture size of the picture clicked by the user and the large picture viewing proportion to obtain a hit click repayment amount.
15. The apparatus of claim 13,
the adjusting unit is specifically configured to obtain an average size of pictures, where the average size of the pictures is an average size of all pre-downloaded pictures, and obtain a large picture viewing ratio of a user, where the large picture viewing ratio is a ratio of clicking the pre-downloaded pictures by the user; calculating the difference between 1 and the large graph viewing proportion to obtain a first difference value; and calculating the product of the average size of the picture and the first difference value to obtain a non-hit click repayment amount.
CN201510057205.8A 2015-02-04 2015-02-04 Method and device for processing pictures in mobile terminal Active CN105989039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510057205.8A CN105989039B (en) 2015-02-04 2015-02-04 Method and device for processing pictures in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510057205.8A CN105989039B (en) 2015-02-04 2015-02-04 Method and device for processing pictures in mobile terminal

Publications (2)

Publication Number Publication Date
CN105989039A CN105989039A (en) 2016-10-05
CN105989039B true CN105989039B (en) 2019-12-17

Family

ID=57035855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510057205.8A Active CN105989039B (en) 2015-02-04 2015-02-04 Method and device for processing pictures in mobile terminal

Country Status (1)

Country Link
CN (1) CN105989039B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779128A (en) * 2011-05-10 2012-11-14 北京磊友信息科技有限公司 Method and device for offline running of HTML5 (hypertext markup language 5) application program in mobile terminal
US9521088B2 (en) * 2012-05-09 2016-12-13 Citrix Systems, Inc. Dynamically determining how many network packets to process
CN104111950A (en) * 2013-04-19 2014-10-22 腾讯科技(深圳)有限公司 Webpage image loading method and webpage image loading device
CN104104685B (en) * 2014-07-23 2018-01-02 天脉聚源(北京)教育科技有限公司 A kind of picture retransmission method and device
CN104090809B (en) * 2014-07-23 2017-07-07 天脉聚源(北京)教育科技有限公司 A kind of picture loading method and device

Also Published As

Publication number Publication date
CN105989039A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
JP6511541B2 (en) Message updating method, apparatus and terminal
US10193834B2 (en) Method and apparatus for downloading and displaying pictures
JP6557741B2 (en) Picture combining method, terminal, and picture combining system
CN110784898B (en) Network switching method, mobile terminal and computer readable storage medium
CN109121008B (en) Video preview method, device, terminal and storage medium
CN107786424B (en) Audio and video communication method, terminal and server
CN106254910B (en) Method and device for recording image
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN108337533B (en) Video compression method and device
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN110052024B (en) Game vibration adjusting method, adjusting device, mobile terminal and storage medium
CN105513098B (en) Image processing method and device
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN107360211B (en) Information flow information offline method, related equipment and computer storage medium
CN106454083B (en) Image acquisition method and device of mobile terminal and mobile terminal
CN105426242B (en) Data transmission method and device
CN105991510B (en) Method, device and system for synchronizing session between multiple terminals
CN107623788B (en) Method and device for improving application starting speed and computer readable storage medium
CN108040330B (en) WiFi directional transmission method, mobile terminal and readable storage medium
WO2018157720A1 (en) Method and device for processing instant communication information
CN110767950B (en) Charging method, charging device, terminal equipment and computer readable storage medium
CN114363318A (en) Data processing method, intelligent terminal and storage medium
CN105989039B (en) Method and device for processing pictures in mobile terminal
CN110996003B (en) Photographing positioning method and device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant