Method and device for image processing

An image and image file technology, applied in the field of image drawing, can solve the problems of occupying memory space, animation drawing speed reduction, low processing efficiency, etc., to achieve the effect of small memory capacity and improving image processing efficiency
CN103390260AActive Publication Date: 2013-11-13TENCENT TECH (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECH (SHENZHEN) CO LTD
Publication Date
2013-11-13

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and device for image processing. The method comprises the following steps: (1) reading an image file, and setting an index of a current frame to be drawn in a mapping image file; (2) acquiring the current frame to be drawn mapped by the index and performing decoding, obtaining information of all pixel points in the current frame to be drawn, caching the information to a preset first image cache in an internal storage; (3) emptying the image cache where the previous frame is located, wherein the previous frame is the previous frame of the current frame to be drawn, and caching the current frame to be drawn after drawn into the empty image cache according to the configuration properties of the current frame to be drawn and the pixel point information in the first image cache; (4) triggering the drawn frame to be drawn to a graphical interface to be displayed, and updating the set index. By the application of the method and device, the memory capacity which is required for caching images can be reduced, and processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of image rendering, in particular to a method for processing images and an image processing device. Background technique

[0002] An image is a commonly used Internet application, which can provide users with intuitive feelings to enhance the user's application experience, and thus has been widely used in various fields.

[0003] Images include animation and video. Taking animation as an example, Graphics Interchange Format (GIF, Graphics Interchange Format) is a common animation format. The preset animation files need to be decoded and drawn on the client side, and then output to Graphical interface is displayed.

[0004] In the prior art, the method for processing GIF animation display is generally to decode the GIF frames contained in the obtained GIF file, obtain the pixel point information contained in each GIF frame, and process the decoded pixel point information in the memory. cache, and then according to th...

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