Embodiment one
Fig. 1 shows the flow process of interface of mobile terminal slip display packing provided in an embodiment of the present invention, and details are as follows:
In step s101, the sliding speed of detection display screen current interface;
Described sliding speed refers to the instantaneous sliding speed of display screen current interface.The cunning of display screen current interface is detected
After dynamic speed, store described sliding speed.Described display screen includes but is not limited to the terminal such as mobile phone, panel computer, computer and sets
Display screen in standby.
In step s102, judge whether the sliding speed at described interface is more than speed preset value;
Described speed preset value is pre-configured with.Different users is different to twinkling impression, and user can be according to oneself
Vision need arrange speed preset value.
Described Surface active component speed and speed preset value are compared analysis, if comparative analysiss result is described interface
Sliding speed is more than speed preset value, then execution step s103, otherwise, return to step s101, continues detection display screen interface
Sliding speed.
As one of present invention enforcement example, when being pre-configured with speed preset value, provide three kinds of speed preset values for
Family is selected, and three kinds of speed preset values are respectively speed preset value 100m/s, 200m/s, 300m/s.User selects speed pre-
If value is configured to 200m/s, when the sliding speed at described interface is more than speed preset value 200m/s, execution step s103.
In step s103, update the pixel color of display screen current interface;
Described display screen current interface is the display screen current interface of indication in step s101.
The pixel color updating display screen current interface includes updating the background pixel color of display screen current interface and shows
The pixel color of display screen current interface displayed content is so that update the pixel face of display screen current interface displayed content later
, close to the background pixel color of display screen current interface, the content shown by current interface on display screen is by with the picture after updating for color
Plain color is streaked.And speed is higher, the pixel color of display screen current interface displayed content works as prezone closer to display screen
The background pixel color in face.
In embodiments of the present invention, by detecting the sliding speed of display screen current interface, judge that described sliding speed is
No more than speed preset value, if judged result be more than when, update display screen current interface pixel color so that update after
The pixel color of display screen current interface displayed content is close to the background pixel color of display screen current interface.Work as in display screen
During front interface high-speed slide, the content shown by current interface on display screen will be streaked with the pixel color after updating.And speed
Degree is higher, the pixel color of display screen current interface displayed content closer to the background pixel color of display screen current interface,
Thus solve display screen interface slide too fast and produce rolling eye problem.
Fig. 2 show the present embodiment provide interface of mobile terminal slip display packing step s103 implement stream
Journey, as shown in Fig. 2 step s103 in Fig. 1 embodiment particularly as follows:
In step s201, obtain pixel color value x of background of described display screen current interface and current interface is shown
Show pixel color value y of content;
Pixel color value x of background of described display screen current interface and pixel color y of current interface displayed content
Value is the red r of Essential colour, green g, the pixel color value of blue b.The red r of three kinds of Essential colour, green g, blue b co- controlling each picture of display screen
The color of element.
In step s202, according to described background pixel color value x and content pixel color value y, recalculate content picture
Plain color value z;
Similarly, content pixel color value z shown by described calculated display screen current interface is with regard to three kinds
The red r of Essential colour, green g, the pixel color value of blue b.The described formula that recalculates is:
z=k×x+(1-k)×y,1≥k>0.8;
K represents the color-weighted value of background pixel, and k is bigger, represents that the pixel color of background is deeper, k is less, represents background
Pixel color is more shallow, and during k=1, background pixel color is former background pixel color.
With display screen current interface sliding speed from decreasing below speed preset value more than speed preset value, described
Weighted value k is gradually decreased as 0, and display screen presses the pixel color display interface of script.Described be gradually decreased as 0 mode can be
According to linear or nonlinear function mode.
In step s203, according to described background pixel color value y and recalculate content pixel color value z obtaining,
Update the pixel color of display screen current interface.
When display screen current interface high-speed slide, display screen is shown that the background pixel color at interface and recalculates
The content pixel color that obtains so that display screen current interface displayed content pixel color close to current interface background
Pixel color, the content shown by display screen current interface is presented in the way of blurring, thus it is current to complete renewal display screen
The pixel color at interface.Further, with the decline of display screen current interface sliding speed, when described sliding speed is from more than speed
When degree preset value decreases below speed preset value, described weighted value k is gradually decreased as 0, and display screen gradually recovers the boundary of script
Face pixel color, the interface of display script.
In embodiments of the present invention, when display screen current interface high-speed slide, display screen is shown that the background at interface
Pixel color and recalculate the content pixel color obtaining so that the pixel color of display screen current interface displayed content connects
It is bordering on the background pixel color of display screen current interface, the content shown by current interface on display screen is by with the pixel after updating
Color is streaked.And speed is higher, the pixel color of display screen current interface displayed content is closer to display screen current interface
Background pixel color, thus complete update current interface pixel color.
Fig. 3 shows the structure of the mobile terminal slip display device that the present embodiment provides.This device may be located at mobile phone,
In the terminal units such as panel computer, computer, the interface of mobile terminal for running described in Fig. 1 and Fig. 2 embodiment of the present invention is slided
Dynamic display packing.For convenience of description, illustrate only part related to the present embodiment.
With reference to Fig. 3, this device includes:
Speed detection unit 31, the sliding speed of detection display screen current interface;
Speed judgment unit 32, judges whether the sliding speed at described interface is more than speed preset value;
When the sliding speed judging described interface is less than or equal to speed preset value, continue the cunning of detection display screen interface
Dynamic speed.
Pixel color updating block 33, when the sliding speed judging described interface is more than speed preset value, updates display
The pixel color of screen current interface.
Further, described pixel color updating block 33 includes:
Pixel color acquisition module 331, obtains background pixel color value x and the current interface of described display screen current interface
Pixel color value y of displayed content;
Pixel color computing module 332, according to described background pixel color value x and described content pixel color value y, again
Calculate pixel color value z of the content of current interface;
Update module 333, according to described background pixel color value y and recalculate content pixel color value z obtaining more
The pixel color of new display screen current interface.
Wherein, x, y and z be with regard to the red r of three kinds of Essential colour, green g, blue b pixel color value.The red r of three kinds of Essential colour, green g,
The blue b co- controlling color of each pixel of display screen.X represents the background pixel color value x=(r of display screen current interfacex,gx,
bx), y represents the pixel color value y=(r of display screen current interface displayed contenty,gy,by), z represents that sliding speed is more than speed
During degree preset value, display screen shows the pixel color value of the content of current interface, and k represents background pixel color weighted value, and k is bigger, table
Show that the pixel color of background is deeper, k is less, represent that the pixel color of background is more shallow.
With display screen current interface sliding speed when decreasing below speed preset value more than speed preset value, institute
State weighted value k and be gradually decreased as 0, the normal display interface of display screen.The mode that described weighted value k is gradually decreased as 0 can be by
According to linear or nonlinear function mode.
As an enforcement example of the present invention, user can be pre-configured with speed according to the needs of personal visual perception
Preset value.
Speed preset value dispensing unit 34, configuration speed preset value.
In embodiments of the present invention, by detecting the sliding speed of display screen current interface, judge that described sliding speed is
No more than speed preset value, if judged result be more than when, update display screen current interface pixel color so that update after
The pixel color of display screen current interface displayed content is close to the background pixel color of display screen current interface.Work as in display screen
During front interface high-speed slide, display screen current interface will be streaked with updating later pixel color, thus solve prior art by
In display screen interface slide too fast and produce rolling eye problem.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention.For example, unit
Divided according to function logic, but be not limited to above-mentioned division, as long as being capable of corresponding function;Separately
Outward, the specific name of each functional unit, also only to facilitate mutual distinguish, is not limited to protection scope of the present invention.Again
For example, the computing formula recalculating display screen current interface displayed content pixel color is not limited to described computing formula, root
According to concrete condition, change computing formula or increase, reduce computing formula and calculate standard.Again for example, for described speed
Preset value, including but not limited to described three kinds of speed preset values, numerical value can be changed as the case may be.
For a person skilled in the art, the present invention can have various modifications and variations.All spirit in the present invention
Within principle, any modification, equivalent substitution and improvement made etc., should be included within scope of the presently claimed invention.