CN111290822A - Desktop wallpaper display method and device and computer-readable storage medium - Google Patents

Desktop wallpaper display method and device and computer-readable storage medium Download PDF

Info

Publication number
CN111290822A
CN111290822A CN202010126891.0A CN202010126891A CN111290822A CN 111290822 A CN111290822 A CN 111290822A CN 202010126891 A CN202010126891 A CN 202010126891A CN 111290822 A CN111290822 A CN 111290822A
Authority
CN
China
Prior art keywords
video
videos
display
size
displaying
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.)
Granted
Application number
CN202010126891.0A
Other languages
Chinese (zh)
Other versions
CN111290822B (en
Inventor
杨全海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN202010126891.0A priority Critical patent/CN111290822B/en
Publication of CN111290822A publication Critical patent/CN111290822A/en
Application granted granted Critical
Publication of CN111290822B publication Critical patent/CN111290822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a desktop wallpaper display method, a desktop wallpaper display device and a computer-readable storage medium, which are used for solving the problem of excessive occupied running memory of terminal equipment, wherein the method comprises the following steps: receiving a first display instruction which is input by a user and used for displaying wallpaper, wherein the first display instruction carries an identifier of a video material; acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the plurality of videos, the plurality of videos are partial videos in different display areas in a first video, and the display areas corresponding to the plurality of videos are partial display areas in the display area of the first video; and displaying the videos in the area to be displayed according to the position relation. By implementing the embodiment of the invention, the file size of the video material can be greatly reduced, and the occupied operation memory of the terminal equipment is reduced.

Description

Desktop wallpaper display method and device and computer-readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying desktop wallpaper, and a computer-readable storage medium.
Background
With the rapid development of electronic technology, electronic devices such as mobile phones and flat panels have become an indispensable part of people's lives. The electronic equipment provides basic communication functions for users, and also provides desktop wallpaper functions for the users, and the users can change the wallpaper according to the interests of the users. Currently, desktop wallpaper includes static wallpaper and dynamic wallpaper, and when a user sets wallpaper of an electronic device as dynamic wallpaper, the electronic device may directly display video material of the dynamic wallpaper on a desktop after adapting to a screen size of the electronic device. However, in this implementation manner, the video material needs to be played in a circulating manner, and when the video material is too large, a large amount of running memory of the electronic device is occupied by circularly calling a large video material file.
Disclosure of Invention
The embodiment of the invention discloses a desktop wallpaper display method and device and a computer readable storage medium, which are used for solving the problem of excessive memory occupation of terminal equipment.
A first aspect discloses a method for displaying desktop wallpaper, comprising:
receiving a first display instruction which is input by a user and used for displaying wallpaper, wherein the first display instruction carries an identifier of a video material;
acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the plurality of videos, the plurality of videos are partial videos in different display areas in a first video, and the display areas corresponding to the plurality of videos are partial display areas in the display area of the first video;
and displaying the videos in the area to be displayed according to the position relation.
In one possible implementation manner, the displaying the plurality of videos in the area to be displayed according to the position relationship includes:
acquiring the display size of a to-be-displayed area;
adjusting the size of each video in the plurality of videos according to the display size;
and displaying the adjusted videos in the area to be displayed according to the position relation.
In one possible implementation, the video material further includes a size of each of the plurality of videos;
the resizing each of the plurality of videos according to the display size includes:
adjusting the width of a first partial video according to the position relation and the width in the display size, wherein the first partial video is a partial video in the plurality of videos;
and adjusting the length of a second part of video according to the length of the first part of video and the length in the display size, wherein the second part of video is the part of the plurality of videos except the first part of video.
In one possible implementation, the adjusting the width of the first partial video according to the position relationship and the width in the display size includes:
determining the size of the first part of video according to the position relation;
and adjusting the width of the first part video according to the display size and the size of the first part video.
In one possible implementation, the resizing each of the plurality of videos according to the display size includes:
acquiring the size of a third part of video, wherein the third part of video is a part of video in the plurality of videos;
calculating an adjustment ratio according to the display size and the size of the third part of video;
determining the size of the third part of video according to the position relation;
adjusting the length of the third part of the video according to the adjustment proportion;
and adjusting the length of a fourth part of video according to the length in the display size and the adjusted length of a third part of video, wherein the fourth part of video is the part of the plurality of videos except the third part of video.
In one possible implementation, the method further includes:
receiving a second display instruction for displaying the picture, wherein the second display instruction carries an image identifier;
acquiring a corresponding image according to the image identifier;
adjusting the image according to the image and the screen display size;
the displaying the plurality of videos in the area to be displayed according to the position relation comprises:
displaying the plurality of partial videos and the image on the screen, the plurality of partial videos being overlaid on the image.
In one possible implementation, the video material further includes a playing order of the plurality of videos;
the displaying the plurality of videos in the area to be displayed according to the position relation comprises:
and displaying the videos in a region to be displayed according to the position relation and the playing sequence.
A second aspect discloses a display device of desktop wallpaper, comprising:
the wallpaper display device comprises a first receiving unit, a second receiving unit and a display unit, wherein the first receiving unit is used for receiving a first display instruction which is input by a user and is used for displaying wallpaper, and the first display instruction carries an identifier of a video material;
a first obtaining unit, configured to obtain a corresponding video material according to the identifier, where the video material includes multiple videos and position relationships among the multiple videos, the multiple videos are partial videos in different display areas in a first video, and display areas corresponding to the multiple videos are partial display areas in a display area of the first video;
and the display unit is used for displaying the videos in the area to be displayed according to the position relation.
In a possible implementation manner, the display unit is specifically configured to:
acquiring the display size of a to-be-displayed area;
adjusting the size of each video in the plurality of videos according to the display size;
and displaying the adjusted videos in the area to be displayed according to the position relation.
In one possible implementation, the video material further includes a size of each of the plurality of videos;
the display unit adjusting a size of each of the plurality of videos according to the display size includes:
adjusting the width of a first partial video according to the position relation and the width in the display size, wherein the first partial video is a partial video in the plurality of videos;
and adjusting the length of a second part of video according to the length of the first part of video and the length in the display size, wherein the second part of video is the part of the plurality of videos except the first part of video.
In one possible implementation, the adjusting, by the display unit, the width of the first partial video according to the position relationship and the width in the display size includes:
determining the size of the first part of video according to the position relation;
and adjusting the width of the first part video according to the display size and the size of the first part video.
In one possible implementation, the resizing each of the plurality of videos according to the display size by the display unit includes:
acquiring the size of a third part of video, wherein the third part of video is a part of video in the plurality of videos;
calculating an adjustment ratio according to the display size and the size of the third part of video;
determining the size of the third part of video according to the position relation;
adjusting the length of the third part of the video according to the adjustment proportion;
and adjusting the length of a fourth part of video according to the length in the display size and the adjusted length of a third part of video, wherein the fourth part of video is the part of the plurality of videos except the third part of video.
In one possible implementation, the apparatus further includes:
the second receiving unit is used for receiving a second display instruction for displaying the picture, wherein the second display instruction carries the image identifier;
the second acquisition unit is used for acquiring a corresponding image according to the image identifier;
the adjusting unit is used for adjusting the image according to the image and the screen display size;
the display unit is specifically configured to:
displaying the plurality of partial videos and the image on the screen, the plurality of partial videos being overlaid on the image.
In one possible implementation, the video material further includes a playing order of the plurality of videos;
the display unit is specifically configured to:
and displaying the videos in a region to be displayed according to the position relation and the playing sequence.
A third aspect discloses an electronic device comprising an output device, an input device, a processor, a memory, and a transceiver, the output device, the input device, the processor, the memory, and the transceiver being interconnected. The transceiver is used for receiving information from devices other than the device and outputting information to devices other than the device. The memory is configured to store a computer program that supports the terminal device to execute the method disclosed in the first aspect and/or any one of the possible implementation manners of the first aspect, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method disclosed in the first aspect and/or any one of the possible implementation manners of the first aspect.
A fourth aspect discloses a computer-readable storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method disclosed in the first aspect and/or any one of the possible implementations of the first aspect.
In the embodiment of the invention, a first display instruction which is input by a user and used for displaying wallpaper is received, wherein the first display instruction carries an identifier of a video material; acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the plurality of videos, the plurality of videos are partial videos in different display areas in a first video, and the display areas corresponding to the plurality of videos are partial display areas in the display area of the first video; and displaying the videos in the area to be displayed according to the position relation. Therefore, when the dynamic wallpaper containing the video material file is displayed, only the video with the video information is reserved, so that the file size of the video material file can be greatly reduced, and the occupied running memory resource of the terminal equipment can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a desktop wallpaper displaying method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another desktop wallpaper displaying method according to an embodiment of the invention;
fig. 3 is a schematic diagram of video adaptation according to an embodiment of the present invention;
FIG. 4 is an interface diagram of a desktop wallpaper display method according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a display device of desktop wallpaper according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a raindrop special effect display method and device and a computer readable storage medium, which are used for solving the problem of excessive memory occupation of terminal equipment. The following are detailed below.
Referring to fig. 1, a flow chart of a method for displaying desktop wallpaper according to an embodiment of the present invention is shown in fig. 1, where the method may include:
101. receiving a first display instruction which is input by a user and used for displaying the wallpaper and carries the identification of the video material.
Specifically, the terminal device may set a dynamic wallpaper to be displayed on a desktop, and may receive a first display instruction for displaying the wallpaper, which is input by a user, during the setting. The instruction carries a dynamic wallpaper effect selected by a user, wherein the dynamic wallpaper effect can be a dynamic pattern or animation added on a background picture, and the animation is characterized in that video information is not preset at each pixel position in a display area, but only exists at partial video pixel positions, so that the content of the display area which is preset to have no video information is removed from the video material of the embodiment of the invention, and only the part which has the video information is left. The first display instruction may include a user-selected video material identifier of the animation displayed on the background image, and the identifier of the video material may uniquely point to the preset video material.
Optionally, the instruction may trigger an interface display for previewing the dynamic wallpaper, and display the video material on the background picture.
102. And acquiring a corresponding video material containing a plurality of videos and the position relationship among the videos according to the identifier.
Specifically, the terminal can acquire the only video material according to the video material identification in the first display instruction, the video material contains a plurality of videos, the videos can be spliced into a complete video with a preset size according to a preset position relation, the videos contained in the video material are partial videos in different display areas in the first video, the complete video formed by splicing the videos is a partial display area in the display area of the first video, and other display areas do not contain video information. And the video material also comprises the position relationship among the plurality of videos and the position relationship between each video and the size of the preset display area. Therefore, the positions of a plurality of videos can be determined as long as the position of one partial video is determined.
103. And displaying the plurality of videos in the area to be displayed according to the position relation.
In a possible implementation manner, when a user wants to set dynamic wallpaper, a desktop layout of a terminal device may be obtained, a display size of an area where the wallpaper is displayed on the desktop is obtained according to the desktop layout, and after the display size is obtained, a size of each video in a plurality of videos may be adjusted according to a proportional relationship between the display size and a size of a first video in an original material or a size of a combined video. And splicing the adjusted videos according to the position relation, and displaying the videos on a background picture to be output as desktop dynamic wallpaper.
The video material also comprises a video playing sequence, and the plurality of videos are sequentially played according to the video playing sequence when the dynamic wallpaper effect is finally output or previewed.
In the display method of desktop wallpaper depicted in fig. 1, a first display instruction for displaying wallpaper, which is input by a user, is received, where the first display instruction carries an identifier of a video material; acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the videos, the videos are partial videos in different display areas in a first video, and the display areas corresponding to the videos are partial display areas in the display area of the first video; and displaying the plurality of videos in the area to be displayed according to the position relation. Therefore, when the dynamic wallpaper containing the video material file is displayed, only the video with the video information is reserved, so that the file size of the video material file can be greatly reduced, and the occupied running memory resource of the terminal equipment can be reduced. Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another desktop wallpaper display method according to an embodiment of the invention. As shown in fig. 2, the method for displaying desktop wallpaper may include the following steps.
201. And acquiring the display size of the area to be displayed.
In a possible implementation manner, when the size of the preset display area in the obtained video material is the same as the size of the display area of the terminal device, the display size of the video does not need to be adjusted, but when the size of the preset display area is different from the size of the display area of the terminal device, the display size of the video needs to be adjusted.
When the display size is adjusted, the display size of the display area, which may be the length and width size, the size of each side, the shape information of the display area, and the like, needs to be obtained, taking the dynamic wallpaper set as the desktop as an example, the display size of the desktop needs to be obtained, the layout information of the desktop can be obtained, and the display size of the dynamic wallpaper displayed on the desktop is obtained according to the layout information, taking the terminal as an example, the length and width information of the terminal can be obtained.
202. And adjusting the size of each video in the plurality of videos according to the display size.
In a possible implementation manner, when the size of a first part of videos in the plurality of videos after being spliced is the same as any one side of the preset screen size, the first part of videos is a part of videos in the plurality of videos, and may be a plurality of videos after being spliced, the size of the first part of videos may be adjusted according to the position relationship of the videos and the width of the display size, and the other parts of videos except the first part of videos are adjusted according to the adjusted size of the first part of videos. Or the position of each video can be determined according to the position relation of a plurality of videos by adjusting the size of the preset screen in proportion to the size of the display area. The present invention can be adjusted based on the wide side or based on the long side, which is not limited herein. After the adjustment is performed based on the broadside, if the width of each of the plurality of videos reaches the width of the display area after the adjustment, the length of the plurality of videos may not be sufficient to fill the display area after the adjustment, that is, the total length of the plurality of videos after the splicing is smaller than the length in the display size, or the length of the plurality of videos after the adjustment may exceed the display area, that is, the total length of the plurality of videos after the splicing is larger than the length in the display size. And when the adjusted length is smaller than the length in the display size, stretching the spliced videos to the size of the display area in whole, and conversely, compressing the spliced videos to the size of the display area in whole.
In a possible implementation manner, if the length or width of a video in which one or more portions exist in the video material is the same as the length or width of the preset screen, for example, if the width of a video in the video material is the same as the size of the preset screen, the current width of the third portion of the video may be scaled according to the length of the display size and the position relationship between the multiple videos to obtain a scaling ratio, the third portion of the video is a video in which the width of the multiple videos is the same as the width of the preset screen size, and the other videos than the third portion of the multiple portions of the video may be adjusted according to the scaling ratio. When the width of the video is taken as the standard, if the width of the plurality of videos reaches the width of the display area, the length of the plurality of videos may not be enough to fill the display area after the adjustment, that is, the total length of the plurality of videos after the splicing is smaller than the length in the display size, or the length of the plurality of videos after the adjustment may exceed the display area, that is, the total length of the plurality of videos after the splicing is larger than the length in the display size. And when the adjusted length is smaller than the length in the display size, stretching the spliced videos to the size of the display area in whole, and conversely, compressing the spliced videos to the size of the display area in whole.
203. And displaying the adjusted videos in the area to be displayed according to the position relation.
And displaying the adjusted videos in a display area according to the position relation, and receiving a picture display instruction input by a user, wherein the picture display instruction is used for displaying a background picture and is displayed on the image after the size and the position of the video material are determined. And sequentially playing the plurality of videos according to a video playing sequence included in the video material.
Referring to fig. 3, fig. 3 is a schematic diagram of video adaptation according to an embodiment of the present invention, as shown in fig. 3, the left side of fig. 3 is a display of a video material, which is a frame, and the middle of the display is without video information, so that a plurality of videos in the video material only include four sides. The right side is a display area of the terminal, the display area is also divided into four corresponding display areas, the display areas are matched with the display sizes of the display areas according to the position relationship, and the display areas are finally displayed on a desktop according to the position relationship.
Referring to fig. 4, fig. 4 is an interface schematic diagram of a display method of desktop wallpaper disclosed by an embodiment of the present invention, and the scheme of the present invention may be applied to a "leopard magic screen" application program, when a user selects a border special effect, a terminal device may obtain a video material according to a selected identifier, and according to the splitting manner of fig. 3, may first adjust the size and size of A, C partial videos, adjust the size of the remaining two partial videos according to the size of A, C, and then stretch or compress according to the size of a long side. The resulting effect is shown in fig. 4.
In the raindrop special effect display method described in fig. 2, a first display instruction for displaying wallpaper, which is input by a user, is received, where the first display instruction carries an identifier of a video material; acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the videos, the videos are partial videos in different display areas in a first video, and the display areas corresponding to the videos are partial display areas in the display area of the first video; and displaying the plurality of videos in the area to be displayed according to the position relation. Therefore, when the dynamic wallpaper containing the video material file is displayed, only the video with the video information is reserved, so that the file size of the video material file can be greatly reduced, and the occupied running memory resource of the terminal equipment can be reduced.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a display device of desktop wallpaper according to an embodiment of the invention. As shown in fig. 5, the display device 5000 of the desktop wallpaper may include:
a first receiving unit 501, configured to receive a first display instruction for displaying wallpaper, where the first display instruction carries an identifier of a video material, and is input by a user;
a first obtaining unit 502, configured to obtain a corresponding video material according to the identifier, where the video material includes multiple videos and a position relationship between the multiple videos, where the multiple videos are partial videos in different display areas in a first video, and the display areas corresponding to the multiple videos are partial display areas in the display area of the first video;
a display unit 503, configured to display the plurality of videos in the area to be displayed according to the position relationship.
In a possible implementation manner, the display unit 503 is specifically configured to:
acquiring the display size of a to-be-displayed area;
adjusting the size of each video in the plurality of videos according to the display size;
and displaying the adjusted videos in the area to be displayed according to the position relation.
In one possible implementation, the video material further includes a size of each of the plurality of videos;
the adjusting, by the display unit 503, the size of each of the plurality of videos according to the display size includes:
adjusting the width of a first partial video according to the position relation and the width in the display size, wherein the first partial video is a partial video in the plurality of videos;
and adjusting the length of a second part of video according to the length of the first part of video and the length of the display size, wherein the second part of video is the part of the plurality of videos except the first part of video.
In one possible implementation manner, the adjusting, by the display unit 503, the width of the first partial video according to the position relationship and the width of the display size includes:
determining the size of the first part of video according to the position relation;
and adjusting the width of the first part video according to the display size and the size of the first part video.
In one possible implementation manner, the adjusting, by the display unit 503, the size of each of the plurality of videos according to the display size includes:
acquiring the size of a third part of video, wherein the third part of video is a part of video in the plurality of videos;
calculating an adjustment ratio according to the display size and the size of the third part of video;
determining the size of the third part of video according to the position relation;
adjusting the length of the third part of the video according to the adjustment proportion;
and adjusting the length of a fourth part video according to the length in the display size and the adjusted length of the third part video, wherein the fourth part video is a part video except the third part video in the plurality of videos.
In a possible implementation manner, the apparatus 5000 further includes:
a second receiving unit 504, configured to receive a second display instruction for displaying a picture, where the second display instruction carries an image identifier;
a second obtaining unit 505, configured to obtain a corresponding image according to the image identifier;
an adjusting unit 506, configured to adjust the image according to the image and the screen display size;
the display unit 503 is specifically configured to:
and displaying the plurality of partial videos and the image on the screen, wherein the plurality of partial videos are overlaid on the image.
In a possible implementation manner, the video material further includes a playing sequence of the plurality of videos;
the display unit 503 is specifically configured to:
and displaying the plurality of videos in the area to be displayed according to the position relation and the playing sequence.
The device disclosed by the embodiment of the invention receives a first display instruction which is input by a user and used for displaying wallpaper, wherein the first display instruction carries an identifier of a video material; acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the videos, the videos are partial videos in different display areas in a first video, and the display areas corresponding to the videos are partial display areas in the display area of the first video; and displaying the plurality of videos in the area to be displayed according to the position relation. Therefore, when the dynamic wallpaper containing the video material file is displayed, only the video with the video information is reserved, so that the file size of the video material file can be greatly reduced, and the occupied running memory resource of the terminal equipment can be reduced.
It can be understood that the functions of the first receiving unit 501, the first obtaining unit 502, the display unit 503, the second receiving unit 504 and the second obtaining unit 505 of the display apparatus of desktop wallpaper according to this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. As shown in fig. 6, the electronic device 6000 may include:
one or more processors 601, input devices 602, output devices 603, memory 604, transceivers 605. The processor 601, the input device 602, the output device 603, the memory 604, and the transceiver 605 are connected via a bus. Wherein the input device 602 may include a touch screen, a keyboard, a microphone, etc., the output device 603 may include a display screen, a speaker, etc., and the transceiver 605 is used for receiving and transmitting data. The memory 604 is used for storing a computer program comprising program instructions, and the processor 601 is used for executing the program instructions stored in the memory 604, wherein the processor 601 is configured for calling the program instructions to execute the following steps:
receiving a first display instruction which is input by a user and used for displaying wallpaper, wherein the first display instruction carries an identifier of a video material;
acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the videos, the videos are partial videos in different display areas in a first video, and the display areas corresponding to the videos are partial display areas in the display area of the first video;
and displaying the plurality of videos in the area to be displayed according to the position relation.
In one possible implementation manner, the displaying the plurality of videos in the area to be displayed according to the position relationship includes:
acquiring the display size of a to-be-displayed area;
adjusting the size of each video in the plurality of videos according to the display size;
and displaying the adjusted videos in the area to be displayed according to the position relation.
In one possible implementation, the video material further includes a size of each of the plurality of videos;
the adjusting the size of each of the plurality of videos according to the display size includes:
adjusting the width of a first partial video according to the position relation and the width in the display size, wherein the first partial video is a partial video in the plurality of videos;
and adjusting the length of a second part of video according to the length of the first part of video and the length of the display size, wherein the second part of video is the part of the plurality of videos except the first part of video.
In one possible implementation manner, the adjusting the width of the first partial video according to the position relationship and the width in the display size includes:
determining the size of the first part of video according to the position relation;
and adjusting the width of the first part video according to the display size and the size of the first part video.
In one possible implementation manner, the adjusting the size of each of the plurality of videos according to the display size includes:
acquiring the size of a third part of video, wherein the third part of video is a part of video in the plurality of videos;
calculating an adjustment ratio according to the display size and the size of the third part of video;
determining the size of the third part of video according to the position relation;
adjusting the length of the third part of the video according to the adjustment proportion;
and adjusting the length of a fourth part video according to the length in the display size and the adjusted length of the third part video, wherein the fourth part video is a part video except the third part video in the plurality of videos.
In a possible implementation manner, the processor 601 is further configured to invoke program instructions to perform the following steps:
receiving a second display instruction for displaying pictures, wherein the second display instruction carries an image identifier;
acquiring a corresponding image according to the image identifier;
adjusting the image according to the image and the screen display size;
the displaying the plurality of videos in the area to be displayed according to the position relationship includes:
and displaying the plurality of partial videos and the image on the screen, wherein the plurality of partial videos are overlaid on the image.
In a possible implementation manner, the video material further includes a playing sequence of the plurality of videos;
the displaying the plurality of videos in the area to be displayed according to the position relationship includes:
and displaying the plurality of videos in the area to be displayed according to the position relation and the playing sequence.
The first receiving unit 501, the first acquiring unit 502, the display unit 503, the second receiving unit 504, and the second acquiring unit 505 may be implemented by a processor 601 and a memory 602 in the electronic device.
It should be understood that in some possible embodiments, the processor 601 may be a Central Processing Unit (CPU), and the processor 601 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 604 may include both read-only memory and random access memory, and provides instructions and data to the processor. A portion of the memory 604 may also include non-volatile random access memory.
In a specific implementation, the electronic device 6000 may execute the implementation manners disclosed in the steps in fig. 1 to fig. 4 through each built-in functional module thereof, which may specifically refer to the implementation manners disclosed in the steps, and details are not described herein again.
The electronic equipment disclosed by the embodiment of the invention receives a first display instruction which is input by a user and used for displaying wallpaper, wherein the first display instruction carries an identifier of a video material; acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the videos, the videos are partial videos in different display areas in a first video, and the display areas corresponding to the videos are partial display areas in the display area of the first video; and displaying the plurality of videos in the area to be displayed according to the position relation. Therefore, when the dynamic wallpaper containing the video material file is displayed, only the video with the video information is reserved, so that the file size of the video material file can be greatly reduced, and the occupied running memory resource of the terminal equipment can be reduced.
Further, here, it is to be noted that: the present invention further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executed by the aforementioned electronic device, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the desktop wallpaper display method in the embodiment corresponding to fig. 1 to 4 can be performed, and therefore, the description will not be repeated herein. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present invention, reference is made to the description of the method embodiments of the present invention.
The terms "first", "second", and the like in the claims, in the description and in the drawings of the present invention are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A display method of desktop wallpaper is characterized by comprising the following steps:
receiving a first display instruction which is input by a user and used for displaying wallpaper, wherein the first display instruction carries an identifier of a video material;
acquiring a corresponding video material according to the identifier, wherein the video material comprises a plurality of videos and position relations among the plurality of videos, the plurality of videos are partial videos in different display areas in a first video, and the display areas corresponding to the plurality of videos are partial display areas in the display area of the first video;
and displaying the videos in the area to be displayed according to the position relation.
2. The method according to claim 1, wherein said displaying the plurality of videos in the area to be displayed according to the position relationship comprises:
acquiring the display size of a to-be-displayed area;
adjusting the size of each video in the plurality of videos according to the display size;
and displaying the adjusted videos in the area to be displayed according to the position relation.
3. The method of claim 2, wherein the video material further comprises a size of each of the plurality of videos;
the resizing each of the plurality of videos according to the display size includes:
adjusting the width of a first partial video according to the position relation and the width in the display size, wherein the first partial video is a partial video in the plurality of videos;
and adjusting the length of a second part of video according to the length of the first part of video and the length in the display size, wherein the second part of video is the part of the plurality of videos except the first part of video.
4. The method according to claim 3, wherein the adjusting the width of the first partial video according to the position relationship and the width in the display size comprises:
determining the size of the first part of video according to the position relation;
and adjusting the width of the first part video according to the display size and the size of the first part video.
5. The method of claim 2, wherein said resizing each of the plurality of videos according to the display size comprises:
acquiring the size of a third part of video, wherein the third part of video is a part of video in the plurality of videos;
calculating an adjustment ratio according to the display size and the size of the third part of video;
determining the size of the third part of video according to the position relation;
adjusting the length of the third part of the video according to the adjustment proportion;
and adjusting the length of a fourth part of video according to the length in the display size and the adjusted length of a third part of video, wherein the fourth part of video is the part of the plurality of videos except the third part of video.
6. The method according to any one of claims 1-5, further comprising:
receiving a second display instruction for displaying the picture, wherein the second display instruction carries an image identifier;
acquiring a corresponding image according to the image identifier;
adjusting the image according to the image and the screen display size;
the displaying the plurality of videos in the area to be displayed according to the position relation comprises:
displaying the plurality of partial videos and the image on the screen, the plurality of partial videos being overlaid on the image.
7. The method of claim 1, wherein the video material further comprises a playing order of the plurality of videos;
the displaying the plurality of videos in the area to be displayed according to the position relation comprises:
and displaying the videos in a region to be displayed according to the position relation and the playing sequence.
8. A display device for desktop wallpaper, comprising:
the wallpaper display device comprises a first receiving unit, a second receiving unit and a display unit, wherein the first receiving unit is used for receiving a first display instruction which is input by a user and is used for displaying wallpaper, and the first display instruction carries an identifier of a video material;
a first obtaining unit, configured to obtain a corresponding video material according to the identifier, where the video material includes multiple videos and position relationships among the multiple videos, the multiple videos are partial videos in different display areas in a first video, and display areas corresponding to the multiple videos are partial display areas in a display area of the first video;
and the display unit is used for displaying the videos in the area to be displayed according to the position relation.
9. An electronic device, comprising: a processor and a memory;
the processor is coupled to a memory, wherein the memory is configured to store program code and the processor is configured to invoke the program code to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-7.
CN202010126891.0A 2020-02-28 2020-02-28 Desktop wallpaper display method and device and computer readable storage medium Active CN111290822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010126891.0A CN111290822B (en) 2020-02-28 2020-02-28 Desktop wallpaper display method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010126891.0A CN111290822B (en) 2020-02-28 2020-02-28 Desktop wallpaper display method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111290822A true CN111290822A (en) 2020-06-16
CN111290822B CN111290822B (en) 2023-10-20

Family

ID=71018190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010126891.0A Active CN111290822B (en) 2020-02-28 2020-02-28 Desktop wallpaper display method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111290822B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023005182A1 (en) * 2021-07-30 2023-02-02 北京达佳互联信息技术有限公司 Resource processing method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988845A (en) * 2015-03-02 2016-10-05 小米科技有限责任公司 Wallpaper generation method and apparatus
CN107302671A (en) * 2017-06-30 2017-10-27 北京金山安全软件有限公司 Material splicing processing method and device, electronic equipment and storage medium
CN108270920A (en) * 2018-01-16 2018-07-10 深圳市金立通信设备有限公司 A kind of wallpaper setting method, terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988845A (en) * 2015-03-02 2016-10-05 小米科技有限责任公司 Wallpaper generation method and apparatus
CN107302671A (en) * 2017-06-30 2017-10-27 北京金山安全软件有限公司 Material splicing processing method and device, electronic equipment and storage medium
CN108270920A (en) * 2018-01-16 2018-07-10 深圳市金立通信设备有限公司 A kind of wallpaper setting method, terminal and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023005182A1 (en) * 2021-07-30 2023-02-02 北京达佳互联信息技术有限公司 Resource processing method and apparatus

Also Published As

Publication number Publication date
CN111290822B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN107632874B (en) Interface display method and device and terminal
CN110100251B (en) Apparatus, method, and computer-readable storage medium for processing document
KR100965720B1 (en) Method for generating mosaic image and apparatus for the same
CN111756995A (en) Image processing method and device
CN109298912B (en) Theme color adjusting method and device, storage medium and electronic equipment
US20150116368A1 (en) Method and device for adjusting characters of application
CN108495041B (en) Image processing and displaying method and device for electronic terminal
WO2023029379A1 (en) Image special effect generation method and apparatus
CN109146783B (en) Picture stitching method and device, electronic equipment and medium
CN112616078A (en) Screen projection processing method and device, electronic equipment and storage medium
CN114428597A (en) Multi-channel terminal screen projection control method and device, screen projector and storage medium
CN107390986A (en) A kind of mobile terminal cuts out figure control method, storage device and mobile terminal
CN111352560B (en) Screen splitting method and device, electronic equipment and computer readable storage medium
CN111290822A (en) Desktop wallpaper display method and device and computer-readable storage medium
CN111526290B (en) Image processing method, device, terminal and storage medium
CN110992268B (en) Background setting method, device, terminal and storage medium
CN109814953B (en) Wearable device view processing method and device, wearable device and storage medium
CN110264543B (en) Frame drawing method and device of spliced picture and storage medium
CN110069313B (en) Image switching method and device, electronic equipment and storage medium
CN111221444A (en) Split screen special effect processing method and device, electronic equipment and storage medium
CN111045576A (en) Display control method, display control device, terminal device and electronic device
CN115205164A (en) Training method of image processing model, video processing method, device and equipment
WO2023142370A1 (en) Screen mirroring display method and apparatus, and electronic device and readable storage medium
CN110941413B (en) Display screen generation method and related device
CN113625983A (en) Image display method, image display device, computer equipment and 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
GR01 Patent grant
GR01 Patent grant