Method and terminal for loading pictures

A picture loading and picture technology, which is applied in the communication field, can solve problems such as poor user experience and unreasonable picture loading methods, and achieve the effect of reasonable use and improved user experience

Active Publication Date: 2010-08-04
西安中兴物联网终端有限公司
View PDF7 Cites 85 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the corresponding disadvantage is that the user experience is relatively poor, that is, every time the user switches pages, he has to wait for the execution of the image loading. When the image file is relatively large or the image parsing process is relatively slow, the user's waiting time is also considerable. of
[0006] To sum up, the image loading method on the existing low-speed processor and low-memory image terminal equipment is very unreasonable and urgently needs to be optimized

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
  • Method and terminal for loading pictures
  • Method and terminal for loading pictures
  • Method and terminal for loading pictures

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0046] Figure 4 It is a flow chart of entering the picture directory according to the embodiment of the present invention, such as Figure 4 As shown, when the user enters the image file directory for the first time, the upper and lower limits of loading are determined according to the current memory size and usage, and thread 1 (user operation thread) starts to add all image list items that meet the loading upper and lower limit conditions to thread 2 ( image parsing thread) in the task queue; thread 2 allocates resources for all image list items in the task queue that thread 1 handed over to it, and performs parsing and processing (because it takes a moment to load the image, you can add a beautiful one on the screen at this moment waiting pictures to enhance user experience), and at the same time, recycle the allocated resources that are not in the upper and lower limits of this loading, wait for the parsing task to complete, notify thread 1 to release the waiting pictures...

example 2

[0058] Figure 5 It is a flow chart of switching picture pages according to an embodiment of the present invention, such as Figure 5 As shown, in the picture directory, the user clicks the up and down keys to switch pages, and thread 1 will add the list items that meet the loading and unloading limit conditions to the queue of thread 2 through the thread synchronization mechanism. The system resource of the picture list item of the system resource is released; thread 2 processes the tasks in the picture analysis request queue from thread 1, and feeds back the processing result to thread 1 in time; thread 1 monitors the processing result of thread 2 in real time. After receiving the processing result of thread 2, assign the picture allocated with system resources to the drawing handle, and be responsible for drawing the picture when the user switches to the page where the picture is located.

[0059] It should be noted that there may be thumbnails in the image list in the emb...

example 3

[0071] During image loading, the processing of the system when exiting the page mainly includes the following processing:

[0072] Step 1. Dynamically determine the number of images to be loaded. The specific steps are the same as step S404 in the first preferred embodiment.

[0073] Step 2, the user exits the current page to trigger the update of the upper and lower limits of image loading.

[0074] Step 3: Thread 1 adds information about list items that meet the upper and lower limits of loading to the queue of Thread 2.

[0075] Step 4. Exit the current page before all image parsing tasks are completed. At this time, the SelectedChange event will be triggered, and the PageChange event will be triggered actively in the message mapping function of the SelectedChange event, and in the message mapping function according to the position of the ComplexList list control Parameters to determine the upper and lower limits of new image loading.

[0076] Step 3, notify thread 2 to can...

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 method and a terminal for loading pictures. The method comprises the following steps: determining the number of the pictures capable of being loaded according to available memory space; acquiring the number of the pictures from an initial position in a plurality of pictures; and allocating resources for the acquired pictures and preloading the acquired image by using the resources. By using the method and the terminal for loading the pictures, user experience is improved, and system resources are utilized reliably.

Description

technical field [0001] The present invention relates to the communication field, in particular to a picture loading method and terminal. Background technique [0002] Image terminal devices with low-speed processors and low memory are usually small in size and easy to move, but their data processing capabilities are still very limited compared with ordinary PCs. Therefore, the data processing capability of low-speed processors and low-memory image terminal equipment can only be improved by rationally utilizing its limited resources. [0003] Although existing low-speed processors and low-memory image terminal devices (for example, mobile phones) can load images through multi-threads to achieve the purpose of user operations without waiting for image loading, there are still some defects. Specifically, there are Two designs: [0004] (1) Load all pictures. When users browse pictures, there is no delay in picture loading, which is conducive to user experience. However, thi...

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): G09G5/39G06F3/048
CPCG06F3/14G06T1/00G06T1/60G09G2360/08G06F3/048G06F3/06G06F12/00
Inventor 张飞
Owner 西安中兴物联网终端有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products