[go: up one dir, main page]

CN114782579A - Image rendering method and device and storage medium - Google Patents

Image rendering method and device and storage medium Download PDF

Info

Publication number
CN114782579A
CN114782579A CN202210450108.5A CN202210450108A CN114782579A CN 114782579 A CN114782579 A CN 114782579A CN 202210450108 A CN202210450108 A CN 202210450108A CN 114782579 A CN114782579 A CN 114782579A
Authority
CN
China
Prior art keywords
rendering
frame
data
information
motion picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210450108.5A
Other languages
Chinese (zh)
Other versions
CN114782579B (en
Inventor
周群辉
刘楚文
林少君
洪佳妮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202210450108.5A priority Critical patent/CN114782579B/en
Publication of CN114782579A publication Critical patent/CN114782579A/en
Priority to PCT/CN2023/087240 priority patent/WO2023207563A1/en
Application granted granted Critical
Publication of CN114782579B publication Critical patent/CN114782579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本申请实施例公开了一种图像渲染方法及装置、存储介质,包括:在接收到动图数据的情况下,通过图层渲染接口将动图数据传输至动图渲染模块;利用动图渲染模块根据预设帧信息确定动图数据对应的动效帧属性;将动效帧属性渲染至动图数据中,得到渲染数据,以根据动效帧属性从渲染数据中获取动图数据。

Figure 202210450108

The embodiment of the present application discloses an image rendering method and device, and a storage medium, including: in the case of receiving moving image data, transmitting the moving image data to a moving image rendering module through a layer rendering interface; using the moving image rendering module Determine the motion frame attribute corresponding to the motion picture data according to the preset frame information; render the motion effect frame attribute to the motion picture data to obtain the rendering data, so as to obtain the motion picture data from the rendering data according to the motion effect frame attribute.

Figure 202210450108

Description

一种图像渲染方法及装置、存储介质Image rendering method and device, and storage medium

技术领域technical field

本申请涉及动态图像处理技术领域,尤其涉及一种图像渲染方法及装置、存储介质。The present application relates to the technical field of dynamic image processing, and in particular, to an image rendering method and device, and a storage medium.

背景技术Background technique

现有技术中,通常是利用模板编辑器对接收到的图像数据进行渲染,然后显示该图像数据,由于模板编辑器渲染的内容都属于静态资源,即为视频中的一帧数据,在利用模板编辑器对视频数据进行渲染的情况下,模板编辑器也就将该视频数据渲染成一帧数据,使得利用模板编辑器无法导出视频数据,降低了利用模板编辑器获取视频数据时的智能性。In the prior art, a template editor is usually used to render the received image data, and then the image data is displayed. Since the content rendered by the template editor belongs to static resources, that is, a frame of data in the video, when using the template When the editor renders the video data, the template editor also renders the video data into one frame of data, so that the template editor cannot export the video data, which reduces the intelligence when using the template editor to obtain video data.

发明内容SUMMARY OF THE INVENTION

为解决上述技术问题,本申请实施例期望提供一种图像渲染方法及装置、存储介质,能够提高利用模板编辑器获取视频数据时的智能性。In order to solve the above technical problems, the embodiments of the present application are expected to provide an image rendering method and device, and a storage medium, which can improve the intelligence when using a template editor to acquire video data.

本申请的技术方案是这样实现的:The technical solution of the present application is realized as follows:

本申请实施例提供一种图像渲染方法,所述图像渲染方法包括:An embodiment of the present application provides an image rendering method, and the image rendering method includes:

在接收到动图数据的情况下,通过图层渲染接口将所述动图数据传输至动图渲染模块;In the case of receiving the moving image data, transmit the moving image data to the moving image rendering module through the layer rendering interface;

利用所述动图渲染模块根据预设帧信息确定所述动图数据对应的动效帧属性;Using the motion picture rendering module to determine the motion frame attribute corresponding to the motion picture data according to preset frame information;

将所述动效帧属性渲染至所述动图数据中,得到渲染数据,以根据所述动效帧属性从所述渲染数据中获取所述动图数据。Rendering the motion effect frame attributes into the motion image data to obtain rendering data, so as to obtain the motion image data from the rendering data according to the motion effect frame attributes.

本申请实施例提供了一种图像渲染装置,所述装置包括:An embodiment of the present application provides an image rendering apparatus, and the apparatus includes:

传输单元,用于在接收到动图数据的情况下,通过图层渲染接口将所述动图数据传输至动图渲染模块;a transmission unit, configured to transmit the motion image data to the motion image rendering module through the layer rendering interface when the motion image data is received;

确定单元,用于利用所述动图渲染模块根据预设帧信息确定所述动图数据对应的动效帧属性;a determining unit, configured to use the motion picture rendering module to determine the motion frame attribute corresponding to the motion picture data according to preset frame information;

渲染单元,用于将所述动效帧属性渲染至所述动图数据中,得到渲染数据,以根据所述动效帧属性从所述渲染数据中获取所述动图数据。A rendering unit, configured to render the motion effect frame attributes into the motion picture data to obtain rendering data, so as to obtain the motion picture data from the rendering data according to the motion effect frame attributes.

本申请实施例提供了一种图像渲染装置,所述装置包括:An embodiment of the present application provides an image rendering apparatus, and the apparatus includes:

存储器、处理器和通信总线,所述存储器通过所述通信总线与所述处理器进行通信,所述存储器存储所述处理器可执行的图像渲染的程序,当所述图像渲染的程序被执行时,通过所述处理器执行上述所述的图像渲染方法。A memory, a processor, and a communication bus, the memory communicating with the processor through the communication bus, the memory storing a program for image rendering executable by the processor, when the image rendering program is executed , and the above-mentioned image rendering method is executed by the processor.

本申请实施例提供了一种存储介质,其上存储有计算机程序,应用于图像渲染装置,其特征在于,该计算机程序被处理器执行时实现上述所述的图像渲染方法。An embodiment of the present application provides a storage medium on which a computer program is stored and applied to an image rendering apparatus, wherein the computer program implements the image rendering method described above when the computer program is executed by a processor.

本申请实施例提供了一种图像渲染方法及装置、存储介质,图像渲染方法包括:在接收到动图数据的情况下,通过图层渲染接口将动图数据传输至动图渲染模块;利用动图渲染模块根据预设帧信息确定动图数据对应的动效帧属性;将动效帧属性渲染至动图数据中,得到渲染数据,以根据动效帧属性从渲染数据中获取动图数据。采用上述方法实现方案,图像渲染装置利用动图渲染模块确定出动图数据对应的动效帧属性,并将动效帧属性渲染至动图数据中,得到渲染数据,使得动图数据中的每一帧数据都对应存在不同的动效帧属性,动图渲染装置可以根据动效帧属性从模板编辑器中获取到对应的动图数据,提高了利用模板编辑器获取动图数据时的智能性。Embodiments of the present application provide an image rendering method, device, and storage medium. The image rendering method includes: in the case of receiving moving image data, transmitting the moving image data to a moving image rendering module through a layer rendering interface; The image rendering module determines the motion frame attribute corresponding to the motion image data according to the preset frame information; renders the motion effect frame attribute to the motion image data to obtain the rendering data, so as to obtain the motion image data from the rendering data according to the motion effect frame attribute. By adopting the above method implementation scheme, the image rendering device uses the dynamic image rendering module to determine the dynamic effect frame attribute corresponding to the dynamic image data, and renders the dynamic effect frame attribute into the dynamic image data to obtain the rendering data, so that each dynamic effect frame attribute in the dynamic image data is obtained. Frame data all have different motion frame attributes, and the motion image rendering device can obtain the corresponding motion image data from the template editor according to the motion effect frame attributes, which improves the intelligence when using the template editor to obtain motion image data.

附图说明Description of drawings

图1为本申请实施例提供的一种图像渲染方法流程图;1 is a flowchart of an image rendering method provided by an embodiment of the present application;

图2为本申请实施例提供的一种示例性的模板编辑器示意图;2 is a schematic diagram of an exemplary template editor provided by an embodiment of the present application;

图3为本申请实施例提供的一种示例性的图像渲染模块和模板编辑器的连接示意图;3 is a schematic diagram of connection of an exemplary image rendering module and a template editor provided by an embodiment of the present application;

图4为本申请实施例提供的一种示例性的编辑器渲染示例图一;FIG. 4 is an exemplary editor rendering example diagram 1 provided by an embodiment of the present application;

图5为本申请实施例提供的一种示例性的编辑器渲染示例图二;FIG. 5 is an exemplary editor rendering example FIG. 2 provided by an embodiment of the present application;

图6为本申请实施例提供的一种示例性的编辑器渲染示例图三;FIG. 6 is an exemplary editor rendering example FIG. 3 provided by an embodiment of the present application;

图7为本申请实施例提供的一种示例性的图像渲染执行流程图;FIG. 7 is an exemplary image rendering execution flowchart provided by an embodiment of the present application;

图8为本申请实施例提供的一种图像渲染装置的组成结构示意图一;FIG. 8 is a schematic diagram 1 of the composition structure of an image rendering apparatus according to an embodiment of the present application;

图9为本申请实施例提供的一种图像渲染装置的组成结构示意图二。FIG. 9 is a second schematic diagram of the composition and structure of an image rendering apparatus according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

本申请实施例提供了一种图像渲染方法,一种图像渲染方法应用于图像渲染装置,图1为本申请实施例提供的一种图像渲染方法流程图,如图1所示,图像渲染方法可以包括:An embodiment of the present application provides an image rendering method, which is applied to an image rendering device. FIG. 1 is a flowchart of an image rendering method provided by an embodiment of the present application. As shown in FIG. 1 , the image rendering method may be include:

S101、在接收到动图数据的情况下,通过图层渲染接口将动图数据传输至动图渲染模块。S101. In the case of receiving the moving image data, transmit the moving image data to the moving image rendering module through a layer rendering interface.

本申请实施例提供的一种图像渲染方法适用于对动图数据进行渲染的场景下。An image rendering method provided by an embodiment of the present application is suitable for a scene in which motion image data is rendered.

在本申请实施例中,图像渲染装置可以以各种形式来实施。例如,本申请中描述的图像渲染装置可以包括诸如手机、照相机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等装置,以及诸如数字TV、台式计算机、服务器等装置。In the embodiments of the present application, the image rendering apparatus may be implemented in various forms. For example, the image rendering devices described in this application may include, for example, cell phones, cameras, tablet computers, notebook computers, PDAs, Personal Digital Assistants (PDAs), Portable Media Players (PMPs), Navigation devices, wearable devices, smart bracelets, pedometers and other devices, as well as devices such as digital TVs, desktop computers, servers, etc.

在本申请实施例中,动图数据可以为视频数据;动图数据也可以为媒体数据;动图数据还可以为其他的数据,具体的动图数据可以根据实际情况进行确定,本申请实施例对此不作限定。In this embodiment of the present application, the moving image data may be video data; the moving image data may also be media data; the moving image data may also be other data, and the specific moving image data may be determined according to the actual situation. This is not limited.

在本申请实施例中,图像渲染装置中包括模板编辑器和动图渲染模块,模板编辑器用于接收动图数据,并通过模板编辑器上的图层渲染接口将动图数据传输至动图渲染模块;动图渲染模块用于确定出动图数据对应的动效帧属性,再通过图层渲染接口将渲染后的动图数据(渲染数据)传输至模板编辑器,以利用模板编辑器中的视图容器显示该渲染数据。In the embodiment of the present application, the image rendering device includes a template editor and a moving image rendering module, the template editor is used to receive the moving image data, and transmit the moving image data to the moving image rendering through the layer rendering interface on the template editor Module; the animation rendering module is used to determine the dynamic frame attributes corresponding to the animation data, and then transmit the rendered animation data (rendering data) to the template editor through the layer rendering interface, so as to use the view in the template editor. The container displays the rendered data.

在本申请实施例中,图层渲染接口可以为自定义的图层渲染器,即模板编辑器上设置有自定义的图层渲染器,以在模板编辑器接收到动图数据的情况下,通过模板编辑器上的自定义的图层渲染器将动图数据传输至动图渲染模块。In this embodiment of the present application, the layer rendering interface may be a custom layer renderer, that is, a custom layer renderer is set on the template editor, so that when the template editor receives the animation data, Transfer the animation data to the animation rendering module through the custom layer renderer on the template editor.

需要说明的是,图层渲染接口也可以为其他的用于将动图数据传输至动图渲染模块的数据传输接口,具体的可以根据实际情况进行确定,本申请实施例对此不作限定。It should be noted that the layer rendering interface may also be other data transmission interfaces used for transmitting the motion picture data to the motion picture rendering module, and the specifics may be determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,图像渲染装置通过图层渲染接口将动图数据传输至动图渲染模块的过程,包括:图像渲染装置利用图层渲染适配器检测动图数据中是否携带图层渲染接口的属性信息;图像渲染装置在确定出动图数据中携带属性信息的情况下,通过图层渲染接口将动图数据传输至动图渲染模块。In the embodiment of the present application, the process that the image rendering apparatus transmits the moving image data to the moving image rendering module through the layer rendering interface includes: the image rendering apparatus uses the layer rendering adapter to detect whether the moving image data carries the layer rendering interface. Attribute information; the image rendering device transmits the dynamic image data to the dynamic image rendering module through the layer rendering interface when it is determined that the attribute information is carried in the outgoing dynamic image data.

在本申请实施例中,属性信息可以为图层渲染接口的标识信息;属性信息也可以为图层渲染接口的名称信息;属性信息还可以为图层渲染接口的其他信息;具体的属性信息可以根据实际情况进行确定,本申请实施例对此不作限定。In this embodiment of the present application, the attribute information may be the identification information of the layer rendering interface; the attribute information may also be the name information of the layer rendering interface; the attribute information may also be other information of the layer rendering interface; the specific attribute information may be It is determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,图像渲染装置通过图层渲染接口将动图数据传输至动图渲染模块之前,图像渲染装置在接收到渲染触发器的触发指令的情况下,建立动图渲染模块。In the embodiment of the present application, before the image rendering apparatus transmits the moving image data to the moving image rendering module through the layer rendering interface, the image rendering apparatus establishes the moving image rendering module in the case of receiving the trigger instruction of the rendering trigger.

在本申请实施例中,如图2所示图像渲染装置中的模板编辑器(编辑器)包括:图层数据集、图层渲染数据集、上下文、渲染器、图层渲染适配器、视图容器、自定义的图层渲染器(图层渲染接口)和渲染触发器。模板编辑器在接收到模板数据(动图数据)的情况下,就利用图层渲染适配器检测动图数据中是否携带图层渲染接口的属性信息;图像渲染装置在确定出动图数据中携带属性信息的情况下,图像渲染装置就将动图数据分为图层数据集和图层渲染数据集,并通过图层渲染接口依次将动图数据中的每个图层对应的图层数据和图层渲染数据传输至动图渲染模块,以利用动图渲染模块分别对每个图层的数据进行渲染,从而得到渲染数据,以根据动效帧属性从渲染数据中获取动图数据。视图容器用于显示渲染数据;上下文用于存储模板编辑器对应的设置信息以及模板编辑器的数据环境;渲染器用于根据上下文中的设置信息或者数据环境对静态元素进行渲染;渲染触发器用于在接收触发指令的情况下,建立动图渲染模块。In this embodiment of the present application, the template editor (editor) in the image rendering apparatus shown in FIG. 2 includes: a layer dataset, a layer rendering dataset, a context, a renderer, a layer rendering adapter, a view container, Custom layer renderer (layer rendering interface) and render trigger. When the template editor receives the template data (moving image data), it uses the layer rendering adapter to detect whether the moving image data carries the attribute information of the layer rendering interface; the image rendering device determines that the moving image data carries the attribute information. In this case, the image rendering device divides the moving image data into a layer data set and a layer rendering data set, and sequentially converts the layer data and the layer corresponding to each layer in the moving image data through the layer rendering interface. The rendering data is transmitted to the motion picture rendering module, and the motion picture rendering module is used to render the data of each layer respectively, so as to obtain the rendering data, so as to obtain the motion picture data from the rendering data according to the attribute of the motion effect frame. The view container is used to display rendering data; the context is used to store the setting information corresponding to the template editor and the data environment of the template editor; the renderer is used to render static elements according to the setting information or data environment in the context; the rendering trigger is used to In the case of receiving the trigger instruction, establish the animation rendering module.

S102、利用动图渲染模块根据预设帧信息确定动图数据对应的动效帧属性。S102 , using a dynamic image rendering module to determine the dynamic effect frame attribute corresponding to the dynamic image data according to the preset frame information.

在本申请实施例中,图像渲染装置通过图层渲染接口将动图数据传输至动图渲染模块之后,图像渲染装置就可以利用动图渲染模块根据预设帧信息确定动图数据对应的动效帧属性。In this embodiment of the present application, after the image rendering apparatus transmits the moving image data to the moving image rendering module through the layer rendering interface, the image rendering apparatus can use the moving image rendering module to determine the motion effect corresponding to the moving image data according to the preset frame information frame properties.

在本申请实施例中,预设帧信息可以为图像渲染装置中配置的帧信息;预设帧信息也可以为图像渲染装置接收到的其他设备传输的帧信息;具体的图像渲染装置获取到预设帧信息的方式可以根据实际情况进行确定,本申请实施例对此不作限定。In this embodiment of the present application, the preset frame information may be frame information configured in the image rendering apparatus; the preset frame information may also be frame information received by the image rendering apparatus and transmitted by other devices; the specific image rendering apparatus obtains the preset frame information. The manner of setting the frame information may be determined according to the actual situation, which is not limited in this embodiment of the present application.

需要说明的是,动效帧属性可以为标识动图数据中每一帧图像的动效属性;示例性的,动效帧属性为动图数据中每一帧图像对应的帧信息。It should be noted that the dynamic effect frame attribute may be a dynamic effect attribute identifying each frame of image in the dynamic image data; exemplarily, the dynamic effect frame attribute is the frame information corresponding to each frame image in the dynamic image data.

在本申请实施例中,图像渲染装置利用动图渲染模块根据预设帧信息确定动图数据对应的动效帧属性的过程,包括:图像渲染装置利用动图渲染模块根据预设帧信息在动图数据中获取目标过渡帧;图像渲染装置根据预设帧信息和预设帧信息确定动效帧属性。In the embodiment of the present application, the process of determining, by the image rendering apparatus, the motion frame attribute corresponding to the motion image data according to the preset frame information by the motion image rendering module includes: the image rendering apparatus uses the motion image rendering module to perform the motion effect according to the preset frame information. The target transition frame is obtained from the image data; the image rendering device determines the dynamic effect frame attribute according to the preset frame information and the preset frame information.

在本申请实施例中,图像渲染装置利用动图渲染模块根据预设帧信息在动图数据中获取目标过渡帧的过程,包括:图像渲染装置获取动图数据中的图层数据;并获取图层数据中的至少一个过渡帧;图像渲染装置在至少一个过渡帧中获取与预设帧信息匹配的目标过渡帧。In the embodiment of the present application, the process of obtaining the target transition frame in the moving image data by the image rendering apparatus by using the moving image rendering module according to the preset frame information includes: the image rendering apparatus obtains the layer data in the moving image data; at least one transition frame in the layer data; the image rendering apparatus acquires a target transition frame matching the preset frame information in the at least one transition frame.

在本申请实施例中,图像渲染装置还包括帧选择器,图像渲染装置可以利用帧选择器在至少一个过渡帧中获取与预设帧信息匹配的目标过渡帧。In this embodiment of the present application, the image rendering apparatus further includes a frame selector, and the image rendering apparatus may use the frame selector to acquire a target transition frame matching preset frame information in at least one transition frame.

在本申请实施例中,图层数据中包括帧列表,帧列表中的每一项表示过渡帧,每一项包括起始帧、结束帧、起始帧属性和接收帧属性,示例性的,如表1所示:所属图层ID为1的过渡帧为a对应的起始帧为1,结束帧为3,起始帧属性为opacity=100,rotate=0,结束帧属性为opacity=50,rotate=90;所属图层ID为1的过渡帧为b对应的起始帧为2,结束帧为4,起始帧属性为scale=1,结束帧属性为scale=2;所属图层ID为2的过渡帧为c也对应存在起始帧、结束帧、起始帧属性以及结束帧属性。In this embodiment of the present application, the layer data includes a frame list, each item in the frame list represents a transition frame, and each item includes a start frame, an end frame, a start frame attribute, and a received frame attribute. Exemplarily, As shown in Table 1: the transition frame whose layer ID is 1 is a, the corresponding start frame is 1, the end frame is 3, the start frame attribute is opacity=100, rotate=0, and the end frame attribute is opacity=50 , rotate=90; the transition frame whose layer ID is 1 is b, the corresponding start frame is 2, the end frame is 4, the start frame attribute is scale=1, and the end frame attribute is scale=2; the belonging layer ID The transition frame of 2 is c also corresponds to the existence of the start frame, the end frame, the start frame attribute and the end frame attribute.

表1Table 1

Figure BDA0003616906000000061
Figure BDA0003616906000000061

需要说明的是,帧选择器在至少一个过渡帧中获取与预设帧信息匹配的目标过渡帧的过程,可以为帧选择器查找图层数据中的至少一个过渡帧,以表2中图层ID为1(对应的宽度为100,高度为100,坐标为100,100)及表1中图层1的帧列表的数据为例,在预设帧信息为2的情况下,与预设帧信息匹配的目标过渡帧的过渡帧为a和b。在预设帧信息为4的情况下,与预设帧信息匹配的目标过渡帧的过渡帧为a。It should be noted that, in the process of obtaining the target transition frame matching the preset frame information in at least one transition frame, the frame selector can search for at least one transition frame in the layer data for the frame selector, and use the layer in Table 2. The ID is 1 (the corresponding width is 100, the height is 100, and the coordinates are 100, 100) and the data of the frame list of layer 1 in Table 1 is taken as an example. When the preset frame information is 2, it matches the preset frame information. The transition frames of the target transition frame are a and b. When the preset frame information is 4, the transition frame of the target transition frame matching the preset frame information is a.

表2Table 2

图层IDLayer ID 宽度width 高度high 坐标coordinate 11 100100 100100 100,100100,100 22

在本申请实施例中,图像渲染装置根据预设帧信息和预设帧信息确定动效帧属性的过程,包括:图像渲染装置从目标过渡帧中获取起始帧、起始帧的起始帧属性信息、结束帧和结束帧的结束帧属性信息;图像渲染装置确定预设帧信息在起始帧和结束帧之间的比例信息;图像渲染装置根据比例信息、起始帧属性信息和结束帧属性信息确定动效帧属性。In the embodiment of the present application, the process of the image rendering device determining the attribute of the dynamic effect frame according to the preset frame information and the preset frame information includes: the image rendering device obtains the starting frame and the starting frame of the starting frame from the target transition frame. attribute information, the end frame and the end frame attribute information of the end frame; the image rendering device determines the ratio information of the preset frame information between the start frame and the end frame; the image rendering device determines the ratio information according to the ratio information, the start frame attribute information and the end frame The attribute information determines the motion frame attributes.

示例性的,起始帧为1,结束帧为3,起始帧属性信息为透明度=100,旋转角度=0,结束帧属性信息为透明度=50,结束角度=90,在预设帧信息为2的情况下,则预设帧信息在起始帧和结束帧之间的比例信息为1:1,换算为比例系数可以为0.5,可得预设帧信息对应的透明度为0.5*(100+50),即为75,预设帧信息对应的旋转度为0.5*(0+90),即为45,则动效帧属性包括:透明度为75,旋转角度为45。Exemplarily, the start frame is 1, the end frame is 3, the attribute information of the start frame is transparency=100, the rotation angle=0, the attribute information of the end frame is transparency=50, the end angle=90, and the preset frame information is In the case of 2, the ratio information of the preset frame information between the start frame and the end frame is 1:1, which can be converted into a scale factor of 0.5, and the transparency corresponding to the preset frame information can be obtained as 0.5*(100+ 50), which is 75, the rotation degree corresponding to the preset frame information is 0.5*(0+90), which is 45, and the motion frame attributes include: the transparency is 75, and the rotation angle is 45.

在本申请实施例中,图像渲染装置也可以利用其他方式根据预设帧信息、起始帧、结束帧、起始帧属性信息和结束帧属性信息确定动效帧属性;具体的可以根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, the image rendering apparatus may also determine the dynamic frame attribute according to the preset frame information, the start frame, the end frame, the start frame attribute information and the end frame attribute information in other ways; the specific information can be based on the actual situation. It is determined, which is not limited in this embodiment of the present application.

在本申请实施例中,动图渲染模块还包括动效计算器,图像渲染装置可以利用动图渲染模块中的动效计算器确定预设帧信息在起始帧和结束帧之间的比例信息;然后再利用动效计算器根据比例信息、起始帧属性信息和结束帧属性信息确定动效帧属性。In this embodiment of the present application, the motion picture rendering module further includes a motion effect calculator, and the image rendering apparatus can use the motion effect calculator in the motion picture rendering module to determine the ratio information of the preset frame information between the start frame and the end frame ; Then use the dynamic effect calculator to determine the dynamic effect frame attribute according to the scale information, the starting frame attribute information and the ending frame attribute information.

在本申请实施例中,图像渲染装置利用动图渲染模块根据预设帧信息确定动图数据对应的动效帧属性之前,图像渲染装置还会接收预设帧信息。In the embodiment of the present application, before the image rendering apparatus determines the motion frame attribute corresponding to the motion image data by using the motion image rendering module according to the preset frame information, the image rendering apparatus further receives the preset frame information.

在本申请实施例中,动图渲染模块中还包括帧控制器,图像渲染装置可以利用帧控制器接收预设帧信息。In this embodiment of the present application, the motion picture rendering module further includes a frame controller, and the image rendering apparatus can use the frame controller to receive preset frame information.

S103、将动效帧属性渲染至动图数据中,得到渲染数据,以根据动效帧属性从渲染数据中获取动图数据。S103. Render the dynamic effect frame attributes into the dynamic image data to obtain rendering data, so as to obtain the dynamic image data from the rendering data according to the dynamic effect frame attributes.

在本申请实施例中,图像渲染装置利用动图渲染模块根据预设帧信息确定动图数据对应的动效帧属性之后,图像渲染装置就可以将动效帧属性渲染至动图数据中,得到渲染数据,以根据动效帧属性从渲染数据中获取动图数据。In the embodiment of the present application, after the image rendering apparatus determines the motion frame attribute corresponding to the motion image data according to the preset frame information by using the motion image rendering module, the image rendering apparatus can render the motion frame attribute into the motion image data, and obtains Rendering data to get the motion picture data from the rendering data according to the motion frame properties.

在本申请实施例中,图像渲染装置将动效帧属性渲染至动图数据中,得到渲染数据的过程,包括:图像渲染装置对动图数据中的图层数据进行渲染,得到初始容器;图像渲染装置将动图数据中的图层渲染数据渲染至初始容器中,得到渲染容器;图像渲染装置将动效帧属性添加至渲染容器中,得到渲染数据。In the embodiment of the present application, the image rendering device renders the dynamic effect frame attributes into the motion picture data, and the process of obtaining the rendering data includes: the image rendering device renders the layer data in the motion picture data to obtain the initial container; The rendering device renders the layer rendering data in the animation data to the initial container to obtain the rendering container; the image rendering device adds the dynamic effect frame attribute to the rendering container to obtain the rendering data.

在本申请实施例中,动图渲染模块还包括动图渲染器,图像渲染装置可以利用动图渲染器对动图数据中的图层数据进行渲染,得到初始容器;然后再利用动图渲染器将动图数据中的图层渲染数据渲染至初始容器中,得到渲染容器;最后利用动图渲染器将动效帧属性添加至渲染容器中,得到渲染数据。In this embodiment of the present application, the dynamic image rendering module further includes a dynamic image renderer, and the image rendering apparatus can use the dynamic image renderer to render layer data in the dynamic image data to obtain an initial container; and then use the dynamic image renderer to render the layer data in the dynamic image data. Render the layer rendering data in the animation data to the initial container to obtain the rendering container; finally, use the animation renderer to add the dynamic effect frame attribute to the rendering container to obtain the rendering data.

在本申请实施例中,初始容器为指定宽高坐标的容器。In this embodiment of the present application, the initial container is a container with specified width and height coordinates.

需要说明的是,容器的样式会影响容器内容的样式,如容器的透明度为50%时,如果容器内容的透明度也为50%时,实际的效果为25%,该逻辑在图形渲染上比较常见,属于现有的基础功能,此处不做详细描述。It should be noted that the style of the container will affect the style of the container content. For example, when the transparency of the container is 50%, if the transparency of the container content is also 50%, the actual effect is 25%. This logic is more common in graphics rendering. , which belongs to the existing basic functions and will not be described in detail here.

在本申请实施例中,图像渲染装置将动效帧属性添加至渲染容器中,得到渲染数据之后,图像渲染装置就可以利用视图容器显示渲染数据。In the embodiment of the present application, the image rendering apparatus adds the dynamic effect frame attribute to the rendering container, and after obtaining the rendering data, the image rendering apparatus can use the view container to display the rendering data.

在本申请实施例中,图像渲染装置中的动图渲染模块如图3所示,图像渲染装置在检测到渲染触发器触发的情况下,图像渲染装置就生成动图渲染模块,动图渲染模块包括动图上下文(上下文)、帧控制器、动图渲染器、帧选择器、动效计算器五个组件。其中,动图上下文用于存储动图渲染模块的所需要的数据,包括预设帧信息和图层数据(从模板数据中得到的数据);帧控制器用于接收外部传输的预设帧信息(帧数)后,将该预设帧信息存储至动图上下文中,随后触发渲染触发器。利用帧选择器获取动图上下文的图层数据,并取得图层数据中的帧列表(至少一个过渡帧),列表中每一项表示过渡帧,每一项包含起始帧和结束帧,同时也包含多个起始帧属性信息及结束帧属性信息。帧选择器在获取帧列表后,同时获取动图上下文中的预设帧信息,在至少一个过渡帧中获取与预设帧信息匹配的目标过渡帧。动效计算器用于接收目标过渡帧,并通过动图上下文的预设帧信息,确定出动效帧属性。动图渲染器用于接收图层渲染数据(从模板数据中得到的数据)及图层数据,动图渲染器将图层数据存储至动图上下文中,并执行帧选择器,利用帧选择器确定目标过渡帧,利用动效计算器根据目标过渡帧和动图上下文中的图层数据,得到动效帧属性。动图渲染器根据图层数据渲染出指定宽高/坐标的初始容器,并将图层渲染数据渲染到初始容器内,得到渲染容器,最后将动效帧属性设置到渲染容器中,得到渲染数据,并通过图层渲染接口(自定义图层渲染器)至模板编辑器(编辑器),利用模板编辑器显示渲染数据。In the embodiment of the present application, the moving image rendering module in the image rendering device is shown in FIG. 3 . When the image rendering device detects that the rendering trigger is triggered, the image rendering device generates a moving image rendering module. The moving image rendering module It includes five components: motion picture context (context), frame controller, motion picture renderer, frame selector, and motion effect calculator. Among them, the motion picture context is used to store the data required by the motion picture rendering module, including preset frame information and layer data (data obtained from template data); the frame controller is used to receive externally transmitted preset frame information ( frame number), store the preset frame information in the motion picture context, and then trigger the rendering trigger. Use the frame selector to obtain the layer data of the moving picture context, and obtain the frame list (at least one transition frame) in the layer data. Each item in the list represents a transition frame, and each item includes a start frame and an end frame. It also includes a plurality of start frame attribute information and end frame attribute information. After acquiring the frame list, the frame selector simultaneously acquires preset frame information in the motion picture context, and acquires a target transition frame matching the preset frame information in at least one transition frame. The motion effect calculator is used to receive the target transition frame, and determine the motion effect frame attribute through the preset frame information of the motion picture context. The animation renderer is used to receive layer rendering data (data obtained from template data) and layer data. The animation renderer stores the layer data in the animation context, and executes the frame selector, using the frame selector to determine For the target transition frame, use the dynamic effect calculator to obtain the dynamic effect frame attribute according to the target transition frame and the layer data in the animation context. The animation renderer renders the initial container with the specified width and height/coordinates according to the layer data, and renders the layer rendering data into the initial container to obtain the rendering container, and finally sets the dynamic frame properties to the rendering container to obtain the rendering data. , and pass the layer rendering interface (custom layer renderer) to the template editor (editor), and use the template editor to display the rendering data.

需要说明的是,帧控制器只负责在预设帧信息发生改变后进行触发。It should be noted that the frame controller is only responsible for triggering after the preset frame information is changed.

示例性的,无动图渲染的情况下表2渲染的结果如图4所示:在坐标100,100位置处显示宽度为100高度、为100的图像,在添加动图渲染后以表1中a,b过渡帧的数据为例,其中第2帧渲染数据如图5所示:显示透明度为75、旋转角度为45的图像,第3帧渲染数据如图6所示:显示透明度=50、旋转角度=90、缩放1.5倍的图像。Exemplarily, in the case of no animation rendering, the results of Table 2 rendering are shown in Figure 4: an image with a width of 100 and a height of 100 is displayed at the coordinates 100 and 100. After adding animation rendering, a in Table 1, b The data of the transition frame is taken as an example. The rendering data of the second frame is shown in Figure 5: an image with a transparency of 75 and a rotation angle of 45 is displayed, and the rendering data of the third frame is shown in Figure 6: the display transparency = 50, the rotation angle =90, image scaled 1.5 times.

在本申请实施例中,如图7所示,图像渲染装置在调用侧设置模板数据,创建模板编辑器,该模板编辑器中包括渲染触发器,图像渲染装置在接收到渲染触发器的触发指令的情况下,建立动图渲染模块。在调用侧设置模板编辑器的图层渲染接口(自定义渲染器)。图像渲染装置利用帧控制器接收预设帧信息(帧数),将该预设帧信息设置到动图上下文(上下文)中,然后渲染触发器就被触发,渲染触发器通知模板编辑器进行渲染(通知编辑器渲染),模板编辑器在接收到动图数据的情况下,利用图层渲染适配器检测动图数据中是否携带图层渲染接口的属性信息;在确定出动图数据中携带属性信息的情况下,通过图层渲染接口(调用)将动图数据传输至动图渲染模块的动图渲染器;动图渲染器将动图数据中的图层数据设置到上下文中,帧选择器从上下文中获取动图数据中的图层数据;并获取图层数据中的至少一个过渡帧(获取过渡帧);在至少一个过渡帧中获取与预设帧信息匹配的目标过渡帧。动效计算器用于接收目标过渡帧,从目标过渡帧中获取起始帧、起始帧的起始帧属性信息、结束帧和结束帧的结束帧属性信息;确定预设帧信息在起始帧和结束帧之间的比例信息;根据比例信息、起始帧属性信息和结束帧属性信息确定动效帧属性;根据动图数据中的图层数据渲染出初始容器;将动图数据中的图层渲染数据渲染至初始容器中,得到渲染容器;将动效帧属性添加至渲染容器中,得到目标容器,返回目标容器(渲染内容)至模板编辑器,以根据目标容器确定对应关系,根据对应关系获取动图数据。In the embodiment of the present application, as shown in FIG. 7 , the image rendering apparatus sets template data on the calling side, and creates a template editor. The template editor includes a rendering trigger, and the image rendering apparatus receives a trigger instruction of the rendering trigger. In the case of , create a dynamic image rendering module. Set the layer rendering interface of the template editor (custom renderer) on the calling side. The image rendering device uses the frame controller to receive the preset frame information (number of frames), sets the preset frame information into the animation context (context), and then the rendering trigger is triggered, and the rendering trigger notifies the template editor to render (notifying the editor to render), when the template editor receives the motion picture data, it uses the layer rendering adapter to detect whether the motion picture data carries the attribute information of the layer rendering interface; In this case, the animation data is transferred to the animation renderer of the animation rendering module through the layer rendering interface (calling); the animation renderer sets the layer data in the animation data into the context, and the frame selector starts from the context. Obtain the layer data in the moving image data in ; and obtain at least one transition frame in the layer data (obtain a transition frame); obtain a target transition frame matching the preset frame information in the at least one transition frame. The motion effect calculator is used to receive the target transition frame, obtain the start frame, the start frame attribute information of the start frame, the end frame and the end frame attribute information of the end frame from the target transition frame; determine that the preset frame information is in the start frame Scale information between the frame and the end frame; determine the motion frame attribute according to the scale information, start frame attribute information and end frame attribute information; render the initial container according to the layer data in the motion picture data; Render the layer rendering data to the initial container to get the rendering container; add the dynamic frame attribute to the rendering container to get the target container, return the target container (rendering content) to the template editor to determine the corresponding relationship according to the target container, according to the corresponding Relation to get animation data.

可以理解的是,图像渲染装置利用动图渲染模块确定出动图数据对应的动效帧属性,并将动效帧属性渲染至动图数据中,得到渲染数据,使得动图数据中的每一帧数据都对应存在不同的动效帧属性,动图渲染装置可以根据动效帧属性从模板编辑器中获取到对应的动图数据,提高了利用模板编辑器获取动图数据时的智能性。It can be understood that the image rendering device uses the motion picture rendering module to determine the motion frame attributes corresponding to the motion picture data, and renders the motion effect frame attributes into the motion picture data to obtain the rendering data, so that each frame in the motion picture data is obtained. There are different motion frame attributes corresponding to the data, and the motion image rendering device can obtain the corresponding motion image data from the template editor according to the motion effect frame attributes, which improves the intelligence when using the template editor to obtain the motion image data.

基于实施例一同一发明构思,本申请实施例提供了一种图像渲染装置1,对应于一种图像渲染方法;图8为本申请实施例提供的一种图像渲染装置的组成结构示意图一,该图像渲染装置1可以包括:Based on the same inventive concept of the first embodiment, the embodiment of the present application provides an image rendering apparatus 1, which corresponds to an image rendering method; FIG. The image rendering apparatus 1 may include:

传输单元11,用于在接收到动图数据的情况下,通过图层渲染接口将所述动图数据传输至动图渲染模块;The transmission unit 11 is configured to transmit the moving image data to the moving image rendering module through the layer rendering interface under the condition of receiving the moving image data;

确定单元12,用于利用所述动图渲染模块根据预设帧信息确定所述动图数据对应的动效帧属性;A determination unit 12, configured to use the motion picture rendering module to determine the motion frame attribute corresponding to the motion picture data according to preset frame information;

渲染单元13,用于将所述动效帧属性渲染至所述动图数据中,得到渲染数据,以根据所述动效帧属性从所述渲染数据中获取所述动图数据。The rendering unit 13 is configured to render the motion effect frame attributes into the motion image data to obtain rendering data, so as to obtain the motion image data from the rendering data according to the motion effect frame attributes.

在本申请的一些实施例中,所述装置还包括获取单元;In some embodiments of the present application, the apparatus further includes an acquisition unit;

所述获取单元,用于利用所述动图渲染模块根据所述预设帧信息在所述动图数据中获取目标过渡帧;the obtaining unit, configured to obtain the target transition frame in the moving image data by using the moving image rendering module according to the preset frame information;

所述确定单元12,用于根据所述预设帧信息和所述预设帧信息确定所述动效帧属性。The determining unit 12 is configured to determine the dynamic effect frame attribute according to the preset frame information and the preset frame information.

在本申请的一些实施例中,所述获取单元,用于从所述目标过渡帧中获取起始帧、所述起始帧的起始帧属性信息、结束帧和所述结束帧的结束帧属性信息;In some embodiments of the present application, the obtaining unit is configured to obtain, from the target transition frame, a start frame, start frame attribute information of the start frame, an end frame, and an end frame of the end frame attribute information;

所述确定单元12,用于确定所述预设帧信息在所述起始帧和所述结束帧之间的比例信息;根据所述比例信息、所述起始帧属性信息和所述结束帧属性信息确定所述所述动效帧属性。The determining unit 12 is configured to determine the ratio information of the preset frame information between the start frame and the end frame; according to the ratio information, the attribute information of the start frame and the end frame The attribute information determines the motion frame attribute.

在本申请的一些实施例中,所述获取单元,用于获取所述动图数据中的图层数据;并获取所述图层数据中的至少一个过渡帧;在所述至少一个过渡帧中获取与所述预设帧信息匹配的目标过渡帧。In some embodiments of the present application, the acquiring unit is configured to acquire layer data in the moving image data; and acquire at least one transition frame in the layer data; in the at least one transition frame Acquire a target transition frame matching the preset frame information.

在本申请的一些实施例中,所述装置还包括接收单元;In some embodiments of the present application, the apparatus further includes a receiving unit;

所述接收单元,用于接收预设帧信息。The receiving unit is used for receiving preset frame information.

在本申请的一些实施例中,所述装置还包括添加单元;In some embodiments of the present application, the device further includes an adding unit;

所述渲染单元13,用于对所述动图数据中的图层数据进行渲染,得到初始容器;将所述动图数据中的图层渲染数据渲染至所述初始容器中,得到渲染容器;The rendering unit 13 is configured to render the layer data in the moving image data to obtain an initial container; render the layer rendering data in the moving image data to the initial container to obtain a rendering container;

所述添加单元,用于将所述动效帧属性添加至所述渲染容器中,得到所述渲染数据。The adding unit is configured to add the dynamic effect frame attribute to the rendering container to obtain the rendering data.

在本申请的一些实施例中,所述装置还包括显示单元;In some embodiments of the present application, the apparatus further includes a display unit;

所述显示单元,用于利用视图容器显示所述渲染数据。The display unit is configured to display the rendering data by using a view container.

在本申请的一些实施例中,所述装置还包括检测单元;In some embodiments of the present application, the device further includes a detection unit;

所述检测单元,用于利用图层渲染适配器检测所述动图数据中是否携带图层渲染接口的属性信息;The detection unit is configured to use a layer rendering adapter to detect whether the animation data carries attribute information of the layer rendering interface;

所述传输单元11,用于在确定出所述动图数据中携带所述属性信息的情况下,通过图层渲染接口将所述动图数据传输至动图渲染模块。The transmitting unit 11 is configured to transmit the moving image data to the moving image rendering module through a layer rendering interface when it is determined that the moving image data carries the attribute information.

在本申请的一些实施例中,所述装置还包括建立单元;In some embodiments of the present application, the apparatus further includes a establishing unit;

所述建立单元,用于在接收到渲染触发器的触发指令的情况下,建立所述动图渲染模块。The establishment unit is configured to establish the motion picture rendering module in the case of receiving a trigger instruction of a rendering trigger.

需要说明的是,在实际应用中,上述传输单元11、确定单元12和渲染单元13可由图像渲染装置1上的处理器14实现,具体为CPU(Central Processing Unit,中央处理器)、MPU(Microprocessor Unit,微处理器)、DSP(Digital Signal Processing,数字信号处理器)或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现;上述数据存储可由图像渲染装置1上的存储器15实现。It should be noted that, in practical applications, the above-mentioned transmission unit 11 , determination unit 12 and rendering unit 13 may be implemented by the processor 14 on the image rendering device 1 , specifically a CPU (Central Processing Unit, central processing unit), an MPU (Microprocessor) Unit, microprocessor), DSP (Digital Signal Processing, digital signal processor) or Field Programmable Gate Array (FPGA, Field Programmable Gate Array), etc.; the above data storage can be realized by the memory 15 on the image rendering device 1 .

