CN101930367B - Implementation method of switching images and mobile terminal - Google Patents

Implementation method of switching images and mobile terminal Download PDF

Info

Publication number
CN101930367B
CN101930367B CN201010267563.9A CN201010267563A CN101930367B CN 101930367 B CN101930367 B CN 101930367B CN 201010267563 A CN201010267563 A CN 201010267563A CN 101930367 B CN101930367 B CN 101930367B
Authority
CN
China
Prior art keywords
training plan
training
color value
height
width
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
CN201010267563.9A
Other languages
Chinese (zh)
Other versions
CN101930367A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010267563.9A priority Critical patent/CN101930367B/en
Priority to EP10856305.7A priority patent/EP2595117A4/en
Priority to US13/504,952 priority patent/US8581924B2/en
Priority to PCT/CN2010/077916 priority patent/WO2012024852A1/en
Publication of CN101930367A publication Critical patent/CN101930367A/en
Application granted granted Critical
Publication of CN101930367B publication Critical patent/CN101930367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Landscapes

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

Abstract

The invention discloses an implementation method of switching images and a mobile terminal. The method comprises the following steps: setting color values of all pixel points of a first training image and a second training image, wherein every two color values are different from each other; generating a training sequence based on the color values of all the pixel points of the first training image and the second training image according to the transformation rule of each frame of switching images; and implementing image switching for the current image and the next image according to the training sequence. The invention enhances the smoothness of the switching images and improves user experience.

Description

