CN113096218B - Dynamic image playing method, device, storage medium and computer equipment - Google Patents
Dynamic image playing method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN113096218B CN113096218B CN201911323823.7A CN201911323823A CN113096218B CN 113096218 B CN113096218 B CN 113096218B CN 201911323823 A CN201911323823 A CN 201911323823A CN 113096218 B CN113096218 B CN 113096218B
- Authority
- CN
- China
- Prior art keywords
- image
- dynamic image
- frame
- decoded
- played
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及多媒体处理技术领域,特别是涉及一种动态图像播放方法、装置、存储介质和计算机设备。The present application relates to the field of multimedia processing technology, and in particular to a dynamic image playback method, device, storage medium and computer equipment.
背景技术Background Art
随着互联网技术的发展,各种类型的应用程序层出不穷,极大的丰富了人们的生活。在短视频应用程序中,通过图片展现内容,其中,图片具体可以包括动态图片和静态图片,简单来说,静态图片是静止的图片,动态图片是由多帧静态图片组成。With the development of Internet technology, various types of applications have emerged in an endless stream, greatly enriching people's lives. In short video applications, content is presented through pictures, among which pictures can specifically include dynamic pictures and static pictures. Simply put, static pictures are still pictures, and dynamic pictures are composed of multiple frames of static pictures.
传统的动态图像播放方法,一般采用解码一张图片,显示一张图片,再解码下一张图片,显示下一张图片,如此循环,实现动图效果。上述动态图像播放方法虽然可以实现动图效果,但在实际应用中由于应用环境硬件限制和/或软件限制,这种动态图像播放方法存在动图加载速度慢的问题。Traditional dynamic image playback methods generally adopt the method of decoding a picture, displaying a picture, then decoding the next picture, displaying the next picture, and so on to achieve the dynamic image effect. Although the above dynamic image playback method can achieve the dynamic image effect, in actual application, due to the hardware limitation and/or software limitation of the application environment, this dynamic image playback method has the problem of slow dynamic image loading speed.
发明内容Summary of the invention
基于此,针对上述技术问题,提供一种可以提高动图加载速度的动态图像播放方法、装置、存储介质和计算机设备。Based on this, in order to solve the above technical problems, a dynamic image playback method, device, storage medium and computer equipment are provided to improve the dynamic image loading speed.
一种动态图像播放方法,包括:A dynamic image playing method, comprising:
获取待播放动态图像标识;Get the dynamic image ID to be played;
查找所述待播放动态图像标识对应的解码图像集合,并读取所述解码图像集合的正序序列信息和倒序序列信息;Searching for a decoded image set corresponding to the to-be-played dynamic image identifier, and reading the forward sequence information and the reverse sequence information of the decoded image set;
基于所述正序序列信息逐帧显示所述解码图像集合中的每帧正序解码图像;Displaying each frame of the positive sequence decoded image in the decoded image set frame by frame based on the positive sequence information;
当最后一帧正序解码图像显示结束时,基于所述倒序序列信息逐帧显示所述解码图像集合中的每帧倒序解码图像。When the display of the last frame of the forward-order decoded image is finished, each frame of the reverse-order decoded image in the decoded image set is displayed frame by frame based on the reverse-order sequence information.
一种动态图像播放装置,所述装置包括:A dynamic image playing device, the device comprising:
数据获取模块,用于获取待播放动态图像标识;A data acquisition module, used to acquire the identifier of the dynamic image to be played;
数据查找模块,用于查找所述待播放动态图像标识对应的解码图像集合,并读取所述解码图像集合的正序序列信息和倒序序列信息;A data search module, used to search for a decoded image set corresponding to the to-be-played dynamic image identifier, and read the forward sequence information and reverse sequence information of the decoded image set;
正序显示模块,用于基于所述正序序列信息逐帧显示所述解码图像集合中的每帧正序解码图像;A positive sequence display module, used for displaying each frame of the positive sequence decoded image in the decoded image set frame by frame based on the positive sequence information;
倒序显示模块,用于当最后一帧正序解码图像显示结束时,基于所述倒序序列信息逐帧显示所述解码图像集合中的每帧倒序解码图像。The reverse order display module is used to display each frame of the reverse order decoded image in the decoded image set frame by frame based on the reverse order sequence information when the display of the last frame of the forward order decoded image is finished.
一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行以下步骤:A computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:
获取待播放动态图像标识;Get the dynamic image ID to be played;
查找所述待播放动态图像标识对应的解码图像集合,并读取所述解码图像集合的正序序列信息和倒序序列信息;Searching for a decoded image set corresponding to the to-be-played dynamic image identifier, and reading the forward sequence information and reverse sequence information of the decoded image set;
基于所述正序序列信息逐帧显示所述解码图像集合中的每帧正序解码图像;Displaying each frame of the positive sequence decoded image in the decoded image set frame by frame based on the positive sequence information;
当最后一帧正序解码图像显示结束时,基于所述倒序序列信息逐帧显示所述解码图像集合中的每帧倒序解码图像。When the display of the last frame of the forward-order decoded image is finished, each frame of the reverse-order decoded image in the decoded image set is displayed frame by frame based on the reverse-order sequence information.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行以下步骤:A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
获取待播放动态图像标识;Get the dynamic image ID to be played;
查找所述待播放动态图像标识对应的解码图像集合,并读取所述解码图像集合的正序序列信息和倒序序列信息;Searching for a decoded image set corresponding to the to-be-played dynamic image identifier, and reading the forward sequence information and the reverse sequence information of the decoded image set;
基于所述正序序列信息逐帧显示所述解码图像集合中的每帧正序解码图像;Displaying each frame of the positive sequence decoded image in the decoded image set frame by frame based on the positive sequence information;
当最后一帧正序解码图像显示结束时,基于所述倒序序列信息逐帧显示所述解码图像集合中的每帧倒序解码图像。When the display of the last frame of the forward-order decoded image is finished, each frame of the reverse-order decoded image in the decoded image set is displayed frame by frame based on the reverse-order sequence information.
上述动态图像播放方法、装置、存储介质和计算机设备,通过获取待播放动态图像标识,查找待播放动态图像标识对应的解码图像集合,并读取解码图像集合的正序序列信息和倒序序列信息,直接获取动图对应的解码图像,无需每帧图像显示之前均进行解码处理,为后继动图加载节约时间,基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像,当最后一帧正序解码图像显示结束时,基于倒序序列信息逐帧显示解码图像集合中的每帧倒序解码图像,结合正序序列和倒序序列的方式实现动图效果,去除了动图中重复的图像帧,减少了动图中的图像帧数量,因而可以有效提升动图加载速度。The above-mentioned dynamic image playback method, device, storage medium and computer equipment obtain the dynamic image identifier to be played, search for the decoded image set corresponding to the dynamic image identifier to be played, and read the forward sequence information and reverse sequence information of the decoded image set to directly obtain the decoded image corresponding to the dynamic image. There is no need to perform decoding processing before displaying each frame of the image, which saves time for subsequent dynamic image loading. Each frame of the forward decoded image in the decoded image set is displayed frame by frame based on the forward sequence information. When the last frame of the forward decoded image is displayed, each frame of the reverse decoded image in the decoded image set is displayed frame by frame based on the reverse sequence information. The forward sequence and reverse sequence are combined to achieve the dynamic image effect, remove the repeated image frames in the dynamic image, and reduce the number of image frames in the dynamic image, so that the dynamic image loading speed can be effectively improved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为一个实施例中动态图像播放方法的应用环境图;FIG1 is a diagram showing an application environment of a dynamic image playing method according to an embodiment;
图2为一个实施例中动态图像播放方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a method for playing a dynamic image in one embodiment;
图3为一个实施例中封面动图的示意图;FIG3 is a schematic diagram of a cover animation in one embodiment;
图4为一个实施例中封面动图特性的示意图;FIG4 is a schematic diagram of a cover animation feature in one embodiment;
图5为一个实施例中动态图像播放流程的示意图;FIG5 is a schematic diagram of a dynamic image playback process in one embodiment;
图6为另一个实施例中动态图像播放流程的示意图;FIG6 is a schematic diagram of a dynamic image playback process in another embodiment;
图7为一个实施例中动态图像播放装置的结构框图;FIG7 is a structural block diagram of a dynamic image playback device in one embodiment;
图8为一个实施例中计算机设备的结构框图。FIG8 is a block diagram of a computer device in one embodiment.
具体实施方式DETAILED DESCRIPTION
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
图1为一个实施例中动态图像播放方法的应用环境图。参照图1,该应用场景包括移动终端102和服务器104,移动终端102通过网络与服务器104连接。服务器104获取待播放动态图像标识;查找待播放动态图像标识对应的解码图像集合,并读取解码图像集合的正序序列信息和倒序序列信息;基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像;当最后一帧正序解码图像显示结束时,基于倒序序列信息逐帧显示解码图像集合中的每帧倒序解码图像。其中,移动终端102具体可以是手机、平板电脑等,移动终端102的数量可以是多个,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。本申请实施例中动态图像播放方法可以由服务器104来执行,也可以由移动终端102来执行,还可以是由服务器104和移动终端102共同执行。具体地,移动终端102执行本申请实施例中动态图像播放方法可以通过处理器来执行。FIG. 1 is an application environment diagram of a dynamic image playback method in an embodiment. Referring to FIG. 1 , the application scenario includes a mobile terminal 102 and a server 104, and the mobile terminal 102 is connected to the server 104 through a network. The server 104 obtains the dynamic image identifier to be played; searches for the decoded image set corresponding to the dynamic image identifier to be played, and reads the forward sequence information and reverse sequence information of the decoded image set; displays each forward decoded image in the decoded image set frame by frame based on the forward sequence information; when the last forward decoded image is displayed, displays each reverse decoded image in the decoded image set frame by frame based on the reverse sequence information. Among them, the mobile terminal 102 can be a mobile phone, a tablet computer, etc., the number of mobile terminals 102 can be multiple, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers. In the embodiment of the present application, the dynamic image playback method can be executed by the server 104, or by the mobile terminal 102, or by the server 104 and the mobile terminal 102. Specifically, the mobile terminal 102 can execute the dynamic image playback method in the embodiment of the present application by a processor.
如图2所示,在一个实施例中,提供了一种动态图像播放方法。本实施例主要以该方法应用于上述图1中的服务器104来举例说明。参照图2,该方法具体包括如下步骤:As shown in FIG2 , in one embodiment, a method for playing a dynamic image is provided. This embodiment mainly uses the method applied to the server 104 in FIG1 as an example. Referring to FIG2 , the method specifically includes the following steps:
S202,获取待播放动态图像标识。S202, obtaining the identifier of the dynamic image to be played.
其中,动态图像可以包括GIF(Graphics Interchange Format,图像交换格式)动图、WebP动图等。待播放动态图像标识是指用户在通过短视频应用程序播放动态图像的过程中,用于区分短视频应用程序中不同状态的动态图像的标识。比如,用户在移动终端上点击某个已安装的短视频应用程序,进入该短视频应用程序主界面,主界面为某个正在播放的推荐动态图像,当用户通过滑动手势想要播放下一个动态图像时,下一个动态图像即为待播放动态图像标识对应的图像。又例如,用户在移动终端上点击某个已安装的短视频应用程序,进入该短视频应用程序主界面,主界面包括多个推荐动态图像,当用户通过点击操作在多个推荐动态图像中选择某个想要播放的动态图像时,选中的动态图像即为待播放动态图像标识对应的图像。Among them, dynamic images may include GIF (Graphics Interchange Format) dynamic images, WebP dynamic images, etc. The identification of the dynamic image to be played refers to the identification used to distinguish dynamic images in different states in the short video application when the user plays the dynamic image through the short video application. For example, the user clicks on an installed short video application on the mobile terminal to enter the main interface of the short video application. The main interface is a recommended dynamic image that is being played. When the user wants to play the next dynamic image through a sliding gesture, the next dynamic image is the image corresponding to the identification of the dynamic image to be played. For another example, the user clicks on an installed short video application on the mobile terminal to enter the main interface of the short video application. The main interface includes multiple recommended dynamic images. When the user selects a dynamic image that he wants to play from multiple recommended dynamic images through a clicking operation, the selected dynamic image is the image corresponding to the identification of the dynamic image to be played.
S204,查找待播放动态图像标识对应的解码图像集合,并读取解码图像集合的正序序列信息和倒序序列信息。S204, searching for a decoded image set corresponding to the to-be-played dynamic image identifier, and reading the forward sequence information and reverse sequence information of the decoded image set.
解码是指受传者将接收到的符号或代码还原为信息的过程,与编码过程相对应。由于动图图像中的图像是一种压缩的位图图形格式,因此,在将图像渲染显示之前,必须获得图像的原始像素数据,才能执行后续的绘制操作,即需要对动图图像进行解码操作,获得解码图像。解码图像集合包括对动图图像中的每一图像帧进行解码处理后的多个解码图像。Decoding refers to the process of the receiver restoring the received symbols or codes into information, which corresponds to the encoding process. Since the image in the animated image is a compressed bitmap graphic format, before the image is rendered and displayed, the original pixel data of the image must be obtained to perform subsequent drawing operations, that is, the animated image needs to be decoded to obtain a decoded image. The decoded image set includes multiple decoded images after decoding each image frame in the animated image.
正序序列信息是指按照正序的顺序对解码图像集合中的图像进行排序,倒序序列信息是指按照倒序的顺序对解码图像集合中的图像进行排序。比如,解码图像集合包括图像帧1、图像帧2、图像帧3、图像帧4和图像帧5,正序序列信息是指顺序为图像帧1、图像帧2、图像帧3、图像帧4和图像帧5的解码图像,倒序序列信息是指顺序为图像帧5、图像帧4、图像帧3、图像帧2和图像帧1的解码图像。The positive sequence information refers to sorting the images in the decoded image set in the positive order, and the reverse sequence information refers to sorting the images in the decoded image set in the reverse order. For example, the decoded image set includes image frame 1, image frame 2, image frame 3, image frame 4 and image frame 5, the positive sequence information refers to the decoded images in the order of image frame 1, image frame 2, image frame 3, image frame 4 and image frame 5, and the reverse sequence information refers to the decoded images in the order of image frame 5, image frame 4, image frame 3, image frame 2 and image frame 1.
S206,基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像。S206 , displaying each frame of the decoded image in the decoded image set frame by frame based on the positive sequence information.
以解码图像集合包括图像帧1、图像帧2、图像帧3、图像帧4和图像帧5为例,正序序列信息是指顺序为图像帧1、图像帧2、图像帧3、图像帧4和图像帧5的解码图像。基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像,即为按照图像帧1、图像帧2、图像帧3、图像帧4和图像帧5的顺序逐帧显示图像。Taking the decoded image set including image frame 1, image frame 2, image frame 3, image frame 4 and image frame 5 as an example, the positive sequence information refers to the decoded images in the order of image frame 1, image frame 2, image frame 3, image frame 4 and image frame 5. Displaying each positive sequence decoded image in the decoded image set frame by frame based on the positive sequence information means displaying the images frame by frame in the order of image frame 1, image frame 2, image frame 3, image frame 4 and image frame 5.
S208,当最后一帧正序解码图像显示结束时,基于倒序序列信息逐帧显示解码图像集合中的每帧倒序解码图像。S208, when the display of the last frame of the forward-order decoded image is finished, display each frame of the reverse-order decoded image in the decoded image set frame by frame based on the reverse-order sequence information.
以解码图像集合包括图像帧1、图像帧2、图像帧3、图像帧4和图像帧5为例,倒序序列信息是指顺序为图像帧5、图像帧4、图像帧3、图像帧2和图像帧1的解码图像。在基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像之后,基于倒序序列信息逐帧显示解码图像集合中的每帧倒序解码图像,即为按照图像帧1、图像帧2、图像帧3、图像帧4、图像帧5、图像帧4、图像帧3、图像帧2和图像帧1的顺序逐帧显示图像,以保证图像显示的连续性,避免出现图像帧跳变的情况。Taking the decoded image set including image frame 1, image frame 2, image frame 3, image frame 4 and image frame 5 as an example, the reverse sequence information refers to the decoded images in the order of image frame 5, image frame 4, image frame 3, image frame 2 and image frame 1. After displaying each frame of the decoded image in the decoded image set frame by frame based on the forward sequence information, each frame of the decoded image in the decoded image set is displayed frame by frame based on the reverse sequence information, that is, the images are displayed frame by frame in the order of image frame 1, image frame 2, image frame 3, image frame 4, image frame 5, image frame 4, image frame 3, image frame 2 and image frame 1, so as to ensure the continuity of image display and avoid the situation of image frame jump.
上述动态图像播放方法,通过获取待播放动态图像标识,查找待播放动态图像标识对应的解码图像集合,并读取解码图像集合的正序序列信息和倒序序列信息,直接获取动图对应的解码图像,无需每帧图像显示之前均进行解码处理,为后继动图加载节约时间,基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像,当最后一帧正序解码图像显示结束时,基于倒序序列信息逐帧显示解码图像集合中的每帧倒序解码图像,结合正序序列和倒序序列的方式实现动图效果,去除了动图中重复的图像帧,减少了动图中的图像帧数量,因而可以有效提升动图加载速度。The above-mentioned dynamic image playback method obtains the dynamic image identifier to be played, searches for the decoded image set corresponding to the dynamic image identifier to be played, and reads the forward sequence information and reverse sequence information of the decoded image set to directly obtain the decoded image corresponding to the dynamic image. There is no need to perform decoding processing before displaying each frame of the image, which saves time for subsequent dynamic image loading. Each frame of the forward decoded image in the decoded image set is displayed frame by frame based on the forward sequence information. When the last frame of the forward decoded image is displayed, each frame of the reverse decoded image in the decoded image set is displayed frame by frame based on the reverse sequence information. The forward sequence and reverse sequence are combined to achieve the dynamic image effect, remove the repeated image frames in the dynamic image, and reduce the number of image frames in the dynamic image, thereby effectively improving the dynamic image loading speed.
在一个实施例中,查找待播放动态图像标识对应的解码图像集合包括:基于待播放动态图像标识在预先缓存数据中进行图像查找;当预先缓存数据中存在待播放动态图像标识对应的解码图像集合时,获取解码图像集合。缓存是指可以进行高速数据交换的存储器,是数据交换的缓冲区。在移动终端的数据处理过程中,比如CPU(Central ProcessingUnit,中央处理器)需要读取数据时,首先从缓存中查询数据,从缓存中读取数据比从内存中读取数据更快,因此,缓存数据有助于提升后续数据处理速度。缓存数据是指存储于缓存中的数据,具体可以按照动态图像标识与解码图像集合的对应关系存储数据。比如,待播放动态图像标识对应的动态图像为A,在缓存数据中根据动态图像标识与解码图像集合之间的对应关系查找动态图像A,当缓存数据中存在动态图像A对应的解码图像集合时,无需对动态图像A的每帧图像进行解码处理,直接获取该解码图像集合,这样可以为后继动图加载节约时间。In one embodiment, searching for a decoded image set corresponding to the to-be-played dynamic image identifier includes: searching for images in pre-cached data based on the to-be-played dynamic image identifier; when a decoded image set corresponding to the to-be-played dynamic image identifier exists in the pre-cached data, obtaining the decoded image set. Cache refers to a memory that can perform high-speed data exchange, and is a buffer for data exchange. In the data processing process of the mobile terminal, for example, when the CPU (Central Processing Unit) needs to read data, it first queries the data from the cache. Reading data from the cache is faster than reading data from the memory. Therefore, cache data helps to improve the subsequent data processing speed. Cache data refers to data stored in the cache, and specifically, data can be stored according to the corresponding relationship between the dynamic image identifier and the decoded image set. For example, the dynamic image corresponding to the to-be-played dynamic image identifier is A. In the cache data, dynamic image A is searched according to the corresponding relationship between the dynamic image identifier and the decoded image set. When there is a decoded image set corresponding to dynamic image A in the cache data, it is not necessary to decode each frame of dynamic image A, and the decoded image set is directly obtained, which can save time for subsequent dynamic image loading.
在一个实施例中,动态图像播放方法还包括:当预先缓存数据中不存在待播放动态图像标识对应的解码图像集合时,获取待播放动态图像标识对应的动态图像;对动态图像中的图像帧进行解码处理,获得待播放动态图像标识对应的解码图像集合。缓存数据是指存储于缓存中的数据,具体可以按照动态图像标识与解码图像集合的对应关系存储数据。比如,待播放动态图像标识对应的动态图像为B,在缓存数据中根据动态图像标识与解码图像集合之间的对应关系查找动态图像B,当缓存数据中不存在动态图像B对应的解码图像集合时,需要获取动态图像B,对获取到的动态图像B中的图像帧进行解码处理,获得动态图像B对应的解码图像集合。比如,用户通过移动终端的某个短视频应用程序发起播放某个动图的请求,而在移动终端的缓存中不存在该动图的解码图像时,此时,移动终端可以向云端服务器发起图像下载请求,图像下载请求携带待下载动图标识,请求服务器向移动终端返回该动图数据。具体地,动图图像可以通过从预设的视频文件中基于预设规则抽取图像帧得到,也可以通过将多帧静态图像组合得到。In one embodiment, the dynamic image playing method further includes: when there is no decoded image set corresponding to the dynamic image identifier to be played in the pre-cached data, obtaining the dynamic image corresponding to the dynamic image identifier to be played; decoding the image frame in the dynamic image to obtain the decoded image set corresponding to the dynamic image identifier to be played. Cache data refers to data stored in the cache, and the data can be stored according to the correspondence between the dynamic image identifier and the decoded image set. For example, the dynamic image corresponding to the dynamic image identifier to be played is B, and the dynamic image B is searched in the cache data according to the correspondence between the dynamic image identifier and the decoded image set. When there is no decoded image set corresponding to the dynamic image B in the cache data, it is necessary to obtain the dynamic image B, and decode the image frames in the obtained dynamic image B to obtain the decoded image set corresponding to the dynamic image B. For example, when a user initiates a request to play a certain dynamic image through a short video application of a mobile terminal, and there is no decoded image of the dynamic image in the cache of the mobile terminal, at this time, the mobile terminal can initiate an image download request to the cloud server, and the image download request carries the dynamic image identifier to be downloaded, and requests the server to return the dynamic image data to the mobile terminal. Specifically, the animated image can be obtained by extracting image frames from a preset video file based on a preset rule, or by combining multiple frames of static images.
在一个实施例中,对动态图像中的图像帧进行解码处理,获得待播放动态图像标识对应的解码图像集合包括:对动态图像中的当前帧图像进行解码处理,获得当前帧解码图像,并显示当前帧解码图像;对动态图像中的下一帧图像进行解码处理,获得下一帧解码图像,并显示下一帧解码图像;根据当前帧解码图像以及下一帧解码图像,获得待播放动态图像标识对应的解码图像集合;获得待播放动态图像标识对应的解码图像集合之后,还包括:将待播放动态图像标识对应的解码图像集合添加至预先缓存数据中。将获取到的动图图像按照图像帧进行解码,解码一帧,显示一帧,实现边解码边显示的效果,而无需等待所有的图像帧解码完成后再显示,可以缩短等待时长。在动态图像的全部图像帧解码完成后,将所有的解码图像添加至缓存数据中,这样在需要对动态图像的解码图像集合进行读取时,可以直接从缓存中读取,而无需再次对动态图像进行解码,可以有效缩短动态图像加载所需时长。In one embodiment, decoding the image frames in the dynamic image to obtain the decoded image set corresponding to the dynamic image identifier to be played includes: decoding the current frame image in the dynamic image to obtain the decoded image of the current frame and display the decoded image of the current frame; decoding the next frame image in the dynamic image to obtain the decoded image of the next frame and display the decoded image of the next frame; obtaining the decoded image set corresponding to the dynamic image identifier to be played according to the decoded image of the current frame and the decoded image of the next frame; after obtaining the decoded image set corresponding to the dynamic image identifier to be played, it also includes: adding the decoded image set corresponding to the dynamic image identifier to be played to the pre-cached data. The acquired dynamic image is decoded according to the image frame, decoding one frame and displaying one frame, so as to achieve the effect of decoding and displaying at the same time, without waiting for all the image frames to be decoded before displaying, which can shorten the waiting time. After all the image frames of the dynamic image are decoded, all the decoded images are added to the cache data, so that when the decoded image set of the dynamic image needs to be read, it can be directly read from the cache without decoding the dynamic image again, which can effectively shorten the time required for loading the dynamic image.
在一个实施例中,当待播放动态图像标识对应的动态图像包括2m帧图像时,解码图像集合包括m帧图像;当待播放动态图像标识对应的动态图像包括2m+1帧图像时,解码图像集合包括m+1帧图像;其中,m为正整数。在短视频应用程序中,在进入某个视频之前,一般会先显示封面动图,如图3所示。以视频封面动图包括N帧图像为例,视频封面动图中第1帧图像的内容与第N帧图像的内容相同,第2帧图像的内容与第N-1帧图像的内容相同,第3帧图像的内容与第N-2帧图像的内容相同,以此类推,如图4所示。In one embodiment, when the dynamic image corresponding to the dynamic image identifier to be played includes 2m frames of images, the decoded image set includes m frames of images; when the dynamic image corresponding to the dynamic image identifier to be played includes 2m+1 frames of images, the decoded image set includes m+1 frames of images; wherein m is a positive integer. In a short video application, before entering a certain video, a cover animated image is generally displayed first, as shown in FIG3. Taking the video cover animated image including N frames of images as an example, the content of the first frame of the video cover animated image is the same as the content of the Nth frame of the image, the content of the second frame of the image is the same as the content of the N-1th frame of the image, the content of the third frame of the image is the same as the content of the N-2th frame of the image, and so on, as shown in FIG4.
比如,视频封面动图包括9帧图像,第1帧图像的内容与第9帧图像的内容相同,第2帧图像的内容与第8帧图像的内容相同,第3帧图像的内容与第7帧图像的内容相同,第4帧图像的内容与第6帧图像的内容相同。通过传统的动态图像播放方法播放该封面动图时,如图5所示,首先下载该封面动图对应的9帧图像,然后解码第1帧图像,显示第1帧图像;解码第2帧图像,显示第2帧图像;解码第3帧图像,显示第3帧图像;解码第4帧图像,显示第4帧图像;解码第5帧图像,显示第5帧图像;解码第6帧图像,显示第6帧图像;解码第7帧图像,显示第7帧图像……解码第9帧图像,显示第9帧图像,再解码第1帧图像,显示第1帧图像……如此循环播放。For example, the video cover animation includes 9 frames of images, the content of the 1st frame of image is the same as the content of the 9th frame of image, the content of the 2nd frame of image is the same as the content of the 8th frame of image, the content of the 3rd frame of image is the same as the content of the 7th frame of image, and the content of the 4th frame of image is the same as the content of the 6th frame of image. When the cover animation is played by the traditional dynamic image playing method, as shown in FIG5, the 9 frames of image corresponding to the cover animation are first downloaded, and then the 1st frame of image is decoded and displayed; the 2nd frame of image is decoded and displayed; the 3rd frame of image is decoded and displayed; the 4th frame of image is decoded and displayed; the 5th frame of image is decoded and displayed; the 6th frame of image is decoded and displayed; the 7th frame of image is decoded and displayed... the 9th frame of image is decoded and displayed, and the 1st frame of image is decoded and displayed... and the playback is repeated in this way.
而采用本申请中的动态图像播放方法,如图6所示,在下载该封面动图对应的9帧图像后,解码第1帧图像,显示第1帧图像;解码第2帧图像,显示第2帧图像;解码第3帧图像,显示第3帧图像;解码第4帧图像,显示第4帧图像;解码第5帧图像,显示第5帧图像。将解码后的图像帧加入缓存中,对于重复的图像帧不再解码,后续直接从缓存中调用对应的图像帧进行显示。即本申请中的动态图像播放处理流程为:解码第1帧图像,显示第1帧图像;解码第2帧图像,显示第2帧图像;解码第3帧图像,显示第3帧图像;解码第4帧图像,显示第4帧图像;解码第5帧图像,显示第5帧图像;显示第4帧图像-显示第3帧图像-显示第2帧图像-显示第1帧图像-显示第2帧图像-显示第3帧图像-显示第4帧图像-显示第5帧图像-显示第4帧图像-显示第3帧图像……如此循环播放。However, the dynamic image playback method in the present application is adopted, as shown in FIG6, after downloading the 9 frames of images corresponding to the cover dynamic image, the first frame of the image is decoded and displayed; the second frame of the image is decoded and displayed; the third frame of the image is decoded and displayed; the fourth frame of the image is decoded and displayed; the fifth frame of the image is decoded and displayed. The decoded image frames are added to the cache, and the repeated image frames are no longer decoded, and the corresponding image frames are directly called from the cache for display later. That is, the dynamic image playback processing flow in the present application is: decode the first frame image, display the first frame image; decode the second frame image, display the second frame image; decode the third frame image, display the third frame image; decode the fourth frame image, display the fourth frame image; decode the fifth frame image, display the fifth frame image; display the fourth frame image - display the third frame image - display the second frame image - display the first frame image - display the second frame image - display the third frame image - display the fourth frame image - display the fifth frame image - display the fourth frame image - display the third frame image... and play in this way in a loop.
采用本申请中的动态图像播放方法,可以大幅减少动图字节数,比如,5帧动图的字节数大概是9帧动图的字节数的57%。此外,还可以大幅减少动图加载耗时,加载5帧动图所需时间大概比加载9帧动图所需时间下降30%。而且,大幅降低了动图的CPU占用,5帧动图与9帧动图相比较,CPU占用大概从40%的占用下降至5%的占用。The dynamic image playback method in this application can significantly reduce the number of bytes of dynamic images. For example, the number of bytes of a 5-frame dynamic image is about 57% of the number of bytes of a 9-frame dynamic image. In addition, the time required to load a 5-frame dynamic image is about 30% less than the time required to load a 9-frame dynamic image. Moreover, the CPU usage of dynamic images is greatly reduced. Compared with 9-frame dynamic images, the CPU usage of 5-frame dynamic images is reduced from about 40% to 5%.
在一个实施例中,动态图像播放方法还包括:实时侦听动态图像界面的操作请求;当侦听到离开动态图像界面的操作请求时,删除解码图像集合数据。动态图像界面是指进入短视频应用程序后,动态图像的功能界面。动态图像界面的操作请求是指用户基于短视频应用程序的动态图像界面发起的操作,比如观看下一个动态图像的操作、离开动态图像界面的操作等。具体地,可以预先建立操作与指令的对应关系,比如,向右滑动一下的操作对应跳转至下一个动态图像的指令,连续向右滑动两下的操作对应离开动态图像界面的指令等。当侦听到离开动态图像界面的操作请求时,删除解码图像集合数据,释放存储空间,比如,解码图像集合数据存储于缓存中,而缓存容量有限,因此,在离开动态图像界面时,删除动态图像对应的解码图像集合数据,可以及时地释放缓存空间,方便后续的缓存数据存储和读取。In one embodiment, the dynamic image playback method further includes: real-time monitoring of the operation request of the dynamic image interface; when the operation request to leave the dynamic image interface is monitored, the decoded image set data is deleted. The dynamic image interface refers to the functional interface of the dynamic image after entering the short video application. The operation request of the dynamic image interface refers to the operation initiated by the user based on the dynamic image interface of the short video application, such as the operation of watching the next dynamic image, the operation of leaving the dynamic image interface, etc. Specifically, the correspondence between the operation and the instruction can be established in advance, for example, the operation of sliding to the right once corresponds to the instruction to jump to the next dynamic image, and the operation of sliding to the right twice in succession corresponds to the instruction to leave the dynamic image interface, etc. When the operation request to leave the dynamic image interface is monitored, the decoded image set data is deleted to release the storage space. For example, the decoded image set data is stored in the cache, and the cache capacity is limited. Therefore, when leaving the dynamic image interface, the decoded image set data corresponding to the dynamic image is deleted, which can timely release the cache space and facilitate the subsequent storage and reading of the cache data.
在一个实施例中,获取待播放动态图像标识包括:实时侦听动态图像界面的操作请求;当侦听到进入动态图像界面的操作请求时,获取动态图像界面对应的待播放动态图像标识。获取预先建立的操作与指令的对应关系,比如,双击短视频应用程序图标的操作对应进入动态图像界面的指令。当侦听到进入动态图像界面的操作请求时,获取动态图像界面对应的待播放动态图像标识,查找待播放动态图像标识对应的解码图像集合,并读取解码图像集合的正序序列信息和倒序序列信息;基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像;当最后一帧正序解码图像显示结束时,基于倒序序列信息逐帧显示解码图像集合中的每帧倒序解码图像。In one embodiment, obtaining the identification of the dynamic image to be played includes: real-time monitoring of the operation request of the dynamic image interface; when the operation request to enter the dynamic image interface is monitored, obtaining the identification of the dynamic image to be played corresponding to the dynamic image interface. Obtain the correspondence between the pre-established operation and the instruction, for example, the operation of double-clicking the short video application icon corresponds to the instruction to enter the dynamic image interface. When the operation request to enter the dynamic image interface is monitored, obtain the identification of the dynamic image to be played corresponding to the dynamic image interface, find the decoded image set corresponding to the dynamic image identification to be played, and read the forward sequence information and reverse sequence information of the decoded image set; based on the forward sequence information, display each frame of the forward decoded image in the decoded image set frame by frame; when the display of the last frame of the forward decoded image is finished, display each frame of the reverse decoded image in the decoded image set frame by frame based on the reverse sequence information.
应该理解的是,虽然图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowchart of Fig. 2 are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in Fig. 2 may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
基于与上述方法相同的思想,图7示出了一个实施例的动态图像播放装置的结构示意图,该实施例是以设置在服务器104为例进行说明。Based on the same concept as the above method, FIG. 7 shows a schematic diagram of the structure of a dynamic image playback device according to an embodiment. This embodiment is described by taking the device being set in the server 104 as an example.
如图7所示,该实施例中的动态图像播放装置包括:As shown in FIG. 7 , the dynamic image playback device in this embodiment includes:
数据获取模块702,用于获取待播放动态图像标识;The data acquisition module 702 is used to acquire the dynamic image identifier to be played;
数据查找模块704,用于查找待播放动态图像标识对应的解码图像集合,并读取解码图像集合的正序序列信息和倒序序列信息;The data search module 704 is used to search for a decoded image set corresponding to the dynamic image identifier to be played, and read the forward sequence information and reverse sequence information of the decoded image set;
正序显示模块706,用于基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像;A positive sequence display module 706, configured to display each frame of the positive sequence decoded image in the decoded image set frame by frame based on the positive sequence information;
倒序显示模块708,用于当最后一帧正序解码图像显示结束时,基于倒序序列信息逐帧显示解码图像集合中的每帧倒序解码图像。The reverse order display module 708 is used to display each frame of the reverse order decoded image in the decoded image set frame by frame based on the reverse order sequence information when the display of the last frame of the forward order decoded image is finished.
在一个实施例中,数据查找模块还用于基于待播放动态图像标识在预先缓存数据中进行图像查找;当预先缓存数据中存在待播放动态图像标识对应的解码图像集合时,获取解码图像集合。In one embodiment, the data search module is further used to search for images in the pre-cached data based on the dynamic image identifier to be played; when a decoded image set corresponding to the dynamic image identifier to be played exists in the pre-cached data, the decoded image set is obtained.
在一个实施例中,数据查找模块还用于当预先缓存数据中不存在待播放动态图像标识对应的解码图像集合时,获取待播放动态图像标识对应的动态图像;对动态图像中的图像帧进行解码处理,获得待播放动态图像标识对应的解码图像集合。In one embodiment, the data search module is also used to obtain the dynamic image corresponding to the dynamic image identifier to be played when there is no decoded image set corresponding to the dynamic image identifier to be played in the pre-cached data; decode the image frames in the dynamic image to obtain the decoded image set corresponding to the dynamic image identifier to be played.
在一个实施例中,数据查找模块还用于对动态图像中的当前帧图像进行解码处理,获得当前帧解码图像,并显示当前帧解码图像;对动态图像中的下一帧图像进行解码处理,获得下一帧解码图像,并显示下一帧解码图像;根据当前帧解码图像以及下一帧解码图像,获得待播放动态图像标识对应的解码图像集合;动态图像播放装置还包括数据存储模块,用于将待播放动态图像标识对应的解码图像集合添加至预先缓存数据中。In one embodiment, the data search module is also used to decode the current frame image in the dynamic image, obtain the current frame decoded image, and display the current frame decoded image; decode the next frame image in the dynamic image, obtain the next frame decoded image, and display the next frame decoded image; obtain the decoded image set corresponding to the dynamic image identifier to be played based on the current frame decoded image and the next frame decoded image; the dynamic image playback device also includes a data storage module, which is used to add the decoded image set corresponding to the dynamic image identifier to be played to the pre-cached data.
在一个实施例中,当待播放动态图像标识对应的动态图像包括2m帧图像时,解码图像集合包括m帧图像;当待播放动态图像标识对应的动态图像包括2m+1帧图像时,解码图像集合包括m+1帧图像;其中,m为正整数。In one embodiment, when the dynamic image corresponding to the dynamic image identifier to be played includes 2m frames of images, the decoded image set includes m frames of images; when the dynamic image corresponding to the dynamic image identifier to be played includes 2m+1 frames of images, the decoded image set includes m+1 frames of images; wherein m is a positive integer.
在一个实施例中,动态图像播放装置还包括数据删除模块,用于实时侦听动态图像界面的操作请求;当侦听到离开动态图像界面的操作请求时,删除解码图像集合数据。In one embodiment, the dynamic image playback device further includes a data deletion module, which is used to monitor the operation request of the dynamic image interface in real time; when the operation request to leave the dynamic image interface is monitored, the decoded image set data is deleted.
在一个实施例中,数据获取模块还用于实时侦听动态图像界面的操作请求;当侦听到进入动态图像界面的操作请求时,获取动态图像界面对应的待播放动态图像标识。In one embodiment, the data acquisition module is further used to monitor the operation request of the dynamic image interface in real time; when the operation request to enter the dynamic image interface is monitored, the dynamic image identifier to be played corresponding to the dynamic image interface is acquired.
图8示出了一个实施例中计算机设备的内部结构图。该计算机设备具体可以是图1中的移动终端102或服务器104。如图8所示,该计算机设备包括通过系统总线连接的处理器802、存储器804、网络接口806、输入装置808、显示屏810、摄像头812、声音采集装置814和扬声器816。其中,存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现动态图像播放方法。该内存储器中也可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器执行动态图像播放方法。计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。FIG8 shows an internal structure diagram of a computer device in an embodiment. The computer device may specifically be the mobile terminal 102 or the server 104 in FIG1 . As shown in FIG8 , the computer device includes a processor 802, a memory 804, a network interface 806, an input device 808, a display screen 810, a camera 812, a sound collection device 814, and a speaker 816 connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program, which, when executed by the processor, enables the processor to implement a dynamic image playback method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute a dynamic image playback method. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or may be a key, trackball or touchpad provided on the housing of the computer device, or may be an external keyboard, touchpad or mouse, etc.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 8 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
在一个实施例中,本申请提供的动态图像播放装置可以实现为一种计算机程序的形式,计算机程序可在如图8所示的计算机设备上运行。计算机设备的存储器中可存储组成该动态图像播放装置的各个程序模块,比如,图7所示的数据获取模块、数据查找模块、正序显示模块和倒序显示模块。各个程序模块构成的计算机程序使得处理器执行本说明书中描述的本申请各个实施例的动态图像播放方法中的步骤。In one embodiment, the dynamic image playback device provided by the present application can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in FIG8. The memory of the computer device can store various program modules constituting the dynamic image playback device, such as the data acquisition module, data search module, forward sequence display module, and reverse sequence display module shown in FIG7. The computer program composed of various program modules enables the processor to execute the steps of the dynamic image playback method of each embodiment of the present application described in this specification.
例如,图8所示的计算机设备可以通过如图7所示的动态图像播放装置中的数据获取模块执行获取待播放动态图像标识。计算机设备可通过数据查找模块执行查找待播放动态图像标识对应的解码图像集合,并读取解码图像集合的正序序列信息和倒序序列信息。计算机设备可通过正序显示模块执行基于正序序列信息逐帧显示解码图像集合中的每帧正序解码图像。计算机设备可通过倒序显示模块执行当最后一帧正序解码图像显示结束时,基于倒序序列信息逐帧显示解码图像集合中的每帧倒序解码图像。For example, the computer device shown in FIG8 can obtain the dynamic image identifier to be played through the data acquisition module in the dynamic image playback device shown in FIG7. The computer device can search for the decoded image set corresponding to the dynamic image identifier to be played through the data search module, and read the forward sequence information and reverse sequence information of the decoded image set. The computer device can display each forward decoded image frame in the decoded image set frame by frame based on the forward sequence information through the forward display module. The computer device can display each reverse decoded image frame in the decoded image set frame by frame based on the reverse sequence information through the reverse display module when the display of the last forward decoded image frame is finished.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,计算机程序被处理器执行时,使得处理器执行上述动态图像播放方法的步骤。此处动态图像播放方法的步骤可以是上述各个实施例的动态图像播放方法中的步骤。In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned dynamic image playback method. The steps of the dynamic image playback method here may be the steps of the dynamic image playback method in each of the above-mentioned embodiments.
在一个实施例中,提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时,使得处理器执行上述动态图像播放方法的步骤。此处动态图像播放方法的步骤可以是上述各个实施例的动态图像播放方法中的步骤。In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned dynamic image playback method. The steps of the dynamic image playback method here can be the steps of the dynamic image playback method in each of the above-mentioned embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911323823.7A CN113096218B (en) | 2019-12-20 | 2019-12-20 | Dynamic image playing method, device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911323823.7A CN113096218B (en) | 2019-12-20 | 2019-12-20 | Dynamic image playing method, device, storage medium and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113096218A CN113096218A (en) | 2021-07-09 |
CN113096218B true CN113096218B (en) | 2024-10-11 |
Family
ID=76662732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911323823.7A Active CN113096218B (en) | 2019-12-20 | 2019-12-20 | Dynamic image playing method, device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113096218B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113641853A (en) * | 2021-08-23 | 2021-11-12 | 北京字跳网络技术有限公司 | Dynamic cover generation method, device, electronic equipment, medium and program product |
CN116844196B (en) * | 2023-08-31 | 2024-02-27 | 荣耀终端有限公司 | Dynamic effect picture display method and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382958A (en) * | 2008-10-21 | 2009-03-11 | 深圳华为通信技术有限公司 | Web page loading method and device |
CN102027469A (en) * | 2008-03-27 | 2011-04-20 | 亚马逊技术股份有限公司 | Dynamic image composition |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1595404B1 (en) * | 2003-02-18 | 2014-10-22 | Nokia Corporation | Picture decoding method |
CN105227884A (en) * | 2014-07-03 | 2016-01-06 | 深圳中兴力维技术有限公司 | Realize method that video file puts upside down and device thereof |
US20170164026A1 (en) * | 2015-12-04 | 2017-06-08 | Le Holdings (Beijing) Co., Ltd. | Method and device for detecting video data |
CN110019866B (en) * | 2017-09-30 | 2023-03-10 | 腾讯科技(深圳)有限公司 | Dynamic picture playing method, device and storage medium |
CN108966004B (en) * | 2018-06-27 | 2022-06-17 | 维沃移动通信有限公司 | Video processing method and terminal |
-
2019
- 2019-12-20 CN CN201911323823.7A patent/CN113096218B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102027469A (en) * | 2008-03-27 | 2011-04-20 | 亚马逊技术股份有限公司 | Dynamic image composition |
CN101382958A (en) * | 2008-10-21 | 2009-03-11 | 深圳华为通信技术有限公司 | Web page loading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113096218A (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102932679B (en) | A kind of Internet video prebrowsing system and method | |
US8943164B2 (en) | Apparatus and methods for retrieving/ downloading content on a communication device | |
WO2020010997A1 (en) | Video frame extraction method and apparatus, computer readable medium, and electronic device | |
CN109766457B (en) | Media content searching method, device and storage medium | |
US10289659B2 (en) | Delivery and display of page previews using shadow DOM | |
US20100083098A1 (en) | Streaming Information that Describes a Webpage | |
US20100268694A1 (en) | System and method for sharing web applications | |
CN109840879B (en) | Image rendering method and device, computer storage medium and terminal | |
US12137262B2 (en) | Information push method, apparatus, electronic device and storage medium | |
CN110070593B (en) | Method, device, equipment and medium for displaying picture preview information | |
CN114404960B (en) | Cloud game resource data processing method, device, computer equipment and storage medium | |
CN113096218B (en) | Dynamic image playing method, device, storage medium and computer equipment | |
CN111240564B (en) | Material display method and device, electronic equipment and storage medium | |
US20220335977A1 (en) | Method and apparatus for editing object, electronic device and storage medium | |
WO2024217150A1 (en) | Video processing method and apparatus, computer device, storage medium and program product | |
CN112150586B (en) | Animation processing method, device, computer readable storage medium and computer equipment | |
CN111338729A (en) | Method, device, medium and electronic equipment for playing view | |
CN116939130A (en) | Video generation method and device, electronic equipment and storage medium | |
WO2024148979A1 (en) | Video decoding method and apparatus, and electronic device, computer-readable storage medium and computer program product | |
CN112818190B (en) | Content sharing method, device, electronic equipment and storage medium | |
CN115134651A (en) | Data processing method, apparatus, computer equipment and storage medium | |
US20150050008A1 (en) | Generating content data for a video file | |
CN108235144B (en) | Playing content obtaining method and device and computing equipment | |
CN112612435A (en) | Information processing method, device, equipment and storage medium | |
CN113849157B (en) | Animation playing management method, device, 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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40049167 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TG01 | Patent term adjustment | ||
TG01 | Patent term adjustment |