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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com