| CPC G06T 13/80 (2013.01) [G06T 7/0002 (2013.01); G06T 2200/24 (2013.01); G06T 2207/10016 (2013.01); G06T 2207/30168 (2013.01)] | 20 Claims |

|
1. An electronic device, comprising:
a memory and a processor, wherein
the processor is coupled to the memory; and
the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device is enabled to perform:
in response to a received first user operation, selecting a first video from a plurality of videos stored in the electronic device;
dividing the first video into a first sub-video, a second sub-video, and a third sub-video, wherein a last image frame of the first sub-video is a first image frame of the second sub-video, and a last image frame of the second sub-video is a first image frame of the third sub-video, wherein the first video comprises N image frames, and N is an integer greater than 3, and the dividing the first video comprises:
dividing the N image frames of the first video into a first image group, a second image group, and a third image group in an image frame playing sequence,
selecting a first image frame from the first image group based on a first corresponding quality parameter of each image frame in the first image group, selecting a second image frame from the second image group, and selecting a third image frame from the third image group, wherein the first sub-video is between a first image frame in the N image frames and the first image frame from the first image group, the second sub-video is between the first image frame from the first image group and the second image frame, and the third sub-video is between the second image frame and the third image frame, and
setting the first sub-video as a first transition animation, setting the second sub-video as a second transition animation, and setting the third sub-video as a third transition animation;
displaying a screen-off interface on a display of the electronic device in response to a received second user operation, and playing each image frame of the first transition animation on the screen-off interface;
switching the screen-off interface on the display of the electronic device to a lock screen interface in response to a received third user operation, and playing each image frame of the second transition animation on the lock screen interface; and
switching the lock screen interface on the display of the electronic device to a desktop in response to a received fourth user operation, and playing each image frame of the third transition animation on the desktop, wherein the first transition animation, the second transition animation, and the third transition animation are generated based on the first video stored in the electronic device, the last image frame of the first transition animation is the first image frame of the second transition animation, and the last image frame of the second transition animation is the first image frame of the third transition animation.
|