WO2023098611A1 - 特效的显示方法、装置、设备及存储介质 - Google Patents

特效的显示方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023098611A1
WO2023098611A1 PCT/CN2022/134637 CN2022134637W WO2023098611A1 WO 2023098611 A1 WO2023098611 A1 WO 2023098611A1 CN 2022134637 W CN2022134637 W CN 2022134637W WO 2023098611 A1 WO2023098611 A1 WO 2023098611A1
Authority
WO
WIPO (PCT)
Prior art keywords
special effect
control
thread
preview
effect data
Prior art date
Application number
PCT/CN2022/134637
Other languages
English (en)
French (fr)
Inventor
吕阳
马锐锋
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2023098611A1 publication Critical patent/WO2023098611A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present disclosure relates to the technical field of computers, for example, to a special effect display method, device, equipment and storage medium.
  • the present disclosure provides a special effect display method, device, device and storage medium, which can display intermediate special effects in a combined special effect package, facilitate development users to adjust the intermediate special effects, and thereby improve the effect of the combined special effect package.
  • the present disclosure provides a method for displaying special effects, including:
  • the control thread regularly sends special effect data requests to the preview thread; wherein, the control thread includes at least one special effect control;
  • the preview thread returns at least one special effect data to the control thread according to the data request;
  • the control thread renders the at least one special effect data, obtains at least one intermediate special effect image, and displays the at least one intermediate special effect image.
  • the present disclosure also provides a display device with special effects, including:
  • the special effect data request sending module is configured to send the special effect data request to the preview thread regularly by the control thread; wherein, the control thread includes at least one special effect control;
  • the special effect data return module is set to the preview thread returning at least one special effect data to the control thread according to the data request;
  • the intermediate special effect acquisition module is configured such that the control thread renders the at least one special effect data, obtains at least one intermediate special effect image, and displays the at least one intermediate special effect image.
  • the present disclosure also provides an electronic device, the electronic device comprising:
  • a storage device configured to store one or more programs
  • the one or more processing devices When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the above-mentioned method for displaying special effects.
  • the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the above-mentioned method for displaying special effects is realized.
  • FIG. 1 is a flow chart of a method for displaying special effects provided by an embodiment of the present disclosure
  • Fig. 2 is an example diagram showing an intermediate special effect diagram provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a display device with special effects provided by an embodiment of the present disclosure
  • Fig. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “including but not limited to”.
  • the term “based on” is “based at least in part on”.
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • the general effect panel (Effect Graph) in the node system can perform special effect processing on one or more pictures.
  • Effect Graph Through the connection of multiple controls in the Effect Graph, you can easily configure special effect information (material) and grid information (mesh), while maintaining the sorting relationship to ensure the correct execution of each control.
  • Effect Graph it includes special effect controls, image input controls (including built-in image input controls and static image input controls), scene output controls, these core function controls, and other extended function controls.
  • the core of Effect Graph is the special effect control.
  • Each special effect control can be configured with a pair of material and mesh to render picture special effects.
  • Each special effect control has an output, and the output is a special effect picture.
  • the output of this special effect control can be input to the scene output control or to the next special effect control.
  • Each special effect control can accept single or multiple inputs, which can be built-in images, special effect pictures output by other special effect controls, or static images, and these images will be set to the held by the special effect control In matertial, it can be used when rendering. If the output special effect picture is connected to the scene output control, it means that the rendering result of the current special effect control can be observed in the scene.
  • Fig. 1 is a flow chart of a special effect display method provided by an embodiment of the present disclosure. This embodiment is applicable to the case of displaying an intermediate special effect image, and the method can be executed by a special effect display device, which can be implemented by hardware and and/or software, and generally can be integrated into a device with a special display function, which may be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in Figure 1, the method includes the following steps:
  • Step 110 the control thread periodically sends special effect data requests to the preview thread.
  • the control thread includes at least one special effect control, and also includes other functional components for generating image special effect packages, such as: image input control and scene output control.
  • the image input control is used to input pictures to take advantage of subsequent special effects processing.
  • the function of the special effect control can add special effects to the input picture.
  • Special effect information and grid information can be set in the special effect control.
  • the special effect information can be the special effects added by the special effect control to the image to be processed (such as mirror processing, denoising processing, etc.), and the grid information can be the special effect added by the special effect control to the image to be processed.
  • the size and position of the special effect, the grid information can include grid vertex coordinates and normal information, etc.
  • the grid information can be a full-screen quadrilateral, indicating that special effects are processed on the entire image.
  • the scene output control is used to display the pictures processed with special effects.
  • the preview thread is used to load multiple functional controls to obtain the special effect data output by at least one special effect control and the final special effect data of the special effect package.
  • the special effect data may be data corresponding to the special effect picture, and the special effect picture may be obtained by rendering the special effect data.
  • the special effect data request carries a special effect data identification code (Identity document, ID).
  • ID a special effect data identification code
  • the special effect data output by each special effect control carries an ID.
  • the control thread before the control thread regularly sends the special effect data request to the preview thread, the following steps are further included: starting the control thread and the preview thread; creating an image input control, at least one special effect control, and The scene output control; based on the connection operation triggered by the user, connect the image input control, at least one special effect control and the scene output control in sequence according to the set rules; the control thread sends a loading instruction to the preview thread, so that the preview thread loads at least one special effect control, and obtains At least one special effect data.
  • the setting rules may include: the image input control is the start node; the special effect control is the middle node; the scene output control is the end node; the input of the special effect control is not empty; the connection between the special effect controls does not form a closed loop.
  • the special effect control includes one or more input terminals and an output terminal; the input terminal of the special effect control is connected with the output terminal of the image input control or the output terminal of another special effect control; the output terminal of the special effect control is connected with another special effect control The input terminal of the control or the input terminal of the scene output control is connected.
  • the system starts the control thread and the preview thread.
  • the control thread the user opens the "Add Control" menu by right-clicking the mouse, which includes image input controls, special effect controls with various functions, and scene output.
  • Controls users can create functional controls by selecting these functional controls, and connect the image input control, at least one special effect control and scene output control in sequence based on the connection operation triggered by the user according to the set rules.
  • the preview thread monitors the control thread After connecting multiple functional controls in , start loading multiple functional controls, so as to obtain special effect data output by at least one special effect control.
  • Step 120 the preview thread returns at least one special effect data to the control thread according to the data request.
  • the preview thread After receiving the special effect data request, the preview thread returns the special effect data corresponding to the special effect data ID to the control thread.
  • Step 130 the control thread renders at least one special effect data, obtains at least one intermediate special effect image, and displays the at least one intermediate special effect image.
  • the intermediate special effect image can be displayed in the drop-down interface corresponding to the special effect control, and the user can expand, display or hide the intermediate special effect image by clicking the "expand/hide" button.
  • the control thread After receiving at least one special effect data returned by the preview thread, the control thread performs rendering processing on at least one special effect data respectively, and displays the intermediate special effect image obtained by the rendering processing in the drop-down interface of the corresponding special effect control.
  • the special effect data may be image data processed by the special effect control.
  • Each special effect data carries an ID, and the ID represents the special effect control corresponding to the special effect data.
  • the control thread After receiving the special effect data returned by the preview thread, the control thread sends each special effect data to the display area of the corresponding special effect control for rendering according to the ID of the special effect data, thereby displaying the intermediate special effect image processed by each special effect control.
  • the intermediate special effect diagram is displayed, which is convenient for the user to intuitively see the intermediate effect diagram processed by each special effect control, thereby facilitating the user to perform special effect program files for each special effect control according to the effect diagram seen. Dynamic adjustment makes the output of the special effect control more in line with the user's needs.
  • FIG. 2 is an example diagram for displaying an intermediate special effect diagram provided by an embodiment of the present disclosure.
  • the control thread receives the special effect data 1 output by the special effect control 1 and the special effect data 2 output by the special effect control 2 returned by the preview thread, it renders the special effect data 1 and the special effect data 2 respectively to obtain intermediate special effects Figure 1 and the middle special effect picture 2, and finally display the middle special effect picture 1 on the drop-down interface of the special effect control 1, and display the middle special effect picture 2 on the drop-down interface of the special effect control 1.
  • the special effect control is provided with a special effect resource, and the special effect resource is obtained by loading a special effect program file.
  • the special effect program file can be a file in any format supported by the node system, such as an mshader file, whose extension is .mshader.
  • the custom feature program file contains configuration information, general parameter information and coloring information. Universal (uniform) parameters can include rendering order, image output length and width, angle, etc.
  • the coloring information may be color information for each pixel in the picture, and may include vertex coloring information and fragment coloring information.
  • the special effect display method provided by this embodiment also includes the following steps: when it is detected that the special effect program file is modified, the control thread rebuilds and loads the modified special effect program file to obtain new special effect resources; the control thread sends a reload instruction to the preview thread , so that the preview thread reloads at least one special effect control according to the new special effect resource, and obtains at least one new special effect data.
  • the special effect program file corresponding to the special effect control is opened through the setting editor, and the general parameter information and/or coloring information in the special effect program file are modified.
  • the rebuilding and loading of the modified special effect program file by the control thread may be as follows: the control thread re-analyzes the modified special effect program file; and constructs a new special effect resource according to the parsing result.
  • the process of parsing the special effect program file may be the process of parsing the program code in the special effect program file.
  • the preview thread reloads at least one special effect control, which can ensure that the special effect data in the preview thread is updated with the update of the special effect program file, thereby ensuring the update of the intermediate special effect image.
  • the control thread regularly sends a special effect data request to the preview thread; the preview thread returns at least one new special effect data to the control thread according to the data request; At least one new special effect data is rendered, at least one new intermediate special effect image is obtained, and at least one new intermediate special effect image is displayed.
  • the updated intermediate special effect map can be displayed in real time, so that the user can modify the special effect program file according to the displayed intermediate special effect map to improve the effect of the special effect package.
  • the control thread regularly sends special effect data requests to the preview thread; wherein, the control thread includes at least one special effect control; the preview thread returns at least one special effect data to the control thread according to the data request; the control thread requests at least one special effect data Perform rendering, obtain at least one intermediate special effect image, and display at least one intermediate special effect image.
  • the special effect display method provided by the embodiment of the present disclosure can display the intermediate special effects in the combined special effect package by requesting the special effect data from the preview thread to obtain the intermediate special effect map and display the intermediate special effect map, which is convenient for the development user to understand the intermediate special effects. The adjustment of special effects, so as to improve the effect of the combined special effects package.
  • Fig. 3 is a schematic structural diagram of a display device with special effects provided by an embodiment of the present disclosure. As shown in Fig. 3 , the device includes:
  • the special effect data request sending module 210 is configured to send the special effect data request to the preview thread regularly by the control thread; wherein the control thread includes at least one special effect control; the special effect data return module 220 is configured to return at least one special effect to the control thread by the preview thread according to the data request Data; the intermediate special effect map acquisition module 230 is configured to render at least one special effect data by the control thread, obtain at least one intermediate special effect map, and display at least one intermediate special effect map.
  • the special effect control is provided with special effect resources, and the special effect resources are obtained by loading a special effect program file.
  • it also includes: a new special effect resource acquisition module, which is set to:
  • the control thread rebuilds and loads the modified special effect program file to obtain new special effect resources; the control thread sends a reload command to the preview thread, so that the preview thread reloads at least one special effect according to the new special effect resource control to obtain at least one new effect data.
  • the special effect program file includes configuration information, general parameter information and coloring information; the new special effect resource acquisition module is configured to detect that the special effect program file is modified in the following manner:
  • the new special effect resource acquisition module is configured to rebuild and load the modified special effect program file in the following manner:
  • the control thread re-parses the modified special effect program file; builds a new special effect resource according to the parsing result.
  • it also includes: a new intermediate special effect map display module, which is set to:
  • the control thread regularly sends special effect data requests to the preview thread; the preview thread returns at least one new special effect data to the control thread according to the data request; the control thread renders at least one new special effect data, obtains at least one new intermediate special effect map, and At least one new intermediate effect map to display.
  • thread starting module be set to:
  • the control is connected with the scene output control; the control thread sends a loading instruction to the preview thread, so that the preview thread loads at least one special effect control and obtains at least one special effect data.
  • the above-mentioned device can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and effects for executing the above-mentioned methods.
  • the above-mentioned device can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and effects for executing the above-mentioned methods.
  • FIG. 4 it shows a schematic structural diagram of an electronic device 300 suitable for implementing an embodiment of the present disclosure.
  • the electronic device 300 in the embodiment of the present disclosure may include but not limited to mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (Portable Android Device, PAD), portable multimedia player Mobile terminals such as Portable Media Player (PMP), vehicle-mounted terminals (such as vehicle navigation terminals), fixed terminals such as digital TV (Television, TV), desktop computers, etc., or various forms of servers, such as independent servers Or server clusters.
  • PDA Personal Digital Assistant
  • PAD Portable Multimedia Player
  • vehicle-mounted terminals such as vehicle navigation terminals
  • fixed terminals such as digital TV (Television, TV)
  • desktop computers etc.
  • servers such as independent servers Or server clusters.
  • the electronic device 300 shown in FIG. 4 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
  • an electronic device 300 may include a processing device (such as a central processing unit, a graphics processing unit, etc.)
  • the device 308 loads programs in the random access storage device (Random Access Memory, RAM) 303 to perform various appropriate actions and processes.
  • RAM Random Access Memory
  • various programs and data necessary for the operation of the electronic device 300 are also stored.
  • the processing device 301, ROM 302, and RAM 303 are connected to each other through a bus 304.
  • An input/output (Input/Output, I/O) interface 305 is also connected to the bus 304 .
  • an input device 306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; including, for example, a liquid crystal display (Liquid Crystal Display, LCD) , an output device 307 such as a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309.
  • the communication means 309 may allow the electronic device 300 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 4 shows electronic device 300 having various means, it is not a requirement to implement or possess all of the means shown. More or fewer means may alternatively be implemented or provided.
  • the processes described above with reference to the flowcharts may be implemented as computer software programs.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing a special effect display method.
  • the computer program may be downloaded and installed from a network via communication means 309, or from storage means 308, or from ROM 302.
  • the processing device 301 When the computer program is executed by the processing device 301, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof.
  • 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, RAM, ROM, Erasable Programmable Read-Only Memory (EPROM) or flash memory), optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may 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.
  • 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 many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • the program code contained on the computer readable medium can be transmitted by any appropriate medium, including but not limited to: electric wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
  • the client and the server can communicate using any currently known or future network protocols such as Hypertext Transfer Protocol (HyperText Transfer Protocol, HTTP), and can communicate with digital data in any form or medium
  • the communication eg, communication network
  • Examples of communication networks include local area networks (Local Area Network, LAN), wide area networks (Wide Area Network, WAN), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently existing networks that are known or developed in the future.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: the control thread sends a special effect data request to the preview thread at regular intervals; wherein, the control thread includes At least one special effect control; the preview thread returns at least one special effect data to the control thread according to the data request; the control thread renders the at least one special effect data, obtains at least one intermediate special effect map, and sends the At least one intermediate special effect map is displayed.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages.
  • 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 server.
  • the remote computer can be connected to the user computer through any kind of network, including a LAN or WAN, or it can be connected to an external computer (eg via the Internet using an Internet Service Provider).
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block 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 they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • 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 by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the unit does not constitute a limitation of the unit itself in one case.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (Field Programmable Gate Arrays, FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (Application Specific Standard Parts, ASSP), System on Chip (System on Chip, SOC), Complex Programmable Logic Device (Complex Programming Logic Device, CPLD) and so on.
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard drives, RAM, ROM, EPROM or flash memory, optical fibers, CD-ROMs, optical storage devices, magnetic storage devices, or Any suitable combination of the above.
  • the embodiments of the present disclosure disclose a method for displaying special effects, including:
  • the control thread regularly sends special effect data requests to the preview thread; wherein, the control thread includes at least one special effect control;
  • the preview thread returns at least one special effect data to the control thread according to the data request;
  • the control thread renders the at least one special effect data, obtains at least one intermediate special effect image, and displays the at least one intermediate special effect image.
  • the special effect control is provided with a special effect resource, and the special effect resource is obtained by loading a special effect program file.
  • control thread rebuilds and loads the modified special effect program file to obtain new special effect resources
  • the control thread sends a reload instruction to the preview thread, so that the preview thread reloads the at least one special effect control according to a new special effect resource to obtain at least one new special effect data.
  • the special effect program file includes configuration information, general parameter information and coloring information; it is detected that the special effect program file is modified, including:
  • control thread rebuilds and loads the modified special effect program file, including:
  • control thread re-analyzes the modified special effect program file
  • the control thread sends special effect data requests to the preview thread at regular intervals;
  • the preview thread returns at least one new special effect data to the control thread according to the data request;
  • the control thread renders the at least one new special effect data, obtains at least one new intermediate special effect image, and displays the at least one new intermediate special effect image.
  • control thread before the control thread regularly sends the special effect data request to the preview thread, it further includes:
  • the control thread sends a loading instruction to the preview thread, so that the preview thread loads the at least one special effect control to obtain at least one special effect data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Display Devices Of Pinball Game Machines (AREA)

Abstract

本公开提供了一种特效的显示方法、装置、设备及存储介质。特效的显示方法包括:控件线程定时向预览线程发送特效数据请求;其中,所述控件线程包含至少一个特效控件;所述预览线程根据所述数据请求向所述控件线程返回至少一个特效数据;所述控件线程对所述至少一个特效数据进行渲染,获得至少一个中间特效图,并将所述至少一个中间特效图进行显示。

Description

特效的显示方法、装置、设备及存储介质
本申请要求在2021年11月30日提交中国专利局、申请号为202111446912.8的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开涉及计算机技术领域,例如涉及一种特效的显示方法、装置、设备及存储介质。
背景技术
在采用智能终端进行拍照时,不仅可以使用出厂时内置的拍照软件实现传统功能的拍照效果,还可以通过从网络端下载应用程序(Application,APP)来实现具有附加功能的拍照效果,例如可以实现多种图像的特殊效果。比如可以实现贴纸效果、滤镜效果、形变效果等等。
用户已经不满足于单一的特效,因此组合特效得到了用户青睐。相关技术中,开发人员在开发组合特效包时,只能看到组合特效包最终的效果图,无法看到中间特效,会影响组合特效包的效果。
发明内容
本公开提供一种特效的显示方法、装置、设备及存储介质,可以对组合特效包中的中间特效进行显示,便于开发用户对中间特效的调整,从而提高组合特效包的效果。
第一方面,本公开提供了一种特效的显示方法,包括:
控件线程定时向预览线程发送特效数据请求;其中,所述控件线程包含至少一个特效控件;
所述预览线程根据所述数据请求向所述控件线程返回至少一个特效数据;
所述控件线程对所述至少一个特效数据进行渲染,获得至少一个中间特效图,并将所述至少一个中间特效图进行显示。
第二方面,本公开还提供了一种特效的显示装置,包括:
特效数据请求发送模块,设置为控件线程定时向预览线程发送特效数据请求;其中,所述控件线程包含至少一个特效控件;
特效数据返回模块,设置为所述预览线程根据所述数据请求向所述控件线 程返回至少一个特效数据;
中间特效获取模块,设置为所述控件线程对所述至少一个特效数据进行渲染,获得至少一个中间特效图,并将所述至少一个中间特效图进行显示。
第三方面,本公开还提供了一种电子设备,所述电子设备包括:
一个或多个处理装置;
存储装置,设置为存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理装置执行,使得所述一个或多个处理装置实现上述的特效的显示方法。
第四方面,本公开提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现上述的特效的显示方法。
附图说明
图1是本公开实施例提供的一种特效的显示方法的流程图;
图2是本公开实施例提供的一种显示中间特效图的示例图;
图3是本公开实施例提供的一种特效的显示装置的结构示意图;
图4是本公开实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将参照附图描述本公开的实施例。虽然附图中显示了本公开的一些实施例,然而本公开可以通过多种形式来实现,提供这些实施例是为了理解本公开。本公开的附图及实施例仅用于示例性作用。
本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
节点系统中的通用特效面板(Effect Graph)可以对一张或者多张图片进行特效处理。
通过Effect Graph中多个控件的连接,可以方便的配置特效信息(material)和网格信息(mesh),同时维护排序关系确保每个控件的正确执行。在Effect Graph中,包括特效控件、图像输入控件(包括内置图像输入控件及静态图像输入控件)及场景输出控件这几个核心功能控件和其他扩展功能控件。
Effect Graph的核心是特效控件,每个特效控件可以配置一对material和mesh,用来进行图片特效的渲染。每个特效控件有一个输出,输出的是一个特效图片,这个特效控件的输出既可以输入到场景输出控件,也可以输入到下一个特效控件。每个特效控件可以接受单个或多个输入,该输入既可以是内置图像,也可以是其他特效控件输出的特效图片,也可以是静态图像,这些图像会被设置到该特效控件所持有的matertial中,在渲染的时候可以使用。若其输出的特效图片连接到场景输出控件,代表当前特效控件的渲染结果可以在场景中被观察到。
图1是本公开实施例提供的一种特效的显示方法的流程图,本实施例可适用于将中间特效图进行显示的情况,该方法可以由特效的显示装置来执行,该装置可由硬件和/或软件组成,并一般可集成在具有特效的显示功能的设备中,该设备可以是服务器、移动终端或服务器集群等电子设备。如图1所示,该方法包括如下步骤:
步骤110,控件线程定时向预览线程发送特效数据请求。
控件线程包含至少一个特效控件,还包含用于生成图像特效包的其他功能组件,如:图像输入控件及场景输出控件。图像输入控件用于输入图片,以利用后续的特效处理。特效控件的功能可以为对输入的图片添加特效。在特效控件中可以设置特效信息和网格信息,特效信息可以为特效控件对待处理图像添加的特效(如镜像处理、去噪处理等),网格信息可以为特效控件在待处理图像中添加的特效的尺寸及位置,网格信息可以包含网格顶点坐标及法线信息等,例如:网格信息可以是一个全屏的四边形,表示对整幅图进行特效处理。场景输出控件用于将经过特效处理的图片进行展示。
预览线程用于加载多个功能控件,以获得至少一个特效控件输出的特效数 据以及特效包的最终的特效数据。特效数据可以为特效图片对应的数据,通过对特效数据进行渲染可以获得特效图片。
特效数据请求携带有特效数据标识码(Identity document,ID)。本实施例中,每个特效控件输出的特效数据携带有ID。
本实施例中,在控件线程定时向预览线程发送特效数据请求之前,还包括如下步骤:启动控件线程和预览线程;在控件线程中根据用户触发的创建操作创建图像输入控件、至少一个特效控件及场景输出控件;基于用户触发的连接操作按照设定规则依次将图像输入控件、至少一个特效控件和场景输出控件进行连接;控件线程向预览线程发送加载指令,使得预览线程加载至少一个特效控件,获得至少一个特效数据。
设定规则可以包括:图像输入控件为开始节点;特效控件为中间节点;场景输出控件为结束节点;特效控件的输入为非空;特效控件间的连接未形成闭环。本实施例中,特效控件包括一个或者多个输入端以及一个输出端;特效控件的输入端与图像输入控件的输出端或者另一个特效控件的输出端相连;特效控件的输出端与另一个特效控件的输入端或者场景输出控件的输入端相连。
用户启动节点系统后,系统启动控件线程和预览线程,在控件线程中,用户通过右击鼠标打开“添加控件”菜单,在该菜单中包含有图像输入控件、多种功能的特效控件及场景输出控件,用户通过选择这些功能控件从而实现功能控件的创建,并基于用户触发的连接操作按照设定规则依次将图像输入控件、至少一个特效控件和场景输出控件进行连接,当预览线程监控到控件线程中的多个功能控件完成连接后,开始加载多个功能控件,从而获得至少一个特效控件输出的特效数据。
步骤120,预览线程根据数据请求向控件线程返回至少一个特效数据。
预览线程在接收到特效数据请求后,将特效数据ID对应的特效数据返回至控件线程。
步骤130,控件线程对至少一个特效数据进行渲染,获得至少一个中间特效图,并将至少一个中间特效图进行显示。
中间特效图可以显示于对应特效控件的下拉界面中,用户可以通过点击“展开/隐藏”按钮将中间特效图展开显示或者隐藏。控件线程在接收到预览线程返回的至少一个特效数据后,对至少一个特效数据分别进行渲染处理,将渲染处理获得的中间特效图显示于对应特效控件的下拉界面中。
特效数据可以为经过特效控件处理后的图像数据。每个特效数据携带有ID,该ID表征特效数据对应的特效控件。控件线程在接收到预览线程返回的特效数 据后,根据特效数据的ID将每个特效数据发送至对应的特效控件的显示区域中进行渲染,从而将每个特效控件处理的中间特效图进行显示。本实施例中,将中间特效图进行显示,可便于用户直观的看到经每个特效控件处理后的中间效果图,从而利于用户根据看到的效果图对每个特效控件的特效程序文件进行动态的调整,使得特效控件的输出更符合用户的需求。
示例性的,图2是本公开实施例提供的一种显示中间特效图的示例图。如图2所示,控件线程在接收到预览线程返回的特效控件1输出的特效数据1和特效控件2输出的特效数据2后,分别对特效数据1和特效数据2进行渲染处理,获得中间特效图1和中间特效图2,最后将中间特效图1显示于特效控件1的下拉界面,将中间特效图2显示于特效控件1的下拉界面。
本实施例中,特效控件设置有特效资源,所述特效资源通过加载特效程序文件获得。特效程序文件可以是节点系统支持的任意格式的文件,例如mshader文件,其扩展名为.mshader。自定义特征程序文件中包含配置信息、通用参数信息及着色信息。通用(uniform)参数可以包括渲染顺序、图片的输出长宽、角度等。着色信息可以为对图片中每个像素点所着的颜色信息,可以包括顶点着色信息及片元着色信息。
本实施例提供的特效的显示方法还包括如下步骤:检测到特效程序文件被修改时,控件线程对修改后的特效程序文件重建加载,获得新的特效资源;控件线程向预览线程发送重新加载指令,使得预览线程根据新的特效资源重新加载至少一个特效控件,获得至少一个新的特效数据。
当用户需要修改特效控件对应的特效时,通过设定编辑器打开该特效控件对应的特效程序文件,并对特效程序文件中的通用参数信息和/或着色信息进行修改。
控件线程对修改后的特效程序文件重建加载可以为:控件线程重新解析修改后的特效程序文件;根据解析结果构建新的特效资源。
解析特效程序文件的过程可以为解析特效程序文件中的程序代码的过程。预览线程重新加载至少一个特效控件,可以保证预览线程中的特效数据随着特效程序文件的更新而更新,从而保证中间特效图的更新。
一实施例中,在获得至少一个新的特效数据之后,还包括如下步骤:控件线程定时向预览线程发送特效数据请求;预览线程根据数据请求向控件线程返回至少一个新的特效数据;控件线程对至少一个新的特效数据进行渲染,获得至少一个新的中间特效图,并将至少一个新的中间特效图进行显示。这样做的好处是,可以实时的显示更新后的中间特效图,从而利于用户根据显示的中间 特效图来修改特效程序文件,以提高特效包的效果。
本公开实施例的技术方案,控件线程定时向预览线程发送特效数据请求;其中,控件线程包含至少一个特效控件;预览线程根据数据请求向控件线程返回至少一个特效数据;控件线程对至少一个特效数据进行渲染,获得至少一个中间特效图,并将至少一个中间特效图进行显示。本公开实施例提供的特效的显示方法,通过向预览线程请求特效数据,以获得中间特效图,并对中间特效图进行显示,可以对组合特效包中的中间特效进行显示,便于开发用户对中间特效的调整,从而提高组合特效包的效果。
图3是本公开实施例提供的一种特效的显示装置的结构示意图,如图3所示,该装置包括:
特效数据请求发送模块210,设置为控件线程定时向预览线程发送特效数据请求;其中,控件线程包含至少一个特效控件;特效数据返回模块220,设置为预览线程根据数据请求向控件线程返回至少一个特效数据;中间特效图获取模块230,设置为控件线程对至少一个特效数据进行渲染,获得至少一个中间特效图,并将至少一个中间特效图进行显示。
一实施例中,特效控件设置有特效资源,特效资源通过加载特效程序文件获得。
一实施例中,还包括:新的特效资源获取模块,设置为:
检测到特效程序文件被修改时,控件线程对修改后的特效程序文件重建加载,获得新的特效资源;控件线程向预览线程发送重新加载指令,使得预览线程根据新的特效资源重新加载至少一个特效控件,获得至少一个新的特效数据。
一实施例中,特效程序文件包括配置信息、通用参数信息及着色信息;新的特效资源获取模块设置为通过如下方式检测到特效程序文件被修改:
检测到通用参数信息和/或着色信息被修改。
一实施例中,新的特效资源获取模块设置为通过如下方式对修改后的特效程序文件重建加载:
控件线程重新解析修改后的特效程序文件;根据解析结果构建新的特效资源。
一实施例中,还包括:新的中间特效图显示模块,设置为:
控件线程定时向预览线程发送特效数据请求;预览线程根据数据请求向控件线程返回至少一个新的特效数据;控件线程对至少一个新的特效数据进行渲染,获得至少一个新的中间特效图,并将至少一个新的中间特效图进行显示。
一实施例中,还包括:线程启动模块,设置为:
启动控件线程和预览线程;在控件线程中根据用户触发的创建操作创建图像输入控件、至少一个特效控件及场景输出控件;基于用户触发的连接操作按照设定规则依次将图像输入控件、至少一个特效控件和场景输出控件进行连接;控件线程向预览线程发送加载指令,使得预览线程加载至少一个特效控件,获得至少一个特效数据。
上述装置可执行本公开前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和效果。未在本实施例中详尽描述的技术细节,可参见本公开前述所有实施例所提供的方法。
下面参考图4,其示出了适于用来实现本公开实施例的电子设备300的结构示意图。本公开实施例中的电子设备300可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(Television,TV)、台式计算机等等的固定终端,或者多种形式的服务器,如独立服务器或者服务器集群。图4示出的电子设备300仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图4所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储装置(Read-Only Memory,ROM)302中的程序或者从存储装置308加载到随机访问存储装置(Random Access Memory,RAM)303中的程序而执行多种适当的动作和处理。在RAM 303中,还存储有电子设备300操作所需的多种程序和数据。处理装置301、ROM 302以及RAM303通过总线304彼此相连。输入/输出(Input/Output,I/O)接口305也连接至总线304。
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图4示出了具有多种装置的电子设备300,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行特效的显示方法的程 序代码。在这样的实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置308被安装,或者从ROM 302被安装。在该计算机程序被处理装置301执行时,执行本公开实施例的方法中限定的上述功能。
本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如超文本传输协议(HyperText Transfer Protocol,HTTP)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:控件线程定时向预览线程发送特效数据请求;其中,所述控件线程包含至少一个特效控件;所述预览线程根据所述数据请求向所述控件线程返回至少一个特效数据;所述控件线程对所述至少一个特效数据进行渲染,获得至少一个中间特效图,并将所述至少一个中间特效 图进行显示。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括LAN或WAN—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在一种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上系统(System on Chip,SOC)、复杂可编程逻辑设备(Complex Programming Logic Device,CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质 的示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、RAM、ROM、EPROM或快闪存储器、光纤、CD-ROM、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开实施例的一个或多个实施例,本公开实施例公开了一种特效的显示方法,包括:
控件线程定时向预览线程发送特效数据请求;其中,所述控件线程包含至少一个特效控件;
所述预览线程根据所述数据请求向所述控件线程返回至少一个特效数据;
所述控件线程对所述至少一个特效数据进行渲染,获得至少一个中间特效图,并将所述至少一个中间特效图进行显示。
根据本公开实施例的一个或多个实施例,所述特效控件设置有特效资源,所述特效资源通过加载特效程序文件获得。
根据本公开实施例的一个或多个实施例,还包括:
检测到所述特效程序文件被修改时,所述控件线程对所述修改后的特效程序文件重建加载,获得新的特效资源;
所述控件线程向所述预览线程发送重新加载指令,使得所述预览线程根据新的特效资源重新加载所述至少一个特效控件,获得至少一个新的特效数据。
根据本公开实施例的一个或多个实施例,所述特效程序文件包括配置信息、通用参数信息及着色信息;检测到所述特效程序文件被修改,包括:
检测到所述通用参数信息和/或所述着色信息被修改。
根据本公开实施例的一个或多个实施例,所述控件线程对所述修改后的特效程序文件重建加载,包括:
所述控件线程重新解析修改后的特效程序文件;
根据解析结果构建新的特效资源。
根据本公开实施例的一个或多个实施例,在获得至少一个新的特效数据之后,还包括:
控件线程定时向预览线程发送特效数据请求;
所述预览线程根据所述数据请求向所述控件线程返回至少一个新的特效数据;
所述控件线程对所述至少一个新的特效数据进行渲染,获得至少一个新的中间特效图,并将所述至少一个新的中间特效图进行显示。
根据本公开实施例的一个或多个实施例,在控件线程定时向预览线程发送特效数据请求之前,还包括:
启动控件线程和预览线程;
在所述控件线程中根据用户触发的创建操作创建图像输入控件、至少一个特效控件及场景输出控件;
基于所述用户触发的连接操作按照设定规则依次将所述图像输入控件、所述至少一个特效控件和所述场景输出控件进行连接;
所述控件线程向所述预览线程发送加载指令,使得预览线程加载所述至少一个特效控件,获得至少一个特效数据。

Claims (10)

  1. 一种特效的显示方法,包括:
    控件线程定时向预览线程发送特效数据请求;其中,所述控件线程包含至少一个特效控件;
    所述预览线程根据所述数据请求向所述控件线程返回至少一个特效数据;
    所述控件线程对所述至少一个特效数据进行渲染,获得至少一个中间特效图,并将所述至少一个中间特效图进行显示。
  2. 根据权利要求1所述的方法,其中,所述特效控件设置有特效资源,所述特效资源通过加载特效程序文件获得。
  3. 根据权利要求2所述的方法,还包括:
    在检测到所述特效程序文件被修改的情况下,所述控件线程对修改后的特效程序文件重建加载,获得新的特效资源;
    所述控件线程向所述预览线程发送重新加载指令,使得所述预览线程根据新的特效资源重新加载所述至少一个特效控件,获得至少一个新的特效数据。
  4. 根据权利要求3所述的方法,其中,所述特效程序文件包括配置信息、通用参数信息及着色信息;所述检测到所述特效程序文件被修改,包括:
    检测到所述通用参数信息和所述着色信息中的至少之一被修改。
  5. 根据权利要求3所述的方法,其中,所述控件线程对修改后的特效程序文件重建加载,包括:
    所述控件线程重新解析所述修改后的特效程序文件;
    根据解析结果构建新的特效资源。
  6. 根据权利要求3所述的方法,在所述获得至少一个新的特效数据之后,还包括:
    所述控件线程定时向所述预览线程发送特效数据请求;
    所述预览线程根据所述数据请求向所述控件线程返回至少一个新的特效数据;
    所述控件线程对所述至少一个新的特效数据进行渲染,获得至少一个新的中间特效图,并将所述至少一个新的中间特效图进行显示。
  7. 根据权利要求1所述的方法,在所述控件线程定时向预览线程发送特效数据请求之前,还包括:
    启动所述控件线程和所述预览线程;
    在所述控件线程中根据用户触发的创建操作创建图像输入控件、至少一个特效控件及场景输出控件;
    基于所述用户触发的连接操作按照设定规则依次将所述图像输入控件、所述至少一个特效控件和所述场景输出控件进行连接;
    所述控件线程向所述预览线程发送加载指令,使得所述预览线程加载所述至少一个特效控件,获得至少一个特效数据。
  8. 一种特效的显示装置,包括:
    特效数据请求发送模块,设置为控件线程定时向预览线程发送特效数据请求;其中,所述控件线程包含至少一个特效控件;
    特效数据返回模块,设置为所述预览线程根据所述数据请求向所述控件线程返回至少一个特效数据;
    中间特效图获取模块,设置为所述控件线程对所述至少一个特效数据进行渲染,获得至少一个中间特效图,并将所述至少一个中间特效图进行显示。
  9. 一种电子设备,包括:
    至少一个处理装置;
    存储装置,设置为存储至少一个程序;
    当所述至少一个程序被所述至少一个处理装置执行,使得所述至少一个处理装置实现如权利要求1-7中任一所述的特效的显示方法。
  10. 一种计算机可读介质,存储有计算机程序,其中,所述程序被处理装置执行时实现如权利要求1-7中任一所述的特效的显示方法。
PCT/CN2022/134637 2021-11-30 2022-11-28 特效的显示方法、装置、设备及存储介质 WO2023098611A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111446912.8 2021-11-30
CN202111446912.8A CN116204251A (zh) 2021-11-30 2021-11-30 特效的显示方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023098611A1 true WO2023098611A1 (zh) 2023-06-08

Family

ID=86511694

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/134637 WO2023098611A1 (zh) 2021-11-30 2022-11-28 特效的显示方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN116204251A (zh)
WO (1) WO2023098611A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237365A1 (en) * 2011-10-10 2014-08-21 Genarts, Inc. Network-based rendering and steering of visual effects
CN106792034A (zh) * 2017-02-10 2017-05-31 深圳创维-Rgb电子有限公司 基于移动终端进行直播的方法及移动终端
CN107277616A (zh) * 2017-07-21 2017-10-20 广州爱拍网络科技有限公司 视频特效渲染方法、装置及终端
CN108289147A (zh) * 2018-01-15 2018-07-17 维沃移动通信有限公司 一种显示控制方法及移动终端
CN111371993A (zh) * 2020-03-13 2020-07-03 腾讯科技(深圳)有限公司 一种图像拍摄方法、装置、计算机设备和存储介质
CN112135059A (zh) * 2020-09-30 2020-12-25 北京字跳网络技术有限公司 拍摄方法、装置、电子设备和存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237365A1 (en) * 2011-10-10 2014-08-21 Genarts, Inc. Network-based rendering and steering of visual effects
CN106792034A (zh) * 2017-02-10 2017-05-31 深圳创维-Rgb电子有限公司 基于移动终端进行直播的方法及移动终端
CN107277616A (zh) * 2017-07-21 2017-10-20 广州爱拍网络科技有限公司 视频特效渲染方法、装置及终端
CN108289147A (zh) * 2018-01-15 2018-07-17 维沃移动通信有限公司 一种显示控制方法及移动终端
CN111371993A (zh) * 2020-03-13 2020-07-03 腾讯科技(深圳)有限公司 一种图像拍摄方法、装置、计算机设备和存储介质
CN112135059A (zh) * 2020-09-30 2020-12-25 北京字跳网络技术有限公司 拍摄方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN116204251A (zh) 2023-06-02

Similar Documents

Publication Publication Date Title
US20230107220A1 (en) Video processing method and apparatus, electronic device, and computer readable storage medium
CN109460233B (zh) 页面的原生界面显示更新方法、装置、终端设备及介质
WO2021135626A1 (zh) 菜单项选择方法、装置、可读介质及电子设备
WO2022095840A1 (zh) 直播间创建方法、装置、电子设备及存储介质
WO2020248745A1 (zh) 用户界面中字符的显示方法、装置、电子设备及存储介质
US20230015800A1 (en) A method, apparatus, medium and electronic device for configuring a gift list in a live broadcast room
WO2023000888A1 (zh) 云应用的实现方法、装置、电子设备和存储介质
CN110070592B (zh) 特效包的生成方法、装置和硬件装置
US20230230193A1 (en) Video watermark processing method and apparatus, information transmission method, electronic device and storage medium
CN115600629B (zh) 车辆信息二维码生成方法、电子设备和计算机可读介质
US11818491B2 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
WO2023207543A1 (zh) 媒体内容的发布方法、装置、设备、存储介质和程序产品
WO2024164933A1 (zh) 特效道具的处理方法、装置、电子设备及存储介质
CN113126985B (zh) 用于页面渲染的方法、装置、电子设备和计算机可读介质
WO2024061064A1 (zh) 展示效果处理方法、装置、电子设备及存储介质
WO2023104007A1 (zh) 视频特效包的生成方法、装置、设备及存储介质
CN113961280A (zh) 视图的展示方法、装置、电子设备及计算机可读存储介质
CN110427584A (zh) 页面生成方法、装置、电子设备及计算机可读存储介质
WO2023098611A1 (zh) 特效的显示方法、装置、设备及存储介质
CN115292635A (zh) 页面楼层数据显示方法、装置、设备和计算机可读介质
WO2023098609A1 (zh) 图像特效包的生成方法、装置、设备及存储介质
CN111538552A (zh) 礼物面板配置方法、装置、可读介质及电子设备
CN111159593A (zh) 流程图的生成方法、装置、存储介质和电子设备
CN114647472B (zh) 图片处理方法、装置、设备、存储介质和程序产品
WO2023125163A1 (zh) 一种图像特效处理方法、装置、设备及介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22900415

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE