Image rendering method, device, equipment and storage medium

An image rendering and image technology, applied in the field of image processing, can solve problems such as poor running performance, rendering program crashes, and affecting the normal use of applications, etc., to achieve smooth image rendering, expand the scope, and improve user experience.

Active Publication Date: 2022-06-21
WUHAN DOUYU NETWORK TECH CO LTD
View PDF16 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, for some non-mobile terminals equipped with old graphics cards, limited by the performance of the graphics card, the performance of OpenGL is not good enough, so that the image rendering effect of OpenGL is not good, or the rendering program directly crashes, which directly affects the performance of the application. Normal use, reduce user experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image rendering method, device, equipment and storage medium
  • Image rendering method, device, equipment and storage medium
  • Image rendering method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] The image rendering method provided in this embodiment may be applicable to the case of developing an image rendering application program for a terminal device other than a mobile terminal. The method may be performed by an image rendering apparatus, which may be implemented in software and / or hardware, and the apparatus may be integrated in a device supporting OpenGL, such as a desktop computer or a server. see figure 1 , the method of this embodiment specifically includes the following steps:

[0058] S110. Obtain the graphics card information of the current terminal device, and determine an adaptive graphics library corresponding to the current terminal device according to the graphics card information, where the adaptive graphics library includes an open graphics library OpenGL or an embedded open graphics library OpenGLES.

[0059] Wherein, the current terminal device refers to a client currently running an image rendering application, and may be, for example, a p...

Embodiment 2

[0077] In this embodiment, on the basis of the above-mentioned first embodiment, the step of "determining the graphic library identifier of the adapted graphic library" is added. On this basis, "according to the data to be rendered, call the texture creation function in the source code of the preset shader script to create the texture corresponding to the data to be rendered" can be further optimized. On the basis of the above, "based on the texture, call the texture sampling function in the source code of the preset shader script to obtain the target rendering image" can be further optimized. The explanations of terms that are the same as or corresponding to the above embodiments are not repeated here. In this embodiment, the development of an image rendering application based on the cross-platform C++ graphical user interface application development framework QT is used as an example for description. see figure 2 , the image rendering method provided by this embodiment in...

Embodiment 3

[0124] This embodiment provides an image rendering device, see image 3 , the device specifically includes:

[0125] The adaptive graphics library determination module 310 is used to obtain the graphics card information of the current terminal device, and determine the adaptive graphics library corresponding to the current terminal device according to the graphics card information, the adaptive graphics library includes the open graphics library OpenGL or the embedded open graphics library OpenGLES ;

[0126] The target rendering image acquisition module 320 is used to determine the preset shader script source code corresponding to the adapted graphics library according to the graphics library identifier of the adapted graphics library, and call the preset shader script source according to the data to be rendered code, get the target rendering image;

[0127] The image rendering module 330, based on the adapted graphics library, outputs the target rendering image to complete...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses an image rendering method, device, equipment and storage medium. The method includes: obtaining graphics card information of the current terminal device, and determining an adaptive graphics library corresponding to the current terminal device according to the graphics card information, the adaptive graphics library includes an open graphics library OpenGL or an embedded open graphics library OpenGLES ; Determine the source code of the default shader script corresponding to the adapted graphics library according to the graphics library identifier of the adapted graphics library, and call the source code of the preset shader script according to the data to be rendered to obtain the target Rendering an image; outputting the target rendering image based on the adapted graphics library to complete image rendering. Through the above technical solution, more accurate and smooth image rendering is realized, so that the application program can be applied to more non-mobile terminals, and the user experience of the application program is improved.

Description

technical field [0001] Embodiments of the present invention relate to image processing technologies, and in particular, to an image rendering method, apparatus, device, and storage medium. Background technique [0002] When developing a graphical interactive interface for an application program of a non-mobile terminal (such as a PC terminal or a server, etc.), an Open Graphics Library (OpenGL) is usually used as a rendering tool for video images. Using OpenGL to render video images requires writing the relevant shader script source code based on the OpenGL shader language GLSL (OpenGL Shading Language), and by running the shader script source code to call the OpenGL related Application Programming Interface (Application Programming Interface, API) to create corresponding textures and render video images on non-mobile terminal applications. [0003] However, for some non-mobile terminals equipped with old graphics cards, limited by the performance of the graphics card, the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06T15/00
CPCG06T15/005G06T2200/04
Inventor 杨亮张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products