CN113111035B - Special effect video generation method and equipment - Google Patents
Special effect video generation method and equipment Download PDFInfo
- Publication number
- CN113111035B CN113111035B CN202110382066.1A CN202110382066A CN113111035B CN 113111035 B CN113111035 B CN 113111035B CN 202110382066 A CN202110382066 A CN 202110382066A CN 113111035 B CN113111035 B CN 113111035B
- Authority
- CN
- China
- Prior art keywords
- pixel
- target file
- special effect
- effect video
- size
- 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
- 230000000694 effects Effects 0.000 title claims abstract description 122
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000008859 change Effects 0.000 claims abstract description 62
- 230000004044 response Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012217 deletion Methods 0.000 claims description 9
- 230000037430 deletion Effects 0.000 claims description 9
- 230000009191 jumping Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 10
- 238000009877 rendering Methods 0.000 abstract description 6
- 238000004891 communication Methods 0.000 description 8
- 238000013500 data storage Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000004913 activation Effects 0.000 description 6
- 239000011159 matrix material Substances 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 229910003460 diamond Inorganic materials 0.000 description 1
- 239000010432 diamond Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及计算机技术领域,具体涉及特效视频生成方法和设备。The embodiments of the present application relate to the field of computer technologies, and in particular, to a method and device for generating special effects video.
背景技术Background technique
日常用户使用电脑、手机等终端设备时,为了更合理的使用终端设备存储空间,往往需要对终端设备中保存的应用、文件等内容进行删除。When daily users use terminal devices such as computers and mobile phones, in order to use the storage space of the terminal device more reasonably, it is often necessary to delete applications, files and other content saved in the terminal device.
现有技术中,在对需要一定删除时间的较大应用、文进行删除时,仅单独呈现删除工作的进度条给用户,显示内容较少、过于单调。In the prior art, when deleting a large application or document that requires a certain deletion time, only a progress bar of the deletion work is presented to the user alone, and the displayed content is too monotonous.
发明内容SUMMARY OF THE INVENTION
本申请实施例提出了特效视频生成方法和设备。The embodiments of the present application propose a method and device for generating special effects video.
第一方面,本申请实施例提供了一种特效视频生成方法,包括:获取目标文件的当前显示内容,生成该当前显示内容的位图;将该位图中像素点的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸大小随时间变化;其中,该像素点取值中至少包括尺寸信息;基于该碰撞数据集生成渲染图像,并根据生成时间连续的多张渲染图像生成该目标文件的粉碎特效视频。In a first aspect, an embodiment of the present application provides a method for generating a special effect video, including: acquiring the current display content of a target file, and generating a bitmap of the current display content; storing the pixel values of the pixel points in the bitmap into a Collision data set, and set the size of the pixel to change with time within a preset time period; wherein, the pixel value at least includes size information; Multiple rendered images generate a shattering effect video for the target file.
在一些实施例中,将该位图中的像素点取值存入碰撞数据集包括:将该位图中的像素点拆分为预设数量的多个子像素点;分别将各个子像素点的像素点取值存入该碰撞数据集。In some embodiments, storing the value of the pixel in the bitmap into the collision data set includes: dividing the pixel in the bitmap into a preset number of sub-pixels; The pixel value is stored in the collision dataset.
在一些实施例中,设置在预设时间段内该像素点的尺寸大小随时间变化,包括:响应于存入该像素点取值时该碰撞数据集中已存在有至少一个历史像素点的像素点取值,将该历史像素点的尺寸大小变化结束时间作为该像素点取值的尺寸大小变化起始时间。In some embodiments, setting the size of the pixel to change with time within a preset time period includes: in response to storing the value of the pixel, a pixel having at least one historical pixel already exists in the collision data set Value, the end time of the size change of the historical pixel point is taken as the start time of the size change of the value of the pixel point.
在一些实施例中,将该历史像素点的尺寸大小变化结束时间作为该像素点取值的尺寸大小变化起始时间包括:将尺寸大小变化结束时间距离该像素点取值存入时间最近的历史像素点的像素点取值的变化结束时间作为该像素点取值的尺寸大小变化起始时间。In some embodiments, using the end time of the size change of the historical pixel point as the start time of the size change of the value of the pixel point includes: storing the end time of the size change and the value of the pixel point in the history closest to the time The change end time of the pixel value of the pixel point is taken as the start time of the size change of the pixel value.
在一些实施例中,该方法还包括:响应于该碰撞数据集中在同一预设时间段内进行尺寸大小变化的该像素点数量满足预设要求,对该预设时间段进行更新。In some embodiments, the method further includes: in response to the number of pixels in the collision data set whose size changes within the same preset time period meeting a preset requirement, updating the preset time period.
在一些实施例中,将该位图中像素点的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸大小随时间变化,包括:将该位图中像素点的像素点取值存入碰撞数据集,并获取该像素点的尺寸大小;根据该尺寸大小确定变化速度,并设置在预设时间段内该像素点的尺寸大小按照该变化速度随时间变化。In some embodiments, the pixel value of the pixel in the bitmap is stored in the collision data set, and the size of the pixel is set to change with time within a preset time period, including: the pixel in the bitmap is The pixel value of the point is stored in the collision data set, and the size of the pixel is obtained; the change speed is determined according to the size, and the size of the pixel is set to change with time according to the change speed within the preset time period .
第二方面,本申请实施例提供了一种特效视频播放方法,包括:响应于接收到针对目标文件发送的粉碎指令,对该目标文件执行文件粉碎操作,并播放与该目标文件对应的粉碎特效视频;其中,该粉碎特效视频通过上述第一方面中任一项提供的特效视频生成方法得到。In a second aspect, an embodiment of the present application provides a special effect video playback method, comprising: in response to receiving a shredding instruction sent for a target file, performing a file shredding operation on the target file, and playing a shredding special effect corresponding to the target file A video; wherein, the smashing special effect video is obtained by the special effect video generation method provided in any one of the above first aspects.
在一些实施例中,播放与该目标文件对应的粉碎特效视频,包括:跳转界面至该目标文件的启动标识所处的显示界面,并调低该启动标识的透明度;在该目标文件的启动标识所处的显示界面的下层界面播放与该目标文件对应的粉碎特效视频。In some embodiments, playing the smashing special effect video corresponding to the target file includes: jumping the interface to the display interface where the activation mark of the target file is located, and lowering the transparency of the activation mark; The lower interface of the display interface where the identifier is located plays the smashing special effect video corresponding to the target file.
在一些实施例中,该方法还包括:根据该目标文件的删除进度对该当前显示内容进行更新;获取基于更新后的当前显示内容得到更新粉碎特效视频;以及该播放与该目标文件对应的粉碎特效视频,包括:播放该更新粉碎特效视频。In some embodiments, the method further includes: updating the currently displayed content according to the deletion progress of the target file; obtaining an updated shredding special effect video based on the updated current display content; and playing the shredding corresponding to the target file Special effects video, including: Play the update smash special effect video.
第三方面,本申请实施例提供了一种特效视频生成装置,包括:位图生成单元,被配置成获取目标文件的当前显示内容,生成该当前显示内容的位图;数据存入单元,被配置成将该位图中像素点的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸大小随时间变化;特效视频生成单元,被配置成基于该碰撞数据集生成渲染图像,并根据生成时间连续的多张渲染图像生成该目标文件的粉碎特效视频。In a third aspect, an embodiment of the present application provides an apparatus for generating special effects video, including: a bitmap generating unit, configured to acquire the current display content of a target file, and generate a bitmap of the current display content; a data storage unit, which is It is configured to store the pixel value of the pixel in the bitmap into the collision data set, and set the size of the pixel to change with time within a preset time period; the special effect video generation unit is configured to be based on the collision data. A set of rendering images is generated, and a smashing special effect video of the target file is generated according to multiple rendering images whose generation time is continuous.
在一些实施例中,数据存入单元包括:像素点拆分子单元,被配置成将该位图中的像素点拆分为预设数量的多个子像素点;数据存入子单元,被配置成分别将各个子像素点的像素点取值存入该碰撞数据集。In some embodiments, the data storage unit includes: a pixel point splitting subunit, configured to split the pixel point in the bitmap into a preset number of sub-pixel points; the data storage subunit, configured to The pixel value of each sub-pixel point is respectively stored in the collision data set.
在一些实施例中,数据存入单元包括:数据存入子单元,被配置成将该位图中像素点的像素点取值存入碰撞数据集;像素点变化设置子单元,被配置成响应于存入该像素点取值时该碰撞数据集中已存在有至少一个历史像素点的像素点取值,将该历史像素点的尺寸大小变化结束时间作为该像素点取值的尺寸大小变化起始时间。In some embodiments, the data storage unit includes: a data storage subunit, configured to store the pixel value of the pixel point in the bitmap into the collision data set; the pixel point change setting subunit, configured to respond to When the value of the pixel is stored, there is already at least one pixel value in the collision data set, and the end time of the size change of the historical pixel is taken as the start time of the size change of the pixel value. time.
在一些实施例中,像素点变化设置子单元进一步被配置成,响应于存入该像素点取值时该碰撞数据集中已存在有至少一个历史像素点的像素点取值,将尺寸大小变化结束时间距离该像素点取值存入时间最近的历史像素点的像素点取值的变化结束时间作为该像素点取值的尺寸大小变化起始时间。In some embodiments, the pixel point change setting subunit is further configured to, in response to the pixel point value having at least one historical pixel point in the collision data set when the pixel point value is stored, end the size change The end time of the change of the pixel value of the historical pixel point whose time is closest to the storage time of the value of the pixel point is taken as the start time of the size change of the value of the pixel point.
在一些实施例中,该装置还包括:变化时间更新单元,被配置成响应于该碰撞数据集中在同一预设时间段内进行尺寸大小变化的该像素点数量满足预设要求,对该预设时间段进行更新。In some embodiments, the apparatus further includes: a change time update unit, configured to, in response to the number of pixels whose size changes in the collision data set within the same preset time period meeting a preset requirement, update the preset time period to update.
在一些实施例中,数据存入单元进一步被配置成将该位图中像素点的像素点取值存入碰撞数据集,并获取该像素点的尺寸大小;根据该尺寸大小确定变化速度,并设置在预设时间段内该像素点的尺寸大小按照该变化速度随时间变化。In some embodiments, the data storage unit is further configured to store the pixel value of the pixel in the bitmap into the collision data set, and obtain the size of the pixel; determine the change speed according to the size, and Set the size of the pixel to change with time according to the change speed within the preset time period.
第四方面,本申请实施例提供了一种特效视频生成装置,包括:特效视频播放单元,被配置成响应于接收到针对目标文件发送的粉碎指令,对该目标文件执行文件粉碎操作,并播放与该目标文件对应的粉碎特效视频;其中,该粉碎特效视频通过上述第三方面中任一项提供的特效视频装置生成得到。In a fourth aspect, an embodiment of the present application provides an apparatus for generating a special effect video, including: a special effect video playing unit, configured to, in response to receiving a shredding instruction sent for a target file, perform a file shredding operation on the target file, and play A smashing special effect video corresponding to the target file; wherein, the smashing special effect video is generated by the special effect video device provided in any one of the above-mentioned third aspects.
在一些实施例中,特效视频播放单元包括:目标文件调整子单元,被配置成跳转界面至该目标文件的启动标识所处的显示界面,并调低该启动标识的透明度;特效视频播放子单元,被配置成在该目标文件的启动标识所处的显示界面的下层界面播放与该目标文件对应的粉碎特效视频。In some embodiments, the special effect video playback unit includes: a target file adjustment subunit, which is configured to jump the interface to the display interface where the start mark of the target file is located, and to reduce the transparency of the start mark; The unit is configured to play the smashing special effect video corresponding to the target file on the lower interface of the display interface where the start identifier of the target file is located.
在一些实施例中,该装置还包括:显示内容更新单元,被配置成根据该目标文件的删除进度对该当前显示内容进行更新;获取基于更新后的当前显示内容得到更新粉碎特效视频;以及特效视频播放单元进一步被配置成播放该更新粉碎特效视频。In some embodiments, the apparatus further includes: a display content update unit configured to update the current display content according to the deletion progress of the target file; obtain an updated smashing special effect video based on the updated current display content; and special effects The video playback unit is further configured to play the updated smash special effect video.
第五方面,本申请实施例提供了一种计算机设备,该计算机设备包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面中任一实现方式描述的特效视频生成方法和/或如第三方面中任一实现方式描述的特效视频播放方法。In a fifth aspect, an embodiment of the present application provides a computer device, the computer device includes: one or more processors; a storage device on which one or more programs are stored; when one or more programs are stored by one or more The execution of the plurality of processors causes one or more processors to implement the special effect video generation method described in any implementation manner of the first aspect and/or the special effect video playback method described in any implementation manner of the third aspect.
第六方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的特效视频生成方法和/或如第三方面中任一实现方式描述的特效视频播放方法。In a sixth aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, realizes the special effect video generation method and/or as described in any implementation manner in the first aspect. Or the special effect video playback method described in any implementation manner of the third aspect.
本申请实施例提供的特效视频生成方法和设备,获取目标文件的当前显示内容,生成该当前显示内容的位图,将该位图中像素点的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸大小随时间变化,基于该碰撞数据集生成渲染图像,并根据生成时间连续的多张渲染图像生成该目标文件的粉碎特效视频。该实施方式可以基于目标文件中的当前显示内容生成粉碎特效,以便于后续在对目标文件进行粉碎时播放该粉碎特效视频,不仅可以帮助用户了解文件的粉碎状态,还可以增强文件粉碎过程的互动性、增强用户体验。The special effect video generation method and device provided by the embodiments of the present application acquire the current display content of the target file, generate a bitmap of the current display content, store the pixel values of the pixel points in the bitmap into the collision data set, and set Within a preset time period, the size of the pixel changes with time, a rendered image is generated based on the collision data set, and a smashing special effect video of the target file is generated according to a plurality of rendered images whose generation time is continuous. This embodiment can generate a shredding special effect based on the currently displayed content in the target file, so that the shredding effect video can be played later when the target file is shredded, which can not only help the user understand the shredding state of the file, but also enhance the interaction of the file shredding process. enhance the user experience.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是本申请一些实施例可以应用于其中的示例性系统架构;FIG. 1 is an exemplary system architecture to which some embodiments of the present application may be applied;
图2是根据本申请的特效视频生成方法的一个实施例的流程图;Fig. 2 is a flow chart of an embodiment of a special effect video generation method according to the present application;
图3是根据本申请的特效视频播放方法的一个实施例的流程图;3 is a flowchart of an embodiment of a special effect video playback method according to the present application;
图4-1和4-2是根据本申请的特效视频生成方法的应用场景的效果示意图;4-1 and 4-2 are schematic diagrams of the effect of the application scene of the special effect video generation method according to the present application;
图5是适于用来实现本申请一些实施例的计算机设备的计算机系统的结构示意图。FIG. 5 is a schematic structural diagram of a computer system suitable for implementing the computer equipment of some embodiments of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
图1示出了可以应用本申请的特效视频生成方法的实施例的示例性系统架构100。FIG. 1 illustrates an
如图1所示,系统架构100中可以包括设备101、102、103、104和网络105。网络105用以在设备101、102、103、104之间提供通信链路的介质。网络105可以包括各种连接类型,例如有线、无线目标通信链路或者光纤电缆等等。As shown in FIG. 1 , the
设备101、102、103、104可以是支持网络连接从而提供各种网络服务的硬件设备或软件。当设备为硬件时,其可以是各种电子设备包括但不限于智能手机、平板电脑、膝上型便携计算机、台式计算机和服务器等等。这时,作为硬件设备,其可以实现成多个设备组成的分布式设备群,也可以实现成单个设备。当设备为软件时,可以安装在上述所列举的电子设备中。这时,作为软件,其可以实现成例如用来提供分布式服务的多个软件或软件模块,也可以实现成单个软件或软件模块。在此不做具体限定。The
在实践中,设备可以通过安装相应的客户端应用或服务端应用来提供相应的网络服务。设备在安装了客户端应用之后,其可以在网络通信中体现为客户端。相应地,在安装了服务端应用之后,其可以在网络通信中体现为服务端。In practice, the device can provide corresponding network services by installing a corresponding client application or server application. After the client application is installed on the device, it can be embodied as a client in network communication. Correspondingly, after the server application is installed, it can be embodied as a server in network communication.
作为示例,在图1中,设备101、102、103体现为终端,设备104体现为服务器。具体地,设备101、102、103可以是实际安装有目标文件的客户端,104可以根据为目标文件提供粉碎特效视频的客户端。As an example, in FIG. 1, the
在实践中,由于根据目标文件的当前显示内容生成粉碎特效视频所需占用运算资源和较强的运算能力不多,为考虑用户后续在对目标文件进行粉碎时播放得到粉碎特效视频的便利性,因此本申请后续各实施例所提供特效视频生成方法一般由安装有目标文件的设备101、102、103来执行,相应地,特效视频生成装置一般也设置于设备101、102、103。在此种情况下,示例性系统架构100也可以不包括体现为服务器的设备104和网络105。In practice, since generating a smashing special effect video according to the current display content of the target file does not require much computing resources and strong computing power, in order to consider the convenience of the user to play the smashing special effect video when the target file is smashed in the future, Therefore, the special effect video generation methods provided by the subsequent embodiments of the present application are generally executed by the
但同时也需要指出的是,在例如设备101、102、103运算能力不足,或以体现为服务器的设备104处执行特效视频生成工作较为优选的情况下(例如服务商为用户提供粉碎特效视频服务时、生成粉碎特效视频所需运算资源较多时等情况),设备104也可以通过其上安装的相应应用完成上述本交由设备101、102、103做的各项运算,进而输出与设备101、102、103同样的结果。尤其是在同时存在多种具有不同运算能力的终端设备的情况下,但相应应用判断所在的设备104拥有较强的运算能力和剩余较多的运算资源,以便于更加高效的生成特效视频时,可以让设备104来执行上述运算,从而适当减设备101、102、103的运算压力,相应的,特效视频生成装置也可以设置于设备104中。However, it should also be pointed out that, for example, when the computing power of the
应该理解,图1中的网络和设备的数目仅仅是示意性的。根据实现需要,可以具有任意数目的网络和设备。It should be understood that the number of networks and devices in Figure 1 is merely illustrative. There can be any number of networks and devices depending on the implementation needs.
请参考图2,图2为本申请实施例提供的一种特效视频生成的流程图,其中流程200包括以下步骤:Please refer to FIG. 2, which is a flowchart of a special effect video generation provided by an embodiment of the present application, wherein the
步骤201,获取目标文件的当前显示内容,生成当前显示内容的位图。Step 201: Obtain the current display content of the target file, and generate a bitmap of the current display content.
在本实施例中,特效视频生成的执行主体(例如图1所示的体现为终端的设备101、102、103)获取目标文件的当前显示内容,并基于当前显示内容生成相应的位图(Bitmap),又称栅格图(Raster graphics)或点阵图,是使用像素阵列(Pixel-array/Dot-matrix点阵)来表示的图像。In this embodiment, the execution body of the special effect video generation (for example, the
其中,在目标文件关闭时,当前显示内容可以为该目标文件的显示图标和相应的文件名,也可以为该目标文件中某一特定页面的显示内容,例如打开目标文件后的第一页面,用户指定的目标文件的标签页面等。Wherein, when the target file is closed, the current display content may be the display icon and the corresponding file name of the target file, or may be the display content of a specific page in the target file, such as the first page after opening the target file, The tab page of the target file specified by the user, etc.
需要指出的是,目标文件的当前显示内容可以由上述执行主体直接从本地的存储设备获取,本地的存储设备可以是设置在上述执行主体内的一个数据存储模块,例如服务器硬盘,在此种情况下,目标文件的当前显示内容在本地快速读取到。It should be pointed out that the current display content of the target file can be directly obtained by the above-mentioned execution body from a local storage device, and the local storage device can be a data storage module arranged in the above-mentioned execution body, such as a server hard disk, in this case , the current display content of the target file can be quickly read locally.
此外,在上述执行主体为其他设备进行特效视频生成时,也可以从非本地的存储设备(例如图1所示的设备104)中获取目标文件的当前显示内容,非本地的存储设备还可以为其它任何被设置用于存储数据的电子设备,例如一些用户终端等,在此情况下,上述执行主体可以通过向该电子设备发送获取命令来获取所需的目标文件的当前显示内容。In addition, when the above-mentioned execution body generates special effects videos for other devices, the current display content of the target file may also be obtained from a non-local storage device (eg, the
在实践中,为了更好的体现目标文件的当前显示内容的效果,位图的尺寸优选地与当前显示内容的清晰度、尺寸相同,以便于后续生成的特效视频内容与该当前显示内容相对性,呈现更好的效果。In practice, in order to better reflect the effect of the currently displayed content of the target file, the size of the bitmap is preferably the same as the definition and size of the currently displayed content, so that the subsequently generated special effect video content is relatively relative to the currently displayed content , showing better results.
步骤202,将位图中像素点的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸大小随时间变化。Step 202: Store the pixel value of the pixel in the bitmap into the collision data set, and set the size of the pixel to change with time within a preset time period.
在本实施例中,在基于上述步骤201获取到位图后,将位图中的各个像素点的像素点取值存入碰撞数据集(Crashdata)中,该像素点取值中至少包括尺寸信息,该碰撞数据集中的各组成元素记录有该像素点的尺寸信息和颜色信息,并在像素点取值存入碰撞数据集后,对应的设置该像素点的取值变化中的尺寸信息在预设时间段内随时间大小变化。In this embodiment, after obtaining the bitmap based on the
其中,预设时间段的长短通常与目标文件的删除过程相对应,即根据期望像素点开始进行动作的时刻为起始,完成目标文件删除的时刻为终止,确定相应的预设时间段,在此基础上,也可以根据期望实现的特效效果,为不同的像素点设置不同的预设时间段,以组合形成上述期望实现的特效效果。Among them, the length of the preset time period usually corresponds to the deletion process of the target file, that is, the time when the action starts according to the desired pixel point is the start, and the time when the deletion of the target file is completed is the end, and the corresponding preset time period is determined. On this basis, it is also possible to set different preset time periods for different pixel points according to the special effect that is expected to be achieved, so as to combine to form the above-mentioned special effect that is expected to be achieved.
在一些实施例中,还可以同步的设置像素点取值中的颜色信息在预设时间段内随尺寸大小变化,以进一步丰富粉碎特效视频的多样性。In some embodiments, the color information in the pixel value can also be synchronously set to change with the size within a preset time period, so as to further enrich the diversity of the smashing special effect video.
示例性的,当碰撞数据集的表现形成为矩阵时,碰撞数据集矩阵里面每一个数据都对应一个像素点的取值单元,这个取值单元里面有颜色值,该像素点在位图中的x坐标和y坐标,基于位图中各个像素点的取值单元组成一个矩阵,以得到碰撞数据集。Exemplarily, when the representation of the collision data set is formed as a matrix, each data in the collision data set matrix corresponds to a value unit of a pixel, and this value unit has a color value, and the pixel is in the bitmap. The x-coordinate and y-coordinate form a matrix based on the value units of each pixel in the bitmap to obtain a collision data set.
步骤203,基于碰撞数据集生成渲染图像,并根据生成时间连续的多张渲染图像生成该目标文件的粉碎特效视频。
在本实施例中,在基于上述步骤202得到碰撞数据集后,因该碰撞数据集中记录的像素点的尺寸在预设时间段内随时间大小进行变化,连续根据该碰撞数据集中记载的像素点取值渲染生成对应的图像,并将获取到的图像按照生成时间进行排布得到图像序列,并根据该图像序列生成基于像素点尺寸变化形成的粉碎特效视频。In this embodiment, after the collision data set is obtained based on the
本申请实施例提供的特效视频生成方法,获取目标文件的当前显示内容,生成该当前显示内容的位图,将该位图中像素点的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸大小随时间变化,基于该碰撞数据集生成渲染图像,并根据生成时间连续的多张渲染图像生成该目标文件的粉碎特效视频。该实施方式可以基于目标文件中的当前显示内容生成粉碎特效,以便于后续在对目标文件进行粉碎时播放该粉碎特效视频,不仅可以帮助用户了解文件的粉碎状态,还可以增强文件粉碎过程的互动性、增强用户体验。In the special effect video generation method provided by the embodiment of the present application, the current display content of the target file is acquired, a bitmap of the current display content is generated, the pixel values of the pixel points in the bitmap are stored in the collision data set, and set in a preset It is assumed that the size of the pixel in the time period changes with time, a rendered image is generated based on the collision data set, and a smashing special effect video of the target file is generated according to multiple rendered images with continuous generation time. This embodiment can generate a shredding special effect based on the currently displayed content in the target file, so that the shredding effect video can be played later when the target file is shredded, which can not only help the user understand the shredding state of the file, but also enhance the interaction of the file shredding process. enhance the user experience.
在一些实施例中,将位图中的像素点取值存入碰撞数据集包括:将该位图中的像素点拆分为预设数量的多个子像素点;分别将各个子像素点的像素点取值存入该碰撞数据集。In some embodiments, storing the value of the pixel in the bitmap into the collision data set includes: dividing the pixel in the bitmap into a preset number of sub-pixels; The point value is stored in the collision dataset.
具体的,在将位图中的像素点存入碰撞数据集时,还可以将位图中的像素点进行进一步的拆分为预设数量的多个子像素点,子像素点的形状可以确定为与像素点对应的圆形,也可以根据实际需求确定为菱形、三角形等,并进一步的分别将各个子像素点的像素点取值存入该碰撞数据集,以提升粉碎特效视频中的特效细粒度。Specifically, when the pixels in the bitmap are stored in the collision data set, the pixels in the bitmap can be further divided into a preset number of sub-pixels, and the shape of the sub-pixels can be determined as The circle corresponding to the pixel point can also be determined as a diamond, triangle, etc. according to actual needs, and further store the pixel value of each sub-pixel point in the collision data set to improve the special effect detail in the smashing special effect video. granularity.
在一些实施例中,设置在预设时间段内该像素点的尺寸大小随时间变化,包括:响应于存入该像素点取值时该碰撞数据集中已存在有至少一个历史像素点的像素点取值,将该历史像素点的尺寸大小变化结束时间作为该像素点取值的尺寸大小变化起始时间。In some embodiments, setting the size of the pixel to change with time within a preset time period includes: in response to storing the value of the pixel, a pixel having at least one historical pixel already exists in the collision data set Value, the end time of the size change of the historical pixel point is taken as the start time of the size change of the value of the pixel point.
具体的,在将该像素点的像素点取值存入该碰撞数据集时,刚碰撞数据集中已存在有历史存入的历史像素点的像素点取值,获取该历史像素点取值的尺寸大小随时间变化结束的时间,并将该结束时间作为本次存入的像素点取值的尺寸大小变化的起始时间,以在历史像素点的尺寸大小完成变化时接续本次存入的像素点的尺寸大小变化,以实现更加动态的特效。Specifically, when the pixel value of the pixel is stored in the collision data set, the pixel value of the historical pixel that has been stored in the history already exists in the collision data set, and the size of the historical pixel value is obtained. The time when the size changes over time, and the end time is used as the starting time for the size change of the stored pixel value, so as to continue the current stored pixel when the size of the historical pixel is changed. Point size changes for more dynamic effects.
在一些实施例中,将历史像素点的尺寸大小变化结束时间作为该像素点取值的尺寸大小变化起始时间包括:将尺寸大小变化结束时间距离该像素点取值存入时间最近的历史像素点的像素点取值的变化结束时间作为该像素点取值的尺寸大小变化起始时间。In some embodiments, using the size change end time of the historical pixel point as the size change start time of the pixel point value includes: storing the size change end time from the pixel point value to the nearest historical pixel value storage time The change end time of the pixel value of the point is taken as the start time of the size change of the pixel value.
具体的,判断历史像素点的像素点取值存入碰撞数据集的时间,并将存数时间最近的历史像素点取值的尺寸大小随时间变化结束的时间作为本次存入的像素点取值的尺寸大小变化的起始时间,以进一步的提升特效中各个部分的连续性。Specifically, determine the time when the pixel value of the historical pixel point is stored in the collision data set, and take the time when the size of the value of the historical pixel point with the nearest storage time changes over time and ends as the pixel value stored this time. The starting time of the size change of the value, to further improve the continuity of each part in the effect.
在一些实施例中,该特效视频的生成方法还包括:响应于该碰撞数据集中在同一预设时间段内进行尺寸大小变化的该像素点数量满足预设要求,对该预设时间段进行更新。In some embodiments, the method for generating the special effect video further includes: in response to the number of pixels in the collision data set whose size changes within the same preset time period meeting a preset requirement, updating the preset time period .
具体的,在碰撞数据集中设置基于同一预设时间段进行尺寸大小变化的像素点数量满足预设要求时,对该预设时间段进行更新,并以更新后的预设时间对对后续的像素点进行尺寸大小变化的相应设置,以实现对像素点尺寸大小变化的梯度设置,形成更多种类的特效。Specifically, when the number of pixels whose size changes based on the same preset time period are set in the collision data set to meet the preset requirements, the preset time period is updated, and the subsequent pixels are updated with the updated preset time. The corresponding setting of the size change of the point is performed to realize the gradient setting of the size change of the pixel point and form more kinds of special effects.
在一些实施例中,将该位图中像素点的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸大小随时间变化,包括:将该位图中像素点的像素点取值存入碰撞数据集,并获取该像素点的尺寸大小;根据该尺寸大小确定变化速度,并设置在预设时间段内该像素点的尺寸大小按照该变化速度随时间变化。In some embodiments, the pixel value of the pixel in the bitmap is stored in the collision data set, and the size of the pixel is set to change with time within a preset time period, including: the pixel in the bitmap is The pixel value of the point is stored in the collision data set, and the size of the pixel is obtained; the change speed is determined according to the size, and the size of the pixel is set to change with time according to the change speed within the preset time period .
具体的,将位图中像素点的像素点取值存入碰撞数据集时,获取该像素点的尺寸大小,并根据该尺寸大小确定相应的变化速度,并设置在预设时间段内该像素点的尺寸大小按照该变化速度随时间变化,以生成与当前显示内容分辨率相适应的特效,提升视觉效果。Specifically, when the pixel value of the pixel in the bitmap is stored in the collision data set, the size of the pixel is obtained, and the corresponding change speed is determined according to the size, and the pixel is set within a preset time period. The size of the point changes with time according to the change speed, so as to generate special effects suitable for the resolution of the current display content and improve the visual effect.
进一步的,在上述任一实施例的基础上,为了充分让按照上述特效视频生成方法得到的特效视频发挥作用,还可以按照下述步骤让其在文件粉碎场景中发挥作用:Further, on the basis of any of the above-mentioned embodiments, in order to fully make the special effect video obtained according to the above-mentioned special effect video generation method play a role, it can also be made to play a role in the file shredding scene according to the following steps:
响应于接收到针对目标文件发送的粉碎指令,对该目标文件执行文件粉碎操作,并播放与该目标文件对应的粉碎特效视频;其中,该粉碎特效视频通过如图2所提供的特效视频生成方法生成。In response to receiving the shredding instruction sent for the target file, a file shredding operation is performed on the target file, and a shredding special effect video corresponding to the target file is played; wherein, the shredding special effect video is generated by the special effect video generation method provided in FIG. 2 . generate.
在此基础上参考图3,其中示出了一种特效视频播放方法的一个实施例的流程300,具体包括:Referring to FIG. 3 on this basis, a
步骤301,响应于接收到针对目标文件发送的粉碎指令,对该目标文件执行文件粉碎操作。
在本实施例中,通常以实际安装有目标文件的设备作为特效视频播放方法的执行主体(例如图1所示的体现为终端的设备101、102、103),该执行主体在接收到针对目标文件发送的粉碎指令后,可以从获取预先由本地生成的粉碎特效视频进行相应播放,也可以通过向其他用于生成粉碎特效视频的设备发送获取命令来获取所需的目标文件的粉碎特效视频。In this embodiment, the device actually installed with the target file is usually used as the execution body of the special effect video playback method (for example, the
步骤302,跳转界面至该目标文件的启动标识所处的显示界面,并调低该启动标识的透明度。In
在本实施例中,在开始执行目标文件发送的粉碎指令后,将保存目标文件的设备的界面跳转至目标文件的启动标识所处的显示界面,示例性的可以为目标文件的启动标识所处的桌面、应用菜单等,并调低该显示界面中的启动标识的透明度。In this embodiment, after starting to execute the shredding instruction sent by the target file, the interface of the device that saves the target file is jumped to the display interface where the startup identifier of the target file is located, which can be exemplified by the startup identifier of the target file. on the desktop, application menu, etc., and reduce the transparency of the startup logo in the display interface.
在一些实施例中,若针对目标文件发送的粉碎指令中明确指定粉碎目标为目标文件中的部分数据时,可以相应的确定该启动标识为目标文件中调取该部分数据的启动标识,并相应的将界面跳转至目标文件中记录有该部分数据的启动标识的界面。In some embodiments, if the shredding instruction sent for the target file explicitly specifies that the shredding target is part of the data in the target file, the activation identifier may be determined to be the activation identifier for retrieving the partial data in the target file, and correspondingly The interface jumps to the interface where the startup identifier of the part of the data is recorded in the target file.
在一些实施例中,为了更好的呈现粉碎特效视频的显示效果,可以进一步的将显示界面中包括的所有启动标识的透明度调低。In some embodiments, in order to better present the display effect of the smashing special effect video, the transparency of all the startup signs included in the display interface may be further lowered.
步骤303,在目标文件的启动标识所处的显示界面的下层界面播放与该目标文件对应的粉碎特效视频。Step 303: Play the smashing special effect video corresponding to the target file on the lower interface of the display interface where the start-up identifier of the target file is located.
在本实施例中,在该启动标识所处的显示界面的下层界面播放与该目标文件对应的粉碎特效视频,以实现在设备上同时呈现目标文件和相应的粉碎特效视频。In this embodiment, the smashing special effect video corresponding to the target file is played on the lower interface of the display interface where the startup logo is located, so as to simultaneously present the target file and the corresponding smashing special effect video on the device.
在本实施例提供的特效视频播放方法,可以在对目标文件进行删除时,同步的播放与该目标文件对应的粉碎特效视频,不仅可以帮助用户了解文件的粉碎状态,还可以增强文件粉碎过程的互动性、增强用户体验。In the special effect video playback method provided in this embodiment, when the target file is deleted, the smashed special effect video corresponding to the target file can be played synchronously, which can not only help the user to understand the shredding state of the file, but also enhance the performance of the file shredding process. Interactive, enhanced user experience.
在一些实施例中,该方法还包括:根据该目标文件的删除进度对该当前显示内容进行更新;获取基于更新后的当前显示内容得到更新粉碎特效视频;以及该播放与该目标文件对应的粉碎特效视频,包括:播放该更新粉碎特效视频。In some embodiments, the method further includes: updating the currently displayed content according to the deletion progress of the target file; obtaining an updated shredding special effect video based on the updated current display content; and playing the shredding corresponding to the target file Special effects video, including: Play the update smash special effect video.
具体的,在上述执行主体执行目标文件的粉碎操作、播放粉碎特效视频时,进一步的还可以根据目标文件的删除进度对当前显示内容进行更新,示例性的,当粉碎进度达到50%时,可以将显示内容裁剪为原图像的50%,得到更新后的当前显示内容,并将该更新后的当前显示内容进行反馈,以便于特效视频生成方法的执行主体根据更新后的当前显示内容对粉碎特效视频进行更新,以更好的将粉碎进度反馈至粉碎特效视频中,以生成更为动态、参考价值更高的粉碎特效视频。Specifically, when the above-mentioned execution body performs the smashing operation of the target file and plays the smashing special effect video, the currently displayed content may further be updated according to the deletion progress of the target file. Exemplarily, when the smashing progress reaches 50%, the Crop the display content to 50% of the original image, obtain the updated current display content, and give feedback on the updated current display content, so that the execution subject of the special effect video generation method can crush the special effect according to the updated current display content. The video is updated to better feedback the crushing progress into the crushing effect video, so as to generate a more dynamic and more valuable crushing effect video.
为加深理解,本申请还结合一个具体应用场景,给出了一种具体的实现方案:In order to deepen understanding, this application also provides a specific implementation scheme in combination with a specific application scenario:
1)在该应用场景下,特效视频生成方法的主体获取到目标文件的当前显示内容(为一栋房子的简笔画),可参见图4-1所示,并生成该当前显示内容的位图。1) In this application scenario, the main body of the special effect video generation method obtains the current display content of the target file (a sketch of a house), as shown in Figure 4-1, and generates a bitmap of the current display content .
2)将位图中像素点的至少包括尺寸信息的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸随时间,每增加1秒变大0.5倍(即该像素点的尺寸x、y坐标,每秒放大0.5倍)。2) Store the pixel value of the pixel point in the bitmap at least including the size information into the collision data set, and set the size of the pixel point within the preset time period to become 0.5 times larger for every 1 second increase (ie The size of the pixel point x, y coordinates, magnified 0.5 times per second).
3)基于该碰撞数据集生成渲染图像,并根据生成时间连续的多张渲染图像生成该目标文件的粉碎特效视频,其中,用于生成该粉碎特效视频的一张渲染图像效果示意图可参照图4-2。3) Generate a rendered image based on the collision data set, and generate a smashing special effect video of the target file according to a plurality of rendering images whose generation time is continuous, wherein, a schematic diagram of a rendered image effect for generating this smashing special effect video can refer to FIG. 4 -2.
在本应用场景中,特效视频生成方法的执行主体可以根据目标文件的当前显示内容生成相应的位图,并将位图中像素点的像素点取值存入碰撞数据集中后,控制碰撞数据集中的元素随时间变化,即随时间变化逐渐方法位图中的像素点,以生成位图中像素点逐渐扩大的特效,以模拟目标文件逐渐被粉碎的特效,得到最终的粉碎特效视频,以便于后续在对目标文件进行粉碎时播放该粉碎特效视频,不仅可以帮助用户了解文件的粉碎状态,还可以增强文件粉碎过程的互动性、增强用户体验。In this application scenario, the execution body of the special effect video generation method can generate a corresponding bitmap according to the current display content of the target file, and store the pixel values of the pixel points in the bitmap into the collision data set, and then control the collision data set. The elements change with time, that is, the pixels in the bitmap are gradually changed with time to generate special effects in which the pixels in the bitmap are gradually expanded, to simulate the special effects of the target file being gradually smashed, and obtain the final smashed special effects video, so as to facilitate When the target file is shredded subsequently, the shredding special effect video is played, which can not only help the user understand the shredding state of the file, but also enhance the interactivity and user experience of the file shredding process.
下面参考图5,其示出了适于用来实现本申请实施例的计算机设备(例如图1所示的设备101、102、103、104)的计算机系统500的结构示意图。图5示出的计算机设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring next to FIG. 5 , it shows a schematic structural diagram of a
如图5所示,计算机系统500包括中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有系统500操作所需的各种程序和数据。CPU 501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5, a
以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分505;包括硬盘等的存储部分507;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分507。The following components are connected to the I/O interface 505: an
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被中央处理单元(CPU)501执行时,执行本申请的方法中限定的上述功能。In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the
需要说明的是,本申请该的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,该程序设计语言包括面向目标的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或电子设备上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这根据所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以采用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented using dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括位图生成单元、数据存入单元和特效视频生成单元。其中,这些单元的名称在种情况下并不构成对该单元本身的限定,例如,位图生成单元还可以被描述为“获取目标文件的当前显示内容,生成该当前显示内容的位图”。又例如,可以描述为:一种处理器包括特效视频播放单元。其中,单元的名称在种情况下并不构成对该单元本身的限定,例如,特效视频播放单元还可以被描述为“响应于接收到针对目标文件发送的粉碎指令,对该目标文件执行文件粉碎操作,并播放与该目标文件对应的粉碎特效视频”。The units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit can also be set in the processor, for example, it can be described as: a processor includes a bitmap generation unit, a data storage unit and a special effect video generation unit. Wherein, the names of these units do not constitute a limitation on the unit itself, for example, the bitmap generating unit may also be described as "obtaining the current display content of the target file, and generating a bitmap of the current display content". For another example, it can be described as: a processor includes a special effect video playing unit. Wherein, the name of the unit does not constitute a limitation on the unit itself, for example, the special effect video playback unit may also be described as "in response to receiving the shredding instruction sent for the target file, perform file shredding on the target file. operation, and play the shredding effect video corresponding to the target file".
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的计算机设备中所包含的;也可以是单独存在,而未装配入该计算机设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该计算机设备执行时,使得该计算机设备:获取目标文件的当前显示内容,生成该当前显示内容的位图,将该位图中像素点的像素点取值存入碰撞数据集,并设置在预设时间段内该像素点的尺寸大小随时间变化,基于该碰撞数据集生成渲染图像,并根据生成时间连续的多张渲染图像生成该目标文件的粉碎特效视频。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the computer device described in the above embodiments; it may also exist independently without being assembled into the computer device. middle. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the computer device, the computer device is made to: obtain the current display content of the target file, generate a bitmap of the current display content, and The pixel value of the pixel in the bitmap is stored in the collision data set, and the size of the pixel is set to change with time within a preset time period, and a rendered image is generated based on the collision data set. Multiple rendered images generate a shattering effect video for the target file.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110382066.1A CN113111035B (en) | 2021-04-09 | 2021-04-09 | Special effect video generation method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110382066.1A CN113111035B (en) | 2021-04-09 | 2021-04-09 | Special effect video generation method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113111035A CN113111035A (en) | 2021-07-13 |
CN113111035B true CN113111035B (en) | 2022-09-23 |
Family
ID=76715231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110382066.1A Active CN113111035B (en) | 2021-04-09 | 2021-04-09 | Special effect video generation method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113111035B (en) |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016187769A1 (en) * | 2015-05-25 | 2016-12-01 | 武克易 | Method and device for achieving multilayer smoke special effect in video |
CN105913473A (en) * | 2015-12-27 | 2016-08-31 | 乐视致新电子科技(天津)有限公司 | Realization method and system of scrolling special efficacy |
CN110213638B (en) * | 2019-06-05 | 2021-10-08 | 北京达佳互联信息技术有限公司 | Animation display method, device, terminal and storage medium |
CN110084835B (en) * | 2019-06-06 | 2020-08-21 | 北京字节跳动网络技术有限公司 | Method and apparatus for processing video |
CN111193876B (en) * | 2020-01-08 | 2021-09-07 | 腾讯科技(深圳)有限公司 | Method and device for adding special effect in video |
CN111556363B (en) * | 2020-05-21 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Video special effect processing method, device and equipment and computer readable storage medium |
CN111935528B (en) * | 2020-06-22 | 2022-12-16 | 北京百度网讯科技有限公司 | Video generation method and device |
CN112312161A (en) * | 2020-06-29 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Method and device for generating video, electronic equipment and readable storage medium |
CN111833461B (en) * | 2020-07-10 | 2022-07-01 | 北京字节跳动网络技术有限公司 | Method and device for realizing special effect of image, electronic equipment and storage medium |
CN112530021B (en) * | 2020-12-24 | 2023-06-23 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for processing data |
-
2021
- 2021-04-09 CN CN202110382066.1A patent/CN113111035B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113111035A (en) | 2021-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110046021B (en) | Page display method, device, system, equipment and storage medium | |
JP6044604B2 (en) | Terminal device and program | |
WO2020082870A1 (en) | Real-time video display method and apparatus, and terminal device and storage medium | |
CN108833787B (en) | Method and apparatus for generating short video | |
US12112772B2 (en) | Method and apparatus for video production, device and storage medium | |
CN110675465B (en) | Method and apparatus for generating image | |
WO2020220773A1 (en) | Method and apparatus for displaying picture preview information, electronic device and computer-readable storage medium | |
WO2016150388A1 (en) | Interface processing method, apparatus, and system | |
US20250126350A1 (en) | Photographing method and apparatus, electronic device, and storage medium | |
WO2021197024A1 (en) | Video effect configuration file generation method, and video rendering method and device | |
CN110647327B (en) | Method and device for dynamic control of user interface based on card | |
CN109725970A (en) | The method, apparatus and electronic equipment that applications client window is shown | |
CN109168012B (en) | Information processing method and device for terminal equipment | |
JP7007168B2 (en) | Programs, information processing methods, and information processing equipment | |
WO2023191711A1 (en) | Device-cloud collaboration-based image processing method and apparatus, device, and storage medium | |
WO2023077951A1 (en) | Data rendering method and apparatus | |
CN115801777A (en) | Widget component processing method, device, equipment, storage medium and program product | |
CN111726685A (en) | Video processing method, video processing device, electronic equipment and medium | |
CN113688341B (en) | Dynamic picture decomposition method and device, electronic equipment and readable storage medium | |
CN113111035B (en) | Special effect video generation method and equipment | |
CN114866801B (en) | Video data processing method, device, equipment and computer readable storage medium | |
EP4425939A2 (en) | Video processing method, video processing apparatus and computer-readable storage medium | |
US9483237B2 (en) | Method and system for providing an image effects interface | |
JP2024534743A (en) | VIDEO GENERATION METHOD, APPARATUS, STORAGE MEDIUM AND PROGRAM PRODUCT | |
CN116820311A (en) | Cover setting method and device, electronic 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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Room 80536, Shanghai Patentee after: Shanghai Zongzhang Technology Group Co.,Ltd. Country or region after: China Address before: Room 80536, Shanghai Patentee before: SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd. Country or region before: China |