CN111402110A - Download resource processing method and device - Google Patents

Download resource processing method and device Download PDF

Info

Publication number
CN111402110A
CN111402110A CN202010120555.5A CN202010120555A CN111402110A CN 111402110 A CN111402110 A CN 111402110A CN 202010120555 A CN202010120555 A CN 202010120555A CN 111402110 A CN111402110 A CN 111402110A
Authority
CN
China
Prior art keywords
memory
decoding
information
data
preset
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.)
Pending
Application number
CN202010120555.5A
Other languages
Chinese (zh)
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.)
Wuxian Shenghuo Beijing Information Technology Co ltd
Original Assignee
Wuxian Shenghuo Beijing Information Technology 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 Wuxian Shenghuo Beijing Information Technology Co ltd filed Critical Wuxian Shenghuo Beijing Information Technology Co ltd
Priority to CN202010120555.5A priority Critical patent/CN111402110A/en
Publication of CN111402110A publication Critical patent/CN111402110A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a download resource processing method and device. The method comprises the following steps: decoding the downloaded original resource data to obtain target decoding data, and outputting the target decoding data; storing original information including original resource data to a disk; detecting whether the residual storage capacity of the memory is larger than a first preset threshold value after the decoding information is stored in the memory; when the residual storage capacity of the memory is larger than a first preset capacity threshold value, storing the decoding information into the memory; and when the residual storage capacity of the memory is less than or equal to a first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule, and storing the decoding information into the memory. Because enough residual storage capacity is reserved in the memory, the requirement that a larger memory space is needed to display the picture in a short time can be met, and the APP of the terminal equipment can normally operate.

Description

Download resource processing method and device
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a download resource.
Background
At present, after the terminal device downloads the original picture, the processor decodes the original picture to use the decoded picture, and at the same time, stores the decoded picture in the memory and stores the original picture in the disk. When the picture needs to be checked again, whether the picture is stored in the memory is detected, if the picture is stored in the memory, the picture is directly used, and at the moment, the original picture does not need to be decoded through the processor; if the memory is not stored, the original picture is obtained from the disk and is decoded by the processor for use, and some decoded pictures can be stored in the memory continuously.
Because the decoded pictures are stored in the memory, when the memory reaches the limit, the decoded pictures stored in the memory need to be discarded, but if a larger memory space is needed in a short time, the time for discarding the decoded pictures stored in the memory is longer than the time needed for outputting a new picture, the application of the mobile phone is directly broken down, and the physical examination of the user is poor.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for processing a download resource. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for processing a download resource is provided, which includes:
decoding the downloaded original resource data to obtain target decoding data, and outputting the target decoding data;
storing original information to a disk, the original information comprising: the original resource data;
detecting whether the remaining storage capacity of the memory is greater than a first preset threshold after the decoding information is stored in the memory, wherein the decoding information comprises: the target decoding data and the storage information of the target decoding data, the storage information of the target decoding data at least comprises at least one of the following information: a storage time of the target decoded data and a size of the target decoded data;
when the residual storage capacity of the memory is larger than the first preset capacity threshold, storing the decoding information into the memory;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule, and storing the decoding information into the memory.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: decoding the downloaded original resource data to obtain target decoding data, and outputting the target decoding data; storing original information to a disk, the original information comprising: original resource data; detecting whether the residual storage capacity of the memory is larger than a first preset threshold value after the decoding information is stored in the memory, wherein the decoding information comprises: target decoded data and storage information of the target decoded data, the storage information of the target decoded data at least including at least one of the following information: a storage time of the target decoded data and a size of the target decoded data; when the residual storage capacity of the memory is larger than a first preset capacity threshold value, storing the decoding information into the memory; and when the residual storage capacity of the memory is less than or equal to a first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule, and storing the decoding information into the memory. Wherein, in order to ensure that the memory has enough residual storage capacity to process other processes or services, before storing the decoded information into the memory, it is detected whether the residual storage capacity of the memory is greater than a first preset threshold value or not, and when the residual storage capacity of the memory is less than or equal to the first preset threshold value, the historical decoded information stored in the memory is actively discarded, and the discarding process is not a proxy function for passively triggering a memory alarm by a processor to be passively executed, but a newly added execution main body in the disclosure actively executes, and does not affect the normal processing of other service processes and threads, so the process of discarding the storage resources in the memory does not affect the processing speed of the terminal device, and does not cause the problem of slowing down the processing speed of the terminal device in a short time, further, because enough residual storage capacity is reserved in the memory, the requirement that a larger memory space is needed to display the picture in a short time can be met, the APP of the terminal equipment can normally operate, the phenomenon that the APP of the terminal equipment directly collapses due to discarding of historical decoding information stored in the memory cannot occur, and if the picture occupies a large space (namely, the picture is large), the picture can be smoothly displayed to a user without the phenomenon of blocking.
In one embodiment, the original information further comprises: the storage information of the original resource data at least comprises at least one of the following information: the storage time of the original resource data and the size of the original resource data; before storing the original information to the disk, the method further includes:
detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not after the original information is stored to the disk;
when the residual storage capacity of the disk is larger than a second preset capacity threshold, storing the original information into the disk;
and when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold, deleting the historical original information stored in the disk according to the storage information of the original resource data and a second preset rule, and storing the original information into the disk.
In one embodiment, the method further comprises:
detecting whether the residual storage capacity of the memory is larger than the first preset capacity threshold value or not;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and the first preset rule.
In one embodiment, the method further comprises:
detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not;
and when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold, deleting the historical original information stored in the memory according to the storage information of the original resource data and the second preset rule.
In one embodiment, the first preset rule includes at least one of the following rules:
deleting historical decoding information stored in the memory for a time exceeding a first preset time threshold;
alternatively, the first and second electrodes may be,
deleting historical decoding information stored in a preset storage space of the memory;
alternatively, the first and second electrodes may be,
and deleting the historical decoding information stored in the memory, wherein the size of the historical decoding information is larger than a first preset threshold value.
In one embodiment, the second preset rule includes at least one of the following rules:
deleting historical original information with storage time exceeding a second preset time threshold value in the magnetic disk;
alternatively, the first and second electrodes may be,
deleting historical original information stored in a preset storage space of the disk;
alternatively, the first and second electrodes may be,
and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
In an embodiment, the decoding the original resource data to obtain target decoded data includes:
decoding the original resource data to obtain initial decoded data;
detecting whether the initial decoding data is matched with output parameters of terminal equipment;
when the initial decoding data is detected to be matched with the output parameters of the terminal equipment, taking the initial decoding data as the target decoding data;
and when the initial decoding data is detected not to be matched with the output parameters of the terminal equipment, compressing the initial decoding data, and taking the processed initial decoding data as the target decoding data.
In one embodiment, the method further comprises:
receiving a resource data viewing instruction;
detecting whether target decoding data corresponding to the resource data checking instruction is stored in the memory or not according to the resource data checking instruction;
when the target decoding data corresponding to the resource data viewing instruction is detected to be stored in the memory, outputting the target decoding data corresponding to the resource data viewing instruction;
when it is detected that target decoding data corresponding to the resource data viewing instruction is not stored in the memory, original resource data corresponding to the resource data viewing instruction is obtained from a disk, and the steps of decoding, outputting and storing are performed on the original resource data corresponding to the resource data viewing instruction.
According to a second aspect of the embodiments of the present disclosure, there is provided a download resource processing apparatus including:
the decoding module is used for decoding the downloaded original resource data to obtain target decoding data and outputting the target decoding data;
the first storage module is used for storing original information to a magnetic disk, wherein the original information comprises: the original resource data;
a first detection module, configured to detect whether remaining storage capacity of a memory is greater than a first preset threshold after decoding information obtained by the decoding module is stored in the memory, where the decoding information includes: the target decoding data and the storage information of the target decoding data, the storage information of the target decoding data at least comprises at least one of the following information: a storage time of the target decoded data and a size of the target decoded data;
the second storage module is used for storing the decoding information into the memory when the residual storage capacity of the memory is larger than the first preset capacity threshold;
and the third storage module is used for deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule and storing the decoding information obtained by the decoding module into the memory when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold.
In one embodiment, the original information further comprises: the storage information of the original resource data at least comprises at least one of the following information: the storage time of the original resource data and the size of the original resource data; the first storage module includes: the device comprises a first detection submodule, a first storage submodule and a second storage submodule;
the first detection submodule is used for detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value after the original information is stored in the disk;
the first storage submodule is used for storing the original information into the disk when the residual storage capacity of the disk is larger than a second preset capacity threshold;
and the second storage submodule is used for deleting the historical original information stored in the disk according to a second preset rule and storing the original information into the disk when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold.
In one embodiment, the apparatus further comprises: the device comprises a second detection module and a first deletion module;
the second detection module is configured to detect whether a remaining storage capacity of the memory is greater than the first preset capacity threshold;
the first deleting module is configured to delete the historical decoding information stored in the memory according to the storage information of the target decoding data and the first preset rule when the remaining storage capacity of the memory is less than or equal to the first preset capacity threshold.
In one embodiment, the apparatus further comprises: a third detection module and a second deletion module;
the third detection module is configured to detect whether the remaining storage capacity of the disk is greater than the second preset capacity threshold;
and the deleting module is used for deleting the historical original information stored in the memory according to the storage information of the original resource data and the second preset rule when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold.
In one embodiment, the first preset rule includes at least one of the following rules:
deleting historical decoding information stored in the memory for a time exceeding a first preset time threshold;
alternatively, the first and second electrodes may be,
deleting historical decoding information stored in a preset storage space of the memory;
alternatively, the first and second electrodes may be,
and deleting the historical decoding information stored in the memory, wherein the size of the historical decoding information is larger than a first preset threshold value.
In one embodiment, the second preset rule includes at least one of the following rules:
deleting historical original information with storage time exceeding a second preset time threshold value in the magnetic disk;
alternatively, the first and second electrodes may be,
deleting historical original information stored in a preset storage space of the disk;
alternatively, the first and second electrodes may be,
and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
In one embodiment, the decoding module comprises: the decoding submodule, the second detection submodule, the first determination submodule and the second determination submodule;
the decoding submodule is used for decoding the original resource data to obtain initial decoding data;
the second detection submodule is used for detecting whether the initial decoding data obtained by the decoding submodule is matched with the output parameters of the terminal equipment;
the first determining submodule is configured to, when it is detected that the initial decoded data obtained by the decoding submodule matches the output parameter of the terminal device, use the initial decoded data as the target decoded data;
and the second determining submodule is used for compressing the initial decoded data when the initial decoded data obtained by the decoding submodule is not matched with the output parameters of the terminal equipment, and taking the processed initial decoded data as the target decoded data.
In one embodiment, the apparatus further comprises: the device comprises a receiving module, a fourth detection module, an output module and a processing module;
the receiving module is used for receiving a resource data viewing instruction;
the fourth detection module is configured to detect, according to the resource data check instruction received by the receiving module, whether target decoding data corresponding to the resource data check instruction received by the receiving module is stored in the memory;
the output module is configured to output target decoding data corresponding to the resource data viewing instruction received by the receiving module when it is detected that target decoding data corresponding to the resource data viewing instruction received by the receiving module is stored in the memory;
the processing module is configured to, when it is detected that target decoding data corresponding to the resource data viewing instruction received by the receiving module is not stored in the memory, acquire original resource data corresponding to the resource data viewing instruction received by the receiving module from a disk, and perform the steps of decoding, outputting, and storing on the original resource data corresponding to the resource data viewing instruction received by the receiving module.
According to a third aspect of the embodiments of the present disclosure, there is provided a download resource processing apparatus including: processor, network API, etc.;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
downloading original resource data;
decoding the original resource data to obtain target decoding data, and outputting the target decoding data;
storing original information to a disk, the original information comprising: the original resource data, the storage time of the original resource data and the size of the original resource data;
detecting whether the remaining storage capacity of the memory is greater than a first preset threshold after the decoding information is stored in the memory, wherein the decoding information comprises: the target decoding data, a storage time of the target decoding data, and a size of the target decoding data;
when the residual storage capacity of the memory is larger than the first preset capacity threshold, storing the decoding information into the memory;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to a first preset rule, and storing the decoding information into the memory.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any one of the first aspects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a download resource processing method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a download resource processing method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a download resource processing method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a download resource processing method according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a download resource processing method according to an exemplary embodiment.
Fig. 6 is a flowchart illustrating a download resource processing method according to an exemplary embodiment.
Fig. 7a is a flowchart illustrating a download resource processing method according to an exemplary embodiment.
Fig. 7b is a flowchart illustrating a download resource processing method according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a download resource processing apparatus according to an example embodiment.
Fig. 9 is a block diagram illustrating a first storage module in a download resource processing apparatus according to an example embodiment.
Fig. 10 is a block diagram illustrating a download resource processing apparatus according to an example embodiment.
Fig. 11 is a block diagram illustrating a download resource processing apparatus according to an example embodiment.
Fig. 12 is a block diagram illustrating a decoding module in a download resource processing apparatus according to an example embodiment.
Fig. 13 is a block diagram illustrating a download resource processing apparatus according to an example embodiment.
Fig. 14 is a block diagram illustrating a processing device 90 for downloading resources according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Multimedia applications such as pictures in terminal equipment (for example, mobile phones) are used more and more, but the development of memory of the terminal equipment is not fast, the processor capacity is stronger and the disk space is larger and larger. Along with the camera of the terminal equipment shoots more and more clearly, the resource occupied by the shot picture is larger and larger.
When an application (APP for short) in the terminal device needs to display a large number of high-definition pictures, the terminal device decodes and uses the pictures after downloading the pictures, and stores the original pictures into the magnetic disk, but when the pictures need to be used again, the original pictures are obtained from the magnetic disk and can be used only by decoding the original pictures.
In this way, the pictures are currently used, what pictures are needed to be taken from the disk, but the processor is always consumed to process (e.g., decode) the pictures, the time for processing the pictures is required, the waiting time of the user is long, the user experience is poor, and a large amount of power is consumed because the processor is always needed to decode the pictures.
In order to solve the above technical problems, it is an excellent practice to provide improvements in the related art. After the terminal device finishes downloading the picture, the picture is decoded and used, and meanwhile, the decoded picture is placed into the memory, and the original picture is placed into the magnetic disk. When the picture decoding method is used again, the decoded picture is stored in the memory firstly, if the decoded picture exists in the memory, the picture is directly used without being decoded by the processor, if the memory does not have the decoded picture, the original picture is obtained from the disk, and the picture is used after being decoded, and meanwhile, some decoded pictures can be stored in the memory continuously.
The scheme is optimized compared with the first scheme, and the memory is added on the basis of the first scheme. However, when the memory reaches the limit, the resources stored in the memory need to be discarded, and the discarding itself needs to be discarded by the processor, and since the processor is occupied and used for executing the discarding operation of the memory resources, other operations cannot be executed in time, therefore, the process of discarding the storage resources in the memory will tend to slow down the processing speed of the terminal device in a short time. Moreover, if a larger memory space is needed to display the picture in a short time, but the time for discarding the memory is longer than the time required for outputting the picture, the APP of the terminal device may directly crash, and if the picture occupies a large space (i.e., the picture is very large), the picture may be displayed to the user.
In order to solve the above technical problem, the present disclosure provides a download resource processing method.
Fig. 1 is a flowchart illustrating a download resource processing method according to an exemplary embodiment, as shown in fig. 1, including the following steps S101-S105:
in step S101, the downloaded original resource data is decoded to obtain target decoded data, and the target decoded data is output.
When the terminal equipment receives the resource downloading request instruction, the corresponding resource data can be downloaded according to the resource downloading request instruction.
After the original resource data is downloaded, the format of the original resource data is different from the format required for output, and therefore, the original resource data needs to be output after being processed by a processing program such as decoding.
Taking original resource data as an example, after downloading an original picture, decoding the original picture is required, and then displaying the decoded picture to a user.
In step S102, storing original information to a disk, the original information including: raw resource data.
After the original resource data is downloaded, the original resource data is backed up to disk.
In step S103, it is detected whether the remaining storage capacity of the memory is greater than a first preset threshold after the decoding information is stored in the memory, where the decoding information includes: target decoded data and storage information of the target decoded data, the storage information of the target decoded data at least including at least one of the following information: the storage time of the target decoded data and the size of the target decoded data.
In step S104, when the remaining storage capacity of the memory is greater than the first preset capacity threshold, the decoding information is stored in the memory.
In step S105, when the remaining storage capacity of the memory is less than or equal to the first preset capacity threshold, the historical decoding information stored in the memory is deleted according to the storage information of the target decoding data and the first preset rule, and the decoding information is stored in the memory.
Storing original information into a disk, storing decoded information into a memory, but in order to avoid the phenomenon that after the decoded information is stored in the memory, the memory does not have enough residual storage capacity to process other processes or services, which causes slow response, stuck or APP crash of a terminal device, in the present disclosure, before the decoded information is stored into the memory, detecting whether the residual storage capacity of the memory is larger than a first preset threshold value or not after the decoded information is stored into the memory, only when the residual storage capacity of the memory after the decoded information is stored into the memory is detected to be larger than the first preset threshold value, directly storing the decoded information into the memory, and after the decoded information is detected to be stored into the memory, the residual storage capacity of the memory is smaller than or equal to the first preset threshold value, at this time, the decoded information is not directly stored into the memory, and the historical decoding information stored in the memory is deleted according to the storage information of the target decoding data and the first preset rule, and the decoding information is stored in the memory after the deletion is completed, so that the memory has enough residual storage capacity to process other processes or services, the APP use performance is greatly improved, the APP use is smoother, and the user experience is better.
Wherein, the first preset capacity threshold can be set manually or automatically, for example: may be set to 30%, 40%, 50%, or 60% of the total memory capacity, etc.
For example, the total capacity is 1024M, the first preset threshold may be: 307.2M, 409.6M, 512M or 614.4M, etc.
The decoding method includes the steps that when the remaining storage capacity of a memory is 30% -60% of the whole capacity, the memory can be considered to be in a sub-idle state, when the remaining storage capacity of the memory is larger than 60% of the whole capacity, the memory can be considered to be in an idle state, in this case, after decoding information is stored in the memory, if the memory is in the sub-idle state or the idle state, the decoding information is directly stored in the memory, and if the memory is in a non-sub-idle state or not in the idle state, historical decoding information stored in the memory is deleted according to storage information of target decoding data and a first preset rule, and the decoding information is stored in the memory.
Because the memory is ensured to be in a free or sub-free state, if a larger memory resource space is needed in a short time, the app is not crashed and unavailable.
The first preset rule at least includes any one of the following rules:
when the storage information of the target decoding data includes: when the target decoding data is stored for a certain time, the first preset rule at this time comprises: and deleting the historical decoding information stored in the memory for a time exceeding a first preset time threshold.
In the present disclosure, the unsatisfactory historical decoding information stored in the memory is actively deleted, so that the memory has enough remaining storage capacity to process other processes or services, for example: when the storage information of the target decoding data includes: when the storage time of the target decoding data is short, the historical decoding information stored in the memory can be deleted based on the time dimension, wherein a first preset time threshold value is preset, and when the fact that the remaining storage capacity in the memory is insufficient is found, the historical decoding information stored in the memory and the storage time of which exceeds the first preset time threshold value is deleted.
For example: the first preset time threshold is 15 days, and when the remaining storage capacity in the memory is found to be insufficient, the historical decoding information stored in the memory for more than 15 days is deleted.
When the storage information of the target decoding data includes: when the size of the target decoding data is large, the first preset rule at this time includes: and deleting the historical decoding information of which the size is larger than a first preset threshold value from the historical decoding information stored in the memory.
In the present disclosure, the unsatisfactory historical decoding information stored in the memory is actively deleted, so that the memory has enough remaining storage capacity to process other processes or services, for example: when the storage information of the target decoding data includes: when the size of the target decoding data is small, the historical decoding information stored in the memory can be deleted based on the capacity dimension, wherein a first preset threshold value is preset, and when the fact that the remaining storage capacity in the memory is insufficient is found, the historical decoding information of which the size is larger than the first preset threshold value and stored in the memory is deleted.
For example: the first preset threshold is 10M, and when the remaining storage capacity in the memory is found to be insufficient, the historical decoding information with the size exceeding 10M in the memory is deleted.
3, when the storage information of the target decoding data does not include any information, the first preset rule at this time includes: deleting historical decoding information stored in a preset storage space of the memory;
in the present disclosure, the unsatisfactory historical decoding information stored in the memory is actively deleted, so that the memory has enough remaining storage capacity to process other processes or services, for example: when the stored information of the target decoding data does not include any information, the historical decoding information stored in the memory can be deleted based on the space dimension, and when the remaining storage capacity in the memory is found to be insufficient, the historical decoding information stored in the preset storage space of the memory can be deleted.
For example: the preset storage space is the 1 st data block and the 5 th data block, and when the remaining storage capacity in the memory is found to be insufficient, the historical decoding information stored in the 1 st data block and the 5 th data block in the memory is deleted.
4, when the storage information of the target decoding data includes: when the target decoding data is stored for a certain time, the first preset rule at this time comprises: and deleting the historical decoding information stored in the memory for a time exceeding a first preset time threshold, or deleting the historical decoding information stored in a preset storage space of the memory.
That is, at this time, the historical decoding information stored in the memory may be deleted based on the time dimension or the space dimension.
5, when the storage information of the target decoding data includes: when the size of the target decoding data is large, the first preset rule at this time includes: and deleting the historical decoding information stored in the memory, wherein the size of the historical decoding information is larger than a first preset threshold value, or deleting the historical decoding information stored in a preset storage space of the memory.
That is, at this time, the historical decoding information stored in the memory may be deleted based on the capacity dimension or the space dimension.
6, when the storage information of the target decoding data includes: when the storage time of the target decoded data and the size of the target decoded data are the same, the first preset rule at this time includes: and deleting the historical decoding information stored in the memory for a time exceeding a first preset time threshold, or deleting the historical decoding information stored in the memory for which the size of the historical decoding information is larger than the first preset threshold, or deleting the historical decoding information stored in a preset storage space of the memory.
That is, at this time, the historical decoding information stored in the memory may be deleted based on the time dimension, the capacity dimension, or the space dimension.
It should be noted that the practical application is not limited to the above modes, for example: historical decoding information stored in the memory can be deleted based on the time dimension and the capacity dimension; historical decoding information stored in the memory can be deleted based on the time dimension and the space dimension; historical decoding information stored in the memory may also be deleted based on a time dimension and/or a capacity dimension and/or a space dimension, which is not limited by the present disclosure.
In the present disclosure, in order to save the storage space of the memory, only part of the decoding information may be stored in the memory, and not every decoding information is stored in the memory.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: decoding the downloaded original resource data to obtain target decoding data, and outputting the target decoding data; storing original information to a disk, the original information comprising: original resource data; detecting whether the residual storage capacity of the memory is larger than a first preset threshold value after the decoding information is stored in the memory, wherein the decoding information comprises: target decoded data and storage information of the target decoded data, the storage information of the target decoded data at least including at least one of the following information: a storage time of the target decoded data and a size of the target decoded data; when the residual storage capacity of the memory is larger than a first preset capacity threshold value, storing the decoding information into the memory; and when the residual storage capacity of the memory is less than or equal to a first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule, and storing the decoding information into the memory. Wherein, in order to ensure that the memory has enough residual storage capacity to process other processes or services, before storing the decoded information into the memory, it is detected whether the residual storage capacity of the memory is greater than a first preset threshold value or not, and when the residual storage capacity of the memory is less than or equal to the first preset threshold value, the historical decoded information stored in the memory is actively discarded, and the discarding process is not a proxy function for passively triggering a memory alarm by a processor to be passively executed, but a newly added execution main body in the disclosure actively executes, and does not affect the normal processing of other service processes and threads, so the process of discarding the storage resources in the memory does not affect the processing speed of the terminal device, and does not cause the problem of slowing down the processing speed of the terminal device in a short time, further, because enough residual storage capacity is reserved in the memory, the requirement that a larger memory space is needed to display the picture in a short time can be met, the APP of the terminal equipment can normally operate, the phenomenon that the APP of the terminal equipment directly collapses due to discarding of historical decoding information stored in the memory cannot occur, and if the picture occupies a large space (namely, the picture is large), the picture can be smoothly displayed to a user without the phenomenon of blocking.
Fig. 2 is a flowchart illustrating a download resource processing method according to an exemplary embodiment, where as shown in fig. 2, the original information further includes: the storage information of the original resource data at least comprises at least one of the following information: the storage time of the original resource data and the size of the original resource data; before storing the original information to the disk, the method further comprises the following steps S201 to S203:
in step S201, it is detected whether the remaining storage capacity of the disk after storing the original information to the disk is greater than a second preset capacity threshold.
In step S202, when the remaining storage capacity of the disk is greater than the second preset capacity threshold, storing the original information in the disk.
In step S203, when the remaining storage capacity of the disk is less than or equal to the second preset capacity threshold, the historical original information stored in the disk is deleted according to the storage information of the original resource data and the second preset rule, and the original information is stored in the disk.
In order to avoid the phenomenon that the disk does not have enough residual storage capacity to store other data or the terminal device is slow in response and stuck or the APP crashes due to the fact that other burst conditions are met, in the disclosure, before the original information is stored in the disk, whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not after the original information is stored in the disk is detected, when the residual storage capacity of the disk is larger than a second preset capacity threshold value, storing the original information into the disk, when the residual storage capacity of the disk is less than or equal to a second preset capacity threshold, deleting the historical original information stored in the disk according to a second preset rule, storing the original information into the disk, the disk can be cleaned in time, so that the disk is ensured to have enough residual storage capacity to store other data or to deal with other burst conditions.
Wherein, the second preset capacity threshold can be set manually or automatically, for example: may be set to 30%, 40%, 50%, or 60% of the total capacity of the disk, etc.
For example, the total capacity is 1024G, the first preset threshold may be: 307.2G, 409.6G, 512G or 614.4G, etc.
The second preset rule at least comprises at least one of the following rules:
1, when the storage information of the original resource data comprises: when the original resource data is stored for a certain time, the second preset rule includes: and deleting the historical original information stored in the disk for a time exceeding a second preset time threshold.
In the present disclosure, the original information of the history stored in the disk, which is not satisfactory, is actively deleted, so that the disk has enough remaining storage capacity to store other data, for example: when the storage information of the original resource data includes: when the storage time of the original resource data is short, the historical original information stored in the disk can be deleted based on the time dimension, wherein a second preset time threshold value is preset, and when the fact that the residual storage capacity in the disk is insufficient is found, the historical original information stored in the disk and the storage time of which exceeds the second preset time threshold value is deleted.
For example: the second preset time threshold is 25 days, and when the residual storage capacity in the disk is found to be insufficient, historical original information stored in the disk for more than 25 days is deleted.
When the storage information of the original resource data comprises: when the size of the original resource data is large, the second preset rule at this time includes: and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
In the present disclosure, the original information of the history stored in the disk, which is not satisfactory, is actively deleted, so that the disk has enough remaining storage capacity to store other data, for example: when the storage information of the original resource data includes: when the size of the original resource data is small, historical original information stored in the disk can be deleted based on the capacity dimension, a second preset threshold value is preset, and when the fact that the remaining storage capacity in the disk is insufficient is found, the historical original information of which the size is larger than the second preset threshold value and stored in the disk is deleted.
For example: the second preset threshold is 20M, and when the remaining storage capacity in the disk is found to be insufficient, historical original information with the size exceeding 20M in the disk is deleted.
3, when the storage information of the original resource data does not include any information, the second preset rule at this time includes: deleting historical original information stored in a preset storage space of a disk;
in the present disclosure, the original information of the history stored in the disk, which is not satisfactory, is actively deleted, so that the disk has enough remaining storage capacity to store other data, for example: when the storage information of the original resource data does not include any information, historical original information stored in the disk can be deleted based on the space dimension, and when the fact that the remaining storage capacity in the disk is insufficient is found, the historical original information stored in the preset storage space of the disk can be deleted.
For example: the preset storage space is the 2 nd and 4 th data blocks, and when the remaining storage capacity in the disk is found to be insufficient, the historical original information stored in the 2 nd and 5 th data blocks in the disk can be deleted.
4, when the storage information of the original resource data comprises: when the original resource data is stored for a certain time, the second preset rule includes: and deleting the historical original information stored in the disk for a time exceeding a second preset time threshold, or deleting the historical original information stored in a preset storage space of the disk.
That is, at this time, the historical original information stored in the disk can be deleted based on the time dimension or the space dimension.
5, when the storage information of the original resource data comprises: when the size of the original resource data is large, the second preset rule at this time includes: and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value, or deleting the historical original information stored in a preset storage space of the disk.
That is, at this time, the historical original information stored in the disk can be deleted based on the capacity dimension or the space dimension.
6, when the storage information of the original resource data comprises: when the storage time of the original resource data and the size of the original resource data are determined, the second preset rule at this time includes: and deleting the historical original information stored in the disk for a time exceeding a second preset time threshold, or deleting the historical original information stored in the disk for which the size of the historical original information is larger than the second preset threshold, or deleting the historical original information stored in the preset storage space of the disk.
That is, at this time, the historical original information stored in the disk can be deleted based on the time dimension or the capacity dimension or the space dimension.
It should be noted that the practical application is not limited to the above modes, for example: historical original information stored in the disk can be deleted based on the time dimension and the capacity dimension; historical original information stored in the disk can be deleted based on the time dimension and the space dimension; historical raw information stored in the disk may also be deleted based on a time dimension and/or a capacity dimension and/or a space dimension, which is not limited by the present disclosure.
Fig. 3 is a flowchart illustrating a download resource processing method according to an exemplary embodiment, and as shown in fig. 3, in one embodiment, the method of the present disclosure further includes the following sub-steps S301-S302:
in step S301, it is detected whether the remaining storage capacity of the memory is greater than a first preset capacity threshold.
In step S302, when the remaining storage capacity of the memory is less than or equal to the first preset capacity threshold, the historical decoding information stored in the memory is deleted according to the storage information of the target decoding data and the first preset rule.
The method and the device can also detect whether the residual storage capacity of the memory is larger than a first preset capacity threshold value, and delete the historical decoding information stored in the memory according to a first preset rule in time when the residual storage capacity of the memory is smaller than or equal to the first preset capacity threshold value, so that the memory has enough residual storage capacity to process the service.
The first preset rule in this embodiment is similar to the first preset rule in the above embodiment, and is not described herein again.
The remaining storage capacity of the memory may be detected according to a preset time interval, may also be detected according to a preset time period, and may also be detected at irregular time, and the time for detecting the remaining storage capacity of the memory is not limited in the present disclosure.
Fig. 4 is a flowchart illustrating a download resource processing method according to an exemplary embodiment, and as shown in fig. 4, in one embodiment, the method of the present disclosure further includes the following sub-steps S401-S402:
in step S401, it is detected whether the remaining storage capacity of the disk is greater than a second preset capacity threshold.
In step S402, when the remaining storage capacity of the disk is less than or equal to a second preset capacity threshold, the historical original information stored in the memory is deleted according to the storage information of the original resource data and a second preset rule.
The method and the device can also detect whether the residual storage capacity of the disk is larger than a second preset capacity threshold value, and delete the historical original information stored in the memory according to a second preset rule when the residual storage capacity of the disk is smaller than or equal to the second preset capacity threshold value, so that the disk has enough residual storage capacity to store other data.
The second preset rule in this embodiment is similar to the second preset rule in the above embodiment, and is not described herein again.
The remaining storage capacity of the disk may be detected according to a preset time interval, may also be detected according to a preset time period, and may also be detected at irregular time.
Fig. 5 is a flowchart illustrating a download resource processing method according to an exemplary embodiment, and as shown in fig. 5, decoding original resource data to obtain target decoded data includes the following sub-steps S501-S504:
in step S501, original resource data is decoded to obtain initial decoded data.
After the original resource data is downloaded, the original resource data may be decoded first, but at this time, the decoded resource data may not be able to be used as target decoding data to be finally output and stored, and therefore, a detection process is performed on the original decoding data.
In step S502, it is detected whether the initial decoded data matches the output parameters of the terminal device.
In step S503, when it is detected that the initial decoded data matches the output parameter of the terminal device, the initial decoded data is taken as target decoded data.
In step S504, when it is detected that the initial decoded data does not match the output parameters of the terminal device, compression processing is performed on the initial decoded data, and the processed initial decoded data is taken as target decoded data.
Since different terminal devices may have different output parameters, it is necessary to detect whether the initial decoded data matches the output parameters of the current terminal device, and if the initial decoded data matches the output parameters of the current terminal device, the initial decoded data is used as target decoded data, that is, the initial decoded data is output and stored at this time, and if the initial decoded data does not match the target decoded data, the initial decoded data needs to be compressed (in an embodiment, the initial compressed data may be subjected to reduction processing such as clipping) to match the initial decoded data with the output parameters of the terminal device, and the processed initial decoded data is used as the target decoded data, that is, the processed initial decoded data is output and stored at this time.
When the original data resource is a picture or a video, the output parameter of the terminal device may be, for example, a screen resolution of the terminal device, a screen size of the terminal device, and the like.
By analyzing the initial decoding data, the target decoding data displayed by the terminal equipment can accord with the output parameters of the terminal equipment, and the display effect is improved.
Fig. 6 is a flowchart illustrating a download resource processing method according to an exemplary embodiment, and as shown in fig. 6, in one embodiment, the method of the present disclosure further includes the following sub-steps S601-S604:
in step S601, a resource data viewing instruction is received.
In step S602, it is detected whether target decoding data corresponding to the resource data check instruction is stored in the memory according to the resource data check instruction.
In step S603, when it is detected that the target decoding data corresponding to the resource data viewing instruction is stored in the memory, the target decoding data corresponding to the resource data viewing instruction is output.
In step S604, when it is detected that the target decoding data corresponding to the resource data viewing instruction is not stored in the memory, the original resource data corresponding to the resource data viewing instruction is obtained from the disk, and the decoding, outputting, and storing steps are performed on the original resource data corresponding to the resource data viewing instruction.
In the disclosure, as the target decoding data is stored in the memory, the original resource data is stored in the disk, the storage is for convenience of checking, and the step of downloading from the network is omitted, at this time, when the target resource data needs to be checked, the identifier corresponding to the target resource data is carried in the resource data checking instruction and sent to the terminal device, after the resource data checking instruction is received, the identifier is firstly searched in the memory, because the decoded data is stored in the memory, the identifier can be directly output and displayed, if the identifier exists in the memory, the output speed is improved, if the identifier does not exist in the memory, the identifier can be searched in the disk, because the original resource data is stored in the disk, the original resource data can be directly decoded and output without network downloading, and the output speed can also be improved.
The implementation is described in detail below by way of several embodiments.
Fig. 7a is a flowchart illustrating a download resource processing method according to an exemplary embodiment, and as shown in fig. 7, the method of the present disclosure further includes the following sub-steps S701-S7015:
in step S701, the original resource data is downloaded.
In step S702, the downloaded original resource data is decoded to obtain target decoded data, and the target decoded data is output.
In step S703, it is detected whether the initial decoded data matches the output parameters of the terminal device.
In step S704, when it is detected that the initial decoded data matches the output parameter of the terminal device, the initial decoded data is taken as target decoded data, and the target decoded data is output.
In step S705, when it is detected that the initial decoded data does not match the output parameters of the terminal device, compression processing is performed on the initial decoded data, the processed initial decoded data is taken as target decoded data, and the target decoded data is output.
In step S706, after the decoding information is stored in the memory, it is detected whether the remaining storage capacity of the memory is greater than a first preset threshold, where the decoding information includes: target decoded data and storage information of the target decoded data, the storage information of the target decoded data at least including at least one of the following information: the storage time of the target decoded data and the size of the target decoded data.
In step S707, when the remaining storage capacity of the memory is greater than the first preset capacity threshold, the decoding information is stored in the memory.
In step S708, when the remaining storage capacity of the memory is less than or equal to the first preset capacity threshold, the historical decoding information stored in the memory is deleted according to the storage information of the target decoding data and the first preset rule, and the decoding information is stored in the memory.
The first preset rule at least comprises at least one of the following rules:
deleting historical decoding information stored in the memory for a time exceeding a first preset time threshold;
alternatively, the first and second electrodes may be,
deleting historical decoding information stored in a preset storage space of the memory;
alternatively, the first and second electrodes may be,
and deleting the historical decoding information of which the size is larger than a first preset threshold value from the historical decoding information stored in the memory.
In step S709, detecting whether the remaining storage capacity of the disk is greater than a second preset capacity threshold after the original information is stored to the disk; the original information includes: the method comprises the steps of obtaining an original picture and storage information of the original picture, wherein the storage information of the original picture at least comprises at least one of the following information: the storage time of the original picture and the size of the original picture.
In step S7010, when the remaining storage capacity of the disk is greater than the second preset capacity threshold, the original information is stored in the disk.
In step S7011, when the remaining storage capacity of the disk is less than or equal to a second preset capacity threshold, the historical original information stored in the disk is deleted according to a second preset rule, and the original information is stored in the disk.
The second preset rule at least comprises at least one of the following rules:
deleting historical original information with storage time exceeding a second preset time threshold value in the disk;
alternatively, the first and second electrodes may be,
deleting historical original information stored in a preset storage space of a disk;
alternatively, the first and second electrodes may be,
and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
In step S7012, a resource data view instruction is received.
In step S7013, it is detected whether target decoding data corresponding to the resource data check instruction is stored in the memory according to the resource data check instruction.
In step S7014, when it is detected that the target decoding data corresponding to the resource data viewing instruction is stored in the memory, the target decoding data corresponding to the resource data viewing instruction is output.
In step S7015, when it is detected that the target decoding data corresponding to the resource data viewing instruction is not stored in the memory, the original resource data corresponding to the resource data viewing instruction is acquired from the disk, and step S702 to step S7011 are performed on the original resource data corresponding to the resource data viewing instruction.
It should be noted that the method of the present disclosure may be applied to a download resource processing apparatus, where the download resource processing apparatus is located in a terminal device, and the terminal device may be a mobile phone or a computer, and the resource data in the present disclosure includes but is not limited to: pictures, videos, etc.
In order to more clearly introduce the disclosure, the following embodiments use a container as the download resource processing device to execute the above method steps, and the above resource data is a picture.
Fig. 7b is a flowchart illustrating a download resource processing method according to an exemplary embodiment, and as shown in fig. 7b, the method of the present disclosure further includes the following sub-steps S801-S8015:
in step S801, an original picture (corresponding to the original resource data in the above embodiments) is downloaded.
In step S802, the downloaded original picture is decoded to obtain an initial target picture (corresponding to the initial decoded data in the above embodiments).
In step S803, it is detected whether the size of the initial target picture is larger than the size of the display screen of the terminal device.
In step S804, when it is detected that the size of the initial target picture is equal to or smaller than the size of the display screen of the terminal device, the initial target picture is taken as the target picture, and the target picture is displayed.
In step S805, when it is detected that the size of the initial target picture is larger than the size of the display screen of the terminal device, the initial target picture is clipped or compressed, the processed initial target picture is taken as a target picture, and the target picture is displayed.
In step S806, it is detected whether the remaining storage capacity of the memory is greater than a first preset threshold after the decoding information is stored in the memory, where the decoding information includes: the method comprises the steps of obtaining a target picture and storage information of the target picture, wherein the storage information of the target picture at least comprises at least one of the following information: the storage time of the target picture and the size of the target picture.
In step S807, when the remaining storage capacity of the memory is greater than the first preset capacity threshold, the decoding information is stored in the memory.
In step S808, when the remaining storage capacity of the memory is less than or equal to the first preset capacity threshold, the historical decoding information stored in the memory is deleted according to the storage information of the target picture and the first preset rule, and the decoding information is stored in the memory.
The first preset rule at least comprises at least one of the following rules:
deleting historical decoding information stored in the memory for a time exceeding a first preset time threshold;
alternatively, the first and second electrodes may be,
deleting historical decoding information stored in a preset storage space of the memory;
alternatively, the first and second electrodes may be,
and deleting the historical decoding information of which the size is larger than a first preset threshold value from the historical decoding information stored in the memory.
In step S809, detecting whether the remaining storage capacity of the disk is greater than a second preset capacity threshold after the original information is stored to the disk; the original information includes: the method comprises the steps of obtaining an original picture and storage information of the original picture, wherein the storage information of the original picture at least comprises at least one of the following information: the storage time of the original picture and the size of the original picture.
In step S8010, when the remaining storage capacity of the disk is greater than the second preset capacity threshold, the original information is stored in the disk.
In step S8011, when the remaining storage capacity of the disk is less than or equal to the second preset capacity threshold, the historical original information stored in the disk is deleted according to the storage information of the original picture and the second preset rule, and the original information is stored in the disk.
The second preset rule at least comprises at least one of the following rules:
deleting historical original information with storage time exceeding a second preset time threshold value in the disk;
alternatively, the first and second electrodes may be,
deleting historical original information stored in a preset storage space of a disk;
alternatively, the first and second electrodes may be,
and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
In step S8012, a resource data viewing instruction is received.
In step S8013, it is detected whether a target picture corresponding to the resource data check instruction is stored in the memory according to the resource data check instruction.
In step S8014, when it is detected that the target picture corresponding to the resource data viewing instruction is stored in the memory, the target picture corresponding to the resource data viewing instruction is output.
In step S8015, when it is detected that the target picture corresponding to the resource data viewing instruction is not stored in the memory, the original picture corresponding to the resource data viewing instruction is acquired from the disk, and steps S802 to S8011 are performed on the original picture corresponding to the resource data viewing instruction.
Because the pictures are in the disk or the memory, the user does not need to download the pictures again, and more network flow is saved.
In the above embodiments, the container in the present disclosure may include a time device and a space device, and the time and the size are marked by the container.
And the space device is used for dynamically calculating the optimal space of the memory or the disk and appointing the preset storage space in the embodiment.
The method in the present disclosure may include an active process and a passive process, wherein the active process includes: when storing resources in the memory or the disk, the history resources (such as old pictures or old resources) in the designated storage space are actively discarded, so that the memory or the disk is maintained in a certain remaining storage space, and the history resources exceeding a period of time are discarded, so as to ensure that the memory or the disk is maintained in the certain remaining storage space. Passive treatment: the time device processes the data, and discards the historical resources in the designated space at intervals so as to maintain the memory or the disk in a certain residual storage space, and discards the historical resources exceeding a certain time period so as to ensure that the memory or the disk is maintained in a certain residual storage space.
The designated space of the space device can be designated or calculated automatically. The time in the time device can be specified as well, and can also be calculated automatically. The space operated by the container is not necessarily a memory, but may be a disk.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 8 is a block diagram illustrating a download resource processing apparatus, which may be implemented as part or all of an electronic device through software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 8, the download resource processing apparatus includes:
the decoding module 11 is configured to decode the downloaded original resource data to obtain target decoding data, and output the target decoding data;
a first storage module 12, configured to store original information to a disk, where the original information includes: the original resource data;
a first detecting module 13, configured to detect whether a remaining storage capacity of the memory is greater than a first preset threshold after the decoding information obtained by the decoding module 11 is stored in the memory, where the decoding information includes: the target decoding data and the storage information of the target decoding data, the storage information of the target decoding data at least comprises at least one of the following information: a storage time of the target decoded data and a size of the target decoded data;
the second storage module 14 is configured to store the decoding information into the memory when the remaining storage capacity of the memory is greater than the first preset capacity threshold;
a third storage module 15, configured to delete, when the remaining storage capacity of the memory is less than or equal to the first preset capacity threshold, historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule, and store the decoding information obtained by the decoding module 11 in the memory.
In one embodiment, as shown in fig. 9, the original information further includes: the storage information of the original resource data at least comprises at least one of the following information: the storage time of the original resource data and the size of the original resource data; the first storage module 12 includes: a first detection submodule 121, a first storage submodule 122 and a second storage submodule 123;
the first detection submodule 121 is configured to detect whether a remaining storage capacity of the disk is greater than a second preset capacity threshold after the original information is stored in the disk;
the first storage sub-module 122 is configured to store the original information into the disk when the remaining storage capacity of the disk is greater than a second preset capacity threshold;
the second storage submodule 123 is configured to, when the remaining storage capacity of the disk is less than or equal to the second preset capacity threshold, delete the historical original information stored in the disk according to a second preset rule, and store the original information in the disk.
In one embodiment, as shown in fig. 10, the apparatus further comprises: a second detection module 16 and a first deletion module 17;
the second detecting module 16 is configured to detect whether a remaining storage capacity of the memory is greater than the first preset capacity threshold;
the first deleting module 17 is configured to delete the historical decoding information stored in the memory according to the storage information of the target decoding data and the first preset rule when the remaining storage capacity of the memory is less than or equal to the first preset capacity threshold.
In one embodiment, as shown in fig. 11, the apparatus further comprises: a third detection module 18 and a second deletion module 19;
the third detecting module 18 is configured to detect whether the remaining storage capacity of the disk is greater than the second preset capacity threshold;
and the deleting module is used for deleting the historical original information stored in the memory according to the storage information of the original resource data and the second preset rule when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold.
In one embodiment, the first preset rule includes at least one of the following rules:
deleting historical decoding information stored in the memory for a time exceeding a first preset time threshold;
alternatively, the first and second electrodes may be,
deleting historical decoding information stored in a preset storage space of the memory;
alternatively, the first and second electrodes may be,
and deleting the historical decoding information stored in the memory, wherein the size of the historical decoding information is larger than a first preset threshold value.
In one embodiment, the second preset rule includes at least one of the following rules:
deleting historical original information with storage time exceeding a second preset time threshold value in the magnetic disk;
alternatively, the first and second electrodes may be,
deleting historical original information stored in a preset storage space of the disk;
alternatively, the first and second electrodes may be,
and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
In one embodiment, as shown in fig. 12, the decoding module 11 includes: a decoding sub-module 111, a second detection sub-module 112, a first determination sub-module 113 and a second determination sub-module 114;
the decoding submodule 111 is configured to decode the original resource data to obtain initial decoded data;
the second detection submodule 112 is configured to detect whether the initial decoded data obtained by the decoding submodule 111 matches an output parameter of a terminal device;
the first determining submodule 113 is configured to, when it is detected that the initial decoded data obtained by the decoding submodule 111 matches the output parameter of the terminal device, use the initial decoded data as the target decoded data;
the second determining submodule 114 is configured to, when it is detected that the initial decoded data obtained by the decoding submodule 111 does not match the output parameter of the terminal device, perform compression processing on the initial decoded data, and use the processed initial decoded data as the target decoded data.
In one embodiment, as shown in fig. 13, the apparatus further comprises: a receiving module 110, a fourth detecting module 111, an output module 112 and a processing module 113;
the receiving module 110 is configured to receive a resource data viewing instruction;
the fourth detecting module 111 is configured to detect, according to the resource data check instruction received by the receiving module 110, whether target decoding data corresponding to the resource data check instruction received by the receiving module 110 is stored in the memory;
the output module 112 is configured to, when it is detected that target decoding data corresponding to the resource data viewing instruction received by the receiving module 110 is stored in the memory, output the target decoding data corresponding to the resource data viewing instruction received by the receiving module 110;
the processing module 113 is configured to, when it is detected that target decoding data corresponding to the resource data viewing instruction received by the receiving module 110 is not stored in the memory, obtain original resource data corresponding to the resource data viewing instruction received by the receiving module 110 from a disk, and perform the steps of decoding, outputting, and storing on the original resource data corresponding to the resource data viewing instruction received by the receiving module 110.
The embodiment of the present disclosure further provides a device for processing download resources, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
decoding the downloaded original resource data to obtain target decoding data, and outputting the target decoding data;
storing original information to a disk, the original information comprising: the original resource data;
detecting whether the remaining storage capacity of the memory is greater than a first preset threshold after the decoding information is stored in the memory, wherein the decoding information comprises: the target decoding data and the storage information of the target decoding data, the storage information of the target decoding data at least comprises at least one of the following information: a storage time of the target decoded data and a size of the target decoded data;
when the residual storage capacity of the memory is larger than the first preset capacity threshold, storing the decoding information into the memory;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule, and storing the decoding information into the memory.
The processor may be further configured to:
in one embodiment, the original information further comprises: the storage information of the original resource data at least comprises at least one of the following information: the storage time of the original resource data and the size of the original resource data; before storing the original information to the disk, the processor is further configured to:
detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not after the original information is stored to the disk;
when the residual storage capacity of the disk is larger than a second preset capacity threshold, storing the original information into the disk;
and when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold, deleting the historical original information stored in the disk according to the storage information of the original resource data and a second preset rule, and storing the original information into the disk.
In one embodiment, the processor may be further configured to:
detecting whether the residual storage capacity of the memory is larger than the first preset capacity threshold value or not;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and the first preset rule.
In one embodiment, the processor may be further configured to:
detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not;
and when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold, deleting the historical original information stored in the memory according to the storage information of the original resource data and the second preset rule.
In one embodiment, the first preset rule includes at least one of the following rules:
deleting historical decoding information stored in the memory for a time exceeding a first preset time threshold;
alternatively, the first and second electrodes may be,
deleting historical decoding information stored in a preset storage space of the memory;
alternatively, the first and second electrodes may be,
and deleting the historical decoding information stored in the memory, wherein the size of the historical decoding information is larger than a first preset threshold value.
In one embodiment, the second preset rule includes at least one of the following rules:
deleting historical original information with storage time exceeding a second preset time threshold value in the magnetic disk;
alternatively, the first and second electrodes may be,
deleting historical original information stored in a preset storage space of the disk;
alternatively, the first and second electrodes may be,
and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
In an embodiment, the decoding the original resource data to obtain target decoded data includes:
decoding the original resource data to obtain initial decoded data;
detecting whether the initial decoding data is matched with output parameters of terminal equipment;
when the initial decoding data is detected to be matched with the output parameters of the terminal equipment, taking the initial decoding data as the target decoding data;
and when the initial decoding data is detected not to be matched with the output parameters of the terminal equipment, compressing the initial decoding data, and taking the processed initial decoding data as the target decoding data.
In one embodiment, the processor may be further configured to:
receiving a resource data viewing instruction;
detecting whether target decoding data corresponding to the resource data checking instruction is stored in the memory or not according to the resource data checking instruction;
when the target decoding data corresponding to the resource data viewing instruction is detected to be stored in the memory, outputting the target decoding data corresponding to the resource data viewing instruction;
when it is detected that target decoding data corresponding to the resource data viewing instruction is not stored in the memory, original resource data corresponding to the resource data viewing instruction is obtained from a disk, and the steps of decoding, outputting and storing are performed on the original resource data corresponding to the resource data viewing instruction.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 14 is a block diagram illustrating a download resource handling apparatus 90, which is suitable for a terminal device, according to an exemplary embodiment. For example, the apparatus 90 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 90 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 90, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the apparatus 90. Examples of such data include instructions for any application or method operating on the device 90, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 90. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 90.
The multimedia component 908 comprises a screen that provides an output interface between the device 90 and a user, in some embodiments, the screen may comprise a liquid crystal display (L CD) and a Touch Panel (TP). if the screen comprises a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 90 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 90. For example, the sensor assembly 914 may detect the open/closed status of the device 90, the relative positioning of the components, such as the display and keypad of the device 90, the sensor assembly 914 may also detect a change in the position of the device 90 or a component of the device 90, the presence or absence of user contact with the device 90, the orientation or acceleration/deceleration of the device 90, and a change in the temperature of the device 90. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate wired or wireless communication between the apparatus 90 and other devices. The device 90 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 90 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), programmable logic devices (P L D), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 90 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an apparatus 90, enable the apparatus 90 to perform the above-described download resource processing method, the method comprising:
decoding the downloaded original resource data to obtain target decoding data, and outputting the target decoding data;
storing original information to a disk, the original information comprising: the original resource data;
detecting whether the remaining storage capacity of the memory is greater than a first preset threshold after the decoding information is stored in the memory, wherein the decoding information comprises: the target decoding data and the storage information of the target decoding data, the storage information of the target decoding data at least comprises at least one of the following information: a storage time of the target decoded data and a size of the target decoded data;
when the residual storage capacity of the memory is larger than the first preset capacity threshold, storing the decoding information into the memory;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule, and storing the decoding information into the memory.
In one embodiment, the original information further comprises: the storage information of the original resource data at least comprises at least one of the following information: the storage time of the original resource data and the size of the original resource data; before storing the original information to the disk, the method further includes:
detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not after the original information is stored to the disk;
when the residual storage capacity of the disk is larger than a second preset capacity threshold, storing the original information into the disk;
and when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold, deleting the historical original information stored in the disk according to the storage information of the original resource data and a second preset rule, and storing the original information into the disk.
In one embodiment, the method further comprises:
detecting whether the residual storage capacity of the memory is larger than the first preset capacity threshold value or not;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and the first preset rule.
In one embodiment, the method further comprises:
detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not;
and when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold, deleting the historical original information stored in the memory according to the storage information of the original resource data and the second preset rule.
In one embodiment, the first preset rule includes at least one of the following rules:
deleting historical decoding information stored in the memory for a time exceeding a first preset time threshold;
alternatively, the first and second electrodes may be,
deleting historical decoding information stored in a preset storage space of the memory;
alternatively, the first and second electrodes may be,
and deleting the historical decoding information stored in the memory, wherein the size of the historical decoding information is larger than a first preset threshold value.
In one embodiment, the second preset rule includes at least one of the following rules:
deleting historical original information with storage time exceeding a second preset time threshold value in the magnetic disk;
alternatively, the first and second electrodes may be,
deleting historical original information stored in a preset storage space of the disk;
alternatively, the first and second electrodes may be,
and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
In an embodiment, the decoding the original resource data to obtain target decoded data includes:
decoding the original resource data to obtain initial decoded data;
detecting whether the initial decoding data is matched with output parameters of terminal equipment;
when the initial decoding data is detected to be matched with the output parameters of the terminal equipment, taking the initial decoding data as the target decoding data;
and when the initial decoding data is detected not to be matched with the output parameters of the terminal equipment, compressing the initial decoding data, and taking the processed initial decoding data as the target decoding data.
In one embodiment, the method further comprises:
receiving a resource data viewing instruction;
detecting whether target decoding data corresponding to the resource data checking instruction is stored in the memory or not according to the resource data checking instruction;
when the target decoding data corresponding to the resource data viewing instruction is detected to be stored in the memory, outputting the target decoding data corresponding to the resource data viewing instruction;
when it is detected that target decoding data corresponding to the resource data viewing instruction is not stored in the memory, original resource data corresponding to the resource data viewing instruction is obtained from a disk, and the steps of decoding, outputting and storing are performed on the original resource data corresponding to the resource data viewing instruction.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A method for processing a download resource, comprising:
decoding the downloaded original resource data to obtain target decoding data, and outputting the target decoding data;
storing original information to a disk, the original information comprising: the original resource data;
detecting whether the remaining storage capacity of the memory is greater than a first preset threshold after the decoding information is stored in the memory, wherein the decoding information comprises: the target decoding data and the storage information of the target decoding data, the storage information of the target decoding data at least comprises at least one of the following information: a storage time of the target decoded data and a size of the target decoded data;
when the residual storage capacity of the memory is larger than the first preset capacity threshold, storing the decoding information into the memory;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule, and storing the decoding information into the memory.
2. The method of claim 1, wherein the original information further comprises: the storage information of the original resource data at least comprises at least one of the following information: the storage time of the original resource data and the size of the original resource data; before storing the original information to the disk, the method further includes:
detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not after the original information is stored to the disk;
when the residual storage capacity of the disk is larger than a second preset capacity threshold, storing the original information into the disk;
and when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold, deleting the historical original information stored in the disk according to the storage information of the original resource data and a second preset rule, and storing the original information into the disk.
3. The method of claim 1, further comprising:
detecting whether the residual storage capacity of the memory is larger than the first preset capacity threshold value or not;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and the first preset rule.
4. The method of claim 2, further comprising:
detecting whether the residual storage capacity of the disk is larger than a second preset capacity threshold value or not;
and when the residual storage capacity of the disk is less than or equal to the second preset capacity threshold, deleting the historical original information stored in the memory according to the storage information of the original resource data and the second preset rule.
5. The method according to any of claims 1-4, wherein the first preset rule comprises at least one of the following rules:
deleting historical decoding information stored in the memory for a time exceeding a first preset time threshold;
alternatively, the first and second electrodes may be,
deleting historical decoding information stored in a preset storage space of the memory;
alternatively, the first and second electrodes may be,
and deleting the historical decoding information stored in the memory, wherein the size of the historical decoding information is larger than a first preset threshold value.
6. The method according to any of claims 2-4, wherein the second preset rule comprises at least one of the following rules:
deleting historical original information with storage time exceeding a second preset time threshold value in the magnetic disk;
alternatively, the first and second electrodes may be,
deleting historical original information stored in a preset storage space of the disk;
alternatively, the first and second electrodes may be,
and deleting the historical original information stored in the disk, wherein the size of the historical original information is larger than a second preset threshold value.
7. The method of claim 1, wherein the decoding the original resource data to obtain target decoded data comprises:
decoding the original resource data to obtain initial decoded data;
detecting whether the initial decoding data is matched with output parameters of terminal equipment;
when the initial decoding data is detected to be matched with the output parameters of the terminal equipment, taking the initial decoding data as the target decoding data;
and when the initial decoding data is detected not to be matched with the output parameters of the terminal equipment, compressing the initial decoding data, and taking the processed initial decoding data as the target decoding data.
8. The method of claim 1, further comprising:
receiving a resource data viewing instruction;
detecting whether target decoding data corresponding to the resource data checking instruction is stored in the memory or not according to the resource data checking instruction;
when the target decoding data corresponding to the resource data viewing instruction is detected to be stored in the memory, outputting the target decoding data corresponding to the resource data viewing instruction;
when it is detected that target decoding data corresponding to the resource data viewing instruction is not stored in the memory, original resource data corresponding to the resource data viewing instruction is obtained from a disk, and the steps of decoding, outputting and storing are performed on the original resource data corresponding to the resource data viewing instruction.
9. A download resource processing apparatus, comprising:
the decoding module is used for decoding the downloaded original resource data to obtain target decoding data and outputting the target decoding data;
the first storage module is used for storing original information to a magnetic disk, wherein the original information comprises: the original resource data;
a first detection module, configured to detect whether remaining storage capacity of a memory is greater than a first preset threshold after decoding information obtained by the decoding module is stored in the memory, where the decoding information includes: the target decoding data and the storage information of the target decoding data, the storage information of the target decoding data at least comprises at least one of the following information: a storage time of the target decoded data and a size of the target decoded data;
the second storage module is used for storing the decoding information into the memory when the residual storage capacity of the memory is larger than the first preset capacity threshold;
and the third storage module is used for deleting the historical decoding information stored in the memory according to the storage information of the target decoding data and a first preset rule and storing the decoding information obtained by the decoding module into the memory when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold.
10. A download resource processing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
downloading original resource data;
decoding the original resource data to obtain target decoding data, and outputting the target decoding data;
storing original information to a disk, the original information comprising: the original resource data, the storage time of the original resource data and the size of the original resource data;
detecting whether the remaining storage capacity of the memory is greater than a first preset threshold after the decoding information is stored in the memory, wherein the decoding information comprises: the target decoding data, a storage time of the target decoding data, and a size of the target decoding data;
when the residual storage capacity of the memory is larger than the first preset capacity threshold, storing the decoding information into the memory;
and when the residual storage capacity of the memory is less than or equal to the first preset capacity threshold, deleting the historical decoding information stored in the memory according to a first preset rule, and storing the decoding information into the memory.
11. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, carry out the steps of the method according to any one of claims 1 to 8.
CN202010120555.5A 2020-02-26 2020-02-26 Download resource processing method and device Pending CN111402110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010120555.5A CN111402110A (en) 2020-02-26 2020-02-26 Download resource processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010120555.5A CN111402110A (en) 2020-02-26 2020-02-26 Download resource processing method and device

