CN110659080B - Page display method and device, electronic equipment and storage medium - Google Patents

Page display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110659080B
CN110659080B CN201910809940.8A CN201910809940A CN110659080B CN 110659080 B CN110659080 B CN 110659080B CN 201910809940 A CN201910809940 A CN 201910809940A CN 110659080 B CN110659080 B CN 110659080B
Authority
CN
China
Prior art keywords
page
browser
eglfs
preset
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910809940.8A
Other languages
Chinese (zh)
Other versions
CN110659080A (en
Inventor
孙风荣
潘廷勇
韩杰
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910809940.8A priority Critical patent/CN110659080B/en
Publication of CN110659080A publication Critical patent/CN110659080A/en
Application granted granted Critical
Publication of CN110659080B publication Critical patent/CN110659080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The embodiment of the invention provides a page display method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a page loading request generated in a preset browser; calling an eglfs plug-in embedded in the preset browser, and writing page data corresponding to the page loading request into a graphics processor; and rendering and displaying the corresponding page by the graphics processor according to the page data. According to the embodiment of the invention, the page data is directly input into the graphic processor for loading through the eglfs plug-in built in the browser, so that the loading speed of the page can be improved.

Description

Page display method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of page display technologies, and in particular, to a page display method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of the video networking, video conferences, video teaching and the like based on the video networking are widely popularized in the aspects of life, work, learning and the like of users.
Currently, in the process of applying video networking, when an Html page is rendered and displayed, a built-in linux fb plug-in based QT browser is usually adopted, linux is used to directly write data into a frame buffer through fb device nodes of linux, and a loading mode of linux is adopted, a page picture is rendered slowly, and a phenomenon seen by a user is that the picture loading is a display in a line when a page is switched from an a page to a B page, which seriously affects the visual effect.
Disclosure of Invention
In view of the above problems, embodiments of the present application are proposed to provide a page display method, apparatus, electronic device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present application discloses a page display method, which is applied to a video network, and the method includes:
receiving a page loading request generated in a preset browser;
calling an eglfs plug-in embedded in the preset browser, and writing page data corresponding to the page loading request into a graphics processor;
and rendering and displaying the corresponding page by the graphics processor according to the page data.
Preferably, before the step of receiving a page loading request generated in a preset browser, the method further includes:
acquiring linux fb configuration parameters preset in the preset browser;
and modifying the linux fb configuration parameter into an eglfs configuration parameter corresponding to the eglfs plug-in.
Preferably, before the step of receiving a page loading request generated in a preset browser, the method further includes:
compiling QT source code;
writing and generating an initial browser according to the QT source code;
and configuring a linux fb configuration parameter or an eglfs configuration parameter in the initial browser to generate the preset browser.
Preferably, before the step of calling the eglfs plug-in embedded in the browser and writing the page data corresponding to the page loading request into the graphics processor, the method further includes:
acquiring a link address of a page to be loaded according to the page loading request;
and acquiring the page data according to the link address.
Preferably, the step of rendering and displaying, by the graphics processor, the corresponding page according to the page data includes:
and rendering and displaying the page to be loaded by the graphics processor according to the page data.
In a second aspect, an embodiment of the present application discloses a page display apparatus, which is applied to a video network, and the apparatus includes:
the loading request receiving module is used for receiving a page loading request generated in a preset browser;
the page data writing module is used for calling an eglfs plug-in embedded in the preset browser and writing the page data corresponding to the page loading request into the graphics processor;
and the page rendering and displaying module is used for rendering and displaying the corresponding page by the graphics processor according to the page data.
Preferably, the method further comprises the following steps:
the configuration parameter acquisition module is used for acquiring linux fb configuration parameters preset in the preset browser;
and the configuration parameter modification module is used for modifying the linux fb configuration parameter into an eglfs configuration parameter corresponding to the eglfs plug-in.
Preferably, the method further comprises the following steps:
the QT source code compiling module is used for compiling QT source codes;
the initial browser generation module is used for compiling and generating an initial browser according to the QT source code;
and the preset browser generating module is used for configuring linux fb configuration parameters or eglfs configuration parameters in the initial browser and generating the preset browser.
Preferably, the method further comprises the following steps:
the link address acquisition module is used for acquiring a link address of a page to be loaded according to the page loading request;
and the page data acquisition module is used for acquiring the page data according to the link address.
Preferably, the page rendering and displaying module includes:
and the page rendering and displaying submodule is used for rendering and displaying the page to be loaded by the graphics processor according to the page data.
In a third aspect, an embodiment of the present application further discloses a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the page display method according to any one of the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application further discloses a computer-readable storage medium, where a computer program for executing the page display method according to any one of the above first aspects is stored in the computer-readable storage medium.
According to the page display method, the page display device, the electronic equipment and the storage medium, the page loading request generated in the preset browser is received, the eglfs plug-in embedded in the preset browser is called, page data corresponding to the page loading request are written into the graphic processor, and the graphic processor renders and displays the corresponding page according to the page data. According to the embodiment of the invention, the page data is directly input into the graphic processor for loading through the eglfs plug-in built in the browser, so that the loading speed of the page can be improved.
Drawings
Fig. 1 is a schematic networking diagram of a video network provided in an embodiment of the present application;
fig. 2 is a schematic hardware structure diagram of a node server according to an embodiment of the present application;
fig. 3 is a schematic hardware structure diagram of an access switch according to an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating steps of a page display method according to an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating steps of a page display method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a page display device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present application, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the internet of vision technology employs network Packet Switching to satisfy the demand of Streaming (translated into Streaming, and continuous broadcasting, which is a data transmission technology, converting received data into a stable and continuous stream, and continuously transmitting the stream, so that the sound heard by the user or the image seen by the user is very smooth, and the user can start browsing on the screen before the whole data is transmitted). The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (circled part), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present application can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204.
The network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module (downstream network interface module 301, upstream network interface module 302), the switching engine module 303, and the CPU module 304 are mainly included.
Wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) and obtaining the token generated by the code rate control module.
If the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the video networking destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 3 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (e.g. various protocol packets, multicast data packets, unicast data packets, etc.), there are at most 256 possibilities, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses.
The Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA).
The reserved byte consists of 2 bytes.
The payload part has different lengths according to types of different datagrams, and is 64 bytes if the type of the datagram is a variety of protocol packets, or is 1056 bytes if the type of the datagram is a unicast packet, but is not limited to the above 2 types.
The CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present application: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of a Label of Multi-Protocol Label switching (MPLS), and assuming that there are two connections between a device a and a device B, there are 2 labels for a packet from the device a to the device B, and 2 labels for a packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
A Network Interface Controller (NIC), also called a network interface controller, a network adapter, a network card, or a local area network receiver (LAN adapter) is a piece of computer hardware designed to allow a computer to communicate over a computer network. It belongs to layer 1 of the OSI model because it possesses a MAC address. It allows users to connect to each other by cable or wirelessly. Each network card has a unique 48-bit serial number, called the MAC address, which is written in a ROM on the card. Each computer on the network must have a unique MAC address. No two produced network cards have the same address.
The connection between the computer and the external LAN is realized by inserting a network interface board into the main case (or inserting a PCMCIA card into the notebook computer).
The data packets captured from the video networking network card have own characteristics compared with the data packets captured from the internet network card, so that in the embodiment of the application, a certain number of data packets are captured for all currently available network cards of the PC in sequence, the data packets are analyzed, and the data packets with the characteristics of the video networking data packets are judged to be the largest percentage of the total data, namely the video networking network card.
According to the embodiment of the application, the video networking network card is accurately selected under the condition that the video networking network card, the Internet network card and other network cards exist. The purpose of selecting the video networking network card is to find any network card capable of capturing video networking data.
The process characterization software package PACP is a network programming interface used to capture network data packets. The packet capture library provides a high-level interface for the packet capture system. All packets on the network, including those sent to other hosts, can be captured by this mechanism. It also supports saving captured packets as and reading information from local files.
Example one
Fig. 5 is a flowchart illustrating steps of a page display method provided in an embodiment of the present application, where the page display method may be applied to a video network, and specifically includes the following steps:
step 501: and receiving a page loading request generated in a preset browser.
In the embodiment of the invention, the preset browser is a QT-based browser embedded with an eglfs plug-in.
QT is a cross-platform C + + Graphical User Interface application development framework that can be used to develop both GUI (Graphical User Interface) programs and non-GUI programs, such as console tools and servers.
Page loading: and loading the resource file and the cache data corresponding to the page. The resource files are necessary component files when the page is loaded, and include an HTML file, a CSS file, a JS file and the like of the page. The resource files are basic elements of the framework for page display, include layout structure configuration, function module configuration, system configuration and other information, and are only related to modification and updating of the resource files when an application provider modifies a page. The cache data is data which needs to be loaded to the page, and the cache data and the resource file form a complete page. The cache data generally refers to information of relevant videos, pictures and texts such as advertisements or news.
The generation process of the preset browser will be described in detail in the following embodiment two, which is not described herein again in this embodiment of the present invention.
The page loading request can comprise an access request to a service website, a business function starting request triggered by a page function control such as a hyperlink in a display page and the like. The access request and the service function starting request include, but are not limited to, a user manually operating a physical key or a virtual button provided by the client device to trigger.
After receiving a page load request generated in the preset browser, step 502 is performed.
Step 502: calling an eglfs plug-in embedded in the preset browser, and writing the page data corresponding to the page loading request into a graphics processor.
Graphics Processing Unit (GPU): the image processor is also called a display core, a visual processor and a display chip, and is a microprocessor which is specially used for image operation work on personal computers, workstations, game machines and some mobile devices (such as tablet computers, smart phones and the like).
The graphic processor can convert and drive the display information required by the computer system, provide a line scanning signal for the display, and control the correct display of the display, and is an important element for connecting the display and a personal computer mainboard and one of important devices of man-machine conversation. The display card is an important component in the computer host, takes charge of outputting display graphics, and is very important for people engaged in professional graphic design.
After receiving a page loading request generated in a preset browser, page data corresponding to the page loading request locally stored in a server or a terminal may be loaded, and after obtaining the page data corresponding to the page loading request, an eglfs plug-in embedded in the preset browser may be called to directly write the page data into a GPU.
It can be understood that the page data defined in the embodiment of the present invention is picture data corresponding to pictures in the page to be displayed.
After calling the eglfs plug-in embedded in the preset browser and writing the page data corresponding to the page loading request into the graphics processor, step 503 is executed.
Step 503: and rendering and displaying the corresponding page by the graphics processor according to the page data.
The GPU may directly process the picture data, and may render and display a corresponding page, i.e., by displaying a picture of the page to be displayed.
The GPU has the characteristic of high processing speed, and the page data is directly written into the GPU for processing, so that the loading speed of the page can be improved.
According to the page display method provided by the embodiment of the application, the page loading request generated in the preset browser is received, the eglfs plug-in embedded in the preset browser is called, the page data corresponding to the page loading request is written into the graphic processor, and the graphic processor renders and displays the corresponding page according to the page data. According to the embodiment of the invention, the page data is directly input into the graphic processor for loading through the eglfs plug-in built in the browser, so that the loading speed of the page can be improved.
Example two
Fig. 6 is a flowchart illustrating steps of a page display method provided in an embodiment of the present application, where the page display method may be applied to a video network, and specifically includes the following steps:
step 601: the QT source code is compiled.
In the embodiment of the present invention, QT source codes for generating a browser may be compiled in advance, and the QT source codes may be compiled by service personnel according to service requirements, which is not limited in the embodiment of the present invention.
After the QT source code is compiled, step 602 is performed.
Step 602: and compiling and generating an initial browser according to the QT source code.
The initial browser is a browser directly compiled according to QT source codes.
After the QT source code compiled by the service personnel is received, the initial browser can be compiled and generated according to the QT source code.
After generating the initial browser according to the QT source code writing, step 603 is performed.
Step 603: and configuring a linux fb configuration parameter or an eglfs configuration parameter in the initial browser to generate the preset browser.
Linux Frame Buffer refers to a video memory in a display device. The video memory stores RGB data of pixels. The size of one video memory, screen width, screen height, number of bytes per pixel.
eglfs is a platform plug-in to Qt that allows Qt programs to draw using Opengl ES without the need for a windowing system. The mode is mainly adopted in embedded equipment supporting a GPU; the egl and gles driver modules are typically required to be provided by the GPU vendor.
After the initial browser is obtained, linux fb configuration parameters may be configured in the initial browser, or eglfs configuration parameters may be directly configured, which may be specifically determined according to actual situations.
The linux fb configuration parameters are as follows: export QT _ QPA _ PLATFORM ═ linux fb
The eglfs configuration parameters are as follows: export QT _ QPA _ PLATFORM ═ eglfs
After the initial browser is configured with the Linux fb configuration parameters, adding the Linux fb plug-in into the initial browser can be realized; after eglfs configuration parameters are configured in the initial browser, the eglfs plug-in can be added in the initial browser.
The preset browser refers to a browser obtained after the initial browser is configured with the linux fb configuration parameters or the eglfs configuration parameters.
After the initial browser is configured with the linux fb configuration parameter or the eglfs configuration parameter and a preset browser is generated, step 604 is executed.
Step 604: and acquiring linux fb configuration parameters preset in the preset browser.
If the generated configuration parameter of linux xfb in the preset browser is needed to be modified in the previous step, linux xfb configuration parameter preset in the preset browser may be obtained.
After obtaining the linux fb configuration parameters preset in the browser, step 604 is executed.
Step 605: and modifying the linux fb configuration parameter into an eglfs configuration parameter corresponding to the eglfs plug-in.
After obtaining the linux fb configuration parameters, the linux fb configuration parameters can be modified to eglfs configuration parameters corresponding to the eglfs plug-in. Namely, in the above steps, the linux fb configuration parameters are: export QT _ QPA _ PLATFORM ═ linux fb, modified to: the eglfs configuration parameters are as follows: export QT _ QPA _ PLATFORM ═ eglfs. I.e. to effect modification of the configuration parameters.
After the linux fb configuration parameter is modified to the eglfs configuration parameter corresponding to the eglfs plugin, step 606 is executed.
Step 606: and receiving a page loading request generated in a preset browser.
QT is a cross-platform C + + Graphical User Interface application development framework that can be used to develop both GUI (Graphical User Interface) programs and non-GUI programs, such as console tools and servers.
Page loading: and loading the resource file and the cache data corresponding to the page. The resource files are necessary component files when the page is loaded, and include an HTML file, a CSS file, a JS file and the like of the page. The resource files are basic elements of the framework for page display, include layout structure configuration, function module configuration, system configuration and other information, and are only related to modification and updating of the resource files when an application provider modifies a page. The cache data is data which needs to be loaded to the page, and the cache data and the resource file form a complete page. The cache data generally refers to information of relevant videos, pictures and texts such as advertisements or news.
The page loading request can comprise an access request to a service website, a business function starting request triggered by a page function control such as a hyperlink in a display page and the like. The access request and the service function starting request include, but are not limited to, a user manually operating a physical key or a virtual button provided by the client device to trigger.
After receiving the page loading request generated in the preset browser, step 607 is performed.
Step 607: and acquiring the link address of the page to be loaded according to the page loading request.
The link address refers to an address corresponding to the page loading request, and the page data corresponding to the page to be loaded can be acquired through the link address.
After obtaining the page loading request, the link address of the page to be loaded may be obtained according to the page loading request, and step 608 is performed.
Step 608: and acquiring the page data according to the link address.
After the link address of the page to be loaded is obtained, the page data corresponding to the page to be loaded may be locally obtained from the server or the terminal according to the link address, and a specific obtaining manner may be determined according to a service requirement, which is not limited in the embodiment of the present invention.
After acquiring the page data according to the link address, step 609 is performed.
Step 609: calling an eglfs plug-in embedded in the preset browser, and writing the page data corresponding to the page loading request into a graphics processor.
Graphics Processing Unit (GPU): the image processor is also called a display core, a visual processor and a display chip, and is a microprocessor which is specially used for image operation work on personal computers, workstations, game machines and some mobile devices (such as tablet computers, smart phones and the like).
The graphic processor can convert and drive the display information required by the computer system, provide a line scanning signal for the display, and control the correct display of the display, and is an important element for connecting the display and a personal computer mainboard and one of important devices of man-machine conversation. The display card is an important component in the computer host, takes charge of outputting display graphics, and is very important for people engaged in professional graphic design.
After receiving a page loading request generated in a preset browser, page data corresponding to the page loading request locally stored in a server or a terminal may be loaded, and after obtaining the page data corresponding to the page loading request, an eglfs plug-in embedded in the preset browser may be called to directly write the page data into a GPU.
It can be understood that the page data defined in the embodiment of the present invention is picture data corresponding to pictures in the page to be displayed.
Step 610 is executed after the eglfs plug-in embedded in the preset browser is called and the page data corresponding to the page loading request is written into the graphics processor.
Step 610: and rendering and displaying the page to be loaded by the graphics processor according to the page data.
The GPU may directly process the picture data, and may render and display a page to be loaded, i.e., by displaying pictures within the page.
The GPU has the characteristic of high processing speed, and the page data is directly written into the GPU for processing, so that the loading speed of the page can be improved.
According to the page display method provided by the embodiment of the application, the page loading request generated in the preset browser is received, the eglfs plug-in embedded in the preset browser is called, the page data corresponding to the page loading request is written into the graphic processor, and the graphic processor renders and displays the corresponding page according to the page data. According to the embodiment of the invention, the page data is directly input into the graphic processor for loading through the eglfs plug-in built in the browser, so that the loading speed of the page can be improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
EXAMPLE III
Referring to fig. 7, a schematic structural diagram of a page display apparatus provided in the embodiment of the present application is shown, where the apparatus may be applied to a video network, and specifically may include the following modules:
a loading request receiving module 710, configured to receive a page loading request generated in a preset browser;
a page data writing module 720, configured to call an eglfs plug-in embedded in the preset browser, and write page data corresponding to the page loading request into the graphics processor;
and a page rendering and displaying module 730, configured to render and display, by the graphics processor, a corresponding page according to the page data.
Preferably, the apparatus further comprises:
the configuration parameter acquisition module is used for acquiring linux fb configuration parameters preset in the preset browser;
and the configuration parameter modification module is used for modifying the linux fb configuration parameter into an eglfs configuration parameter corresponding to the eglfs plug-in.
Preferably, the apparatus further comprises:
the QT source code compiling module is used for compiling QT source codes;
the initial browser generation module is used for compiling and generating an initial browser according to the QT source code;
and the preset browser generating module is used for configuring linux fb configuration parameters or eglfs configuration parameters in the initial browser and generating the preset browser.
Preferably, the apparatus further comprises:
the link address acquisition module is used for acquiring a link address of a page to be loaded according to the page loading request;
and the page data acquisition module is used for acquiring the page data according to the link address.
Preferably, the page rendering and displaying module 730 includes:
and the page rendering and displaying submodule is used for rendering and displaying the page to be loaded by the graphics processor according to the page data.
The page display device provided by the embodiment of the application calls an eglfs plug-in embedded in a preset browser by receiving a page loading request generated in the preset browser, writes page data corresponding to the page loading request into a graphic processor, and renders and displays a corresponding page by the graphic processor according to the page data. According to the embodiment of the invention, the page data is directly input into the graphic processor for loading through the eglfs plug-in built in the browser, so that the loading speed of the page can be improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The page display method, the page display device, the electronic equipment and the storage medium provided by the application are provided. The detailed description is given, and the principle and the implementation of the present application are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A page display method is applied to a video network, and is characterized by comprising the following steps:
receiving a page loading request generated in a preset browser;
calling an eglfs plug-in embedded in the preset browser, and writing page data corresponding to the page loading request into a graphics processor;
rendering and displaying a corresponding page by the graphics processor according to the page data;
before the step of receiving a page loading request generated in a preset browser, the method further includes:
acquiring linux fb configuration parameters preset in the preset browser;
modifying the linux fb configuration parameter into an eglfs configuration parameter corresponding to the eglfs plug-in;
the preset browser is a browser with initial browser configuration Linuxfb configuration parameters or eglfs configuration parameters based on QT.
2. The method according to claim 1, wherein before the step of receiving a page loading request generated in a preset browser, further comprising:
compiling QT source code;
writing and generating an initial browser according to the QT source code;
and configuring a linux fb configuration parameter or an eglfs configuration parameter in the initial browser to generate the preset browser.
3. The method according to claim 1, wherein before the step of calling the eglfs plug-in embedded in the browser to write the page data corresponding to the page load request into the graphics processor, further comprising:
acquiring a link address of a page to be loaded according to the page loading request;
and acquiring the page data according to the link address.
4. The method of claim 3, wherein the step of rendering, by the graphics processor, the corresponding page according to the page data comprises:
and rendering and displaying the page to be loaded by the graphics processor according to the page data.
5. A page display device applied to a video network is characterized by comprising:
the loading request receiving module is used for receiving a page loading request generated in a preset browser;
the page data writing module is used for calling an eglfs plug-in embedded in the preset browser and writing the page data corresponding to the page loading request into the graphics processor;
the page rendering display module is used for rendering and displaying a corresponding page by the graphics processor according to the page data;
the configuration parameter acquisition module is used for acquiring linux fb configuration parameters preset in the preset browser;
a configuration parameter modification module, configured to modify the linux fb configuration parameter to an eglfs configuration parameter corresponding to the eglfs plug-in;
the preset browser is configured with a Linuxfb configuration parameter or an eglfs configuration parameter in an initial browser based on QT.
6. The apparatus of claim 5, further comprising:
the QT source code compiling module is used for compiling QT source codes;
the initial browser generation module is used for compiling and generating an initial browser according to the QT source code;
and the preset browser generating module is used for configuring linux fb configuration parameters or eglfs configuration parameters in the initial browser and generating the preset browser.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the page display method of any of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium storing a computer program for executing the page display method according to any one of claims 1 to 4.
CN201910809940.8A 2019-08-29 2019-08-29 Page display method and device, electronic equipment and storage medium Active CN110659080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910809940.8A CN110659080B (en) 2019-08-29 2019-08-29 Page display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910809940.8A CN110659080B (en) 2019-08-29 2019-08-29 Page display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110659080A CN110659080A (en) 2020-01-07
CN110659080B true CN110659080B (en) 2022-03-15

