Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Picture loading method, terminal and computer readable storage medium

A picture loading and picture technology, applied in computing, memory system, memory address/allocation/relocation, etc., can solve problems such as interface unresponsiveness, garbage collection, memory overflow, etc.

Active Publication Date: 2017-12-15
苏州京日找房信息科技有限公司
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The main purpose of the present invention is to propose a picture loading method, a terminal and a computer-readable storage medium, aiming at solving problems in the prior art that mobile phone memory jitters easily occur when pictures are loaded, causing garbage collection, unresponsive interface, mobile phone freeze, Memory overflow, memory fragmentation, etc.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Picture loading method, terminal and computer readable storage medium
  • Picture loading method, terminal and computer readable storage medium
  • Picture loading method, terminal and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0087] The terminals that implement the following steps in this embodiment include but are not limited to mobile terminals, such as smart phones and tablets. The operating system of the terminal in this embodiment includes, but is not limited to, an Android operating system and an IOS operating system. This embodiment shows a picture loading method. When a picture needs to be loaded, first check whether the same picture already exists in the preset memory of the picture cache memory. If it exists, just extract the picture and display it directly. , then judge whether there is a first picture whose size difference with the picture to be loaded is within the preset size range among the pictures stored in the preset memory that are not currently displayed on the screen; if so, obtain the memory of the first picture , update the memory of the first picture with the picture to be loaded, and display the picture to be loaded; thus, the multiplexing of the memory of the picture not d...

Embodiment 2

[0134] Such as Figure 10 As shown, this embodiment shows a terminal, including a processor 1001, a memory 1002, and a communication bus 1003;

[0135] The communication bus 1003 is used to realize connection and communication between the processor 1001 and the memory 1002;

[0136] The processor 1001 is used to execute the picture loading program stored in the memory 1002, so as to realize the following steps:

[0137] When the terminal needs to load a picture, determine the picture to be loaded, and check whether there is a picture to be loaded in the preset memory of the picture cache memory;

[0138] If it exists, obtain the picture to be loaded from the preset memory for display;

[0139]If it does not exist, it is judged whether there is a first picture whose size difference with the picture to be loaded is within the preset size range difference among the pictures not currently displayed on the screen stored in the preset memory;

[0140] If so, obtain the memory of ...

Embodiment 3

[0165] This embodiment shows a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and one or more programs can be executed to implement the following steps:

[0166] When the terminal needs to load a picture, determine the picture to be loaded, check whether there is a picture to be loaded in the preset memory of the picture cache memory,

[0167] If it exists, obtain the picture to be loaded from the preset memory for display;

[0168] If it does not exist, it is judged whether there is a first picture whose size difference with the picture to be loaded is within the preset size range difference among the pictures not currently displayed on the screen stored in the preset memory;

[0169] If so, obtain the memory of the first picture, obtain the picture to be loaded, update the memory of the first picture with the picture to be loaded, and display the picture to be loaded;

[0170] Otherwise, allocate memory for the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a picture loading method, a terminal and a computer readable storage medium. According to the method, when a to-be-loaded picture does not exist in a preset memory of a picture cache memory, whether or not a first picture with the size difference with the to-be-loaded picture in a preset size difference range exists in pictures, not displayed on a screen currently, in the preset memory is judged; if yes, the memory of the first picture is obtained, the to-be-loaded picture is obtained, the memory of the first picture is updated by means of the to-be-loaded picture, and the to-be-loaded picture is displayed; otherwise, a memory is allocated for the to-be-loaded picture from the picture cache memory, the to-be-loaded picture is obtained, picture information of the to-be-loaded picture is drawn on the allocated memory, the to-be-loaded picture is displayed, and a memory corresponding to the to-be-loaded picture is included into the preset memory. According to the method, by means of reuse of the picture memory in a picture memory cache, the problem that in the prior art, a picture loader continuously releases and allocates the memory and accordingly memory thrashing is caused is solved, adverse effects caused by memory thrashing are improved, and the user experience is improved.

Description

technical field [0001] The present invention relates to the technical field of terminals, in particular to a picture loading method, a terminal and a computer-readable storage medium. Background technique [0002] With the development of smart phones, more and more people choose mobile phones to take pictures, which has given birth to a lot of picture apps. In order to improve the user experience of this kind of apps, the existing picture loading components use the secondary cache way to load images, such as figure 2 As shown, the steps to load an image are as follows: [0003] 1. Query whether there is the picture that needs to be loaded in the memory cache, if not, go to the next step; [0004] 2. Check whether the disk cache has the picture that needs to be loaded, if not, go to the next step; [0005] 3. Download pictures; [0006] 4. Cache pictures to memory cache; [0007] 5. Save the picture to disk cache. [0008] In the prior art, when a picture needs to be lo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06F12/02
CPCG06F12/023G06F16/9574
Inventor 周培园
Owner 苏州京日找房信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products