# US 2014/0198118 A1 · Image browsing method, system and computer storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0198118 A1
- Document ID: US20140198118A1
- Status: Published application
- Kind: A1
- Application number: 14/112,197
- Filed: 2012-08-13
- Published: 2014-07-17
- Earliest claimed: 2011-09-29
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Inventors: Yuan Huang; Yongjian Wu; Zongyao Tang; Yucun Pan
- Web page: https://patentgrep.com/patent/US20140198118A1

## CPC

- G06T 1/60: Memory management
- G06F 3/14: Digital output to display device {; Cooperation and interconnection of the display device with other functional units}
- G09G 2340/0407: Resolution change, inclusive of the use of different resolutions for different screen areas
- G09G 2350/00: Solving problems of bandwidth in display systems
- G09G 2360/121: using a cache memory
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)

## Abstract

An image browsing method, system and computer storage media are disclosed. The method includes: obtaining a user's operation request for an image; comparing the operation request with a preset condition, and determining whether to cache the image into a main cache. When it is required to cache the image into the main cache, further determining whether it is the first time that the image is rendered; if yes, employing a main thread to cache the image into the main cache, to obtain the image from the main cache, and to render the image. Otherwise, employing a main thread to obtain an image adapted to the capacity of the main cache from an image chain, and to render the image; and displaying the image rendered. This avoids unsmooth browsing of the image due to time-consuming creation of the images to be rendered, thereby allowing smooth image browsing.

## Claims

### Claim 1

A method for image browsing, comprising:
obtaining a user's operation request for an image;
comparing the operation request with a preset condition, and determining whether it is required to cache the image into a main cache;
when it is required to cache the image into the main cache, further determining whether it is the first time that the image is rendered; if yes, employing a main thread to cache the image into the main cache, to obtain the image from the main cache, and to render the image; otherwise, employing a main thread to obtain an image adapted to the capacity of the main cache from an image chain, and to render the image; and
displaying the image rendered.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
when it is not required to cache the image into the main cache, employing a main thread to obtain the image directly from the main cache, and to render the image.

### Claim 3 (depends on 1)

The method of claim 1, wherein obtaining an image adapted to the capacity of the main cache from an image chain comprises: determining whether an image chain of the image has been created; if yes, employing the main thread to obtain an image adapted to the capacity of the main cache from the image chain, and to render the image; otherwise, employing the main thread to create the image chain, to obtain an image adapted to the capacity of the main cache from the image chain, and to render the image.

### Claim 4 (depends on 3)

The method of claim 3, further comprising: after determining whether an image chain of the image has been created, determining whether the image chain is in a sub-cache; if yes, employing the main thread to obtain an image adapted to the capacity of the main cache from the image chain in the sub-cache, and to render the image; otherwise, employing the main thread to cache the image chain created into the sub-cache; when it is determined that the image chain of the image has not yet been created, employing the main thread to create an image chain of the image, to cache the image chain created into a sub-cache, to obtain the image adapted to the capacity of the main cache from the image chain in the sub-cache, and to render the image.

### Claim 5 (depends on 1)

The method of claim 1, wherein the preset condition is selected from the group consisting of:
it is the first time that an image is rendered,
the size of the image is larger than the capacity of the main cache, and
the user is performing operations of image scaling or dragging.

### Claim 6 (depends on 1)

The method of claim 1, wherein when it is required to cache an image into the main cache, and it is not the first time that the image is rendered, the method further comprises: employing a sub-thread to create an image, and to cache the image created into the main cache; employing the main thread to obtain the image created from the main cache, and to render the image.

### Claim 7

A system for image browsing, comprising:
an obtaining module, configured to obtain a user's operation request for an image;
a determining module, configured to compare the operation request with a preset condition, and to determine whether it is required to cache the image into a main cache, and whether it is the first time that an image is rendered;
when the determining module determines that it is required to cache the image into the main cache, and it is the first time that the image is rendered, a rendering module employs a main thread to cache the image into the main cache, to obtain the image from the main cache, and to render the image; when the determining module determines that it is required to cache the image into the main cache, and it is not the first time that the image is rendered, the rendering module employs the main thread to obtain an image adapted to the capacity of the main cache from an image chain, and to render the image; and
a display module, configured to display the image rendered.

