Specific embodiment
Picture switching method, device and the user terminal that the embodiment of the present invention is provided can be applied to as shown in Figure 1
In applied environment.As shown in figure 1, user terminal 100, server 200 are located in wireless network or cable network 300, by this
Wireless network or cable network 300, user terminal 100 carry out data interaction with server 200.
In the embodiment of the present invention, user terminal 100 be preferably mobile terminal device, for example can include smart mobile phone,
Panel computer, E-book reader, pocket computer on knee, vehicle-mounted computer, Wearable user terminal etc..
Fig. 2 shows a kind of structured flowchart of the user terminal 100 that can be applied in the embodiment of the present invention.As shown in Fig. 2
User terminal 100 includes memory 102, storage control 104, one or more (one is only shown in figure) processors 106, outer
If interface 108, radio-frequency module 110, audio-frequency module 112, Touch Screen 114 etc..These components are total by one or more communication
Line/holding wire 116 is mutually communicated.
Memory 102 can be used for store software program and module, such as the picture switching method in the embodiment of the present invention with
And the corresponding programmed instruction/module of device, processor 106 is by running software program and mould of the storage in memory 102
Block, so that various function application and data processing are performed, such as picture switching method provided in an embodiment of the present invention.
Memory 102 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Property storage device, flash memory or other non-volatile solid state memories.Processor 106 and other possible components are to storage
The access of device 102 can be carried out under the control of storage control 104.
Various input/output devices are coupled to processor 106 and memory 102 by Peripheral Interface 108.In some implementations
In example, Peripheral Interface 108, processor 106 and storage control 104 can be realized in one single chip.In some other reality
In example, they can be realized by independent chip respectively.
Radio-frequency module 110 is used to receive and send electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, so that with
Communication network or other equipment are communicated.
Audio-frequency module 112 provides a user with COBBAIF, and it may include one or more microphones, one or more raises
Sound device and voicefrequency circuit.
Touch Screen 114 provides an output and inputting interface simultaneously between user terminal 100 and user.Specifically,
Touch Screen 114 shows video frequency output to user, and the content of these video frequency outputs may include word, figure, video and its any
Combination.
It is appreciated that the structure shown in Fig. 2 be only illustrate, user terminal 100 may also include it is more more than shown in Fig. 2 or
Less component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or its
Combination is realized.
In the embodiment of the present invention, client is installed in user terminal 100, the client can be that browser can also
It is third-party application software, holds corresponding with server (Server), provides the user service, such as e-book reading service,
For playing local document or e-book.
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
First embodiment
As shown in figure 3, the structured flowchart of the picture switching device 300 provided for first embodiment of the invention, the picture
Switching device 300 includes:Data capture unit 310, data processing unit 320, picture display unit 330.
Data capture unit 310 is used in response to the picture switching command for current display picture, obtain source picture with
And the conversion parameter between the Target Photo and the source picture of the picture switching command sensing.
Picture switching command can be triggered by user during using user terminal.For example, user is using user
When terminal carries out document browsing or carries out e-novel reading, the multiple picture pair to be selected that can be provided according to user terminal
The thumbnail answered selects the picture required for oneself, allows user picture switching command is triggered by clicking on thumbnail,
To switch the background picture at the currently displayed interface of user terminal, that is, current display picture.In the process, user
Selected picture is Target Photo.
Additionally, picture switching command can also be triggered by user terminal according to switching condition set in advance.Can set
User terminal triggers picture switching command with the default time cycle.The outside that user terminal is monitored according to it can also be set
Condition carries out picture switching.Wherein, external condition can be including light condition, audio conditions etc..User terminal root can be set
Picture switching is carried out according to its outside light conditions for monitoring, can be in preferably identifying user terminal shows in order to user
Hold.For example, when user terminal monitors that extraneous light intensity exceedes default intensity threshold, picture switching command is triggered, with
It is easy to switch to the background picture of current display interface the picture of thin shade, when user terminal monitors that extraneous light intensity is small
When default intensity threshold, picture switching command is triggered again, in order to the background picture of current display interface is switched to
Dark-toned picture.In the process, user terminal is Target Photo according to the selected picture of switching condition.
When picture switching command is triggered, the response picture switching command of data capture unit 310, picture switching command meeting
Carry Target Photo information, that is, the Target Photo pointed by picture switching command information.
As a kind of implementation method, the identification information of Target Photo is carried in picture switching command, the identification information is used
In unique identification's Target Photo.When the conversion parameter of source picture and other pictures is preset, can be each by other pictures
From identification information it is corresponding with the conversion parameter each with source picture.
Then in picture handoff procedure, data capture unit 310 can first extract the target carried in picture switching command
The identification information of picture, then obtain the conversion parameter corresponding with the identification information.
It should be noted that the conversion parameter between the Target Photo and the source picture, can be previously according to described
The color value of the pixel of Target Photo sets with the color value of the pixel of the source picture and draws.In one of the invention tool
In body implementation method, it is possible to use picture switching software is set previously according to the color value of source picture and the pixel of Target Photo
Conversion parameter debugging is obtained.The conversion parameter, the tool of the embodiment of the present invention can also be obtained using other prior art means
Body implementation is not limited thereto.Source picture and conversion parameter can be directly stored in user terminal, it is also possible in advance
It is stored in service end.Or a part is stored in user terminal, another part is stored in service end.As a kind of implementation method,
The data capture unit 310 can simultaneously include local data acquiring unit 311 and Remote data service unit 312, may be used also
To only include in local data acquiring unit 311 and Remote data service unit 312.
Local data acquiring unit 311, local source picture and mark with the Target Photo are stored in for obtaining
The corresponding conversion parameter of knowledge information, and will be loaded into internal memory from the local source picture for obtaining.Remote data service unit 312,
For sending picture resource request instruction to service end, the picture resource request instruction carries the mark of the Target Photo
Information;Receive the source picture that the service end returns in response to the picture resource request instruction and with the target figure
Conversion parameter corresponding to the identification information of piece, then the source picture that will be received is loaded into internal memory.
Data processing unit 320, for according to the source picture and the conversion parameter, obtaining the Target Photo.
Used as a kind of implementation method, data processing unit 320 can include color value computing unit 321, for according to source
Conversion parameter between the color value of the pixel of picture, and Target Photo and source picture obtains the pixel of Target Photo
Color value.
In the present embodiment, as shown in figure 4, the conversion parameter can be the color conversion matrix between picture, accordingly
, for the ease of calculating, the color value of pixel can also be showed in vector form.For example, Target Photo and source figure
Color conversion matrix between piece can be:
Wherein, in the color conversion matrix, the first row represents red component, and the second row represents green component, the third line
Blue component is represented, fourth line represents transparency component.Element value wherein in the color conversion matrix is between 0 to 255.
One color value of pixel of source picture can be:
Wherein, R represents red value, and G represents green value, and B represents blue valve, and A represents transparence value.
After above-mentioned color conversion matrix and vector are done into data matrix multiplying, new vector can be obtained:
It is appreciated that R1=a1*R+a2*G+a3*B+a4*A
G1=b1*R+b2*G+b3*B+b4*A
B1=c1*R+c2*G+c3*B+c4*A
A1=d1*R+d2*G+d3*B+d4*A
And the R1 in new vector is then the red value of the pixel in Target Photo, G1 is then the pixel in Target Photo
The green value of point, B1 is then the blue valve of the pixel in Target Photo, and A1 is then the transparency of the pixel in Target Photo
Value.By similar method, you can be calculated the color value of each pixel in Target Photo.
After the color value of pixel of Target Photo is obtained, then the picture included by data processing unit 320 is drawn
Unit 322, the color value of the pixel based on the Target Photo is drawn on the source picture, obtains the target
Picture.
Picture display unit 330, for currently displaying picture to be switched into the Target Photo.
It should be noted that in order to avoid unnecessary memory source is consumed, data capture unit 310 can extracted
After the identification information of the Target Photo carried in picture switching command, the identification information and the identification information of source picture that will first obtain
Compare, if the identification information for obtaining is identical with the identification information of source picture, it is possible to determine that pointed by picture switching command
Target Photo be source picture in itself, then currently displaying picture is directly switched into the source picture, then the number
The step of correspondence then need not be again performed according to processing unit 320.
It should be noted that each unit in the present embodiment can be by software code realization, now, above-mentioned each unit
Can be stored in the memory 102 of user terminal 100.Above each unit equally can be by hardware such as IC chip reality
It is existing.
The picture switching device that first embodiment of the invention is provided, in the handoff procedure of picture, by obtaining source picture
And the conversion parameter between the Target Photo and the source picture of the picture switching command sensing, further according to the source picture
And the conversion parameter, the mode of the Target Photo of display needed for obtaining so that can only add in the handoff procedure of picture
Load source picture in internal memory, and without the other pictures of loading, reduce in EMS memory occupation in picture handoff procedure.
Additionally, because only needing to be capable of achieving picture by source picture and conversion parameter is switched, then will be including this reality
Apply example offer picture switching device application program carry out packing encapsulation when, can only source picture is packaged in installation package file
In, it is not necessary to other to be switched pictures are added, the size of installation package file is effectively reduced.
Second embodiment
As shown in figure 4, the structured flowchart of the picture switching device 400 provided for second embodiment of the invention, the picture
Switching device 400 includes:The display of data capture unit 410, Data Comparison unit 420, data processing unit 430 and picture is single
Unit 440;
Data capture unit 410, in response to the picture switching command for current display picture, obtain source picture with
And the conversion parameter between the Target Photo and the source picture of the picture switching command sensing;
Comparing unit 420, for will enter with the last conversion parameter for obtaining when time conversion parameter of acquisition
Row contrast,
Data processing unit 430, for when when the conversion parameter for time obtaining with the last conversion parameter for obtaining not
When identical, according to the source picture and the conversion parameter, the Target Photo is obtained.
When the conversion parameter of secondary acquisition is identical with the last conversion parameter for obtaining, then picture switching flow knot
Beam.
For example, when conversion parameter is for color conversion matrix, it is necessary to will be when time color conversion matrix of acquisition and last time
The element value of the color conversion matrix correspondence position of acquisition is contrasted one by one, when the element value all same of correspondence position, is then judged
When the color conversion matrix of secondary acquisition is identical with the last color conversion matrix for obtaining.
Picture display unit 440, for currently displaying picture to be switched into the Target Photo.
It should be noted that each unit in the present embodiment can be by software code realization, now, above-mentioned each unit
Can be stored in the memory 102 of user terminal 100.Above each unit equally can be by hardware such as IC chip reality
It is existing.
The picture switching device that second embodiment of the invention is provided, not only causes only add in the handoff procedure of picture
Load source picture in internal memory, and without the other pictures of loading, reduce in EMS memory occupation in picture handoff procedure, it is also further
The data that the carrying out in picture handoff procedure repeat that avoid calculate.
3rd embodiment
As shown in figure 5, a kind of picture switching method that third embodiment of the invention is provided, the method describes user's end
The handling process at end, methods described, including:
Step S510:In response to the picture switching command for current display picture, source picture and the picture are obtained
Conversion parameter between the Target Photo and the source picture of switching command sensing;It is appreciated that can be by first embodiment
In data capture unit 310 perform step S510.
Used as a kind of implementation method, the picture switching command carries the identification information of the Target Photo, then may be used also
To obtain source picture and the conversion parameter corresponding with the identification information of the Target Photo by data capture unit 310.
It should be noted that the conversion parameter between the Target Photo and the source picture, previously according to the target
The color value of the pixel of picture is calculated with the color value of the pixel of the source picture.Source picture and conversion parameter can
To be directly stored in user terminal, it is also possible to be pre-stored within service end, or a part is stored in user terminal, another portion
Divide and be stored in service end.
Then during source picture and the conversion parameter corresponding with the identification information of the Target Photo is obtained, can be with
Obtained by local data acquiring unit 311 and be pre-stored within local source picture and the identification information with the Target Photo
Corresponding conversion parameter.
Picture resource request instruction, the picture money can also be sent to service end by Remote data service unit 312
Source request instruction carries the identification information of the Target Photo;The service is received by teledata receiving unit 313 again
Hold the source picture and corresponding with the identification information of the Target Photo returned in response to the picture resource request instruction
Conversion parameter.
Step S520:According to the source picture and the conversion parameter, the Target Photo is obtained.
It is appreciated that step S520 can be performed by the data processing unit 320 in the first implementation.
As a kind of implementation method, according to the source picture and the conversion parameter, the Target Photo is obtained
During, can be joined according to the color value of the pixel of the source picture and the conversion by color value computing unit 321
Number, obtains the color value of the pixel of the Target Photo;
The color value of the pixel of the Target Photo is based on by picture drawing unit 322 again, on the source picture
Drawn, obtained the Target Photo.
Step S530:Currently displaying picture is switched into the Target Photo.
It is appreciated that step S530 can be performed by the data processing unit 330 in the first implementation.
Fourth embodiment
As shown in fig. 6, a kind of picture switching method that fourth embodiment of the invention is provided, the method describes user's end
The handling process at end, methods described, including:
Step S610:In response to the picture switching command for current display picture, source picture and the picture are obtained
Conversion parameter between the Target Photo and the source picture of switching command sensing;
Step S620:To be contrasted with the last conversion parameter for obtaining when time conversion parameter of acquisition;
When the conversion parameter of secondary acquisition is differed with the last conversion parameter for obtaining, then step is performed
S630:According to the source picture and the conversion parameter, the Target Photo is obtained;Otherwise, picture switching flow is terminated.
Step S640:Currently displaying picture is switched into the Target Photo.
It is appreciated that step S610 can be performed by the data capture unit 410 in second embodiment, step S620 can be with
Performed by comparing unit 430, step S630 can be performed by data processing unit 420, and step S640 can be shown by picture
Show that unit 440 is performed.
In sum, picture switching method provided in an embodiment of the present invention, device and user terminal, in the switching of picture
During, by obtaining the conversion between source picture and the Target Photo and the source picture of picture switching command sensing
Parameter, further according to the source picture and the conversion parameter, the mode of the Target Photo of display needed for obtaining so that in picture
Handoff procedure in can only load source picture in internal memory, and without the other pictures of loading, reduce interior picture handoff procedure
In EMS memory occupation, accelerate processing speed.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the method for foregoing description,
The specific work process of user terminal embodiment, may be referred to the corresponding process in aforementioned means embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code
Part a, part for the module, program segment or code is used to realize holding for the logic function for specifying comprising one or more
Row instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be being different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of the square frame in individual square frame and block diagram and/or flow chart, can use the function or the special base of action for performing regulation
Realized in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server 200, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention
Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), deposit at random
Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that herein, such as first and second or the like relational terms are used merely to an entity or behaviour
Make with another entity or operation make a distinction, and not necessarily require or imply these entities or operate between exist it is any this
Plant actual relation or order.And, term " including ", "comprising" or its any other variant be intended to nonexcludability
Include so that process, method, article or equipment including a series of key elements not only include those key elements, but also
Including other key elements being not expressly set out, or also include for this process, method, article or equipment it is intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, article or the equipment of element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing
It is further defined and is explained.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
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 deposited between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element 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.