Publications (1)

Publication Number Publication Date
CN111402110A true CN111402110A (en) 2020-07-10

Family

ID=71435960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010120555.5A Pending CN111402110A (en) 2020-02-26 2020-02-26 Download resource processing method and device

Country Status (1)

Country Link
CN (1) CN111402110A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004356716A (en) * 2003-05-27 2004-12-16 Olympus Corp Medical use image recording apparatus
CN102253898A (en) * 2011-07-22 2011-11-23 杭州海康威视数字技术股份有限公司 Memory management method and memory management device of image data
CN102622347A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Image management method and movable terminal
CN102831111A (en) * 2011-06-14 2012-12-19 腾讯科技(深圳)有限公司 Picture display method and device
CN103412825A (en) * 2013-05-21 2013-11-27 青岛海信移动通信技术股份有限公司 Internal storage releasing method and device
CN105335442A (en) * 2014-08-13 2016-02-17 优视科技有限公司 Picture memory processing method and apparatus
CN105897846A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Data downloading method and device and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004356716A (en) * 2003-05-27 2004-12-16 Olympus Corp Medical use image recording apparatus
CN102622347A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Image management method and movable terminal
CN102831111A (en) * 2011-06-14 2012-12-19 腾讯科技(深圳)有限公司 Picture display method and device
CN102253898A (en) * 2011-07-22 2011-11-23 杭州海康威视数字技术股份有限公司 Memory management method and memory management device of image data
CN103412825A (en) * 2013-05-21 2013-11-27 青岛海信移动通信技术股份有限公司 Internal storage releasing method and device
CN105335442A (en) * 2014-08-13 2016-02-17 优视科技有限公司 Picture memory processing method and apparatus
CN105897846A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Data downloading method and device and terminal