### Claim 8 (depends on 7)

The system of claim 7, wherein when the determining module determines that it is not required to cache the image into the main cache, the rendering module employs the main thread to obtain the image directly from the main cache, and to render the image.

### Claim 9 (depends on 7)

The system of claim 7, wherein the determining module is further configured to determine whether an image chain of the image has been created; if yes, the main thread module is configured to obtain an image adapted to the capacity of the main cache from the image chain, and to render the image; otherwise, the main thread module is configured to create an image chain, to obtain an image adapted to the capacity of the main cache from the image chain, and to render the image.

### Claim 10 (depends on 9)

The system of claim 9, wherein the determining module is also configured to further determine, after determining that the image chain of the image has been created, whether the image chain is in a sub-cache; if yes, the rendering module employs the main thread to obtain an image adapted to the capacity of the main cache from the image chain in the sub-cache, and renders the image; otherwise, the rendering module employs the main thread to cache the image chain created into the sub-cache; when the determining module determines that the image chain of the image hasn't been created yet, the rendering module employs the main thread to create the image chain, to cache the image chain created into a sub-cache, then to obtain the image adapted to the capacity of the main cache from the image chain in the sub-cache, and renders the image.

### Claim 11 (depends on 7)

The system of claim 7, wherein the preset condition is selected from the group consisting of:
it is the first time that an image is rendered,
the size of the image is larger than the capacity of the main cache, and
the user is performing operations of image scaling or dragging.

### Claim 12 (depends on 7)

The system of claim 7, wherein the determining module determines that it is required to cache the image into the main cache, and it is not the first time that an image is rendered, the rendering module employs a sub-thread to create an image, and to cache the image created into the main cache; then the rendering module employs the main thread to obtain the image created from the main cache, and renders the image.

### Claim 13

A non-transitory computer-readable storage medium storing computer-executable instructions which, when executed by one or more computer processors, cause the one or more computer processors to perform a method of image browsing, comprising:
obtaining a user's operation request for an image;
comparing the operation request with a preset condition, and determining if it is required to cache the image into a main cache;
when it is required to cache the image into the main cache, further determining if it is the first time that the image is rendered; if yes, employing a main thread to cache the image into the main cache, to obtain the image from the main cache, and to render the image; otherwise, employing the main thread to obtain an image adapted to the capacity of the main cache from an image chain, and to render the image; and
displaying the image rendered.

### Claim 14 (depends on 13)

The computer-readable storage medium of claim 13, wherein the method further comprises when it is not required to cache the image into the main cache, employing the main thread to obtain the image directly from the main cache, and to render the image.

### Claim 15 (depends on 13)

The computer-readable storage medium of claim 13, wherein obtaining an image adapted to the capacity of the main cache from an image chain comprises: determining whether an image chain of the image has been created; if yes, employing the main thread to obtain an image adapted to the capacity of the main cache from the image chain, and to render the image; otherwise, employing the main thread to create the image chain, to obtain an image adapted to the capacity of the main cache from the image chain, and to render the image.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15, wherein the method further comprises : after determining whether an image chain of the image has been created, determining whether the image chain is in a sub-cache; if yes, employing the main thread to obtain an image adapted to the capacity of the main cache from the image chain in the sub-cache, and to render the image; otherwise, employing the main thread to cache the image chain created into the sub-cache; when it is determined that the image chain of the image hasn't yet been created, employing the main thread to create an image chain of the image, to cache the image chain created into a sub-cache, to obtain the image adapted to the capacity of the main cache from the image chain in the sub-cache, and to render the image.

### Claim 17 (depends on 13)

The computer-readable storage medium of claim 13, wherein the preset condition is selected from the group consisting of:
it is the first time that an image is rendered,
the size of the image is larger than the capacity of the main cache, and
the user is performing operations of image scaling or dragging.

### Claim 18 (depends on 13)

The computer-readable storage medium of claim 13, wherein the method further comprises when it is required to cache an image into the main cache, and it is not the first time that an image is rendered, employing a sub-thread to create an image, and to cache the image created into the main cache; employing the main thread to obtain the image created from the main cache, and to render the image.