Family

ID=69036549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910809940.8A Active CN110659080B (en) 2019-08-29 2019-08-29 Page display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110659080B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113674133B (en) * 2021-07-27 2023-09-05 阿里巴巴新加坡控股有限公司 GPU cluster shared video memory system, method, device and equipment
CN113794921B (en) * 2021-09-10 2024-04-16 京东方科技集团股份有限公司 Interactive interface loading method and interactive interface loading device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073665B (en) * 2016-11-11 2019-03-12 视联动力信息技术股份有限公司 A kind of switching method and apparatus of view the networking page and html page

Also Published As

Publication number Publication date
CN110659080A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
CN109640029B (en) Method and device for displaying video stream on wall
CN109168064B (en) Synchronous display method and system of electronic data
CN109862308B (en) Batch processing method and system
CN109547731B (en) Video conference display method and system
CN111131754A (en) Control split screen method and device of conference management system
CN111124333A (en) Method, device, equipment and storage medium for synchronizing display contents of electronic whiteboard
CN111147801A (en) Video data processing method and device for video networking terminal
CN108965930B (en) Video data processing method and device
CN110659080B (en) Page display method and device, electronic equipment and storage medium
CN112866725A (en) Live broadcast control method and device
CN110769179B (en) Audio and video data stream processing method and system
CN110572363B (en) Product display method and device based on video network, electronic equipment and storage medium
CN110392275B (en) Sharing method and device for manuscript demonstration and video networking soft terminal
CN109963107B (en) Audio and video data display method and system
CN109768964B (en) Audio and video display method and device
CN110737519A (en) theme switching method and device
CN109218824B (en) Service processing method and device
CN111654659A (en) Conference control method and device
CN110795008B (en) Picture transmission method and device and computer readable storage medium
CN110572608B (en) Frame rate setting method and device, electronic equipment and storage medium
CN110290106B (en) Display system
CN110351247B (en) Parameter acquisition method, device and system
CN110830185B (en) Data transmission method and device
CN110620796B (en) Fingerprint information access method and device
CN110636132A (en) Data synchronization method, client, electronic device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant