CN109729423A - A kind of desktop wallpaper setting method and device - Google Patents
A kind of desktop wallpaper setting method and device Download PDFInfo
- Publication number
- CN109729423A CN109729423A CN201811607970.2A CN201811607970A CN109729423A CN 109729423 A CN109729423 A CN 109729423A CN 201811607970 A CN201811607970 A CN 201811607970A CN 109729423 A CN109729423 A CN 109729423A
- Authority
- CN
- China
- Prior art keywords
- information
- target
- ratio
- video information
- 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.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application provides a kind of desktop wallpaper setting method and device, it include: the wallpaper setting request received from present terminal for original video information, wherein, the unique identification of original video information and the terminal resolution ratio of present terminal are carried in wallpaper setting request;Determine pre-stored multiple alternative videos information with different target size corresponding with unique identification;In multiple alternative videos information, the target video information having with the matched target size of terminal resolution ratio is determined, and target video information is read from presetting database;The target video information read is sent to present terminal.By carrying out various dimensions cutting to original video information in advance, the video information as wallpaper being consistent for different present terminal matching sizes, to improve the availability of video resource, the problem of sightless content consumes device resource outside screen is effectively prevented, while targetedly further the user experience is improved for video information matching.
Description
Technical field
This application involves field of video processing more particularly to a kind of desktop wallpaper setting method and devices.
Background technique
Currently, with the fast development of Internet technology, net cast and short-sighted frequency are shared by total involvement, by user
Favorite short-sighted frequency is set as desktop dynamic wallpaper increasingly by the favor of user, sets video to the wallpaper of present terminal
When being shown, only when the ratio of width to height for meeting the video to be used as wallpaper to show is identical as the ratio of width to height of present terminal screen
When, it could effectively be shown using the favorite video of user as the wallpaper of present terminal.
However, on the one hand, since there are many source of source video, the ratio of width to height is different;On the other hand, user is currently whole
The ratio of width to height at end is also not quite similar;Thus it will appear when the present terminal of different the ratio of width to height gets the video of same the ratio of width to height
When being shown as wallpaper, only in the ratio of width to height for meeting present terminal and the accessed video aspect ratio phase as wallpaper
Meanwhile it could effectively be shown on present terminal;If the ratio of width to height of present terminal is used as wallpaper with accessed
When the ratio of width to height difference of the video of display, it is possible that display is not complete and causes occur the case where black surround around video, or
There is the case where as having partial content invisible to user in the video of wallpaper, device resource being consumed outside screen.
It follows that by present terminal the ratio of width to height be used as wallpaper displaying video aspect ratio difference when, general
The video that user likes can not effectively be shown as wallpaper.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of desktop wallpaper setting method and device, by advance to original video
Information carries out various dimensions cutting, determines and store the alternative videos information different for multiple sizes of the original video information,
In this way after the wallpaper setting request for receiving a certain present terminal, the automatic tool chosen with the resolution match of the present terminal
There is the target video information of target size, to realize that the video information for obtaining multiple and different sizes is different to be adapted to screen size
Present terminal, the screen size regardless of terminal used in the whole network user can be avoided using video information as dynamic wall
When paper is shown, the problem of sightless content consumes device resource outside screen, to improve the availability of video resource, together
When targetedly video information matching further the user experience is improved.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
The embodiment of the present application provides a kind of desktop wallpaper setting method, comprising:
It receives the wallpaper from present terminal for original video information and request is set, wherein the wallpaper setting is asked
The unique identification of the original video information and the terminal resolution ratio of the present terminal are carried in asking;
Determine pre-stored multiple alternative videos letters with different target size corresponding with the unique identification
Breath;
In multiple alternative videos information, the target having with the matched target size of the terminal resolution ratio is determined
Video information, and the target video information is read from presetting database;
The target video information read is sent to the present terminal, so that the present terminal is according to described
The target video information is set desktop wallpaper by terminal resolution ratio.
The embodiment of the present application provides a kind of desktop wallpaper setting device, comprising:
Request receiving module is arranged in wallpaper, for receiving the wallpaper setting from present terminal for original video information
Request, wherein the unique identification that the original video information is carried in request and the present terminal is arranged in the wallpaper
Terminal resolution ratio;
Alternative videos information determination module pre-stored corresponding with the unique identification multiple has for determining
The alternative videos information of different target size;
Target video information determining module, in multiple alternative videos information, determining to have and the terminal
The target video information of the target size of resolution match, and the target video information is read from presetting database;
Target video information sending module, for the target video information read to be sent to the current end
End, so that the present terminal sets desktop wallpaper for the target video information according to the terminal resolution ratio.
The embodiment of the present application provides a kind of desktop wallpaper setting equipment, comprising: processor;And
It is arranged to the memory of storage computer executable instructions, the computer executable instructions make when executed
The processor realizes following below scheme:
It receives the wallpaper from present terminal for original video information and request is set, wherein the wallpaper setting is asked
The unique identification of the original video information and the terminal resolution ratio of the present terminal are carried in asking;
Determine pre-stored multiple alternative videos letters with different target size corresponding with the unique identification
Breath;
In multiple alternative videos information, the target having with the matched target size of the terminal resolution ratio is determined
Video information, and the target video information is read from presetting database;
The target video information read is sent to the present terminal, so that the present terminal is according to described
The target video information is set desktop wallpaper by terminal resolution ratio.
The embodiment of the present application provides a kind of storage medium, and for storing computer executable instructions, the computer can
It executes instruction and realizes following below scheme when executed:
It receives the wallpaper from present terminal for original video information and request is set, wherein the wallpaper setting is asked
The unique identification of the original video information and the terminal resolution ratio of the present terminal are carried in asking;
Determine pre-stored multiple alternative videos letters with different target size corresponding with the unique identification
Breath;
In multiple alternative videos information, the target having with the matched target size of the terminal resolution ratio is determined
Video information, and the target video information is read from presetting database;
The target video information read is sent to the present terminal, so that the present terminal is according to described
The target video information is set desktop wallpaper by terminal resolution ratio.
One of the embodiment of the present application desktop wallpaper setting method and device are received from present terminal for original
Request is arranged in the wallpaper of video information, wherein the uniqueness of the original video information is carried in the wallpaper setting request
The terminal resolution ratio of mark and the present terminal;It determines pre-stored corresponding with the unique identification multiple with not
With the alternative videos information of target size;In multiple alternative videos information, determining has and the terminal resolution ratio
The target video information for the target size matched, and the target video information is read from presetting database;The institute that will be read
It states target video information and is sent to the present terminal, so that the present terminal is according to the terminal resolution ratio by the target
Video information is set as desktop wallpaper.By carrying out various dimensions cutting to original video information in advance, determines and store to be directed to and be somebody's turn to do
The different alternative videos information of multiple sizes of original video information is set in the wallpaper for receiving a certain user's present terminal in this way
After setting request, the automatic target video information with target size chosen with the resolution match of the present terminal, to realize
The video information of multiple and different sizes is obtained to be adapted to the different present terminal of screen size, no matter terminal used in the whole network user
Screen size how, can be avoided using video information as dynamic wallpaper show when, sightless content disappears outside screen
The problem of consuming device resource, to improve the availability of video resource, while targetedly video information matching further mentions
User experience is risen.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property
Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is that systematic difference schematic diagram of a scenario is arranged in desktop wallpaper provided by the embodiments of the present application;
Fig. 2 is the first flow diagram of desktop wallpaper setting method provided by the embodiments of the present application;
Fig. 3 is second of flow diagram of desktop wallpaper setting method provided by the embodiments of the present application;
Fig. 4 is the third flow diagram of desktop wallpaper setting method provided by the embodiments of the present application;
Fig. 5 is the 4th kind of flow diagram of desktop wallpaper setting method provided by the embodiments of the present application;
Fig. 6 is the 5th kind of flow diagram of desktop wallpaper setting method provided by the embodiments of the present application;
Fig. 7 is the first module composition schematic diagram that device is arranged in desktop wallpaper provided by the embodiments of the present application;
Fig. 8 is second of module composition schematic diagram that device is arranged in desktop wallpaper provided by the embodiments of the present application;
Fig. 9 is the structural schematic diagram that equipment is arranged in desktop wallpaper provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without creative efforts
Range.
The embodiment of the present application provides a kind of desktop wallpaper setting method and device, by advance to original video information into
Row various dimensions are cut, and are determined and are stored the alternative videos information different for multiple sizes of the original video information, exist in this way
After the wallpaper setting request for receiving a certain user's present terminal, automatic selection has with the resolution match of the present terminal
The target video information of target size obtains the video informations of multiple and different sizes screen size is different to work as to be adapted to realize
Preceding terminal, the screen size regardless of present terminal used in the whole network user can be avoided using video information as dynamic
When wallpaper is shown, the problem of sightless content consumes device resource outside screen, so that the availability of video resource is improved,
Targetedly further the user experience is improved for video information matching simultaneously.
Fig. 1 is that systematic difference schematic diagram of a scenario is arranged in the desktop wallpaper that this specification one or more embodiment provides,
As shown in Figure 1, the system includes: server, transmission terminal on present terminal and video, wherein the present terminal and video upload
Terminal may each be the mobile terminals such as smart phone, tablet computer, which can be for receiving transmission terminal on video
The original video information of biography simultaneously cuts the original video information, and request is arranged in the wallpaper for for present terminal
Return to the server of corresponding target video information, wherein the detailed process of desktop wallpaper setting are as follows:
(1) video uploads terminal to server and uploads the original video information with original dimension, transmission terminal on the video
It is also possible to initiate the present terminal of wallpaper setting request to server, for example, requesting transmission terminal on other to upload to server
Original video information as desktop wallpaper;
(2) server receives the original video information with original dimension that transmission terminal is sent on video, and original to this
Video information carries out preset cutting processing, obtains multiple alternative videos information with different target size;
(3) server stores obtained multiple alternative videos information with different target size to presetting database
In;
(4) present terminal sends the wallpaper setting request for original video information to server, wherein wallpaper setting
The unique identification of original video information and the terminal resolution ratio of present terminal are carried in request;
(5) server, which is received, is arranged request for the wallpaper of original video information from present terminal, and determination is stored in advance
Multiple alternative videos information with different target size corresponding with unique identification entrained by original video information;?
In multiple alternative videos information, determine that there is target video information with the matched target size of terminal resolution ratio, and from default
The target video information is read in database;
(6) target video information read is sent to present terminal by server, so that present terminal is according to terminal
Target video information is set desktop wallpaper by resolution ratio.
By carrying out various dimensions cutting to original video information in advance, the conduct being consistent for different present terminal matching sizes
The video information of wallpaper effectively prevents sightless content and consumes outside screen to improve the availability of video resource
The problem of device resource, while targetedly further the user experience is improved for video information matching.
Fig. 2 is the first flow diagram for the desktop wallpaper setting method that one embodiment of the application provides, such as Fig. 2 institute
Show, this method at least includes the following steps:
S201 receives the wallpaper from present terminal for original video information and request is arranged, wherein wallpaper setting is asked
The unique identification of original video information and the terminal resolution ratio of present terminal are carried in asking;
Specifically, the original video information can be the short-sighted frequency that the whole network user uploads in default shared platform, such as
It can be the short-sighted frequency that the whole network user uploads on the platforms such as trill, quick worker, volcano;As the user using present terminal, from upper
It states and chooses a certain short-sighted frequency in default shared platform, and it is desirable that when setting video desktop wallpaper for the short-sighted frequency, present terminal
It receives user and chooses trigger action for the wallpaper of the short-sighted frequency, and trigger action is chosen based on the wallpaper and generates wallpaper setting
Request;And the wallpaper setting request of generation is sent to background server end by present terminal, background server, which receives to come from, works as
Request is arranged for the wallpaper of the short-sighted frequency in preceding terminal.
Wherein, above-mentioned present terminal is chosen based on the wallpaper in the wallpaper setting request that trigger action generates, and carries this
The hope that user chooses is as the unique identification of the short-sighted frequency of wallpaper and the resolution information of present terminal.
S202 determines pre-stored multiple alternative videos letters with different target size corresponding with unique identification
Breath, wherein the target size is the ratio of width to height dimension scale of current existing main flow terminal screen.
Specifically, carrying the short of unique identification for this in advance according to the short-sighted frequency as wallpaper that user chooses
Video, according to the short-sighted frequencies for carrying unique identification of multiple and different target sizes, alternately video is stored.Wherein
The ratio of width to height dimension scale in the alternative videos information of the target size, the ratio of width to height ruler with current existing main flow terminal screen
Very little ratio corresponds, that is, determines that pre-stored alternative videos information is the ratio of width to height with current all main flow terminal screens
Dimension scale is consistent, carries the short-sighted frequency of the different dimension scales of unique identification.
S203, in multiple alternative videos information, determining has and the target of the matched target size of terminal resolution ratio view
Frequency information, and target video information is read from presetting database;
Specifically, being determined when the wallpaper setting for the short-sighted frequency that server receives present terminal transmission is requested
The resolution information of the unique identification of the entrained short-sighted frequency and the present terminal in the solicited message, is asked according to this
The unique identification of the short-sighted frequency entrained in information and the resolution ratio of the present terminal are asked, present terminal is calculated
The ratio of width to height determines the view of the target size to match with the current terminal screen the ratio of width to height in multiple alternative videos information
Frequency information, and read out the video information from presetting database.
The target video information read is sent to present terminal, so that present terminal is according to terminal resolution ratio by S204
Desktop wallpaper is set by target video information.
Specifically, server by it is above-mentioned it is reading match with present terminal the ratio of width to height, carry unique identification
Short video information be sent to the present terminal, the video information which receives is shown that user passes through touching
It is set as desktop wallpaper button on hair present terminal, sets desktop wallpaper for the video being currently received.
In the embodiment of the present application, receives the wallpaper from present terminal for original video information and request is set, wherein
The unique identification of the original video information is carried in the wallpaper setting request and the terminal of the present terminal is differentiated
Rate;Determine pre-stored multiple alternative videos information with different target size corresponding with the unique identification;?
In multiple alternative videos information, the target video information having with the matched target size of the terminal resolution ratio is determined,
And the target video information is read from presetting database;The target video information read is sent to described current
Terminal, so that the present terminal sets desktop wallpaper for the target video information according to the terminal resolution ratio.Pass through
Various dimensions cutting is carried out to original video information in advance, determines and the multiple sizes stored for the original video information is different
Alternative videos information, it is automatic to choose and the current end in this way after the wallpaper setting request for receiving a certain user's present terminal
The target video information with target size of the resolution match at end, to realize that the video information for obtaining multiple and different sizes is come
Be adapted to the different present terminal of screen size, the screen size regardless of terminal used in the whole network user, can be avoided by
When video information is shown as dynamic wallpaper, the problem of sightless content consumes device resource outside screen, to improve
The availability of video resource, while targetedly further the user experience is improved for video information matching.
Wherein, need to obtain the various sizes of short-sighted frequency letter for carrying unique identification chosen for the user in advance
Breath, specifically, as shown in figure 3, request is arranged in the wallpaper that S201 is received from present terminal for original video information
Before, further includes:
S205 obtains the original video information with original dimension;
Specifically, server needs before receiving the wallpaper setting request for the short-sighted frequency sent to present terminal
Get the original dimension information for carrying the short-sighted frequency of the unique identification, wherein the original video information can be the whole network
User uploads to the short-sighted frequency in default shared platform by transmission terminal on video, such as can be the whole network user and upload to and tremble
Short-sighted frequency on the platforms such as sound, quick worker, volcano.
S206 carries out preset cutting processing to original video information, obtains multiple alternative views with different target size
Frequency information;
Specifically, the whole network user that server will acquire is uploaded in default shared platform by transmission terminal on video
Short-sighted frequency carries out more size cuttings, wherein more sizes cuttings are the short-sighted frequencies for the original dimension that will acquire, and are cut into and existing
The one-to-one video information of the ratio of width to height dimension scale for each main flow terminal screen having finally obtains multiple with different mesh
The alternative videos information of dimensioning.
S207 stores multiple alternative videos information with different target size into presetting database.
Specifically, in order to preferably manage the wallpaper for same original video information sent for distinct device terminal
Setting request stores the alternative videos information of the different target size after cutting out according to default processing into presetting database,
It is managed collectively.
Wherein, after getting with the original video information of original dimension, the original video that needs to get this into
Row cuts out processing, as shown in figure 4, above-mentioned S206 carries out preset cutting processing to original video information, obtains multiple with difference
The alternative videos information of target size, comprising:
S2061 determines multiple mainstream resolution ratio that the user terminal that the whole network user uses is related to;
Specifically, the resolution ratio of terminal screen is related with the size of screen, for example, the resolution of 5.2 inches of Huawei's honor 7
The resolution ratio for the Samsung S6 that the resolution ratio for the Meizu 4Pro that rate is 1920,5.5 inches of 1080x is 2560,5.1 inches of 1536x
Resolution ratio for 2560,3.5 inches of iphone4 of 1440x is 640x 960.
S2062 determines screen size information corresponding with mainstream resolution ratio, wherein screen size information includes: screen
Curtain the ratio of width to height;
When being shown due to the wallpaper for setting present terminal for video, only when satisfaction to be used as wallpaper to show
It, could be using the favorite video of user as the wall of present terminal when the ratio of width to height of video is identical as the ratio of width to height of present terminal screen
Paper is effectively shown, and the multiple mainstream resolution ratio being related to by determining the present terminal that the whole network user uses, root
The aspect ratio information for the present terminal screen that the whole network user uses is assured that out according to resolution ratio.Such as 5.0 inches Huawei
The resolution ratio of honor 6 is 1080x 1920, its screen width high ratio is 9:16;The resolution ratio of 5.5 inches of Meizu 4Pro is
1536x 2560, screen width high ratio 3:5;The resolution ratio of 5.1 inches of Samsung S6 be 1440x 2560, screen width high ratio 9:
16;The resolution ratio of 3.5 inches of iphone4 is 640x 960, screen width high ratio 2:3.
S2063 carries out size cutting to original video information according to original dimension and each screen width high ratio determined,
Obtain multiple alternative videos information with different target size respectively with each mainstream resolution match.
Specifically, server is uploaded in default shared platform according to the whole network user received by transmission terminal on video
Short-sighted frequency, calculate the height in the short-sighted frequency width in the horizontal direction and vertical direction, it is then, each according to what is determined
The aspect ratio information of main flow terminal screen carries out more sizes to the short video information and cuts out, and finally obtains and each main flow terminal
The alternative videos information that screen width high ratio matches, so that, which, which works as, receives the short-sighted for this of present terminal sending
When request is arranged in the wallpaper of frequency, the alternative videos information to match with the current terminal screen resolution is sent to the current end
End, facilitates user to use the alternative videos information received as desktop wallpaper.
Wherein, for server during cutting to the short-sighted frequency got, being directed to according to different present terminals should
Entrained screen resolution information, carries out more sizes to the short-sighted frequency and cuts out in the short-sighted wallpaper setting request sent that takes place frequently, should
The original dimension of short-sighted frequency includes: initial video the ratio of width to height;Above-mentioned S2063, it is wide according to original dimension and each screen determined
High ratio carries out size cutting to original video information, obtains having different target with the multiple of each mainstream resolution match respectively
The alternative videos information of size, comprising:
Step 1 determines the elemental height of original video information if initial video the ratio of width to height is greater than screen width high ratio
For the object height of alternative videos information, and determine that the target of alternative videos information is wide according to object height and screen width high ratio
Degree;And
Step 2 carries out cutting processing to the width of original video information, is had according to the target width determined
The alternative videos information of target size;
Specifically, when the initial video that a ratio of width to height is 9:16 is cut into the alternative videos that the ratio of width to height is 1:2, by
It is greater than the ratio of width to height of the alternative videos in the ratio of width to height of the initial video, then using the height of the initial video as the alternative videos
Height calculates the width of the alternative videos according to the ratio of width to height of 1:2, according to the crop position determined, cuts from initial video
Suitable alternative videos.
For example, when the short-sighted frequency that a resolution ratio is 1080x 1920 is cut into the alternative videos that the ratio of width to height is 1:2,
The ratio of width to height for first calculating the video show that the ratio of width to height for the short-sighted frequency that the resolution ratio is 1080x 1920 is 9:16;Since this is short
The ratio of width to height 9:16 of video is greater than the ratio of width to height 1:2 of alternative videos, then using the high 1920PX of the short-sighted frequency as the alternative videos
Object height, further according to the ratio of 1:2, the target width for calculating alternative videos is 960PX.
After the object height and target width of determining alternative videos, the specific Y axis coordinate for cutting position is Y=0, X-axis
Specific coordinate value is determined in cutting position that coordinate is determined according to Final Translation.Such as: if necessary to the alternative view
Frequency cuts out the alternative videos from the middle position of the short-sighted frequency, then the alternative videos upper left by the way of cutting out between two parties
The coordinate value at angle are as follows: X=(1080-960)/2;Y=0, it is wide according to the coordinate value in the short-sighted frequency upper left corner, and the target determined
Angle value is cut out the width of the short-sighted frequency, and the alternative videos information for being 1:2 with target the ratio of width to height can be obtained.
Step 3 determines the original width of original video information if initial video the ratio of width to height is less than screen width high ratio
For the target width of alternative videos information, and determine that the target of alternative videos information is high according to target width and screen width high ratio
Degree;And
Step 4 carries out cutting processing to the height of original video information, is had according to the object height determined
The alternative videos information of target size;
Wherein, target size includes target the ratio of width to height, and target the ratio of width to height is the ratio of target width and object height.
Specifically, when the initial video that a ratio of width to height is 9:16 is cut into the alternative videos that the ratio of width to height is 3:5, by
It is less than the ratio of width to height of the alternative videos in the ratio of width to height of the initial video, then using the width of the initial video as the alternative videos
Width calculates the height of the alternative videos according to the ratio of width to height of 3:5, according to the crop position determined, cuts from initial video
Suitable alternative videos.
For example, when the short-sighted frequency that a resolution ratio is 1080x 1920 is cut into the alternative videos that the ratio of width to height is 3:5,
The ratio of width to height for first calculating the short-sighted frequency show that the ratio of width to height for the short-sighted frequency that the resolution ratio is 1080x 1920 is 9:16;Due to this
The ratio of width to height 9:16 of short-sighted frequency is less than the ratio of width to height 3:5 of the alternative videos, then alternative using the wide 1080PX of the short-sighted frequency as this
The target width of video, further according to the ratio of 3:5, the object height for calculating alternative videos is 1800PX.
After the object height and target width of determining alternative videos, the specific X axis coordinate for cutting position is X=0, Y-axis
Specific coordinate value is determined in cutting position that coordinate is determined according to Final Translation.Such as: if necessary to the alternative view
Frequency cuts out the alternative videos from the middle position of the short-sighted frequency, then the alternative videos upper left by the way of cutting out between two parties
The coordinate value at angle are as follows: X=0, Y=(1920-1800)/2;According to the coordinate value in the short-sighted frequency upper left corner, and the target determined
Height value is cut out the height of the short-sighted frequency, and the alternative videos information for being 3:5 with target the ratio of width to height can be obtained.
Wherein, in the ratio of width to height according to current existing main flow terminal screen, the original with original dimension that will acquire
After beginning video information is cut into multiple alternative videos information to match with main flow terminal screen width high ratio, when receiving current end
After the wallpaper setting request that end is sent, it is also necessary to determine that the target video to match with the present terminal is believed in alternative videos
Breath.The target size of alternative videos information includes: target the ratio of width to height of alternative videos information;As shown in figure 5, above-mentioned S203 is more
In a alternative videos information, the target video information having with the matched target size of terminal resolution ratio is determined, comprising:
S2031 determines the screen width high ratio of present terminal according to terminal resolution ratio;
Specifically, server is according to what is received, present terminal is directed to the original video for carrying unique identification, sends
Wallpaper setting request after, the resolution information of entrained present terminal screen is determined in the solicited message, according to determining
Present terminal screen resolution ratio, determine the screen width high ratio of present terminal.
S2032 matches the screen width high ratio of present terminal with target the ratio of width to height of each alternative videos information respectively;
Specifically, being the ratio of width to height and original according to each main flow terminal screen due to target the ratio of width to height of alternative videos information
The dimension information of beginning video is calculated, therefore, according to the aspect ratio information of the present terminal screen got, by present terminal
The ratio of width to height of screen is matched with target the ratio of width to height of each alternative videos information respectively, so that it is determined that going out and the current end panel
The alternative videos information that the ratio of width to height of curtain matches.
S2033 believes target the ratio of width to height alternative videos identical with screen width high ratio in multiple alternative videos information
Breath is determined as with the target video information with the matched target size of the terminal resolution ratio.
Specifically, in multiple alternative videos information for carrying unique identification, the width of the current terminal screen is high
Than being determined as target the ratio of width to height, the alternative videos information to match with the target the ratio of width to height is matched from alternative videos information,
The alternative videos information is determined as with the target video information to match with the current terminal screen the ratio of width to height.
Wherein, in order to guarantee that the display effect of the video wallpaper shown in present terminal reaches most preferably, video letter is introduced
The display resolution of breath not only matches alternative videos information with the ratio of width to height of present terminal screen, also choose have with
The alternative videos information of the identical display resolution of the terminal resolution ratio of present terminal is as target video information, target the ratio of width to height
Alternative videos information identical from screen width high ratio includes: the different alternative videos information of multiple display resolutions;Above-mentioned S2033
In multiple alternative videos information, by target the ratio of width to height alternative videos information identical with screen width high ratio, be determined as have with
The target video information of the matched target size of terminal resolution ratio, comprising:
In multiple alternative videos information, by target the ratio of width to height alternative videos information identical with screen width high ratio and display
Resolution ratio alternative videos information identical with terminal resolution ratio is determined as with the mesh with the matched target size of terminal resolution ratio
Mark video information.
Specifically, considering the hardware configuration issues of present terminal, the alternative view being consistent with present terminal hardware configuration
Frequency information is sent to present terminal;When in alternative videos information there are multiple the ratio of width to height are identical, but different alternative of resolution ratio
When video information, terminal screen resolution entrained in request is arranged according to the wallpaper that the present terminal received is sent and is believed
Breath, will and with terminal resolution ratio identical alternative videos information identical as terminal screen the ratio of width to height, be determined as having and terminal point
The target video information of the matched target size of resolution.Such as: for the terminal screen for being 9:16 for the ratio of width to height, the ratio of width to height is
The corresponding resolution ratio of the terminal screen of 9:16 can be 1080x 1920 or 720x 1280 or 1440x 2560 etc., work as server
When the resolution ratio of the present terminal received is 1440x 2560, it is 9 that the ratio of width to height is found out in multiple alternative videos information:
16, resolution ratio is the alternative videos information of 1440x 2560, and determining it as has and the matched target size of terminal resolution ratio
Target video information, which is sent to present terminal, so that the user is by the target video information of acquisition
It is shown as wallpaper.
In this way, not only being effectively prevented in video when the target video received is shown by user as wallpaper
Existing the case where device resource is consumed outside screen to user's sightless video content, while obtain user clearly
The clear higher video wallpaper of degree, further improves the Experience Degree of user.
Wherein, in order to which the multiple alternative videos information with different target size that will pass through multiple dimensioned cutting carry out effectively
Management, as shown in fig. 6, above-mentioned S207 stores multiple alternative videos information with different target size to presetting database
In, comprising:
S2071, in the available storage area of presetting database, respectively each specified storage of alternative videos information distribution
Position;
Each alternative videos information is stored to corresponding designated storage location, and records alternative videos information by S2072
Corresponding relationship between dimension information and storage location.
Specifically, high in order to be carried out to the multiple alternative videos information with different target size cut through excessive size
The management of effect, to when there is various sizes of target video information to store in the preset database, record is each after cutting
The storage location of target video information with target size, by pair of each alternative videos information storage in the preset database
Position is answered, and records the relationship between the size and storage location of alternative videos information, it is subsequent in this way to search any specified ruler
When very little alternative videos information, the standby of the target size to match with present terminal screen resolution information can be quickly found
Select video information.
Wherein, after server receives wallpaper setting request of the present terminal for original video information, according to the original
When unique identification entrained by beginning video information reads target alternative video information in the preset database, above-mentioned S203 is from pre-
If reading target video information in database, comprising:
Step 1, according to the corresponding relationship between dimension information and storage location, the determining target with target video information
The corresponding designated storage location of size;
Step 2 in the preset database at designated storage location, reads target video information.
Specifically, server sends original video information uniqueness entrained in wallpaper setting request according to present terminal
The resolution information of mark and present terminal searches storage in the preset database and carries the alternative of the unique identification
Video information, the corresponding pass between the dimension information recorded in the preset database according to alternative videos information and storage location
System, determines the corresponding designated storage location of the target size of target video information, and the target video information is read out.
Desktop wallpaper setting method in the embodiment of the present application is received from present terminal for original video information
Wallpaper setting request, wherein the unique identification of the original video information and described is carried in wallpaper setting request
The terminal resolution ratio of present terminal;It determines pre-stored corresponding with the unique identification multiple with different target size
Alternative videos information;In multiple alternative videos information, determining has and the matched target ruler of the terminal resolution ratio
Very little target video information, and the target video information is read from presetting database;The target video that will be read
Information is sent to the present terminal, so that the present terminal sets the target video information according to the terminal resolution ratio
It is set to desktop wallpaper.By carrying out various dimensions cutting to original video information in advance, determines and store and believe for the original video
The different alternative videos information of multiple sizes of breath, in this way after the wallpaper setting request for receiving a certain present terminal, automatically
The target video information with target size with the resolution match of the present terminal is chosen, obtains multiple and different rulers to realize
Very little video information is adapted to the different present terminal of screen size, no matter the screen size of terminal used in the whole network user such as
What can be avoided using video information as when dynamic wallpaper displaying, and sightless content consumes device resource outside screen
Problem, to improve the availability of video resource, while targetedly further the user experience is improved for video information matching.
The desktop wallpaper setting method that corresponding above-mentioned Fig. 1 to Fig. 6 is described, based on the same technical idea, the application is implemented
Example additionally provides a kind of desktop wallpaper setting device, and Fig. 7 is the module that device is arranged in desktop wallpaper provided by the embodiments of the present application
Composition schematic diagram, the device is for executing the desktop wallpaper setting method that Fig. 1 to Fig. 6 is described, as shown in fig. 7, the device includes:
Request receiving module 701 is arranged in wallpaper, for receiving the wallpaper for being directed to original video information from present terminal
Setting request, wherein the unique identification of the original video information and described current is carried in wallpaper setting request
The terminal resolution ratio of terminal;
Alternative videos information determination module 702, it is pre-stored corresponding with the unique identification multiple for determining
Alternative videos information with different target size;
Target video information determining module 703, in multiple alternative videos information, determining to have and the end
The target video information of the target size of resolution match is held, and reads the target video information from presetting database;
Target video information sending module 704, it is described current for the target video information read to be sent to
Terminal, so that the present terminal sets desktop wallpaper for the target video information according to the terminal resolution ratio.
Optionally, as shown in figure 8, described device further include:
Acquiring video information module 705, for obtaining the original video information with original dimension;
Video information cuts out module 706, for carrying out preset cutting processing to the original video information, obtains multiple tools
There is the alternative videos information of different target size;
Video information memory module 707, for storing multiple alternative videos information with different target size
Into presetting database.
Optionally, the video information cuts out module 706, is specifically used for:
Determine multiple mainstream resolution ratio that the user terminal that the whole network user uses is related to;
Determining screen size information corresponding with each mainstream resolution ratio, wherein the screen size information packet
It includes: screen width high ratio;
According to the original dimension and each screen width high ratio determined, size is carried out to the original video information
It cuts, obtains multiple alternative videos information with different target size respectively with each mainstream resolution match.
Optionally, the original dimension includes: initial video the ratio of width to height;
The video information cuts out module 706, is further specifically used for:
If described initial video the ratio of width to height is greater than the screen width high ratio, by the elemental height of the original video information
It is determined as the object height of alternative videos information, and the alternative view is determined according to the object height and the screen width high ratio
The target width of frequency information;And
According to the target width determined, cutting processing is carried out to the width of the original video information, is had
There is the alternative videos information of target size;
If described initial video the ratio of width to height is less than the screen width high ratio, by the original width of the original video information
It is determined as the target width of alternative videos information, and the alternative view is determined according to the target width and the screen width high ratio
The object height of frequency information;And
According to the object height determined, cutting processing is carried out to the height of the original video information, is had
There is the alternative videos information of target size;
Wherein, the target size includes target the ratio of width to height, and described target the ratio of width to height is the target width and the mesh
The ratio of absolute altitude degree.
Optionally, the target size of the alternative videos information includes: target the ratio of width to height of the alternative videos information;
The target video information determining module 703, is specifically used for:
According to the terminal resolution ratio, the screen width high ratio of the present terminal is determined;
By the screen width high ratio of the present terminal wide height of the target with each alternative videos information respectively
Than being matched;
It is in multiple alternative videos information, described target the ratio of width to height is identical with the screen width high ratio described standby
Video information is selected, is determined as with the target video information with the matched target size of the terminal resolution ratio.
Optionally, described target the ratio of width to height alternative videos information identical with the screen width high ratio includes: multiple
The different alternative videos information of display resolution;
The target video information determining module 703, is further specifically used for:
It is in multiple alternative videos information, described target the ratio of width to height is identical with the screen width high ratio described standby
The alternative videos information for selecting video information and the display resolution and the terminal resolution ratio, be determined as have with it is described
The target video information of the matched target size of terminal resolution ratio.
Optionally, the video information memory module 707, is specifically used for:
In the available storage area of presetting database, respectively each specified storage position of alternative videos information distribution
It sets;
Each alternative videos information is stored to the corresponding designated storage location, and records the alternative videos
Corresponding relationship between the dimension information and storage location of information.
Optionally, the target video information determining module 703, is further specifically used for:
It is determining described with the target video information according to the corresponding relationship between the dimension information and storage location
The corresponding designated storage location of target size;
In the preset database at the designated storage location, the target video information is read.
Device is arranged in desktop wallpaper in the embodiment of the present application, receives from present terminal for original video information
Wallpaper setting request, wherein the unique identification of the original video information and described is carried in wallpaper setting request
The terminal resolution ratio of present terminal;It determines pre-stored corresponding with the unique identification multiple with different target size
Alternative videos information;In multiple alternative videos information, determining has and the matched target ruler of the terminal resolution ratio
Very little target video information, and the target video information is read from presetting database;The target video that will be read
Information is sent to the present terminal, so that the present terminal sets the target video information according to the terminal resolution ratio
It is set to desktop wallpaper.By carrying out various dimensions cutting to original video information in advance, determines and store and believe for the original video
The different alternative videos information of multiple sizes of breath, in this way after the wallpaper setting request for receiving a certain present terminal, automatically
The target video information with target size with the resolution match of the present terminal is chosen, obtains multiple and different rulers to realize
Very little video information is adapted to the different present terminal of screen size, no matter the screen size of terminal used in the whole network user such as
What can be avoided using video information as when dynamic wallpaper displaying, and sightless content consumes device resource outside screen
Problem, to improve the availability of video resource, while targetedly further the user experience is improved for video information matching.
It should be noted that desktop wallpaper setting device provided by the embodiments of the present application and table provided by the embodiments of the present application
Surface wallpaper setting method based on the same inventive concept, therefore the specific implementation of the embodiment may refer to previous desktop wallpaper setting
The implementation of method, overlaps will not be repeated.
Further, corresponding above-mentioned Fig. 1 is to method shown in fig. 6, and based on the same technical idea, the embodiment of the present application is also
A kind of desktop wallpaper setting equipment is provided, which is that the application is real for executing above-mentioned desktop wallpaper setting method, Fig. 9
The structural schematic diagram of the desktop wallpaper setting equipment of example offer is provided.
As shown in figure 9, desktop wallpaper setting equipment can generate bigger difference because configuration or performance are different, can wrap
One or more processor 901 and memory 902 are included, one or more has been can store in memory 902 and has deposited
Store up application program or data.Wherein, memory 902 can be of short duration storage or persistent storage.It is stored in the application of memory 902
Program may include one or more modules (diagram is not shown), and each module may include that equipment is arranged to desktop wallpaper
In series of computation machine executable instruction.Further, processor 901 can be set to communicate with memory 902, in table
The series of computation machine executable instruction executed in memory 902 in equipment is arranged in surface wallpaper.Desktop wallpaper setting equipment may be used also
To include one or more power supplys 903, one or more wired or wireless network interfaces 904, one or one with
Upper input/output interface 905, one or more keyboards 906 etc..
In a specific embodiment, desktop wallpaper setting equipment include memory and one or more
Program, perhaps more than one program is stored in memory and one or more than one program may include for one of them
One or more modules, and each module may include executable to the series of computation machine in desktop wallpaper setting equipment
Instruction, and be configured to execute this or more than one program by one or more than one processor to include for carrying out
Following computer executable instructions:
It receives the wallpaper from present terminal for original video information and request is set, wherein the wallpaper setting is asked
The unique identification of the original video information and the terminal resolution ratio of the present terminal are carried in asking;
Determine pre-stored multiple alternative videos letters with different target size corresponding with the unique identification
Breath;
In multiple alternative videos information, the target having with the matched target size of the terminal resolution ratio is determined
Video information, and the target video information is read from presetting database;
The target video information read is sent to the present terminal, so that the present terminal is according to described
The target video information is set desktop wallpaper by terminal resolution ratio.
Optionally, computer executable instructions also include for carrying out following computer executable instructions when executed:
Before receiving the wallpaper setting for being directed to original video information from present terminal and requesting, further includes:
Obtain the original video information with original dimension;
Preset cutting processing is carried out to the original video information, obtains multiple alternative videos with different target size
Information;
Multiple alternative videos information with different target size are stored into presetting database.
Optionally, computer executable instructions are when executed, described to carry out preset cutting to the original video information
Processing, obtains multiple alternative videos information with different target size, comprising:
Determine multiple mainstream resolution ratio that the user terminal that the whole network user uses is related to;
Determining screen size information corresponding with each mainstream resolution ratio, wherein the screen size information packet
It includes: screen width high ratio;
According to the original dimension and each screen width high ratio determined, size is carried out to the original video information
It cuts, obtains multiple alternative videos information with different target size respectively with each mainstream resolution match.
Optionally, computer executable instructions also include for carrying out following computer executable instructions when executed:
The original dimension includes: initial video the ratio of width to height;
It is described according to the original dimension and each screen width high ratio for determining, the original video information is carried out
Size is cut, and obtains multiple alternative videos information with different target size respectively with each mainstream resolution match,
Include:
If described initial video the ratio of width to height is greater than the screen width high ratio, by the elemental height of the original video information
It is determined as the object height of alternative videos information, and the alternative view is determined according to the object height and the screen width high ratio
The target width of frequency information;And
According to the target width determined, cutting processing is carried out to the width of the original video information, is had
There is the alternative videos information of target size;
If described initial video the ratio of width to height is less than the screen width high ratio, by the original width of the original video information
It is determined as the target width of alternative videos information, and the alternative view is determined according to the target width and the screen width high ratio
The object height of frequency information;And
According to the object height determined, cutting processing is carried out to the height of the original video information, is had
There is the alternative videos information of target size;
Wherein, the target size includes target the ratio of width to height, and described target the ratio of width to height is the target width and the mesh
The ratio of absolute altitude degree.
Optionally, computer executable instructions also include for carrying out following computer executable instructions when executed:
The target size of the alternative videos information includes: target the ratio of width to height of the alternative videos information;
It is described in multiple alternative videos information, determine have and the matched target size of the terminal resolution ratio
Target video information, comprising:
According to the terminal resolution ratio, the screen width high ratio of the present terminal is determined;
By the screen width high ratio of the present terminal wide height of the target with each alternative videos information respectively
Than being matched;
It is in multiple alternative videos information, described target the ratio of width to height is identical with the screen width high ratio described standby
Video information is selected, is determined as with the target video information with the matched target size of the terminal resolution ratio.
Optionally, computer executable instructions also include for carrying out following computer executable instructions when executed:
Described target the ratio of width to height alternative videos information identical from the screen width high ratio includes: that multiple display resolutions are different
Alternative videos information;
It is described in multiple alternative videos information, by described target the ratio of width to height institute identical with the screen width high ratio
Alternative videos information is stated, is determined as with the target video information with the matched target size of the terminal resolution ratio, comprising:
It is in multiple alternative videos information, described target the ratio of width to height is identical with the screen width high ratio described standby
Select video information and the display resolution alternative videos information identical with the terminal resolution ratio, be determined as have with
The target video information of the matched target size of terminal resolution ratio.
Optionally, computer executable instructions are when executed, described multiple to have the described standby of different target size
Video information is selected to store into presetting database, comprising:
In the available storage area of presetting database, respectively each specified storage position of alternative videos information distribution
It sets;
Each alternative videos information is stored to the corresponding designated storage location, and records the alternative videos
Corresponding relationship between the dimension information and storage location of information.
Optionally, computer executable instructions are when executed, described that the target video is read from presetting database
Information, comprising:
It is determining described with the target video information according to the corresponding relationship between the dimension information and storage location
The corresponding designated storage location of target size;
In the preset database at the designated storage location, the target video information is read.
Equipment is arranged in desktop wallpaper in the embodiment of the present application, receives from present terminal for original video information
Wallpaper setting request, wherein the unique identification of the original video information and described is carried in wallpaper setting request
The terminal resolution ratio of present terminal;It determines pre-stored corresponding with the unique identification multiple with different target size
Alternative videos information;In multiple alternative videos information, determining has and the matched target ruler of the terminal resolution ratio
Very little target video information, and the target video information is read from presetting database;The target video that will be read
Information is sent to the present terminal, so that the present terminal sets the target video information according to the terminal resolution ratio
It is set to desktop wallpaper.
As it can be seen that equipment is arranged in the desktop wallpaper in the embodiment of the present application, by carrying out multidimensional to original video information in advance
Degree is cut, and is determined and is stored the alternative videos information different for multiple sizes of the original video information, is receiving in this way
It is automatic to choose with the resolution match of the present terminal with target size after the wallpaper setting request of a certain present terminal
Target video information obtains the video information of multiple and different sizes with realization to be adapted to the different present terminal of screen size, nothing
By terminal used in the whole network user screen size how, can be avoided using video information as dynamic wallpaper show when, no
Visible content consumes the problem of device resource outside screen, to improve the availability of video resource, while targetedly
Further the user experience is improved for video information matching.
Preferably, the embodiment of the present application also provides a kind of desktop wallpaper setting equipment, including processor 901, memory
902, it is stored in the computer program that can be run on memory 902 and on processor 901, the computer program is by processor
901 realize each process of above-mentioned desktop wallpaper setting method embodiment when executing, and can reach identical technical effect, to keep away
Exempt to repeat, which is not described herein again.
Further, corresponding above-mentioned Fig. 1 is to method shown in fig. 6, and based on the same technical idea, the embodiment of the present application is also
A kind of computer readable storage medium is provided, is stored with computer program on computer readable storage medium, the computer journey
Each process of above-mentioned desktop wallpaper setting method embodiment is realized when sequence is executed by processor, and can reach identical technology effect
Fruit, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as read-only memory (Read-
Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disk or light
Disk etc..
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.
Claims (14)
1. a kind of desktop wallpaper setting method, which is characterized in that the described method includes:
It receives the wallpaper from present terminal for original video information and request is set, wherein in the wallpaper setting request
Carry the unique identification of the original video information and the terminal resolution ratio of the present terminal;
Determine pre-stored multiple alternative videos information with different target size corresponding with the unique identification;
In multiple alternative videos information, the target video having with the matched target size of the terminal resolution ratio is determined
Information, and the target video information is read from presetting database;
The target video information read is sent to the present terminal, so that the present terminal is according to the terminal
The target video information is set desktop wallpaper by resolution ratio.
2. the method according to claim 1, wherein being directed to original video information from present terminal receiving
Wallpaper setting request before, further includes:
Obtain the original video information with original dimension;
Preset cutting processing is carried out to the original video information, obtains multiple alternative videos letters with different target size
Breath;
Multiple alternative videos information with different target size are stored into presetting database.
3. according to the method described in claim 2, it is characterized in that, described carry out at preset cutting the original video information
Reason, obtains multiple alternative videos information with different target size, comprising:
Determine multiple mainstream resolution ratio that the user terminal that the whole network user uses is related to;
Determining screen size information corresponding with each mainstream resolution ratio, wherein the screen size information includes: to shield
Curtain the ratio of width to height;
According to the original dimension and each screen width high ratio determined, size sanction is carried out to the original video information
It cuts, obtains multiple alternative videos information with different target size respectively with each mainstream resolution match.
4. according to the method described in claim 3, it is characterized in that, the original dimension includes: initial video the ratio of width to height;
It is described according to the original dimension and each screen width high ratio for determining, size is carried out to the original video information
It cuts, obtains multiple alternative videos information with different target size respectively with each mainstream resolution match, comprising:
If described initial video the ratio of width to height is greater than the screen width high ratio, the elemental height of the original video information is determined
For the object height of alternative videos information, and determine that the alternative videos are believed according to the object height and the screen width high ratio
The target width of breath;And
According to the target width determined, cutting processing is carried out to the width of the original video information, is obtained with mesh
The alternative videos information of dimensioning;
If described initial video the ratio of width to height is less than the screen width high ratio, the original width of the original video information is determined
For the target width of alternative videos information, and determine that the alternative videos are believed according to the target width and the screen width high ratio
The object height of breath;And
According to the object height determined, cutting processing is carried out to the height of the original video information, is obtained with mesh
The alternative videos information of dimensioning;
Wherein, the target size includes target the ratio of width to height, and described target the ratio of width to height is that the target width and the target are high
The ratio of degree.
5. the method according to claim 1, wherein the target size of the alternative videos information includes: described
Target the ratio of width to height of alternative videos information;
It is described in multiple alternative videos information, determining has target with the matched target size of the terminal resolution ratio
Video information, comprising:
According to the terminal resolution ratio, the screen width high ratio of the present terminal is determined;
By the screen width high ratio of the present terminal respectively with described target the ratio of width to height of each alternative videos information into
Row matching;
In multiple alternative videos information, by described target the ratio of width to height alternative view identical with the screen width high ratio
Frequency information is determined as with the target video information with the matched target size of the terminal resolution ratio.
6. according to the method described in claim 5, it is characterized in that, described target the ratio of width to height is identical with the screen width high ratio
The alternative videos information includes: the different alternative videos information of multiple display resolutions;
It is described in multiple alternative videos information, described target the ratio of width to height is identical with the screen width high ratio described standby
Video information is selected, is determined as with the target video information with the matched target size of the terminal resolution ratio, comprising:
In multiple alternative videos information, by described target the ratio of width to height alternative view identical with the screen width high ratio
Frequency information and the display resolution alternative videos information identical with the terminal resolution ratio, be determined as have with it is described
The target video information of the matched target size of terminal resolution ratio.
7. according to the method described in claim 2, it is characterized in that, described described alternative with different target size by multiple
Video information is stored into presetting database, comprising:
In the available storage area of presetting database, respectively each alternative videos information distributes designated storage location;
Each alternative videos information is stored to the corresponding designated storage location, and records the alternative videos information
Dimension information and storage location between corresponding relationship.
8. the method according to the description of claim 7 is characterized in that described read the target video letter from presetting database
Breath, comprising:
According to the corresponding relationship between the dimension information and storage location, the determining target with the target video information
The corresponding designated storage location of size;
In the preset database at the designated storage location, the target video information is read.
9. device is arranged in a kind of desktop wallpaper, which is characterized in that described device includes:
Request receiving module is arranged in wallpaper, asks for receiving to be arranged from present terminal for the wallpaper of original video information
It asks, wherein the wallpaper is arranged the unique identification's and the present terminal that the original video information is carried in request
Terminal resolution ratio;
Alternative videos information determination module, it is pre-stored corresponding multiple with different from the unique identification for determining
The alternative videos information of target size;
Target video information determining module is differentiated in multiple alternative videos information, determining to have with the terminal
The target video information of the matched target size of rate, and the target video information is read from presetting database;
Target video information sending module, for the target video information read to be sent to the present terminal, with
The present terminal is set to set desktop wallpaper for the target video information according to the terminal resolution ratio.
10. device according to claim 9, which is characterized in that described device further include:
Acquiring video information module, for obtaining the original video information with original dimension;
Video information cuts out module, for carrying out preset cutting processing to the original video information, obtains multiple with difference
The alternative videos information of target size;
Video information memory module, for storing multiple alternative videos information with different target size to present count
According in library.
11. device according to claim 10, which is characterized in that the video information cuts out module, is specifically used for:
Determine multiple mainstream resolution ratio that the user terminal that the whole network user uses is related to;
Determining screen size information corresponding with each mainstream resolution ratio, wherein the screen size information includes: to shield
Curtain the ratio of width to height;
According to the original dimension and each screen width high ratio determined, size sanction is carried out to the original video information
It cuts, obtains multiple alternative videos information with different target size respectively with each mainstream resolution match.
12. device according to claim 11, which is characterized in that the original dimension includes: initial video the ratio of width to height;
The video information cuts out module, is further specifically used for:
If described initial video the ratio of width to height is greater than the screen width high ratio, the elemental height of the original video information is determined
For the object height of alternative videos information, and determine that the alternative videos are believed according to the object height and the screen width high ratio
The target width of breath;And
According to the target width determined, cutting processing is carried out to the width of the original video information, is obtained with mesh
The alternative videos information of dimensioning;
If described initial video the ratio of width to height is less than the screen width high ratio, the original width of the original video information is determined
For the target width of alternative videos information, and determine that the alternative videos are believed according to the target width and the screen width high ratio
The object height of breath;And
According to the object height determined, cutting processing is carried out to the height of the original video information, is obtained with mesh
The alternative videos information of dimensioning;
Wherein, the target size includes target the ratio of width to height, and described target the ratio of width to height is that the target width and the target are high
The ratio of degree.
13. device according to claim 9, which is characterized in that the target size of the alternative videos information includes: described
Target the ratio of width to height of alternative videos information;
The target video information determining module, is specifically used for:
According to the terminal resolution ratio, the screen width high ratio of the present terminal is determined;
By the screen width high ratio of the present terminal respectively with described target the ratio of width to height of each alternative videos information into
Row matching;
In multiple alternative videos information, by described target the ratio of width to height alternative view identical with the screen width high ratio
Frequency information is determined as with the target video information with the matched target size of the terminal resolution ratio.
14. device according to claim 13, which is characterized in that described target the ratio of width to height is identical as the screen width high ratio
The alternative videos information include: the different alternative videos information of multiple display resolutions;
The target video information determining module, is further specifically used for:
In multiple alternative videos information, by described target the ratio of width to height alternative view identical with the screen width high ratio
Frequency information and the display resolution alternative videos information identical with the terminal resolution ratio, be determined as have with it is described
The target video information of the matched target size of terminal resolution ratio.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811607970.2A CN109729423A (en) | 2018-12-27 | 2018-12-27 | A kind of desktop wallpaper setting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811607970.2A CN109729423A (en) | 2018-12-27 | 2018-12-27 | A kind of desktop wallpaper setting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109729423A true CN109729423A (en) | 2019-05-07 |
Family
ID=66296557
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811607970.2A Pending CN109729423A (en) | 2018-12-27 | 2018-12-27 | A kind of desktop wallpaper setting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109729423A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110248237A (en) * | 2019-07-04 | 2019-09-17 | 广州华多网络科技有限公司 | A kind of video broadcasting method, device and equipment |
CN111796885A (en) * | 2019-08-01 | 2020-10-20 | 厦门雅基软件有限公司 | Display method and device of cloud application program and electronic equipment |
CN112055244A (en) * | 2020-09-04 | 2020-12-08 | 维沃移动通信有限公司 | Image acquisition method and device, server and electronic equipment |
CN114911551A (en) * | 2021-02-08 | 2022-08-16 | 花瓣云科技有限公司 | Display method and electronic equipment |
CN115278338A (en) * | 2022-07-28 | 2022-11-01 | 广州市百果园信息技术有限公司 | Video wallpaper processing method, device, equipment and medium thereof |
CN115277924A (en) * | 2022-07-26 | 2022-11-01 | 努比亚技术有限公司 | Dynamic screen locking display control method and device and computer readable storage medium |
WO2024066990A1 (en) * | 2022-09-29 | 2024-04-04 | 华为技术有限公司 | Method for displaying screen wallpaper, and electronic device |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080229375A1 (en) * | 2007-03-15 | 2008-09-18 | Eric Roberts | Locally stored video content having a video resolution associated with remote devices |
US20110242267A1 (en) * | 2010-03-31 | 2011-10-06 | Samsung Electronics Co., Ltd. | Apparatus and method for remote control between mobile communication terminals |
CN102486794A (en) * | 2010-12-06 | 2012-06-06 | 腾讯科技(深圳)有限公司 | Method, device and system for acquiring rich-media file |
CN102984476A (en) * | 2012-12-12 | 2013-03-20 | 深圳创维-Rgb电子有限公司 | Widescreen self-adapting image processing method and device |
US20130127811A1 (en) * | 2003-09-30 | 2013-05-23 | Terry M. Fletcher | Switching display update properties upon detecting a power management event |
CN103634343A (en) * | 2012-08-22 | 2014-03-12 | 腾讯科技(上海)有限公司 | Wallpaper arranging method and terminal |
CN105306963A (en) * | 2015-10-20 | 2016-02-03 | 努比亚技术有限公司 | Video processing system, device and method self-adapting to mobile terminal resolution |
CN105992029A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Wallpaper recommendation method and system, server, and mobile terminal |
CN106454407A (en) * | 2016-10-25 | 2017-02-22 | 广州华多网络科技有限公司 | Video live broadcast method and device |
CN106791947A (en) * | 2016-12-28 | 2017-05-31 | 北京金山安全软件有限公司 | Method and device for transmitting network video and electronic equipment |
CN107291329A (en) * | 2017-06-09 | 2017-10-24 | 珠海格力电器股份有限公司 | The method and apparatus that dynamic wallpaper is presented in a kind of screen |
CN108270920A (en) * | 2018-01-16 | 2018-07-10 | 深圳市金立通信设备有限公司 | A kind of wallpaper setting method, terminal and computer readable storage medium |
-
2018
- 2018-12-27 CN CN201811607970.2A patent/CN109729423A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130127811A1 (en) * | 2003-09-30 | 2013-05-23 | Terry M. Fletcher | Switching display update properties upon detecting a power management event |
US20080229375A1 (en) * | 2007-03-15 | 2008-09-18 | Eric Roberts | Locally stored video content having a video resolution associated with remote devices |
US20110242267A1 (en) * | 2010-03-31 | 2011-10-06 | Samsung Electronics Co., Ltd. | Apparatus and method for remote control between mobile communication terminals |
CN102486794A (en) * | 2010-12-06 | 2012-06-06 | 腾讯科技(深圳)有限公司 | Method, device and system for acquiring rich-media file |
CN103634343A (en) * | 2012-08-22 | 2014-03-12 | 腾讯科技(上海)有限公司 | Wallpaper arranging method and terminal |
CN102984476A (en) * | 2012-12-12 | 2013-03-20 | 深圳创维-Rgb电子有限公司 | Widescreen self-adapting image processing method and device |
CN105992029A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Wallpaper recommendation method and system, server, and mobile terminal |
CN105306963A (en) * | 2015-10-20 | 2016-02-03 | 努比亚技术有限公司 | Video processing system, device and method self-adapting to mobile terminal resolution |
CN106454407A (en) * | 2016-10-25 | 2017-02-22 | 广州华多网络科技有限公司 | Video live broadcast method and device |
CN106791947A (en) * | 2016-12-28 | 2017-05-31 | 北京金山安全软件有限公司 | Method and device for transmitting network video and electronic equipment |
CN107291329A (en) * | 2017-06-09 | 2017-10-24 | 珠海格力电器股份有限公司 | The method and apparatus that dynamic wallpaper is presented in a kind of screen |
CN108270920A (en) * | 2018-01-16 | 2018-07-10 | 深圳市金立通信设备有限公司 | A kind of wallpaper setting method, terminal and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
ONERAIN: "UGUI 分辨率自适应一:背景自适应", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/35563497》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110248237A (en) * | 2019-07-04 | 2019-09-17 | 广州华多网络科技有限公司 | A kind of video broadcasting method, device and equipment |
CN110248237B (en) * | 2019-07-04 | 2021-09-28 | 广州华多网络科技有限公司 | Video playing method, device, equipment and storage medium |
CN111796885A (en) * | 2019-08-01 | 2020-10-20 | 厦门雅基软件有限公司 | Display method and device of cloud application program and electronic equipment |
CN112055244A (en) * | 2020-09-04 | 2020-12-08 | 维沃移动通信有限公司 | Image acquisition method and device, server and electronic equipment |
CN114911551A (en) * | 2021-02-08 | 2022-08-16 | 花瓣云科技有限公司 | Display method and electronic equipment |
CN115277924A (en) * | 2022-07-26 | 2022-11-01 | 努比亚技术有限公司 | Dynamic screen locking display control method and device and computer readable storage medium |
CN115277924B (en) * | 2022-07-26 | 2024-05-17 | 努比亚技术有限公司 | Dynamic lock screen display control method, equipment and computer readable storage medium |
CN115278338A (en) * | 2022-07-28 | 2022-11-01 | 广州市百果园信息技术有限公司 | Video wallpaper processing method, device, equipment and medium thereof |
CN115278338B (en) * | 2022-07-28 | 2023-09-19 | 广州市百果园信息技术有限公司 | Video wallpaper processing method and device, equipment and medium thereof |
WO2024066990A1 (en) * | 2022-09-29 | 2024-04-04 | 华为技术有限公司 | Method for displaying screen wallpaper, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109729423A (en) | A kind of desktop wallpaper setting method and device | |
CN109388791B (en) | Dynamic diagram display method and device, computer equipment and storage medium | |
CN110399441B (en) | Mass point data aggregation rendering method, device, equipment and storage medium | |
CN110675728B (en) | Generation method, device and equipment of thermodynamic diagram and computer readable storage medium | |
CN109215486B (en) | Electronic map marking and displaying method and device, terminal equipment and storage medium | |
CN107085600B (en) | POI recommendation method, device, equipment and computer readable storage medium | |
CN109783757B (en) | Method, device and system for rendering webpage, storage medium and electronic device | |
CN109151597A (en) | information display method and device | |
WO2023226371A1 (en) | Target object interactive reproduction control method and apparatus, device and storage medium | |
CN111581324B (en) | Navigation data generation method, device and equipment | |
CN111414361A (en) | Label data storage method, device, equipment and readable storage medium | |
CN115129801A (en) | Map data processing method, device, equipment and storage medium | |
CN106953924B (en) | Processing method of shared information and shared client | |
CN105554290A (en) | Wallpaper sharing method and device | |
CN103324484A (en) | Method and device for displaying view | |
CN107220260B (en) | Page display method and device | |
US20210342374A1 (en) | Method of and system for defining a service for serving map images | |
CN104991935B (en) | A kind for the treatment of method and apparatus of website attention rate | |
CN110363837A (en) | The processing method and processing device of texture image, electronic equipment, storage medium in game | |
US20150089374A1 (en) | Network visualization system and method | |
CN115146087A (en) | Resource recommendation method, device, equipment and storage medium | |
CN113567636B (en) | Air quality display method, system and device | |
CN110928895A (en) | Data query method, data table establishing method, device and equipment | |
US10853393B2 (en) | Expired map data based anti-counterfeiting method, apparatus, storage medium and device | |
WO2020238749A1 (en) | Raster data access method and apparatus, electronic device, and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190507 |