Implementation method of switching images and mobile terminal
Technical field
The present invention relates to the communications field, in particular to a kind of implementation method of switching images and mobile terminal.
Background technology
Development along with mobile terminal technology, user is more and more higher to the recreational requirement of mobile terminal, there is mobile terminal switching images technology, the linking animation of the interface that mobile terminal switching images refers to mobile terminal from current picture to next Picture switch process.Current mobile phone has adopted more more complicated switching images to carry out the UI effect of lifting mobile terminal in user interface (UserInterface, referred to as UI) design.
Mobile terminal switching images technology can be divided into two-dimentional switching images and three-dimensional switching images.In mobile terminal UI design, two-dimentional switching images does not contain 3-D effect, and conventional two-dimentional switching images has: slide be fade-in gradually, amplify dwindle be fade-in gradually, color gradient, picture gradual change etc.; Three-dimensional switching images refers to the switching images that all contain 3-D effect.In mobile terminal UI design, conventional three-dimensional switching images has: cube rollover effect, Flipper rollover effect etc.
The essence of three-dimensional animation is to any one point in three dimensions, calculates it and is projected in the position on rear projection screen.Three-dimensional switching images is a kind of special three-dimensional animation, its objective is and uses animation to carry out transition to two width pictures, and therefore, three-dimensional switching images is that two width pictures are carried out to three-dimension varying.Three-dimensional switching images technology is that two width pictures of input are carried out to computing, export a series of frame, when these frames are play at a certain time interval on screen, just formed three-dimensional switching images, the frame of exporting within the unit interval is more, animation is just more smooth, and effect is just better, but has also brought the calculating that operand is larger.The animation of general real-time rendering, it draws flow process as shown in Figure 1, generally by a timer, is driven, and draws frame by frame and shows.Fig. 1 is the real-time rendering animate process flow diagram according to correlation technique, as shown in Figure 1, comprises following step:
Step S102: animation starts.
Step S104: each frame of drawing animation.
Step S106: show this frame.
Step S108: judging whether animation finishes, is to perform step S110, otherwise perform step S104 if judgment result is that.
In correlation technique, three-dimensional switching images technology general using OpenGLES and other various animation libraries of mobile terminal complete (for realizing the step S104 of above-mentioned flow process) OpenGL ES and aim at a 2D/3D light weight shape library embedded and mobile device design, much high-end (intelligence) mobile phone can adopt a special figure speed-up chip to provide acceleration to three-dimensional animation, and realize three-dimensional animation mobile phone CPU has also been proposed to higher requirement, low and middle-end mobile phone is owing to not having corresponding chip can not provide acceleration to three-dimensional animation, and because the calculated amount of three-dimensional switching images is larger, thereby make the travelling speed of three-dimensional switching images on such mobile terminal very slow, do not reach the smooth degree that UI design is wanted far away, cause low and middle-end mobile phone cannot realize three-dimensional switching images.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of implementation method of switching images and mobile terminal, to solve in above-mentioned correlation technique because three-dimensional switching images need to be by a large amount of calculating, and the problem that cannot realize on low and middle-end mobile phone.
To achieve these goals, according to an aspect of the present invention, provide a kind of implementation method of switching images.
Implementation method of switching images according to the present invention comprises: the color value of all pixels of the first training plan and the second training plan is set, and wherein, above-mentioned color value is different between two; According to the transformation rule of each frame of switching images, the color value of all pixels in the first training plan and the second training plan is generated to training sequence; And according to training sequence, current picture and next picture are carried out to switching images.
Further, the color value that all pixels of the first training plan and the second training plan is set comprises:
The color value of all pixels of the first training plan is set by following formula:
InputFrame1[0]=1, inputFrame1[i]=i+1; Wherein, inputFrame1[i] represent the color value of i pixel of the first training plan, 0≤i≤width*height-1, width is the width of the first training plan, height is the height of the first training plan;
The color value of all pixels of the second training plan is set by following formula:
inputFrame2[0]=width*height+1,
InputFrame2[i]=width*height+i+1; Wherein, inputFrame2[i] represent the color value of i pixel of the second training plan, 0≤i≤width*height-1, width is the width of the second training plan, height is the height of the second training plan, wherein, the height of the first training plan equals the height of the second training plan, and the width of the first training plan equals the height of the second training plan.
Further, according to the transformation rule of each frame of switching images, the color value of all pixels in the first training plan and the second training plan being generated to training sequence comprises: according to the transformation rule of each frame of switching images, respectively the color value of the first training plan and the second training plan respective pixel is saved to queue; Queue is merged and generates training sequence.
Further, according to training sequence, current picture and next picture being carried out to switching images comprises: read the data in training sequence; Specified data is in the position corresponding to pixel of the first training plan or the second training plan; In current picture or next picture, read the color value of corresponding position, and color value is exported.
Further, in switching images operation, cancel anti-sawtooth and the bitmap filter effect of switching images; Adopt 32 true color that color value is set.
To achieve these goals, according to a further aspect in the invention, provide a kind of mobile terminal.
Mobile terminal according to the present invention comprises: module is set, and for the color value of all pixels of the first training plan and the second training plan is set, wherein, color value is different between two; Generation module, for generating training sequence according to the transformation rule of each frame of switching images by the color value of the first training plan and all pixels of the second training plan; And switching images module, for current picture and next picture being carried out to switching images according to training sequence.
Further, module is set and comprises: first arranges submodule, for the color value of all pixels of the first training plan is set by following formula:
inputFrame1[0]=1,inputFrame1[i]=i+1;
Wherein, inputFrame1[i] represent the color value of i pixel of the first training plan, 0≤i≤width*height-1, width is the width of the first training plan, height is the height of the first training plan;
Second arranges submodule, for the color value of all pixels of the second training plan is set by following formula:
inputFrame12[0]=width*height+1,inputFrame2[i]=i?width*height+i+1;
Wherein, inputFrame2[i] represent the color value of i pixel of the second training plan, 0≤i≤width*height-1, width is the width of the second training plan, height is the height of the second training plan, wherein, the height of the first training plan equals the height of the second training plan, and the width of the first training plan equals the height of the second training plan.
Further, generation module comprises: preserve submodule, for respectively the color value of the first training plan and the second training plan respective pixel being saved to queue according to the transformation rule of each frame of switching images; Merge submodule, for queue is merged and generates training sequence.
Further, switching images module comprises: the first reading submodule, for reading the data of training sequence; Determine submodule, position corresponding to pixel for specified data at the first training plan or the second training plan; The second reading submodule, for reading the color value of correspondence position at current picture or next picture; Output sub-module, for exporting above-mentioned color value.
Further, above-mentioned mobile terminal also comprises: processing module, and for cancel anti-sawtooth and the bitmap filter effect of switching images in switching images operation.
By the present invention, employing arranges the color value of all pixels of the first training plan and the second training plan, wherein, color value is different between two, according to the transformation rule of each frame of switching images, the color value of all pixels in the first training plan and the second training plan is generated to training sequence, according to training sequence, current picture and next picture are carried out to switching images, solved in correlation technique because three-dimensional switching images need to be by a large amount of calculating, the problem that cannot realize on low and middle-end mobile phone, and then reached to have realized and on low and middle-end mobile phone, realized three-dimensional switching images, reached and improved the effect that user experiences.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the real-time rendering animate process flow diagram according to correlation technique;
Fig. 2 is according to the process flow diagram of the implementation method of switching images of the embodiment of the present invention;
Fig. 3 is according to the structured flowchart of the mobile terminal of the embodiment of the present invention;
Fig. 4 is the preferred structured flowchart according to the mobile terminal of the embodiment of the present invention;
Fig. 5 plays up process flow diagram according to the three-dimensional animation of the embodiment of the present invention;
Fig. 6 is according to the process flow diagram of the training process of the embodiment of the present invention; And
Fig. 7 is according to the process flow diagram of the drawing process of the embodiment of the present invention.
Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
According to embodiments of the invention, a kind of implementation method of switching images is provided, Fig. 2 is according to the process flow diagram of the implementation method of switching images of the embodiment of the present invention, as shown in Figure 2, comprising:
Step S202: the color value of all pixels of the first training plan and the second training plan is set, and wherein, color value is different between two.
Step S204: the color value of all pixels in the first training plan and the second training plan is generated to training sequence according to the transformation rule of each frame of switching images.
Step S206: current picture and next picture are carried out to switching images according to training sequence.
Pass through above-mentioned steps, first the color value of all pixels of the first training plan and the second training plan is set, wherein, color value is different between two, then according to the transformation rule of each frame of switching images, the color value of all pixels in the first training plan and the second training plan is generated to training sequence, finally according to training sequence, current picture and next picture are carried out to switching images, while having avoided carrying out switching images in correlation technique, calculate in a large number, owing to not having corresponding chip to provide acceleration for three-dimensional animation on low and middle-end mobile phone, make the travelling speed of three-dimensional switching images on such mobile terminal very slow, do not reach the smooth degree that UI design is wanted far away, cause low and middle-end mobile phone cannot realize the problem of three-dimensional switching images, quality and the smooth degree of three-dimensional switching images have been improved, thereby improved user experience.
Below one of the color value of all pixels that the first training plan and the second training plan are set in step S202 is preferred embodiment described.The color value of all pixels of the first training plan: inputFrame1[0 can be set by following formula]=1, inputFrame1[i]=i+1; Wherein, inputFrame1[i] represent the color value of i pixel of the first training plan, 0≤i≤width*height-1, width is the width of the first training plan, height is the height of the first training plan; The color value of all pixels of the second training plan: inputFrame2[0 is set by following formula]=width*height+1, inputFrame2[i]=width*height+i+1; Wherein, inputFrame2[i] represent the color value of i pixel of the second training plan, 0≤i≤width*height-1, width is the width of the second training plan, height is the height of the second training plan.By the setting steps of the preferred embodiment, make the color value difference of each pixel of the first training plan and the second training plan, and by color value, can calculate this pixel in the position of the first training plan and the second training plan, realize the accurate location of color value.
Below to of the color value generation training sequence of all pixels in the first training plan and the second training plan is preferred embodiment described according to the transformation rule of each frame of switching images in step S204.According to the transformation rule of each frame of switching images, respectively the color value of the first training plan and the second training plan respective pixel is saved to queue; Queue is merged and generates training sequence.By the preferred embodiment, by the rule change of each frame of switching images with at the color value of the pixel of the first training plan and the second training plan, be mapped, according to color value, just can accurately judge the location of pixels of corresponding color value in this frame.
Below to current picture and next picture are carried out to of switching images according to training sequence and preferred embodiment describe in step S206.First read the data in training sequence, wherein data are the color value of the pixel of the first training plan or the second training plan, and then specified data is in the position corresponding to pixel of the first training plan or the second training plan; The last also color value of the position of above-mentioned correspondence that reads in current picture or next picture, and by this color value output.By the determining step in the preferred embodiment, determine respectively the position corresponding to the regular pixel of each frame of switching images, in current picture or next picture, read the color value of corresponding point, the line output of going forward side by side, has realized the image output of this frame.
Preferably, in switching images operation, cancel anti-sawtooth and the bitmap filter effect of switching images.By the preferred embodiment, avoided the mixing of color.In the present embodiment, the essence of training image is to locate by color, if in the drawing process of three-dimensional animation, not only each pixel has been made to three-dimensional project, the words of hybrid processing also color have been carried out, the color of rendered frame has also just lost the ability of location, that is to say, the color value after hybrid processing be can not determine the source of each pixel of target frame.
Preferably, adopt 32 true color that color value is set.Adopt existing rule to carry out define color, reduced R&D costs.
According to embodiments of the invention, a kind of mobile terminal is also provided, and Fig. 3 is according to the structured flowchart of the mobile terminal of the embodiment of the present invention, and this mobile terminal comprises: module 32 is set, generation module 34 and switching images module 36, be described in detail said structure below:
Module 32 is set, and for the color value of all pixels of the first training plan and the second training plan is set, wherein, color value is different between two; Generation module 34, is connected to module 32 is set, for generating training sequence according to the transformation rule of each frame of switching images by module 32 the first training plans of setting and the color value of all pixels of the second training plan are set; And switching images module 36, for the training sequence generating according to generation module 34, current picture and next picture are carried out to switching images.
Fig. 4 is the preferred structured flowchart according to the mobile terminal of the embodiment of the present invention, and as shown in Figure 4, this mobile terminal also comprises processing module 42, module 32 is set and comprises: first arranges submodule 322 and second arranges submodule 324; Generation module 34 comprises: preserve submodule 342 and merge submodule 344; Switching images module 36 comprises: the first reading submodule 362, determine submodule 364, the second reading submodule 366 and output sub-module 368, and below said structure is described in detail:
First arranges submodule 322, for the color value of all pixels of the first training plan: inputFrame1[0 is set by following formula]=1, inputFrame1[i]=i+1; Wherein, inputFrame1[i] represent the color value of i pixel of the first training plan, 0≤i≤width*height-1, width is the width of the first training plan, height is the height of the first training plan; Second arranges submodule 324, for the color value of all pixels of the second training plan: inputFrame12[0 is set by following formula]=width*height+1, inputFrame2[i]=i width*height+i+1; Wherein, inputFrame2[i] represent the color value of i pixel of the second training plan, 0≤i≤width*height-1, width is the width of the second training plan, height is the height of the second training plan.
Generation module 34 comprises: preserve submodule 342, be connected to first and submodule 322 and second be set submodule 324 is set, for respectively the color value of the first training plan and the second training plan respective pixel being saved to queue according to the transformation rule of each frame of switching images; Merge submodule 344, be connected to and preserve submodule 342, for preserving submodule 342, the queue of preservation merges generation training sequence.
Switching images module 36 comprises: the first reading submodule 362, and be connected to and merge submodule 344, for reading the data in the training sequence that merges submodule 344 merging, wherein data are the color value of the pixel of the first training plan or the second training plan; Determine submodule 364, be connected to the first reading submodule 362, the data that read for definite the first reading submodule 362 are in the position corresponding to pixel of the first training plan or the second training plan; The second reading submodule 366, be connected to and determine submodule 364, for reading at the first training plan or the second training plan the color value of determining the color value that the definite position of submodule 364 is corresponding and exporting respective pixel, output sub-module 368, be connected to the second reading submodule 366, for the color value output that the second reading submodule 366 is read.
Processing module 42, is connected to switching images module 36, for cancel anti-sawtooth and the bitmap filter effect of switching images in switching images operation.
Embodiment mono-
The present embodiment combines above-described embodiment and preferred implementation wherein, and a kind of three-dimensional animation rendering intent is provided in the present embodiment, and the method comprises training flow process (process) and draws flow process (process), preserves queue link up by frame.Fig. 5 plays up process flow diagram according to the three-dimensional animation of the embodiment of the present invention, as shown in Figure 5:
Training flow process is by two special figure, three-dimensional switching images drawing engine to be trained, and concrete training method is as follows:
Step S501: generate training picture.
Preferably, in step S501, the concrete grammar that generates training picture is as follows: the color value that first pixel of training plan 1 is set is 1, and the color value of rest of pixels is that previous pixel color value adds 1; The color value of first pixel of training plan 2 is that the color value of training plan 1 last pixel adds 1, and the color value of rest of pixels is that previous pixel color value adds 1." training plan 1 " and " training plan 2 " is so set is in order to make the color value of each pixel of " training plan 1 " and " training plan 2 " different, and by color value, can calculate the position of this pixel in " training plan 1 " or " training plan 2 ", reach the effect of location.
Step S502: draw each frame of training animation.
Step S503: the output frame of training animation is saved in to frame and preserves in queue.
Step S504: whether training of judgement animation finishes, if judgment result is that "Yes", execution step S505, if judgment result is that "No", execution step S502.
It is exactly concrete drawing process that animation is played up flow process, and the data of preserving in queue by parse for frame complete drafting, and drawing process need to be inputted actual two width pictures (being assumed to be " input Fig. 1 " and " input Fig. 2 "), and concrete grammar is as follows:
Step S506: read frame and preserve the data in queue and resolve.
Preferably, in step S506, " reading frame preserves the data in queue and resolve " refers to the source position that the color value of preserving each each pixel of frame in queue according to frame calculates this pixel and derives from " training plan 1 " or " training plan 2 ", and the particular location in " training plan 1 " or " training plan 2 ".
Step S507: each frame of drawing animation according to analysis result.
Preferably, " according to analysis result, draw each frame of animation " and, if refer to the pixel that pixel derives from certain position of " training plan 1 ", read the color value of the same position pixel of " input Fig. 1 "; Otherwise, if pixel derives from the pixel of certain position of " training plan 2 ", read the color value of the same position pixel of " input Fig. 2 ".
Step S508: show this frame.
Step S509: judge whether animation finishes, if judgment result is that "Yes", execution step S510, if judgment result is that "No", execution step S506.
Compared with prior art, method of the present invention can be optimized existing three-dimensional switching images, and the smooth degree that three-dimensional switching images is moved on identical mobile phone is better.
It should be noted that, adopt the implementation method of three-dimensional switching images to be divided into training flow process and the actual flow process of playing up, and training flow process is to play up the prerequisite of flow process.
By this preferred embodiment, by color, position, because a large amount of calculating of three-dimensional rendering are from the calculating to each spot projection position in three dimensions, color location is preserved to the projected position of two width pictures, while making three-dimensional rendering, do not need projected position to carry out double counting, thereby greatly saved the time of three-dimensional rendering, improved the smooth degree of three-dimensional animation.
Embodiment bis-
The present embodiment provides the implementation method of training flow process in a kind of switching images implementation procedure, and Fig. 6 is according to the process flow diagram of the training process of the embodiment of the present invention.In the present embodiment, the training that training flow process is drawn by input " training plan 1 " and " training plan 2 ", obtains a series of " training frames ", is kept in frame queue, and its specific implementation step is as follows:
Step S601: definition " training plan 1 ", " training plan 2 " and the pointer of output buffer are respectively: inputFrame1, inputFrame2, outputFrame, and generate training sequence.
Step S602: be above-mentioned Buffer allocation memory headroom, and initialization inputFrame1 and inputFrame2.
Preferably, initialization inputFrame1 and inputFrame2 in step S602, can define buffer zone is usigned long form, because the color-values of each pixel adopts the form of 32, wherein four bytes represent respectively: alpha, red, green, blue.As the content in the buffer zone of the inputFrame1 sensing of giving a definition: inputFrame1[0]=1, inputFrame 1[1]=2 ..., inputFrame1[width*height-1] and=width*height.As the content in the buffer zone of the inputFrame2 sensing of giving a definition: inputFrame2[0]=width*height+1, inputFrame2[1]=width*height+2 ..., inputFrame2[width*height-1] and=2*width*height.Wherein width is the width of figure, and height is the height of figure.
Step S603: initialization cube rotation animated type: AnimationCube*pAniCube=new AnimationCube.
Step S604: totalframes is set: pAniCube-> SetTotalFrames (frameNumber).
Step S605: anti-sawtooth and the bitmap filter effect of closing animation.
It should be noted that, step S605 adopts and closes the anti-sawtooth of animation and the operation of bitmap filter effect, and the object of doing is like this to avoid the mixing of color.The essence of training is actually by color locates, if in the drawing process of three-dimensional animation, not only each pixel has been made to three-dimensional project, the words of hybrid processing also color have been carried out, the color of rendered frame has also just lost the ability of location, that is to say, the color value after hybrid processing can not be told the source of each pixel of our target frame.
Step S606: the color scheme that animation is set is 32 true color.
Step S607: what animation was set is input as inputFrame1 and inputFrame2, draws each frame of training animation.
Step S608: start animation, training frames is kept in outputFrame, then the content in outputFrame is saved in frame queue
Step S609: judge whether animation finishes, if judgment result is that "Yes" execution step S610, otherwise, execution step S607.
Embodiment tri-
The present embodiment provides the implementation method of drawing flow process in a kind of switching images implementation procedure, and Fig. 7 is according to the process flow diagram of the drawing process of the embodiment of the present invention.In the present embodiment, Fig. 7 is the detail flowchart of drawing flow process.Drawing process utilizes " training frames " in frame queue to complete, and draws flow process and comprises location and copy procedure.Whole flow process for convenience of description, in the present embodiment, establishing innerFrame is the frame in frame queue, and inputFrame1 is the pointer of " input Fig. 1 ", and inputFrame2 is the pointer of " input Fig. 2 ", and outputFrame is output buffer address.Its concrete steps comprise:
Step S701: read frame and preserve the frame in queue, innerFrame (frame queue) is passed to in the address of its frame buffer zone.
Step S702: index i=0 is set.
Step S703: the color value that reads its i position: color=innerFrame[i].
Step S704: the source position that judges this pixel according to color value, judge whether color is greater than width (wide) * height (height): if color is less than or equal to width*height, this pixel belongs to " training plan 1 ", execution step S705; Otherwise this pixel belongs to " training plan 2 ", execution step S706.
Step S705: the color of relevant position in " input Fig. 1 " is copied to output buffer: outputFrame[i]=inputFrame1[color-1].
Step S706: the color of relevant position in " input Fig. 2 " is copied to output buffer: outputFrame[i]=inputFrame2[color-width*height-1].
Step S707: judge whether i is less than width*height, if judgment result is that "Yes", execution step S708, otherwise, execution step S709.
Step S708:i adds 1.
Step S709: judge whether this training frames is the last frame that frame is preserved queue, if judgment result is that "Yes", execution step S710, otherwise execution step S701.
Step S710, finishes.
Pass through above-described embodiment, by three-dimensional animation is drawn and is trained, and the result of preservation training, utilize the result of training to provide acceleration to three-dimensional switching images, made the required computation amount of three-dimensional switching images of same smooth degree, the flow process degree that has improved animation, has improved user's experience.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. an implementation method of switching images, is characterized in that, comprising:
The color value of all pixels of the first training plan and the second training plan is set, and wherein, described color value is different between two;
According to the transformation rule of each frame of switching images, the color value of all pixels described in described the first training plan and described the second training plan is generated to training sequence; And
According to described training sequence, current picture and next picture are carried out to switching images.
2. method according to claim 1, is characterized in that, the color value that all pixels of the first training plan and the second training plan are set comprises:
The color value of all pixels of the first training plan is set by following formula:
inputFrame1[0]=1,
inputFrame1[i]=i+1;
Wherein, inputFrame1[i] represent the color value of i pixel of described the first training plan, 0≤i≤width*height-1, width is the width of described the first training plan, height is the height of described the first training plan;
The color value of all pixels of the second training plan is set by following formula:
inputFrame2[0]=width*height+1,
inputFrame2[i]=width*height+i+1;
Wherein, inputFrame2[i] represent the color value of i pixel of described the second training plan, 0≤i≤width*height-1, width is the width of described the second training plan, height is the height of described the second training plan, wherein, the height of described the first training plan equals the height of described the second training plan, and the width of described the first training plan equals the height of described the second training plan.
3. method according to claim 1, is characterized in that, according to the transformation rule of each frame of switching images, the color value of all pixels described in described the first training plan and described the second training plan is generated to training sequence and comprises:
According to the transformation rule of each frame of described switching images, respectively the color value of described the first training plan and described the second training plan respective pixel is saved to queue;
Described queue is merged and generates described training sequence.
4. method according to claim 1, is characterized in that, according to described training sequence, current picture and next picture is carried out to switching images and comprises:
Read the data in described training sequence;
Determine that described data are in the position corresponding to pixel of described the first training plan or the second training plan;
In described current picture or described next picture, read the color value of the position of described correspondence, and by described color value output.
5. according to the method described in claim 1-4 any one, it is characterized in that,
In switching images operation, cancel anti-sawtooth and the bitmap filter effect of switching images;
Adopt 32 true color that described color value is set.
6. a mobile terminal, is characterized in that, comprising:
Module is set, and for the color value of all pixels of the first training plan and the second training plan is set, wherein, described color value is different between two;
Generation module, for generating training sequence according to the transformation rule of each frame of switching images by the color value of all pixels described in described the first training plan and described the second training plan; And
Switching images module, for carrying out switching images according to described training sequence to current picture and next picture.
7. mobile terminal according to claim 6, is characterized in that, the described module that arranges comprises:
First arranges submodule, for the color value of all pixels of the first training plan is set by following formula:
inputFrame1[0]=1,inputFrame1[i]=i+1;
Wherein, inputFrame1[i] represent the color value of i pixel of described the first training plan, 0≤i≤width*height-1, width is the width of described the first training plan, height is the height of described the first training plan;
Second arranges submodule, for the color value of all pixels of the second training plan is set by following formula:
inputFrame2[0]=width*height+1,inputFrame2[i]=width*height+i+1;
Wherein, inputFrame2[i] represent the color value of i pixel of described the second training plan, 0≤i≤width*height-1, width is the width of described the second training plan, height is the height of described the second training plan, wherein, the height of described the first training plan equals the height of described the second training plan, and the width of described the first training plan equals the height of described the second training plan.
8. mobile terminal according to claim 6, is characterized in that, described generation module comprises:
Preserve submodule, for respectively the color value of described the first training plan and described the second training plan respective pixel being saved to queue according to the transformation rule of each frame of described switching images;
Merge submodule, for described queue is merged and generates described training sequence.
9. mobile terminal according to claim 6, is characterized in that, described switching images module comprises:
The first reading submodule, for reading the data of described training sequence;
Determine submodule, for determining that described data are in the position corresponding to pixel of described the first training plan or the second training plan;
The second reading submodule, for reading the color value of described correspondence position at described current picture or described next picture;
Output sub-module, for exporting described color value.
10. according to the mobile terminal described in claim 6-9 any one, it is characterized in that, also comprise:
Processing module, for cancelling anti-sawtooth and the bitmap filter effect of switching images in switching images operation.
CN201010267563.9A 2010-08-25 2010-08-25 Implementation method of switching images and mobile terminal Active CN101930367B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201010267563.9A CN101930367B (en) 2010-08-25 2010-08-25 Implementation method of switching images and mobile terminal
EP10856305.7A EP2595117A4 (en) 2010-08-25 2010-10-20 Method for enabling animation during screen switching and mobile terminal
US13/504,952 US8581924B2 (en) 2010-08-25 2010-10-20 Method and mobile terminal for enabling animation during screen-switching
PCT/CN2010/077916 WO2012024852A1 (en) 2010-08-25 2010-10-20 Method for enabling animation during screen switching and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010267563.9A CN101930367B (en) 2010-08-25 2010-08-25 Implementation method of switching images and mobile terminal

Publications (2)

Publication Number Publication Date
CN101930367A CN101930367A (en) 2010-12-29
CN101930367B true CN101930367B (en) 2014-04-30

Family

ID=43369563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010267563.9A Active CN101930367B (en) 2010-08-25 2010-08-25 Implementation method of switching images and mobile terminal

Country Status (4)

Country Link
US (1) US8581924B2 (en)
EP (1) EP2595117A4 (en)
CN (1) CN101930367B (en)
WO (1) WO2012024852A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019503A (en) * 2011-09-26 2013-04-03 宏碁股份有限公司 Dynamic screen lock unlocking method and electronic device applying same
CN102541441B (en) * 2011-11-18 2013-11-06 广东欧珀移动通信有限公司 Gradual change control method for transverse/vertical screen switch of handheld device
US10592064B2 (en) 2013-09-17 2020-03-17 Amazon Technologies, Inc. Approaches for three-dimensional object display used in content navigation
CN105814532A (en) * 2013-09-17 2016-07-27 亚马逊技术有限公司 Approaches for three-dimensional object display
CN106873863B (en) * 2015-12-09 2021-02-19 斑马智行网络(香港)有限公司 Method and device for setting interface switching animation
CN109582427B (en) * 2018-12-06 2022-03-11 深圳市优创亿科技有限公司 TFT screen display method of wearable device
CN111324407A (en) * 2020-01-23 2020-06-23 努比亚技术有限公司 Animation display method, terminal and computer readable storage medium
CN111935549B (en) * 2020-09-22 2022-06-28 北京百度网讯科技有限公司 Method and device for updating playing sequence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003087572A (en) * 2001-09-14 2003-03-20 Akuseru:Kk Method and device for compressing image, image compression program and image processor
US6549207B1 (en) * 2000-06-05 2003-04-15 Kenzo Matsumoto Method and apparatus for dissolving image on display screen
CN1681000A (en) * 2004-04-05 2005-10-12 精工爱普生株式会社 Dynamic cross fading method and apparatus
CN101441773A (en) * 2008-11-11 2009-05-27 宇龙计算机通信科技(深圳)有限公司 Cartoon implementing method, system and mobile terminal
CN101789133A (en) * 2010-01-27 2010-07-28 深圳市五巨科技有限公司 Continuous animation effect realization method and device for mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100514992C (en) * 2007-03-30 2009-07-15 中国联合网络通信集团有限公司 Method for processing mobile-terminal frame carboon

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6549207B1 (en) * 2000-06-05 2003-04-15 Kenzo Matsumoto Method and apparatus for dissolving image on display screen
JP2003087572A (en) * 2001-09-14 2003-03-20 Akuseru:Kk Method and device for compressing image, image compression program and image processor
CN1681000A (en) * 2004-04-05 2005-10-12 精工爱普生株式会社 Dynamic cross fading method and apparatus
CN101441773A (en) * 2008-11-11 2009-05-27 宇龙计算机通信科技(深圳)有限公司 Cartoon implementing method, system and mobile terminal
CN101789133A (en) * 2010-01-27 2010-07-28 深圳市五巨科技有限公司 Continuous animation effect realization method and device for mobile terminal

Also Published As

Publication number Publication date
US20120212503A1 (en) 2012-08-23
WO2012024852A1 (en) 2012-03-01
EP2595117A1 (en) 2013-05-22
CN101930367A (en) 2010-12-29
EP2595117A4 (en) 2015-02-18
US8581924B2 (en) 2013-11-12

Similar Documents

Publication Publication Date Title
CN101930367B (en) Implementation method of switching images and mobile terminal
CN111656407B (en) Fusing, texturing and rendering views of a dynamic three-dimensional model
JP4214976B2 (en) Pseudo-stereoscopic image creation apparatus, pseudo-stereoscopic image creation method, and pseudo-stereoscopic image display system
US7262767B2 (en) Pseudo 3D image creation device, pseudo 3D image creation method, and pseudo 3D image display system
US7982733B2 (en) Rendering 3D video images on a stereo-enabled display
US6654020B2 (en) Method of rendering motion blur image and apparatus therefor
US8717390B2 (en) Art-directable retargeting for streaming video
CN104899563A (en) Two-dimensional face key feature point positioning method and system
CN106204567A (en) A kind of natural background video matting method
CN103051915B (en) Manufacture method and manufacture device for interactive three-dimensional video key frame
US8373802B1 (en) Art-directable retargeting for streaming video
CN111161392B (en) Video generation method and device and computer system
CN105912234A (en) Virtual scene interaction method and device
CN102819855B (en) The generation method of two dimensional image and device
CN104270624B (en) A kind of subregional 3D video mapping method
US9495793B2 (en) Method and device for generating an image view for 3D display
KR102166426B1 (en) Rendering system and rendering method thereof
JP4214527B2 (en) Pseudo stereoscopic image generation apparatus, pseudo stereoscopic image generation program, and pseudo stereoscopic image display system
US20120223939A1 (en) Rendering strategy for monoscopic, stereoscopic and multi-view computer generated imagery, system using the same and recording medium for the same
CN106447761A (en) Shadow rendering method
EP4150560B1 (en) Single image 3d photography with soft-layering and depth-aware inpainting
US8760466B1 (en) Coherent noise for non-photorealistic rendering
JP4214528B2 (en) Pseudo stereoscopic image generation apparatus, pseudo stereoscopic image generation program, and pseudo stereoscopic image display system
US9330434B1 (en) Art-directable retargeting for streaming video
CN103260042B (en) Stereo image synthesis method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant