CN101656877A - Improved method for generating animation file by using picture sequence - Google Patents

Improved method for generating animation file by using picture sequence Download PDF

Info

Publication number
CN101656877A
CN101656877A CN200810117976A CN200810117976A CN101656877A CN 101656877 A CN101656877 A CN 101656877A CN 200810117976 A CN200810117976 A CN 200810117976A CN 200810117976 A CN200810117976 A CN 200810117976A CN 101656877 A CN101656877 A CN 101656877A
Authority
CN
China
Prior art keywords
frame
picture
animation file
sequence
pictures
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200810117976A
Other languages
Chinese (zh)
Inventor
吴正斌
郑培枫
吕精华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN200810117976A priority Critical patent/CN101656877A/en
Publication of CN101656877A publication Critical patent/CN101656877A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the field of manufacturing animation files, in particular to an improved method for generating an animation file by using a picture sequence. The method comprises the following steps: fragmenting a complete picture sequence; storing a first frame picture of each fragment into the animation file in a complete compression-free mode; for other frame pictures in each fragment,comparing the differences between one frame picture and a previous frame picture in an interframe compression mode; and only recording the difference value of a frame and a previous frame to performfragment compression and decompression so as to achieve the manufacturing of the animation file. The method can conveniently restore any frame pictures and improve the efficiency of the interframe compression.

Description

A kind of method of improved generating animation file by using picture sequence
Technical field
The present invention relates to the making field of animation file, be specifically related to a kind of method of improved generating animation file by using picture sequence.
Background technology
In animation process, the continuous front and back two frame pictures of many videos or animation have very big correlation, and front and back two frame informations change very little in other words.Based on such characteristics, the amount of redundancy between the compression consecutive frame picture just can further improve decrement, reduces compression ratio, so-called inter-frame compression techniques that Here it is.The interframe compression is also referred to as time compression (Temporalcompression), and it compresses by the data between the different frame on the comparison time shaft, and the interframe compression generally can't harm.Frame difference (Framedifferencing) algorithm is a kind of typical time compression method, and it is by comparing the difference between this frame picture and the consecutive frame, and only the minute book frame is adjacent the difference of frame, can significantly reduce data volume like this.
Realize from the method for generating animation file by using picture sequence in the existing inter-frame compression techniques of utilizing, generally be that order according to sequence of pictures reads picture successively, write down the complete content of first pictures, the content and first pictures of second pictures are compared, and discrepant pixel is noted; The 3rd pictures and second pictures are compared, discrepant pixel is noted again, and by that analogy, until the comparison of reading of last picture, the file format that the compression back is generated as shown in Figure 1.Though this mode can guarantee to greatest extent data volume to be compressed, but exist the defective of reading property difference at random.When animation file is read, if will randomly draw the content of M frame picture, must restore 1 successively in order, the content of 2...M-1 frame since the first frame picture, could restore M frame picture according to the difference between M frame picture and the M-1 frame.Like this, when the M value was big, the stand-by period can be long, is unfavorable for rapid positioning operation.
In addition, for the sequence of pictures that is actually used in animation, difference between often adjacent two frames is little, traditional method is to adopt the interframe individual element to compare, find out difference, when dimension of picture was big, most of pixel was identical, and the discriminating conduct meeting of this individual element affects to efficient.
Summary of the invention
The objective of the invention is the defective at prior art, a kind of method of improved generating animation file by using picture sequence is provided, what this method can be more convenient restores the arbitrary frame picture, and can improve the efficient of interframe compression.
Technical scheme of the present invention is as follows: a kind of method of improved generating animation file by using picture sequence, this method is carried out segment processing to a complete sequence of pictures, the mode of every section the first frame picture with complete nothing compression is saved in the animation file, other frame picture in each section is by the mode of interframe compression, the difference between this frame picture and the former frame picture relatively, only the difference of minute book frame and former frame is carried out segmentation compression and decompress(ion), realizes the making of animation file.
Further, the method for aforesaid a kind of improved generating animation file by using picture sequence wherein, is divided into the plurality of sections that frame number equates with described sequence of pictures according to certain fixed integer, and the frame number of final stage is less than or equal to this fixed integer.
Further again, the method for aforesaid a kind of improved generating animation file by using picture sequence wherein, is a benchmark with the length of 10~20 frame pictures, and sequence of pictures is carried out segment processing.
The method of aforesaid a kind of improved generating animation file by using picture sequence, wherein, when the difference between certain frame picture of comparison and the former frame picture, picture is carried out dividing region with fixing size, the corresponding region of comparing two frame pictures respectively, the only discrepant zone of minute book frame and former frame.
Further, the method for aforesaid a kind of improved generating animation file by using picture sequence, wherein, the area size that picture is divided is 8 * 8~32 * 32 pixels.
Further, the method for aforesaid a kind of improved generating animation file by using picture sequence, wherein, when the corresponding region of front and back two frame pictures is compared, pixel value addition with in the zone obtains total weights, directly compares and write down the difference of corresponding region total weight value.
Beneficial effect of the present invention is as follows: because the present invention is in the compression process of sequence of pictures, introduced " middle whole frame " mechanism, when a certain frame picture in the sequence is restored, do not need to restore all frame pictures before successively since the first frame picture, begin to restore but need only from the first frame full picture of affiliated section, this has just obviously improved recovery speed, makes more convenient to operate.In addition,, avoided the comparison of individual element point, under the prerequisite of impact effect not, further improved the efficient that interframe is compressed by introducing " relatively " mechanism by the zone.
Description of drawings
Fig. 1 is the structural representation of the animation file that conventional method generated.
Fig. 2 is each frame correlation schematic diagram of the method for the invention.
Fig. 3 is the structural representation of the animation file of the method for the invention generation.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is described in detail.
For solve in the prior art sequence of pictures compressed after, defective that can not rapid positioning operation when restoring a certain frame picture, method provided by the present invention is carried out segment processing to a complete sequence of pictures, the mode of every section the first frame picture with complete nothing compression is saved in the animation file, other frame picture in each section is by the mode of interframe compression, the difference between this frame picture and the former frame picture relatively, the difference of minute book frame and former frame only, carry out segmentation compression and decompress(ion), realize the making of animation file.Sequence of pictures generally is to be divided into the plurality of sections that frame number equates according to certain fixed integer, and the frame number of final stage is less than or equal to this fixed integer.This fixed integer is the empirical value of determining according to the length of sequence of pictures, and general length with 10~20 frame pictures is benchmark in the practical application, and sequence of pictures is carried out segment processing.
With a sequence of pictures that has 97 frames is example, with per 10 frame pictures as a segmentation, the complete picture of the 1st, 11,21,31,41,51,61,71,81,91 pictures is saved in the animation file, the correlation of other frame picture as shown in Figure 2, all first pictures with affiliated section is relevant.According to the architecture of the formed animation file of this mode as shown in Figure 3.If, when needs restore the 85th frame picture, only need to extract the full picture of the 81st frame, then according to the difference between the consecutive frame picture, restore the 82nd, 83,84,85 frames successively, can obtain the complete image data of the 85th required frame.If use traditional method to obtain the 85th frame image data, then must begin to restore successively by the 2nd frame, obviously can be slow a lot of on speed.As seen, method provided by the present invention is convenient to the rapid positioning operation of picture very much.
In addition, when the difference that compares between certain frame picture and the former frame picture, the present invention carries out dividing region with picture with fixing size, compares the corresponding region of two frame pictures respectively, only the discrepant zone of minute book frame and former frame.The area size of dividing is to determine according to the size of picture, and general empirical value is 8 * 8~32 * 32 pixels.Concrete grammar relatively is with each 32 the pixel value addition of this corresponding region, to obtain total weights, directly compare total weight value, if difference is arranged, then note difference, promptly the weights of weights that back one frame should the zone and former frame same area subtracts each other difference.When dimension of picture is big, because most of pixel is identical, therefore the method that compares of traditional individual element point just seems too loaded down with trivial details, and this manner of comparison provided by the present invention can significantly be raised the efficiency, and is specially adapted to the making of the animation file of big data quantity.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.

Claims (6)

1. the method for an improved generating animation file by using picture sequence, it is characterized in that: this method is carried out segment processing to a complete sequence of pictures, the mode of every section the first frame picture with complete nothing compression is saved in the animation file, other frame picture in each section is by the mode of interframe compression, the difference between this frame picture and the former frame picture relatively, only the difference of minute book frame and former frame is carried out segmentation compression and decompress(ion), realizes the making of animation file.
2. the method for a kind of improved generating animation file by using picture sequence as claimed in claim 1 is characterized in that: described sequence of pictures is divided into the plurality of sections that frame number equates according to certain fixed integer, and the frame number of final stage is less than or equal to this fixed integer.
3. the method for a kind of improved generating animation file by using picture sequence as claimed in claim 2, it is characterized in that: the length with 10~20 frame pictures is benchmark, and sequence of pictures is carried out segment processing.
4. as the method for claim 1 or 2 or 3 described a kind of improved generating animation file by using picture sequence, it is characterized in that: when the difference between certain frame picture of comparison and the former frame picture, picture is carried out dividing region with fixing size, the corresponding region of comparing two frame pictures respectively, the only discrepant zone of minute book frame and former frame.
5. the method for a kind of improved generating animation file by using picture sequence as claimed in claim 4, it is characterized in that: the area size that picture is divided is 8 * 8~32 * 32 pixels.
6. the method for a kind of improved generating animation file by using picture sequence as claimed in claim 4, it is characterized in that: when the corresponding region of front and back two frame pictures is compared, pixel value addition with in the zone obtains total weights, directly compares and write down the difference of corresponding region total weight value.
CN200810117976A 2008-08-19 2008-08-19 Improved method for generating animation file by using picture sequence Pending CN101656877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810117976A CN101656877A (en) 2008-08-19 2008-08-19 Improved method for generating animation file by using picture sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810117976A CN101656877A (en) 2008-08-19 2008-08-19 Improved method for generating animation file by using picture sequence

Publications (1)

Publication Number Publication Date
CN101656877A true CN101656877A (en) 2010-02-24

Family

ID=41710925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810117976A Pending CN101656877A (en) 2008-08-19 2008-08-19 Improved method for generating animation file by using picture sequence

Country Status (1)

Country Link
CN (1) CN101656877A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930580A (en) * 2011-09-27 2013-02-13 微软公司 Data frame animation
WO2014063457A1 (en) * 2012-10-22 2014-05-01 Huawei Technologies Co., Ltd. Systems and methods for data representation and transportation
CN103986933A (en) * 2014-04-24 2014-08-13 小米科技有限责任公司 Dynamic picture displaying method and device
CN104732574A (en) * 2014-12-30 2015-06-24 北京像素软件科技股份有限公司 Compression method and device for role play
CN107529098A (en) * 2014-09-04 2017-12-29 英特尔公司 Real-time video is made a summary

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101031085A (en) * 2007-03-30 2007-09-05 中国联合通信有限公司 Method for processing mobile-terminal frame carboon

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101031085A (en) * 2007-03-30 2007-09-05 中国联合通信有限公司 Method for processing mobile-terminal frame carboon

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930580A (en) * 2011-09-27 2013-02-13 微软公司 Data frame animation
WO2014063457A1 (en) * 2012-10-22 2014-05-01 Huawei Technologies Co., Ltd. Systems and methods for data representation and transportation
CN104737518A (en) * 2012-10-22 2015-06-24 华为技术有限公司 Systems and methods for data representation and transportation
US9894421B2 (en) 2012-10-22 2018-02-13 Huawei Technologies Co., Ltd. Systems and methods for data representation and transportation
CN104737518B (en) * 2012-10-22 2018-11-16 华为技术有限公司 The system and method for indicating and transmitting for data
CN103986933A (en) * 2014-04-24 2014-08-13 小米科技有限责任公司 Dynamic picture displaying method and device
CN103986933B (en) * 2014-04-24 2017-12-12 小米科技有限责任公司 Dynamic picture display methods and device
CN107529098A (en) * 2014-09-04 2017-12-29 英特尔公司 Real-time video is made a summary
CN104732574A (en) * 2014-12-30 2015-06-24 北京像素软件科技股份有限公司 Compression method and device for role play
CN104732574B (en) * 2014-12-30 2017-12-12 北京像素软件科技股份有限公司 The compression method and device of a kind of role play

Similar Documents

Publication Publication Date Title
US10212440B2 (en) Virtual frame buffer system and method
CN100514992C (en) Method for processing mobile-terminal frame carboon
US8644626B2 (en) Method for storing and processing image sequence and method for compressing, storing and processing image sequence
JP5042568B2 (en) MPEG decoder and MPEG encoder
US8625910B2 (en) Compression of image data
CN101237582A (en) Local dynamic image amplification device and method and image processing system
CN101656877A (en) Improved method for generating animation file by using picture sequence
CN102075756B (en) Video multiframe prediction encoding and decoding method and device
CN101656878B (en) Improved method for interframe compression
US20150146785A1 (en) Video decoder memory bandwidth compression
CN103269421A (en) Frame dropping method and system of video image
TW200421877A (en) Moving picture encoding method and moving picture decoding method
CN105791952A (en) Screen shooting method and device for streaming media video data, and electronic device
CN103179393A (en) Dram compression scheme to reduce power consumption in motion compensation and display refresh
CN102263946B (en) Techniques for storing and retrieving pixel data
CN105681893A (en) Method and device for decoding stream media video data
US10855917B2 (en) Data processing method and device, chip, and camera
CN101511025A (en) Method and apparatus for compressing and decompressing image
US8306346B2 (en) Static image compression method and non-transitory computer readable medium having a file with a data structure
CN101626504A (en) Method for high speed JPEG decoding
US9712848B2 (en) Frame buffer compression using separate aggregation of fixed-length and variable-length components of codewords
CN103139566B (en) Method for the efficiently decoding of variable-length code (VLC)
TW201127060A (en) Data-mapping method and cache system for use in a motion compensation system
CN109660809A (en) Based on the decoded colmv data lossless compression method of inter and system
US8457445B2 (en) Image-scaling-down method and image processing apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100224