本申请实施例还提供了一种图像渲染装置1,如图9所示,所述图像渲染装置1包括:处理器14、存储器15和通信总线16,所述存储器15通过所述通信总线16与所述处理器14进行通信,所述存储器15存储所述处理器14可执行的程序,当所述程序被执行时,通过所述处理器14执行如上述所述的图像渲染方法。The embodiment of the present application further provides an image rendering apparatus 1. As shown in FIG. 9, the image rendering apparatus 1 includes: a processor 14, a memory 15, and a communication bus 16, and the memory 15 communicates with the communication bus 16 through the communication bus 16. The processor 14 communicates, and the memory 15 stores a program executable by the processor 14. When the program is executed, the image rendering method as described above is executed by the processor 14.

在实际应用中,上述存储器15可以是易失性存储器(volatile memory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(flash memory),硬盘(Hard DiskDrive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的存储器的组合,并向处理器14提供指令和数据。In practical applications, the above-mentioned memory 15 may be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard DiskDrive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and provide the processor 14 with instructions and data.

本申请实施例提供了一种计算机可读存储介质,其上有计算机程序,所述程序被处理器14执行时实现如上述所述的图像渲染方法。An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by the processor 14, the image rendering method as described above is implemented.

可以理解的是,图像渲染装置利用动图渲染模块确定出动图数据对应的动效帧属性,并将动效帧属性渲染至动图数据中,得到渲染数据,使得动图数据中的每一帧数据都对应存在不同的动效帧属性,动图渲染装置可以根据动效帧属性从模板编辑器中获取到对应的动图数据,提高了利用模板编辑器获取动图数据时的智能性。It can be understood that the image rendering device uses the motion picture rendering module to determine the motion frame attributes corresponding to the motion picture data, and renders the motion effect frame attributes into the motion picture data to obtain the rendering data, so that each frame in the motion picture data is obtained. There are different motion frame attributes corresponding to the data, and the motion image rendering device can obtain the corresponding motion image data from the template editor according to the motion effect frame attributes, which improves the intelligence when using the template editor to obtain the motion image data.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application.

Claims (12)

1. A method of image rendering, the method comprising:
transmitting the motion picture data to a motion picture rendering module through a layer rendering interface under the condition of receiving the motion picture data;
determining a dynamic frame attribute corresponding to the dynamic image data according to preset frame information by using the dynamic image rendering module;
rendering the dynamic frame attribute to the dynamic image data to obtain rendering data, and acquiring the dynamic image data from the rendering data according to the dynamic frame attribute.
2. The method according to claim 1, wherein the determining, by the motion picture rendering module, the motion picture frame attribute corresponding to the motion picture data according to preset frame information comprises:
acquiring a target transition frame in the motion picture data by using the motion picture rendering module according to the preset frame information;
and determining the dynamic effect frame attribute according to the preset frame information and the preset frame information.
3. The method according to claim 2, wherein the determining the dynamic frame attribute according to the preset frame information and the preset frame information comprises:
acquiring a starting frame, starting frame attribute information of the starting frame, an ending frame and ending frame attribute information of the ending frame from the target transition frame;
determining proportion information of the preset frame information between the starting frame and the ending frame;
and determining the dynamic effect frame attribute according to the proportion information, the starting frame attribute information and the ending frame attribute information.
4. The method according to claim 2, wherein said obtaining, by the motion picture rendering module, a target transition frame in the motion picture data according to the preset frame information comprises:
acquiring layer data in the motion picture data; acquiring at least one transition frame in the layer data;
and acquiring a target transition frame matched with the preset frame information from the at least one transition frame.
5. The method according to claim 2, wherein before determining the motion picture frame attribute corresponding to the motion picture data according to preset frame information by using the motion picture rendering module, the method further comprises:
and receiving preset frame information.
6. The method according to claim 1, wherein the rendering the motion picture frame attribute into the motion picture data to obtain rendering data comprises:
rendering layer data in the motion picture data to obtain an initial container;
rendering layer rendering data in the dynamic image data to the initial container to obtain a rendering container;
and adding the dynamic frame attribute to the rendering container to obtain the rendering data.
7. The method of claim 6, wherein after adding the animation frame attribute to the rendering container, resulting in the rendering data, the method further comprises:
displaying the rendering data using a view container.
8. The method according to claim 1, wherein the transmitting the graphics data to a graphics rendering module via a graphics layer rendering interface comprises:
detecting whether the attribute information of a layer rendering interface is carried in the motion picture data or not by using a layer rendering adapter;
and transmitting the dynamic image data to a dynamic image rendering module through an image layer rendering interface under the condition that the attribute information is carried in the dynamic image data.
9. The method according to claim 1, wherein before the transmitting the graphics data to a graphics rendering module via a graphics layer rendering interface, the method further comprises:
and under the condition of receiving a trigger instruction of a rendering trigger, establishing the motion picture rendering module.
10. An image rendering apparatus, characterized in that the apparatus comprises:
the transmission unit is used for transmitting the dynamic image data to the dynamic image rendering module through the image layer rendering interface under the condition of receiving the dynamic image data;
the determining unit is used for determining the dynamic frame attribute corresponding to the dynamic image data by utilizing the dynamic image rendering module according to preset frame information;
and the rendering unit is used for rendering the dynamic frame attribute into the dynamic image data to obtain rendering data, and acquiring the dynamic image data from the rendering data according to the dynamic frame attribute.
11. An image rendering apparatus, characterized in that the apparatus comprises:
a memory, a processor, and a communication bus, the memory in communication with the processor through the communication bus, the memory storing an image rendering program executable by the processor, the image rendering program, when executed, causing the processor to perform the method of any of claims 1 to 9.
12. A storage medium having stored thereon a computer program for use in an image rendering apparatus, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 9.
CN202210450108.5A 2022-04-26 2022-04-26 Image rendering method, device and storage medium Active CN114782579B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210450108.5A CN114782579B (en) 2022-04-26 2022-04-26 Image rendering method, device and storage medium
PCT/CN2023/087240 WO2023207563A1 (en) 2022-04-26 2023-04-10 Image rendering method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210450108.5A CN114782579B (en) 2022-04-26 2022-04-26 Image rendering method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114782579A true CN114782579A (en) 2022-07-22
CN114782579B CN114782579B (en) 2025-05-16

Family

ID=82432395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210450108.5A Active CN114782579B (en) 2022-04-26 2022-04-26 Image rendering method, device and storage medium

Country Status (2)

Country Link
CN (1) CN114782579B (en)
WO (1) WO2023207563A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023207563A1 (en) * 2022-04-26 2023-11-02 北京沃东天骏信息技术有限公司 Image rendering method and apparatus, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130113801A1 (en) * 2011-11-08 2013-05-09 Caustic Graphics, Inc. Profiling Ray Tracing Renderers
CN111161392A (en) * 2019-12-20 2020-05-15 苏宁云计算有限公司 Video generation method and device and computer system
CN111899322A (en) * 2020-06-29 2020-11-06 腾讯科技(深圳)有限公司 Video processing method, animation rendering SDK, device and computer storage medium
WO2021189995A1 (en) * 2020-03-24 2021-09-30 北京达佳互联信息技术有限公司 Video rendering method and apparatus, electronic device, and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385591B (en) * 2016-10-17 2020-05-15 腾讯科技(上海)有限公司 Video processing method and video processing device
CN112929681B (en) * 2021-01-19 2023-09-05 广州虎牙科技有限公司 Video stream image rendering method, device, computer equipment and storage medium
CN112802168A (en) * 2021-01-26 2021-05-14 广州欢网科技有限责任公司 Animation generation method and device and television terminal
CN114299198B (en) * 2021-12-31 2025-05-09 北京达佳互联信息技术有限公司 Animation generation method, device, electronic device, medium and computer program product
CN114782579B (en) * 2022-04-26 2025-05-16 北京沃东天骏信息技术有限公司 Image rendering method, device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130113801A1 (en) * 2011-11-08 2013-05-09 Caustic Graphics, Inc. Profiling Ray Tracing Renderers
CN111161392A (en) * 2019-12-20 2020-05-15 苏宁云计算有限公司 Video generation method and device and computer system
WO2021189995A1 (en) * 2020-03-24 2021-09-30 北京达佳互联信息技术有限公司 Video rendering method and apparatus, electronic device, and storage medium
CN111899322A (en) * 2020-06-29 2020-11-06 腾讯科技(深圳)有限公司 Video processing method, animation rendering SDK, device and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈莉;: "基于OPENGL的渲染平台设计", 煤炭技术, no. 03, 10 March 2010 (2010-03-10) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023207563A1 (en) * 2022-04-26 2023-11-02 北京沃东天骏信息技术有限公司 Image rendering method and apparatus, and storage medium

Also Published As

Publication number Publication date
WO2023207563A1 (en) 2023-11-02
CN114782579B (en) 2025-05-16

Similar Documents

Publication Publication Date Title
EP2972950B1 (en) Segmentation of content delivery
CN111652796A (en) Image processing method, electronic device, and computer-readable storage medium
US20190122421A1 (en) Batch rendering method, device, and apparatus
US9965825B2 (en) Image processing circuit and methods for processing image on-the-fly and devices including the same
US20110193858A1 (en) Method for displaying images using an electronic device
US20070030292A1 (en) Apparatus and method for image rotation
WO2017088704A1 (en) Information presentation method and information presentation device
US10620807B2 (en) Association of objects in a three-dimensional model with time-related metadata
US20230035104A1 (en) Verification method, apparatus and device, and storage medium
CN112508005B (en) Methods, devices, equipment and storage media for processing images
CN114297720A (en) Image desensitization method and device, electronic equipment and storage medium
WO2022105120A1 (en) Text detection method and apparatus from image, computer device and storage medium
US20180293437A1 (en) Capture object boundary jitter reduction
CN114782579A (en) Image rendering method and device and storage medium
US10199013B2 (en) Digital image comparison
US20210166053A1 (en) Merging object detections using graphs
CN112116719A (en) Method, device, storage medium and electronic device for determining objects in three-dimensional scene
WO2022227191A1 (en) Inactive living body detection method and apparatus, electronic device, and storage medium
CN114723800A (en) Method and device for correcting point cloud data, electronic device, and storage medium
US9036874B2 (en) Image processing and recording system preidentifying and prestoring images with predetermined features and method thereof
US20160034602A1 (en) Storing and presenting data associating information in a file with the source of the information
CN114117281A (en) Background determination method, device, equipment and storage medium
US20240257455A1 (en) Method and apparatus for detecting picked object, computer device, readable storage medium, and computer program product
CN114428594B (en) Image display method, device, electronic equipment and storage medium
CN116127103B (en) Data mining, multimedia task processing method, device, electronic equipment and 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