Similar Documents

Publication Publication Date Title
CN106961526B (en) Notification message display method and device and electronic equipment
EP3188066A1 (en) A method and an apparatus for managing an application
CN107888965B (en) Image gift display method and device, terminal, system and storage medium
CN107040591B (en) Method and device for controlling client
CN108702763B (en) Method and device for sending lead code and scheduling request
CN110753270A (en) Information display method, device, terminal, server, system and storage medium
CN105912204B (en) Method and device for starting application interface
CN108446226B (en) Application exception processing method
CN108347718B (en) Method, device and storage medium for monitoring communication packet
CN105227426B (en) Application interface switching method and device and terminal equipment
EP3190555A1 (en) Method for operating a display device and display
CN110968523A (en) Memory defragmentation method and device
CN111580824A (en) Program optimization method, device and storage medium
CN107483605B (en) File downloading method and device and storage medium
CN107193446B (en) Image processing method, device, terminal and storage medium
CN107885464B (en) Data storage method, device and computer readable storage medium
CN112423092A (en) Video recording method and video recording device
CN111290843A (en) Process management method and device
CN112083841B (en) Information input method, device and storage medium
CN111402110A (en) Download resource processing method and device
CN111722919B (en) Method and device for running background application program, storage medium and electronic equipment
CN113778687A (en) Memory allocation information processing method and device, electronic equipment and storage medium
CN109981729B (en) File processing method and device, electronic equipment and computer readable storage medium
CN108551459B (en) Method and device for communication between devices and readable storage medium
CN113238887A (en) Data processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination