Image rendering method, device, electronic device and storage medium

By using native layers in the 3D rendering engine to extract image texture information and create frame buffer objects, the problem of single video playback in the 3D rendering engine is solved, diversified video format support and processing options are realized, and video playback in 3D scenes is improved. and processing flexibility.

CN115767182BActive Publication Date: 2024-08-27BEIJING XINTANG SICHUANG EDUCATIONAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211453994.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-21
Publication Date
2024-08-27
Estimated Expiration
2042-11-21

AI Technical Summary

Technical Problem

When existing 3D rendering engines play videos in 3D virtual space, they are limited by the single function of the native video playback plug-in and cannot support diverse video formats and processing, resulting in a single choice for video playback and processing.

Method used

Extract image texture information through the native layer, create a frame buffer object, and set its rendering target to the texture space of the 3D rendering engine to achieve diversified processing of video images and break the limitations of native video formats.

Benefits of technology

It achieves support for multiple video formats, enhances video playback and processing options in three-dimensional scenes, and improves the flexibility and diversity of video processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115767182B
    Figure CN115767182B
Patent Text Reader

Abstract

The present disclosure provides an image rendering method, device, electronic device and storage medium, wherein the method includes: in response to a video image rendering request in a three-dimensional rendering engine, sending a video image to a native layer of an operating system; obtaining image texture information of the video image, and creating a frame buffer object corresponding to the image texture information; setting the rendering target of the frame buffer object to the texture space of the three-dimensional rendering engine to control the three-dimensional rendering engine to render a virtual video image corresponding to the video image in a three-dimensional virtual space according to the image texture information. The embodiment of the present disclosure extracts image texture information through the native layer, and the three-dimensional rendering engine performs rendering processing only based on the image texture information, thereby no longer restricting the format of the native video image, and providing support for the diversified processing of the video image, making the video playback and processing options in the three-dimensional scene more diversified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to an image rendering method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of concepts and technologies related to the metaverse, video playback scenarios in three-dimensional (3D) virtual space are becoming more and more common. For example, when a virtual concert is implemented in a 3D virtual space, a concert video stream is played in the 3D virtual space.

[0003] In the related art, when playing a video stream in a 3D virtual space, a video image corresponding to the video stream is obtained through a video playback plug-in provided by a three-dimensional rendering engine (e.g., Unity engine) in the 3D virtual space, and the video stream is played based on the rendering of the video image.

[0004] However, in the above-mentioned method of rendering video images based on a three-dimensional rendering engine, the native video playback plug-in that comes with the three-dimensional rendering engine has a single function and can only select video formats supported by the native video playback plug-in for playback. In addition, it is limited by the relatively single processing function of the native video playback plug-in (usually only includes basic video playback functions), resulting in relatively single options for video playback and processing in three-dimensional scenes. Summary of the invention

[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide an image rendering method, which can extract image texture information through the native layer, and the three-dimensional rendering engine only performs rendering processing based on the image texture information. Therefore, there are no longer restrictions on the format of the native video image, and support is provided for the diversified processing of video images, so that the video playback and processing options in the three-dimensional scene are more diversified.

[0006] According to one aspect of the present disclosure, an image rendering method is provided, the method comprising: in response to a video image rendering request in a three-dimensional rendering engine, sending the video image to a native layer of an operating system; acquiring image texture information of the video image, and creating a frame buffer object corresponding to the image texture information; setting a rendering target of the frame buffer object to a texture space of the three-dimensional rendering engine, so as to control the three-dimensional rendering engine to render a virtual video image corresponding to the video image in a three-dimensional virtual space according to the image texture information.

[0007] According to another aspect of the present disclosure, an image rendering device is provided, the device comprising: a sending module, for sending the video image to a native layer of an operating system in response to a video image rendering request in a three-dimensional rendering engine; an acquiring module, for extracting image texture information of the video image; a creating module, for creating a frame buffer object corresponding to the image texture information; and a rendering processing module, for setting a rendering target of the frame buffer object to a texture space of the three-dimensional rendering engine, so as to control the three-dimensional rendering engine to render a virtual video image corresponding to the video image in a three-dimensional virtual space according to the image texture information.

[0008] According to another aspect of the present disclosure, an electronic device is provided, including: a processor; and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0009] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the above method.

[0010] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0011] In response to a video image rendering request in a three-dimensional rendering engine, in response to a video image rendering request in a three-dimensional rendering engine, a video image is sent to a native layer of an operating system, image texture information of the video image is extracted, and a frame buffer object corresponding to the image texture information is created, and then, a rendering target of the frame buffer object is set to a texture space of the three-dimensional rendering engine to control the three-dimensional rendering engine to render a virtual video image corresponding to the video image in a three-dimensional virtual space according to the image texture information. Thus, the embodiment of the present disclosure extracts image texture information through the native layer, and the three-dimensional rendering engine performs rendering processing only based on the image texture information, thereby no longer restricting the format of the native video image, and providing support for the diversified processing of the video image, making the video playback and processing options in a three-dimensional scene more diversified. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0014] Figure 1 A flowchart of an image rendering method according to an exemplary embodiment of the present disclosure is shown;

[0015] Figure 2 A functional block diagram of image rendering according to an exemplary embodiment of the present disclosure is shown;

[0016] Figure 3 A flowchart of another image rendering method according to an exemplary embodiment of the present disclosure is shown;

[0017] Figure 4 Another image rendering function block diagram according to an exemplary embodiment of the present disclosure is shown;

[0018] Figure 5 A schematic block diagram of an image rendering device according to an exemplary embodiment of the present disclosure is shown;

[0019] Figure 6 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0021] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0022] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0023] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". The names of the messages or information exchanged between the multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0024] As mentioned above, in the prior art, the playback of video streams in three-dimensional virtual space depends on the video playback plug-in of the three-dimensional rendering engine itself, which can only realize basic video playback functions, and cannot realize video processing in the three-dimensional rendering engine. In order to solve the above technical problems, the present disclosure proposes a method of extracting image texture information through the native layer, and the three-dimensional rendering engine only performs rendering processing based on the image texture information. As a result, almost all existing native video processing technologies can be reused, and the format of native video images is no longer restricted, and support is provided for the diversified processing of video images, making the video playback and processing options in three-dimensional scenes more diversified.

[0025] The image rendering method of the present disclosure is described below with reference to the accompanying drawings.

[0026] Figure 1 FIG. 1 is a flowchart of an image rendering method according to an embodiment of the present disclosure. Figure 1 As shown, the method includes:

[0027] Step 101 : sending a video image to a native layer of an operating system in response to a video image rendering request in a 3D rendering engine.

[0028] The video image may be any frame of video image in a video stream, and the video stream may be a remote online video stream obtained through a cloud server, or a local video stream read locally, etc., which is not limited here.

[0029] The 3D rendering engine in this embodiment can be understood as an engine responsible for the rendering function in the 3D virtual space. Usually, the 3D rendering engine can receive the video stream sent by the cloud and realize the playback of the video stream in the 3D virtual space through the native video player. However, some native video players in the 3D rendering engine usually have relatively simple functions, such as only supporting basic playback functions such as start and pause, and the native video player has limited optional video formats to ensure that the video displayed in the 3D virtual space is not distorted. The native layer of the operating system (for example, the Native layer in the Android system) is relatively mature, which can not only provide rich image processing functions (for example, video image beauty, cropping video images, etc.), but also does not restrict the video format based on the native video. Therefore, in this embodiment, the processing of the video image in the 3D rendering engine is transferred to the native layer of the operating system to break the above-mentioned limitations in the 3D rendering engine.

[0030] Therefore, in one embodiment of the present disclosure, in response to a video image rendering request in a 3D rendering engine, the video image is sent to a native layer of the operating system.

[0031] In one embodiment of the present disclosure, after acquiring a video image at the native code layer, if the video image is an encrypted image, the video image is first decrypted, for example, according to a pre-agreed decryption rule, thereby overcoming the problem that the three-dimensional rendering engine cannot decrypt the video image.

[0032] Step 102: Acquire image texture information of the video image, and create a frame buffer object corresponding to the image texture information.

[0033] In one embodiment of the present disclosure, the image texture information of the video image is extracted through the native layer of the operating system. The image texture information is a visual feature that reflects the homogeneous phenomenon in the image. The image texture information expresses the characteristics of the entire image through the grayscale distribution of pixels and their surrounding spatial neighborhoods. Therefore, the image texture information is essentially independent of the image format. Only by extracting the image texture information can the subsequent rendering processing of video images of any image format in the three-dimensional virtual space be realized. When extracting the image texture information, the image type of the video image can be identified, and a texture extraction component matching the image type is determined in the operating system. The image texture information of the video image is extracted according to the texture extraction component. Thus, the extraction quality of the extracted image texture information can be guaranteed by using an extraction component matching the image type of the video image.

[0034] It should be understood that the image texture information extracted in the native layer is not directly rendered in the native rendering window corresponding to the operating system, but needs to be rendered in the three-dimensional virtual space corresponding to the three-dimensional rendering engine. Therefore, it is necessary to create a texture container to preset the frame buffer object (Frame Buffer Object, FBO) of the image texture information to be extracted. For example, the function glGenFramebuffers can be used to generate an FBO object, and the ID of the FBO object can be saved to facilitate the subsequent redirection of the FBO, etc. The image texture information and FBO are associated using functions such as glFramebufferTexture, where FBO is usually a pointer-like structure. Therefore, the image texture information of each frame of the video image in the video stream can be attached to the corresponding FBO to achieve the rendering of the image texture information in the three-dimensional virtual space.

[0035] For example, the final position of the OpenGL rendering pipeline in the Android Native layer is in the frame buffer. By default, OpenGL uses the frame buffer provided by the window system. In this embodiment, the image texture information is not directly rendered to the window, so OpenGL provides a method to create an additional frame buffer object (FBO). Using the frame buffer object, OpenGL can redirect the frame buffer originally drawn to the window to the FBO.

[0036] Step 103, setting the rendering target of the frame buffer object to the texture space of the 3D rendering engine, so as to control the 3D rendering engine to render a virtual video image corresponding to the video image in the 3D virtual space according to the image texture information.

[0037] After creating and generating the corresponding frame buffer object, the rendering target can be redirected to other storage spaces. That is, in this embodiment, the rendering target of the frame buffer object is set to the texture space of the 3D rendering engine to implement the render to texture function (Render to Texture), which can control the 3D rendering engine to render the virtual video image in the 3D virtual space according to the image texture information.

[0038] In some possible embodiments, when the rendering target of the frame buffer object is set to the texture space of the three-dimensional rendering engine, the texture rendering component of the three-dimensional rendering engine can be determined, and a binding relationship between the texture rendering component and the frame buffer object can be established. Thus, since the texture rendering component has a binding relationship with the frame buffer object, after obtaining the image texture information from the frame buffer object, the image texture information can be used as an external texture for subsequent rendering processing. For example, in response to the texture rendering component receiving the image texture information, the texture rendering component is controlled to render a virtual video image on a rendering canvas pre-built in a three-dimensional virtual space according to the image texture information. The virtual video image can be two-dimensional or three-dimensional. For example, if the virtual video image is a two-dimensional image, a Raw Image can be used for texture rendering. If the video image is a three-dimensional image, a Mesh Renderer can be used for texture rendering, etc.

[0039] Therefore, in this embodiment, if Figure 2 As shown in the figure, when the operating system is Android, the 3D rendering engine is Unity, and the rendering environment of Android is the OpenGL ES environment created by EGL, then OpenGL provides a method to create an additional frame buffer object FBO. Using the frame buffer object OpenGL can redirect the frame buffer originally drawn to the window to the FBO, that is, associate the image texture information of the extracted video image with the FBO. With the FBO redirection rendering target to the texture space Texture of the 3D rendering engine, the 3D rendering engine performs 2D or 3D virtual video image rendering and display according to the image texture information corresponding to the FBO read in the texture space. That is, the decoupling of the early texture extraction processing and display of the video image is realized, the video processing is placed in the Native layer, and the final rendering is placed in the Unity layer.

