Image display method and apparatus

An image display and image technology, applied in the field of image processing, can solve problems such as image reloading and poor user experience

Inactive Publication Date: 2017-02-22
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But this method brings new problems: images are f...

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
  • Image display method and apparatus
  • Image display method and apparatus
  • Image display method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061]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, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0062] The present disclosure is based on the consideration that in most applications, the sizes of displayed images are fixed. In this case, the least common multiple of the sizes of these images is not particularly large while allowing a certain degree of memory waste, so the image display optimization in the present disclosure can be performed.

[0063] The embodiment of the present...

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 relates to an image display method and apparatus. The method comprises the steps of allocating a bitmap according to a fixed size by a slave system, wherein the size of the bitmap is a multiple of a least common multiple of the sizes of various images in the system; dividing the bitmap into clusters same in size according to the least common multiple, wherein the same cluster contains a plurality of images same in size, and a part used for image display in each cluster is called a slice; determining a corresponding slice used for displaying an image needed to be displayed according to the size of the image needed to be displayed; decoding the image needed to be displayed by utilizing a created bitmap used for image decoding; drawing the decoded image to the corresponding slice; and displaying an effective region in the drawn corresponding slice, wherein the effective region contains the image needed to be displayed. The frequency of allocating a big object from a Java stack can be greatly reduced, so that the junk collection frequency is reduced and the responsibility of a user interface is improved when more images can be displayed.

Description

technical field [0001] The present disclosure relates to the technical field of image processing, and in particular, to an image display method and device. Background technique [0002] In a Java program on an operating system (for example, an Android system), objects occupy the Java heap. Bitmaps are generally large objects. When there are a large number of images that need to be frequently switched and displayed, the decoded images will be frequently allocated from the Java heap memory, which will frequently cause garbage collection operations on the Java heap and reduce the responsiveness of the user interface. [0003] A common solution to this problem is: only display a small part of the image on the user interface, reduce the memory usage, and reduce the occurrence of garbage events. A further optimization method is to reuse the allocated bitmap for decoding and display when a new image needs to be displayed, and Android supports this mechanism. But this method bring...

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
IPC IPC(8): G06F9/44
Inventor 杨振宇李明浩甘晓霖
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD
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