Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2013-11-13
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For clients with small memory capacity, caching animation not only takes up limited memory space, but also reduces the speed of animation drawing due to excessive memory usage, and prolongs the time required to process GIF animations. low efficiency

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 device for image processing
  • Method and device for image processing
  • Method and device for image processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0022] The existing method for processing GIF images needs to cache the pixel information of each frame in the image file and each frame that has been drawn in the memory, and after all the frames are drawn, the drawn frames are drawn to the The graphic interface is displayed, so that the memory capacity required for image processing is large, and the processing efficiency of image drawing is low. In the embodiment of the present invention, considering that during the image drawing (playing) process, the currently displayed frame is only related to the previous frame drawn and the configuration attributes of the current frame to be drawn, and the image drawing is displayed frame by frame sequentially, through The first image cache for cac...

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 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.

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06T1/00G06T13/00
Inventor 万鑫
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products