[0040] In summary, the image rendering method of the embodiment of the present disclosure responds to the video image rendering request in the three-dimensional rendering engine, sends the video image to the native layer of the operating system, extracts the image texture information of the video image, and creates a frame buffer object corresponding to the image texture information, and then sets the rendering target of the frame buffer object to the texture space of the three-dimensional rendering engine to control the three-dimensional rendering engine to render the virtual video image in the three-dimensional virtual space according to the image texture information. Therefore, the embodiment of the present disclosure extracts the image texture information through the native layer, and the three-dimensional rendering engine only performs rendering processing based on the image texture information, so that the format of the native video image is no longer restricted, and it provides support for the diversified processing of the video image, making the video playback and processing options in the three-dimensional scene more diversified.

[0041] As mentioned in the above embodiments, since the early processing of video images is placed in the native layer of the operating system, the reuse of the native layer's shader to process the image, such as cropping, special effects, filters, and beautification, can further enhance the flexibility of processing video images in the three-dimensional virtual space. For example, placing the processing of video images in the Native layer and the final rendering in the Unity layer can reuse almost all existing native video processing technologies.

[0042] In one embodiment of the present disclosure, Figure 3 As shown, before extracting the image texture information of the video image, it also includes:

[0043] Step 301 : In response to an image processing instruction for a video image, determine image processing parameters corresponding to the image processing request.

[0044] Among them, the image processing parameters correspond to the specific image processing content. For example, when performing beauty processing, the corresponding image processing parameters include the beautification area, the beautification level, etc. For example, when performing cropping processing, the corresponding image processing parameters include the cropping size information, etc.

[0045] It should be noted that in different application scenarios, the execution method of the image processing instruction for the video image is different. In some possible embodiments, the image processing instruction may be automatically generated, such as presetting reference image features that meet the requirements for image processing, extracting video image features, matching the video image features with the reference image features, and if the match is successful, obtaining the image processing instruction for the video image;

[0046] In this example, the image processing parameters corresponding to the image processing request can also be determined automatically, that is, the image feature information of the video image is identified, and the image processing parameters that match the video image are determined based on the image feature information. For example, a preset correspondence is queried based on the image feature information of the identified video image, and the image processing parameters that match the video image are determined based on the correspondence. For another example, a deep learning model can be generated in advance based on a large amount of sample data training, and the input of the deep learning model is the image feature information, and the output is the image processing parameters. Therefore, the image feature information can be input into the deep learning model to obtain the image processing parameters output by the deep learning model.

[0047] In this example, since the image processing parameters are automatically matched, the efficiency of image processing on the video images is improved, and the consistency of image processing effects between different video images is ensured.

[0048] In some possible embodiments, an image processing request control may be displayed in advance in a visual manner, and when it is detected that a user triggers a corresponding image processing request control, an image processing request is acquired.

[0049] In this example, when acquiring image processing parameters, a video image and at least one image processing control are displayed, wherein each image processing control may include an image processing parameter input area or a special effect parameter label, etc. In response to detecting user operation information on at least one image processing control, the image processing parameters are determined according to the operation information, for example, the image processing parameters are determined according to the special effect parameter label selected by the user, or for example, the image processing parameters are determined according to the parameters entered by the user in the corresponding image processing parameter input area, etc.

[0050] In this embodiment, the image processing parameters can be set by the user according to personal preferences, thereby satisfying the user's demand for personalized processing of video images.

[0051] Step 302: Determine a shader corresponding to the image processing request in the operating system.

[0052] Among them, the shader is a pre-written image processing function component that has been installed in the operating system. For example, it may include a beauty processing shader, a filter adding shader, a special effect shader, etc. In this embodiment, the shader corresponding to the image processing request is determined in the operating system to facilitate image processing based on the shader.

[0053] Step 303: Control the shader to perform image processing on the video image according to corresponding image processing parameters.

[0054] In the embodiments of the present disclosure, the shader is controlled to perform image processing on the video image according to the corresponding image processing parameters, thereby realizing image processing on the video image before extracting the texture information of the video image. The video processing is placed in the Native layer, and the final rendering is placed in the Unity layer, so as to reuse all existing native video processing technologies and make the processing of video images in the three-dimensional virtual space more flexible and changeable.

[0055] That is, in this embodiment, if Figure 4As shown in the figure, when the operating system is Android and the 3D rendering engine is Unity, the beauty shader, filter shader, special effect adding shader, etc. can be reused in the Android native layer to process the video image. Among them, the rendering environment of Android is the OpenGL ES environment created by EGL, and OpenGL provides a method to create an additional frame buffer object FBO. Using the frame buffer object OpenGL can redirect the frame buffer originally drawn to the window to the FBO, that is, the image texture information of the video image after the special effect processing is extracted is associated with the FBO. With the FBO redirection rendering target to the texture space Texture of the 3D rendering engine, the 3D rendering engine performs 2D or 3D virtual video image rendering and display according to the image texture information corresponding to the FBO read in the texture space. That is, the decoupling of the early texture extraction processing and display of the video image is realized, the video processing is placed in the Native layer, and the final rendering is placed in the Unity layer. By reusing the relevant shaders in the operating system, all existing native video processing technologies are reused, and the video processing in the 3D scene is made more flexible and varied, and the options are richer.

[0056] In summary, the image rendering method of the embodiment of the present invention can reuse the existing native video processing shaders, etc., so that the processing of video images in the three-dimensional virtual space is more flexible and changeable, independent of the environment of the specific three-dimensional rendering engine, and makes the video playback and processing options in the three-dimensional virtual space more diversified.

[0057] In order to implement the above embodiments, the present disclosure also proposes an image rendering device.

[0058] Figure 5 It is a schematic block diagram of the structure of an image rendering device according to an embodiment of the present disclosure. The synchronization of the character model includes: a sending module 510, an acquisition module 520, a creation module 530, and a rendering processing module 540.

[0059] The sending module 510 is used to send the video image to the native layer of the operating system in response to the video image rendering request in the 3D rendering engine;

[0060] An acquisition module 520 is used to extract image texture information of a video image;

[0061] A creation module 530, used to create a frame buffer object corresponding to the image texture information;

[0062] The rendering processing module 530 is used to set the rendering target of the frame buffer object to the texture space of the 3D rendering engine, so as to control the 3D rendering engine to render the virtual video image according to the image texture information.

[0063] In an optional embodiment, the image processing device further includes an image processing module, which is used to:

[0064] In response to an image processing instruction for a video image, determining an image processing parameter corresponding to the image processing request;

[0065] determining in the operating system a shader corresponding to the image processing request;

[0066] The control shader performs image processing on the video image according to the corresponding image processing parameters.

[0067] In an optional embodiment, the image processing module is specifically used for:

[0068] Identify image feature information of video images;

[0069] Determine image processing parameters that match the video image based on the image feature information.

[0070] In an optional embodiment, the image processing module is specifically used for:

[0071] displaying a video image and at least one image processing control;

[0072] In response to detecting user operation information on at least one image processing control, an image processing parameter is determined according to the operation information.

[0073] In an optional embodiment, the creation module 520 is specifically used to:

[0074] Identify the image type of the video image, and determine a texture extraction component matching the image type in the operating system;

[0075] Image texture information of the video image is extracted according to the texture extraction component.

[0076] In an optional embodiment, the rendering processing module 530 is specifically used for:

[0077] Determine the texture rendering component of the 3D rendering engine;

[0078] Build the binding relationship between the texture rendering component and the frame buffer object.

[0079] In an optional embodiment, the rendering processing module 530 is specifically used for:

[0080] In response to the texture rendering component receiving the image texture information, the texture rendering component is controlled to render the virtual video image on a rendering canvas pre-built in the three-dimensional virtual space according to the image texture information.

[0081] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.

[0082] Exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method according to an embodiment of the present disclosure.

[0083] The exemplary embodiments of the present disclosure also provide a computer program product, including a computer program, wherein the computer program is used to cause the computer to perform the method according to the embodiments of the present disclosure when executed by a processor of the computer.

[0084] refer to Figure 6 , a block diagram of an electronic device 600 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0085] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 606 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0086] A plurality of components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 606. The input unit 606 may be any type of device capable of inputting information to the electronic device 600, and the input unit 606 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 607 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 604 may include, but is not limited to, a disk, an optical disk. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0087] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 may include a native layer for executing the various methods and processes described above, and a corresponding three-dimensional rendering engine. For example, in some embodiments, method steps 101-103, etc. may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via ROM 902 and / or communication unit 609. In some embodiments, the computing unit 601 may be configured to execute method steps 101-103, etc., by any other appropriate means (e.g., by means of firmware).

[0088] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0089] In the context of the present disclosure, 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, device, or equipment. 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, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0090] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0091] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input), and in this embodiment, image processing parameters input by the user may be received.

[0092] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0093] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

Claims

1. An image rendering method, comprising: In response to a video image rendering request in a three-dimensional rendering engine, sending the video image to a native layer of an operating system; Acquire image texture information of the video image, and create a frame buffer object corresponding to the image texture information; The rendering target of the frame buffer object is set as the texture space of the 3D rendering engine to control the 3D rendering engine to render a virtual video image corresponding to the video image in a 3D virtual space according to the image texture information.

2. The method according to claim 1, before acquiring the image texture information of the video image, further comprising: In response to an image processing instruction for the video image, determining an image processing parameter corresponding to the image processing request; determining, in the operating system, a shader corresponding to the image processing request; The shader is controlled to perform image processing on the video image according to corresponding image processing parameters.

3. The method of claim 2, wherein: The determining of the image processing parameters corresponding to the image processing request includes: Identifying image feature information of the video image; An image processing parameter matching the video image is determined according to the image feature information.

4. The method according to claim 2, wherein determining the image processing parameters corresponding to the image processing request comprises: displaying the video image and at least one image processing control; In response to detecting user operation information on the at least one image processing control, an image processing parameter is determined according to the operation information.

5. The method of claim 1, wherein: The obtaining of image texture information of the video image comprises: identifying an image type of the video image, and determining a texture extraction component matching the image type in the operating system; Image texture information of the video image is extracted according to the texture extraction component.

6. The method of claim 1, wherein: The step of setting the rendering target of the frame buffer object to the texture space of the three-dimensional rendering engine comprises: Determining a texture rendering component of the three-dimensional rendering engine; A binding relationship between the texture rendering component and the frame buffer object is established.

7. The method of claim 6, wherein: The controlling the three-dimensional rendering engine to render a virtual video image corresponding to the video image in a three-dimensional virtual space according to the image texture information includes: In response to the texture rendering component receiving the image texture information, the texture rendering component is controlled to render the virtual video image on a rendering canvas pre-built in the three-dimensional virtual space according to the image texture information.

8. An image rendering device, comprising: A sending module, configured to send the video image to a native layer of the operating system in response to a video image rendering request in the three-dimensional rendering engine; An acquisition module, used for acquiring image texture information of the video image; A creation module, used for creating a frame buffer object corresponding to the image texture information; A rendering processing module is used to set the rendering target of the frame buffer object to the texture space of the three-dimensional rendering engine, so as to control the three-dimensional rendering engine to render a virtual video image corresponding to the video image in a three-dimensional virtual space according to the image texture information.

9. An electronic device, comprising: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, enable the processor to perform the image rendering method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the image rendering method according to any one of claims 1-7.