CN103606179B - Animation image display method and device - Google Patents

Animation image display method and device Download PDF

Info

Publication number
CN103606179B
CN103606179B CN201310638921.6A CN201310638921A CN103606179B CN 103606179 B CN103606179 B CN 103606179B CN 201310638921 A CN201310638921 A CN 201310638921A CN 103606179 B CN103606179 B CN 103606179B
Authority
CN
China
Prior art keywords
scan
region
variation
line
line data
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.)
Active
Application number
CN201310638921.6A
Other languages
Chinese (zh)
Other versions
CN103606179A (en
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201310638921.6A priority Critical patent/CN103606179B/en
Publication of CN103606179A publication Critical patent/CN103606179A/en
Priority to PCT/CN2014/090903 priority patent/WO2015081782A1/en
Application granted granted Critical
Publication of CN103606179B publication Critical patent/CN103606179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses an animation image display method and device. The method comprises the steps of obtaining data of an image P0 of a current displayed frame and data of an image P1 of a next frame of an animation, calculating a changed area of the P1 relative to the P0 according to the obtained data of the P0 and the obtained data of the P1, detecting objects contained in the changed area of the P1, obtaining a scanning line data set of the objects, determining a scanning line data subset to be drawn from the scanning line data set according to the changed area obtained through calculation, and based on the content displayed by the P0, drawing scanning lines contained in the scanning line data subset on the changed area to complete the display of the P1. Through the application of the embodiment, every time when images change, only the scanning lines in the changed area need to be drawn without the needs for drawing all the scanning lines, image process efficiency is improved, and the occupation to system resources is lowered.

Description

A kind of animation image display method and device
Technical field
The present invention relates to medium field, more particularly to a kind of animation image display method and device.
Background technology
Animation is growing, the effect requirements that user shows to the image of animation also more and more higher, in order to reduce CPU and interior The occupancy deposited, the optimization that image shows is imperative.
Animation is formed by continuous frame, and frame refers to the single width image frame of least unit in image animation, and a frame is just It is a static picture;Object in animation refers to the general designation of the class goal object with same or similar property, for example, Inherently one object of background, each character, trees, personage, the building in image etc. are respectively one right in image As.
In prior art, computer realizes that the method that animated image shows is:Display processing frame by frame is carried out to animation, when need When a new two field picture is shown on screen, determined according to the data of the two field picture first all included in the two field picture Object, then draws out these objects using the scan line for pre-building these objects in internal memory, completes the two field picture Show.
A problem existing for this animation image display method of prior art is:It is right when processing per two field picture All objects all repaint the mode of a time in the two field picture, and treatment effeciency is low, need to take larger system resource.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of animation image display method and device, to improve at animated image Reason efficiency, reduces system resource and takes.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of animation image display method, including step:
Obtain the data of the currently displaying two field picture P0 of animation and the data of next two field picture P1;
According to the data of the P0 and P1 for being obtained, region of variation of the P1 relative to P0 is calculated;
Object included in the region of variation of detection P1;
Obtain the scan-line data collection of the object;
According to calculated region of variation, concentrate from the scan-line data and determine scan-line data subset to be drawn;
Based on the content shown by P0, to included in the scan-line data subset on the region of variation Scan line is drawn, and completes the display of P1.
Preferably, the calculating P1 is specifically included relative to the region of variation of P0:Using dirty rectangle technology, P1 phases are calculated Region of variation for P0.
Preferably, before the first two field picture to animation shows, methods described also includes:
Each object included in identification animation;
According to recognition result, the bitmap corresponding to each object is set up;
According to the bitmap set up, the scan-line data collection corresponding to each object is set up.
Preferably, it is described according to calculated region of variation, determine scanning to be drawn from the scan line set Line data subset, including:
If multiple objects are detected in the region of variation in P1, and there is no covering relation in multiple objects, Then:
By the corresponding whole scan-line datas in the region of variation of object, be defined as the object treats drafting scanning Line data subset.
Preferably, it is described according to calculated region of variation, determine scanning to be drawn from the scan line set Line data subset, including:
If multiple objects are detected in the region of variation in P1, and there is covering relation in multiple objects, it is right In any object A and object B, if object A is covered in object B, top shows,:
For object B, only by the scan-line data corresponding to the uncovered part in the region of variation of the object, It is defined as the scan-line data subset to be drawn of the object;
For object A, by the corresponding whole scan-line datas in the region of variation of the object, it is defined as the object Scan-line data subset to be drawn.
To reach above-mentioned purpose, the embodiment of the invention also discloses a kind of animated image display device, including:
View data obtains module, for obtaining the data and next two field picture P1 of animation currently displaying two field picture P0 Data;
Region of variation computing module, for according to the data of the P0 and P1 for being obtained, calculating changes of the P1 relative to P0 Region;
Obj ect detection module, for the object included in the region of variation for detecting P1;
Scan-line data collection obtains module, for obtaining the scan-line data collection of the object;
Scan-line data subset determining module, for according to calculated region of variation, from the scan line set It is determined that scan-line data subset to be drawn;
Drafting module, based on the content shown by P0, is used in P0, to the scanning on the region of variation Scan line included in line data subset is drawn, and completes the display of P1.
Preferably, the region of variation computing module, specifically for:
Using dirty rectangle technology, region of variation of the P1 relative to P0 is calculated.
Preferably, described device also includes:
Initialization module, it is every included in animation for before the first two field picture to animation shows, recognizing One object;According to recognition result, the bitmap corresponding to each object is set up;According to the bitmap set up, each object institute is set up right The scan-line data collection answered.
Preferably, the scan-line data subset determining module, specifically includes:
Judging submodule, for judging the multiple objects detected in the region of variation in P1 with the presence or absence of covering Relation;
Determination sub-module, in the case of being no in the judged result of the judging submodule, by object in the change Change whole scan-line datas corresponding in region, be defined as the scan-line data subset to be drawn of the object.
Preferably, the scan-line data subset determining module, specifically includes:
Judging submodule, for judging the multiple objects detected in the region of variation in P1 with the presence or absence of covering Relation;
Determination sub-module, in the judged result of the judging submodule in the case of being, for any object A and Object B, if object A is covered in object B, top shows,:
For object B, only by the scan-line data corresponding to the uncovered part in the region of variation of the object, It is defined as the scan-line data subset to be drawn of the object;
For object A, by the corresponding whole scan-line datas in the region of variation of the object, it is defined as the object Scan-line data subset to be drawn.
As seen from the above technical solutions, the embodiment of the present invention provides a kind of animation image display method and device, application The embodiment of the present invention, when each image change, it is only necessary to draw the part scan line in region of variation, it is not necessary to draw institute Some scan lines, improve image processing efficiency, reduce the occupancy of system resource.Certainly, arbitrary product of the present invention is implemented Or method must be not necessarily required to while reaching all the above advantage.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of animation image display method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of animation image display method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of animated image display device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another kind of animated image display device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another animated image display device provided in an embodiment of the present invention;
Fig. 6 A are the currently displaying two field picture P0 of animation and next two field picture P1 schematic diagrams;
Fig. 6 B are that region of variation calculates schematic diagram;
Fig. 6 C are that scan line draws schematic diagram;
Fig. 7 A are animation another schematic diagram of currently displaying two field picture P0 and next two field picture P1;
Fig. 7 B are another schematic diagram that region of variation is calculated;
Fig. 7 C are another schematic diagram that scan line is drawn.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of animation image display method and device, and animation current display frame is obtained in the program The data of the data of image P0 and next two field picture P1, according to the data of the P0 and P1 for being obtained, calculate P1 relative to P0 Region of variation, detect object present in the region of variation of P1, the scan-line data collection of the object is obtained, according to meter The region of variation for obtaining, concentrates from the scan-line data and determines scan-line data subset to be drawn, and on P0, sweeps to described Retouch line subset to be drawn, complete the display of P1.
Below by specific embodiment, the present invention is described in detail.
Fig. 1 is a kind of schematic flow sheet of animation image display method provided in an embodiment of the present invention, is comprised the steps:
S101:Obtain the data of the currently displaying two field picture P0 of animation and the data of next two field picture P1.
Frame refers to the single width image frame of least unit in image animation, and a frame is exactly a static picture, continuously Frame is formed animation.
For example:The currently displaying two field picture P0 of animation as shown in Figure 6A and next two field picture P1 schematic diagrams.Wherein, it is current aobvious The data that the two field picture P0 for showing is included be object " background ", the position of object A and object A in image P0, next two field picture The data that P1 is included are object " background ", the position of object A and object A in image P1, obtain the data of this two field pictures.
S102:According to the data of the P0 and P1 for being obtained, region of variation of the P1 relative to P0 is calculated.
For example:The P0 obtained according to S101 and the data of P1, it is X that can calculate P1 relative to the region of variation of P0 Region and Y regions, as shown in Figure 6B.Wherein:
The situation of change in X regions is:Object A → object " background ";
The situation of change in Y regions is:Object " background " → object A;
A kind of specific embodiment of the invention, the process of above-mentioned calculating region of variation, it is possible to use dirty rectangle skill Art realizes, does not limit relative to the specific implementation of the region of variation of P0 calculating P1 in the present invention certainly, Ren Heke The implementation of energy can be applied in the present invention.
S103:Object included in the region of variation of detection P1.
Object refers to the general designation of the class goal object with same or similar property, and each object has itself unique Mark, by this mark, can find corresponding object.In the whole vital stage of object, its mark does not change, different Object can not have identical to identify.
In the embodiment of the present invention, the object included in every two field picture typically refers to contents different in every two field picture, example Such as, inherently one object of background, each character, trees, personage, the building in image etc. are respectively one in image Object.
What the region of variation calculated in S102 was represented is the relativeness of two width image P0 and P1, the mesh of the present embodiment Be that a new two field picture P1 is drawn, it is therefore desirable to the object included in this region of variation is detected in P1.Example Such as:According to the region of variation that S102 is detected:X regions and Y regions, detect that object that the X regions of P1 include is " background ", P1 The object that includes of Y regions be A.
S104:Obtain the scan-line data collection of the object.
In general, in order to realize the Fast Drawing to animated image, for each object occurred in animation, all may be used To pre-build the scan-line data collection of the object, wherein scan line refers to the data line information in bitmap, different objects pair The scan-line data collection answered is different.For example, for the scene shown in Fig. 6 A, there are two objects:A and " background ", then, can be with It is respectively directed to object A and object " background " sets up scan-line data collection.
Specifically, before the first two field picture to animation shows, all objects included in animation are recognized;Root According to recognition result, the bitmap corresponding to each object is set up;According to the bitmap set up, the scan line corresponding to each object is set up Data set.
S105:According to calculated region of variation, concentrate from the scan-line data and determine scan-line data to be drawn Subset.
For example:According to calculated region of variation:X regions and Y regions, for region X, from " background " object scan line The part that scan-line data subset to be drawn is object " background " scan line is determined in data set;For region Y, from object A Scan-line data concentrates the whole scan lines for determining that scan-line data subset to be drawn is object A.
S106:Based on the content shown by P0, to institute in the scan-line data subset on the region of variation Comprising scan line drawn, complete the display of P1.
For example:Based on the content shown by P0, on the X of region a part of scan line of rendered object " background " and Whole scan lines of rendered object A on the Y of region, as Fig. 6 C show after completing.
In figure 6 c, object A sweep line represents wherein by dotted line and filled arrows, object " background " scan line by solid line and Filled arrows are represented.
It can be seen that, using the embodiment of the present invention, when each image change, it is only necessary to which the part drawn in region of variation is swept Retouch line, it is not necessary to draw all of scan line, improve animated image treatment effeciency, reduce system resource occupancy.
Fig. 2 is the schematic flow sheet of another kind of animation image display method provided in an embodiment of the present invention, including following step Suddenly:
S201:Obtain the data of the currently displaying two field picture P0 of animation and the data of next two field picture P1.
For example:Animation another schematic diagram of currently displaying two field picture P0 and next two field picture P1 as shown in Figure 7 A.Wherein, when The data that the two field picture P0 of front display is included be position in image P0 of object " background ", object A, object B and object A and Positions of the object B in image P0, the data that next two field picture P1 is included are object " background ", object A, object B and object A Position of the position and object B in image P1 in P1, obtains the data of this two field pictures..
S202:According to the data of the P0 and P1 for being obtained, region of variation of the P1 relative to P0 is calculated.
For example:The P0 obtained according to S201 and the data of P1, it is X areas to calculate P1 relative to the region of variation of P0 Domain, Y regions and Z region, as shown in Figure 7 B.Wherein:
The situation of change in X regions is:Object A → object " background ";
The situation of change in Y regions is:Object B → object " background ";
The situation of change of Z region is:Object " background " → object A and object B.
S203:Object included in the region of variation of detection P1.
It is similar with a upper embodiment, in the present embodiment, the object included in the region of variation is equally detected in P1.Example Such as:According to the region of variation that S203 is detected:X regions, Y regions and Z region, detect that the object that the X regions of P1 include is " the back of the body Scape ", the object that the Y regions of P1 include is " background ", and the object that the Z region of P1 is included is A and B.
S204:Obtain the scan-line data collection of the object.
In general, in order to realize the Fast Drawing to animated image, for each object occurred in animation, all may be used To pre-build the scan-line data collection of the object, wherein scan line refers to the data line information in bitmap, different objects pair The scan-line data collection answered is different.For example, for the scene shown in Fig. 7 A, there are three objects:A, B and " background ", then, can Scan-line data collection is set up to be respectively directed to object A, object B and object " background ".
Specifically, before the first two field picture to animation shows, all objects included in animation are recognized;Root According to recognition result, the bitmap corresponding to each object is set up;According to the bitmap set up, the scan line corresponding to each object is set up Data set.
S205:In judging the region of variation in P1, the multiple objects for detecting whether there is covering relation, if S206 is carried out, S207 is performed if not.
For example:According to Fig. 7 A, in judging region X, region Y and the region Z in P1, the object " back of the body in X regions is detected The A objects in object " background " and Z region and B objects in scape ", Y regions whether there is covering relation.
S206:For any object A and object B, if object A is covered in object B, top shows,:For object B, Only by the scan-line data corresponding to the uncovered part in the region of variation of the object, be defined as the object wait paint Scan-line data subset processed;For object A, by the corresponding whole scan-line datas in the region of variation of the object, really It is set to the scan-line data subset to be drawn of the object.
For example:For object A and object B in the Z of region, object A covering object B are a part of, for object B in region Z In the part of scanning line data that do not covered by A objects, be defined as the scan-line data subset to be drawn of object B;Exist for object A Corresponding whole scan-line datas in the Z of region, are defined as the scan-line data subset to be drawn of object A.
S207:By the corresponding whole scan-line datas in the region of variation of object, be defined as the object wait paint Scan-line data subset processed.
For example:For the object " background " in the object " background " and region Y in the X of region, due to not depositing with other objects In covering relation, therefore by the corresponding whole scan-line datas in X regions of object " background ", it is defined as object " background " Scan-line data subset to be drawn, by the corresponding whole scan-line datas in Y regions of object " background ", is defined as object The scan-line data subset to be drawn of " background ".It is understood that the processing mode is in itself a kind of processing mode of acquiescence, For example, in previous embodiment, the situation of " covering " is not considered, acquiescence is exactly using by " object is in the region of variation Corresponding whole scan-line datas " are defined as treating the mode of drawing data.
S208:Based on the content shown by P0, to institute in the scan-line data subset on the region of variation Comprising scan line drawn, complete the display of P1.
For example:Based on the content shown by P0, a part of scan line of rendered object " background " on the X of region, A part of scan line of rendered object " background " on the Y of region, the part of scanning line of rendered object B on the Z of region, and object are painted Whole scan lines of A processed, as Fig. 7 C show after completing.
In fig. 7 c, object A sweep line is represented that object B-scan line is by solid line and empty arrow table by dotted line and filled arrows Show, object " background " scan line is represented by solid line and filled arrows.
Using the embodiment of the present invention, when each image change, it is only necessary to draw the part scan line in region of variation, All of scan line need not be drawn, and when there is object covering in region of variation, it is only necessary to rendered object is uncovered Part scan line, it is not necessary to all of scan line of rendered object, further increase image processing efficiency, reduce system The occupancy of resource.
Fig. 3 is a kind of structural representation of animated image display device provided in an embodiment of the present invention, with the stream shown in Fig. 1 Journey is corresponding, including view data obtains module 301, region of variation computing module 302, obj ect detection module 303, number of scanning lines Module 304, scan-line data subset determining module 305, drafting module 306 are obtained according to collection.
Wherein, view data obtains module 301, for obtaining the data and next frame of the currently displaying two field picture P0 of animation The data of image P1;
Region of variation computing module 302, for according to the data of the P0 and P1 for being obtained, calculating changes of the P1 relative to P0 Change region;
Region of variation computing module 302 in the present embodiment, specifically for using dirty rectangle technology, calculating P1 relative to P0 Region of variation.
Obj ect detection module 303, for the object included in the region of variation for detecting P1;
Scan-line data collection obtains module scans wire module 304, for obtaining the scan-line data collection of the object.
Scan-line data subset determining module 305, for according to calculated region of variation, from the scan line set In determine scan-line data subset to be drawn;
Drafting module 306, it is right for based on the content shown by P0, being used in P0 on the region of variation Scan line included in the scan-line data subset is drawn, and completes the display of P1.
Using the embodiment of the present invention, when each image change, it is only necessary to draw the part scan line in region of variation, All of scan line need not be drawn, animated image treatment effeciency is improve, system resource occupancy is reduced.
Fig. 4 is the structural representation of another kind of animated image display device provided in an embodiment of the present invention, including:Picture number Obtain module 404, sweep according to module 401, region of variation computing module 402, obj ect detection module 403, scan-line data collection is obtained Retouch line data subset determining module 405, drafting module 406, initialization module 407.
In the present embodiment 401~406 and 301~306 in embodiment illustrated in fig. 3 can be with identical, can be complete It is identical, detailed description is not repeated herein.
Wherein, initialization module 407, for before the first two field picture to animation shows, recognizing institute in animation Comprising each object;According to recognition result, the bitmap corresponding to each object is set up;According to the bitmap set up, set up each Scan-line data collection corresponding to object.
That is, the present embodiment is on the basis of embodiment illustrated in fig. 3 and increased initialization module.
Using the embodiment of the present invention, when each image change, it is only necessary to draw the part scan line in region of variation, All of scan line need not be drawn, animated image treatment effeciency is improve, system resource occupancy is reduced.
Fig. 5 is the structural representation of another animated image display device provided in an embodiment of the present invention, and shown in Fig. 2 Flow process is corresponding, including view data obtains module 501, region of variation computing module 502, obj ect detection module 503, scan line Data set obtains module 504, scan-line data subset determining module 505, drafting module 506.
Wherein, 501~504 in the present embodiment and 301~304 in embodiment illustrated in fig. 3 can with identical, 506 Detailed description can be not repeated herein with identical with embodiment illustrated in fig. 3 306.
Scan-line data subset determining module 505 includes:Judging submodule and determination sub-module;
The judging submodule, for judging that the multiple objects detected in the region of variation in P1 whether there is Covering relation;
The determination sub-module, in the case of being no in the judged result of the judging submodule, by object in institute Whole scan-line datas corresponding in region of variation are stated, is defined as the scan-line data subset to be drawn of the object;For The judged result of the judging submodule in the case of being, for any object A and object B, if object A is covered in object The display of B tops, then:For object B, only by the scan line corresponding to the uncovered part in the region of variation of the object Data, are defined as the scan-line data subset to be drawn of the object;For object A, by the object in the region of variation institute Corresponding whole scan-line datas, are defined as the scan-line data subset to be drawn of the object.
Using Fig. 5 embodiments of the present invention, when each image change, it is only necessary to draw the part scanning in region of variation Line, it is not necessary to draw all of scan line, and when there is object covering in region of variation, it is only necessary to rendered object is not coated to The part scan line of lid, it is not necessary to all of scan line of rendered object, further increases image processing efficiency, reduces and is The occupancy of system resource.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part is illustrated referring to the part of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to Nonexcludability is included, so that a series of process, method, article or equipment including key elements not only will including those Element, but also including other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
One of ordinary skill in the art will appreciate that realize that all or part of step in said method embodiment is can Completed with instructing the hardware of correlation by program, described program can be stored in computer read/write memory medium, The storage medium for obtaining designated herein, such as:ROM/RAM, magnetic disc, CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, protection scope of the present invention is not intended to limit.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of animation image display method, it is characterised in that including step:
Obtain the data of the currently displaying two field picture P0 of animation and the data of next two field picture P1;
According to the data of the P0 and P1 for being obtained, region of variation of the P1 relative to P0 is calculated;
Object included in the region of variation of detection P1;Object included in per two field picture is referred in every two field picture not Same content;
Obtain the scan-line data collection of the object;
According to calculated region of variation, concentrate from the scan-line data and determine scan-line data subset to be drawn;
Based on the content shown by P0, to the scanning included in the scan-line data subset on the region of variation Line is drawn, and completes the display of P1.
2. method according to claim 1, it is characterised in that the calculating P1 relative to P0 region of variation, concrete bag Include:
Using dirty rectangle technology, region of variation of the P1 relative to P0 is calculated.
3. method according to claim 1, it is characterised in that before the first two field picture to animation shows, institute Stating method also includes:
Each object included in identification animation;
According to recognition result, the bitmap corresponding to each object is set up;
According to the bitmap set up, the scan-line data collection corresponding to each object is set up.
4. method according to claim 1, it is characterised in that:It is described according to calculated region of variation, sweep from described Retouch and scan-line data subset to be drawn is determined in line set, including:
If multiple objects are detected in the region of variation in P1, and there is no covering relation in multiple objects, then:
By the corresponding whole scan-line datas in the region of variation of object, it is defined as the number of scanning lines to be drawn of the object According to subset.
5. method according to claim 1, it is characterised in that:It is described according to calculated region of variation, sweep from described Retouch and scan-line data subset to be drawn is determined in line set, including:
If multiple objects are detected in the region of variation in P1, and multiple objects have covering relation, for appointing Meaning object A and object B, if object A is covered in object B, top shows,:
For object B, only by the scan-line data corresponding to the uncovered part in the region of variation of the object, it is determined that For the scan-line data subset to be drawn of the object;
For object A, by the corresponding whole scan-line datas in the region of variation of the object, it is defined as treating for the object Draw scan-line data subset.
6. a kind of animated image display device, it is characterised in that include:
View data obtains module, for obtaining the data of the currently displaying two field picture P0 of animation and the number of next two field picture P1 According to;
Region of variation computing module, for according to the data of the P0 and P1 for being obtained, calculating region of variation of the P1 relative to P0;
Obj ect detection module, for the object included in the region of variation for detecting P1;It is right included in per two field picture As if refer to contents different in every two field picture;
Scan-line data collection obtains module, for obtaining the scan-line data collection of the object;
Scan-line data subset determining module, for according to calculated region of variation, determining from the scan line set Scan-line data subset to be drawn;
Drafting module, based on the content shown by P0, to the scan line on region of variation of the P1 relative to P0 Scan line included in data subset is drawn, and completes the display of P1.
7. device according to claim 6, it is characterised in that the region of variation computing module, specifically for:
Using dirty rectangle technology, region of variation of the P1 relative to P0 is calculated.
8. device according to claim 6, it is characterised in that described device also includes:
Initialization module, for before the first two field picture to animation shows, recognize included in animation per a pair As;According to recognition result, the bitmap corresponding to each object is set up;According to the bitmap set up, set up corresponding to each object Scan-line data collection.
9. device according to claim 6, it is characterised in that the scan-line data subset determining module, specifically includes:
Judging submodule, for judging that the multiple objects detected in the region of variation in P1 are closed with the presence or absence of covering System;
Determination sub-module, in the case of being no in the judged result of the judging submodule, by object in the variation zone Corresponding whole scan-line datas in domain, are defined as the scan-line data subset to be drawn of the object.
10. device according to claim 6, it is characterised in that the scan-line data subset determining module, concrete bag Include:
Judging submodule, for judging that the multiple objects detected in the region of variation in P1 are closed with the presence or absence of covering System;
Determination sub-module, in the case of being to be in the judged result of the judging submodule, for any object A and object B, if object A is covered in object B, top shows,:
For object B, only by the scan-line data corresponding to the uncovered part in the region of variation of the object, it is determined that For the scan-line data subset to be drawn of the object;
For object A, by the corresponding whole scan-line datas in the region of variation of the object, it is defined as treating for the object Draw scan-line data subset.
CN201310638921.6A 2013-12-02 2013-12-02 Animation image display method and device Active CN103606179B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310638921.6A CN103606179B (en) 2013-12-02 2013-12-02 Animation image display method and device
PCT/CN2014/090903 WO2015081782A1 (en) 2013-12-02 2014-11-12 Animation image display method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310638921.6A CN103606179B (en) 2013-12-02 2013-12-02 Animation image display method and device

Publications (2)

Publication Number Publication Date
CN103606179A CN103606179A (en) 2014-02-26
CN103606179B true CN103606179B (en) 2017-05-03

Family

ID=50124399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310638921.6A Active CN103606179B (en) 2013-12-02 2013-12-02 Animation image display method and device

Country Status (2)

Country Link
CN (1) CN103606179B (en)
WO (1) WO2015081782A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103606179B (en) * 2013-12-02 2017-05-03 珠海金山办公软件有限公司 Animation image display method and device
CN104462470A (en) * 2014-12-17 2015-03-25 北京奇虎科技有限公司 Display method and device for dynamic image
CN106649541A (en) * 2016-10-26 2017-05-10 广东小天才科技有限公司 Cartoon playing and generating method and device
CN108242070A (en) * 2017-10-09 2018-07-03 北京车和家信息技术有限公司 A kind of image drawing method, image plotting device and computer equipment
CN110969683A (en) * 2018-09-30 2020-04-07 北京奇虎科技有限公司 Animation generation method and device and electronic equipment
CN115415547B (en) * 2022-11-07 2023-03-24 北京清研智束科技有限公司 Electron beam scanning method, apparatus, device and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427373A (en) * 2001-12-19 2003-07-02 英业达股份有限公司 Method of processing graph shealtering
US20080238928A1 (en) * 2007-03-30 2008-10-02 Bimal Poddar Frame buffer compression for desktop composition
US8127233B2 (en) * 2007-09-24 2012-02-28 Microsoft Corporation Remote user interface updates using difference and motion encoding
CN100550059C (en) * 2007-12-21 2009-10-14 炬力集成电路设计有限公司 A kind of vector graph acceleration method and multimedia player
CN101847269B (en) * 2009-03-27 2011-11-09 上海科泰世纪科技有限公司 Multi-layer cartoon rendering system and method
CN103606179B (en) * 2013-12-02 2017-05-03 珠海金山办公软件有限公司 Animation image display method and device

Also Published As

Publication number Publication date
WO2015081782A1 (en) 2015-06-11
CN103606179A (en) 2014-02-26

Similar Documents

Publication Publication Date Title
CN103606179B (en) Animation image display method and device
Tanaka et al. Layout Analysis of Tree-Structured Scene Frames in Comic Images.
WO2021051604A1 (en) Method for identifying text region of osd, and device and storage medium
CN104751405B (en) A kind of method and apparatus for being blurred to image
CN105809054B (en) Information acquisition method and device
CN110717494B (en) Android mobile terminal indoor scene three-dimensional reconstruction and semantic segmentation method
CN110427932A (en) The method and device of multiple document fields in a kind of identification image
CN107330979A (en) Vector diagram generation method and device for building house type and terminal
EP2709039A1 (en) Device and method for detecting the presence of a logo in a picture
CN109064390A (en) A kind of image processing method, image processing apparatus and mobile terminal
CN108780507A (en) System and method for providing Image Classifier
CN106293232A (en) A kind of hand-written inputting method realizing vigour of style in writing effect and system
CN106681583A (en) Method and system for processing displayed content in overlapping windows
CN106845484B (en) A kind of localization method and device in one-dimension code region
CN107589963A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN106997459A (en) A kind of demographic method split based on neutral net and image congruencing and system
CN107317853A (en) Method, device and system for displaying dynamic effect of message popup window
CN110415005A (en) Determine the method, computer equipment and storage medium of advertisement insertion position
CN102915521A (en) Method and device for processing mobile terminal images
CN103914829B (en) Method for detecting edge of noisy image
CN106097375B (en) A kind of the folding line detection method and device of scan image
CN106897321A (en) The method and device of show map data
CN114627561B (en) Dynamic gesture recognition method and device, readable storage medium and electronic equipment
CN109376618A (en) Image processing method, device and electronic equipment
CN108985147A (en) Object detection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant after: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant after: Beijing Kingsoft office software Limited by Share Ltd

Address before: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant before: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant before: Beijing Kingsoft WPS Office Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant