CN118193107A - Display service method and device, terminal equipment and computer readable storage medium - Google Patents
Display service method and device, terminal equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN118193107A CN118193107A CN202410361835.3A CN202410361835A CN118193107A CN 118193107 A CN118193107 A CN 118193107A CN 202410361835 A CN202410361835 A CN 202410361835A CN 118193107 A CN118193107 A CN 118193107A
- Authority
- CN
- China
- Prior art keywords
- display
- realizing
- function
- function library
- application programming
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Digital Computer Display Output (AREA)
Abstract
The invention discloses a display service method and device, terminal equipment and a computer readable storage medium, relates to the field of display service, and can solve the technical problems of more display service codes and complex problem debugging at present. The display service method comprises the following steps: in response to a display instruction, invoking a function library of the display server to execute functions corresponding to the function libraries, each of the function libraries providing a set of application programming interfaces and being for implementing a function related to a display, the function library comprising: the function library is used for realizing display control, is used for realizing memory management and is used for realizing composite rendering. According to the technical scheme of the invention, a new unified architecture specification is provided for the situation that the display server is tightly coupled with the display function of the bottom layer of the chip, so that the coupling logic is stripped, and the maintenance and chip adaptation workload of the display server is greatly reduced.
Description
Technical Field
The present invention relates to the field of display service technologies, and in particular, to a display service method and apparatus, a terminal device, and a computer readable storage medium.
Background
The implementation of the display service of each system is generally as follows: the android display server currently adopts a surfaceflinger + hwc architecture, wherein surfaceflinger is an android display server, and hwc (hardware composer) is a hardware synthesizer. The android system provides unified gralloc (graphic allocator, graphics allocator) and hwc specifications and default reference implementations, and chip vendors implement their own graphics allocator and hardware synthesizer functions according to the unified specifications defined by the android system.
The Linux display server is mainly divided into wayland display servers and xorg display servers, wherein wayland is a communication protocol, a communication mode between the display server and a client thereof is specified, and xorg is a server-side program of an X11 graph architecture. The two display servers currently directly adopt the technologies of drm (DIRECT RENDER MANAGEMENT graphics card hardware direct rendering management) and opengl (Open Graphics Library, cross-language and cross-platform Application Programming Interfaces (APIs) for rendering 2D and 3D vector graphics) and the like to realize window synthesis and display. When different chip manufacturers are matched, a great deal of joint adaptation is needed for operating system manufacturers and research personnel of the chip manufacturers, and the display server function of the operating system is debugged according to the actual drm (DIRECT RENDER MANAGEMENT, direct rendering management of display card hardware) of the chip manufacturers and opengl related module functions, so that a great deal of manpower and adaptation work are wasted.
As shown in fig. 1, in the conventional art, three major modules of display control (kernel mode setting, kms), buffer management (generic buffer manager, gbm), and rendering composition (gfx) constitute a main function of a display server. The display server directly uses the API interface of libdrm library to implement buffer management and display control, directly uses the interface (not shown) of opengl to implement 3D rendering, and uses interfaces of librga/libskia, etc. to implement 2D rendering. Wherein libdrm and librga, etc. are generic encapsulation libraries, some functions are implemented by providing various APIs. The interfaces libdrm and librga may present bugs for different chip platforms. For these bugs, it is necessary to check how the display control module or the like calls the API interface, and which functions the API interface contains, and why these functions are not available, so that the bugs are debugged accordingly. The whole code logic is very complex, and whether the display problem is debugged or the new chip platform is adapted, the research and development personnel are required to have a very deep research on the whole display service.
Disclosure of Invention
To this end, the present invention provides a display service method and apparatus, a terminal device, a computer-readable storage medium, in an effort to solve or at least alleviate at least one of the problems presented above.
According to a first aspect of the present invention, there is provided a display service method performed by a display server, comprising: in response to a display instruction, invoking a function library of the display server to execute functions corresponding to the function libraries, each of the function libraries providing a set of application programming interfaces and being for implementing a function related to a display, the function library comprising: the function library is used for realizing display control, is used for realizing memory management and is used for realizing composite rendering.
Optionally, in the display service method according to the present invention, the function library for realizing display control includes an interface that realizes: initializing display equipment, releasing the initialization, acquiring display control information of the display equipment, setting the display control information of the display equipment, creating a window layer, releasing the window layer, acquiring window layer information, setting the window layer information, and submitting a display refreshing request; the function library for realizing the memory management comprises interfaces for realizing the following functions: the method comprises the steps of creating a cache, releasing an interface, mapping the cache, and canceling the mapping; the function library for implementing the composite rendering includes interfaces for implementing the following functions: and initializing synthesis hardware, releasing the initialization, synthesizing layers and filling the layers.
Optionally, in the display service method according to the present invention, the function library further includes: the function library is used for realizing window management and animation special effects.
Optionally, in the display service method according to the present invention, the function library for realizing window management includes an interface for realizing the following functions: window stretching, maximizing, minimizing, closing, interactions between windows, the function library for achieving animated special effects includes interfaces for achieving the following functions: window switching effect, window shading effect, window opening and closing effect, window maximizing minimizing effect, window multi-task view effect
According to a second aspect of the present invention, there is provided a display service apparatus, located in a display server, comprising: a calling module, configured to respond to a display instruction, call a function library of a display server, so as to execute functions corresponding to the function libraries, where each function library in the function libraries provides a set of application programming interfaces, and is configured to implement a function related to display, and the function library includes: the function library is used for realizing display control, is used for realizing memory management and is used for realizing composite rendering.
Optionally, in the display service device according to the present invention, the function library for realizing display control includes an interface that realizes: initializing display equipment, releasing the initialization, acquiring display control information of the display equipment, setting the display control information of the display equipment, creating a window layer, releasing the window layer, acquiring window layer information, setting the window layer information, and submitting a display refreshing request; the function library for realizing the memory management comprises interfaces for realizing the following functions: the method comprises the steps of creating a cache, releasing an interface, mapping the cache, and canceling the mapping; the function library for implementing the composite rendering includes interfaces for implementing the following functions: and initializing synthesis hardware, releasing the initialization, synthesizing layers and filling the layers.
According to a third aspect of the present invention, there is provided a terminal device comprising: a display server, the display server comprising: a set of application programming interfaces, wherein each application programming interface is configured to implement a fixed function associated with a display, the set of application programming interfaces comprising: the system comprises an application programming interface for realizing composite rendering, an application programming interface for realizing memory management and an application programming interface for realizing display control; and a processor for running the display server to execute the display service method as described above.
Optionally, the terminal device according to the invention is one of the following: computers, mobile phones, tablets, notebook computers.
According to a fourth aspect of the present invention, there is provided a computer readable medium having stored thereon an operating system, the operating system comprising a display server, the display server comprising: a set of application programming interfaces, wherein each application programming interface is configured to implement a fixed function associated with a display, the set of application programming interfaces comprising: the system comprises an application programming interface for realizing composite rendering, an application programming interface for realizing memory management and an application programming interface for realizing display control.
According to a fifth aspect of the present invention, there is provided a computer readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform a display service method as described above.
According to the technical scheme of the invention, a new unified architecture specification is provided for the situation that the display server is tightly coupled with the display function of the bottom layer of the chip, so that the coupling logic is stripped, and the maintenance and chip adaptation workload of the display server is greatly reduced.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 illustrates an architecture of a display server in the conventional art;
FIG. 2 illustrates an architecture of a display server according to an embodiment of the present invention;
Fig. 3 shows a schematic flow chart of an example of a display service method according to an embodiment of the present invention;
fig. 4 shows a schematic block diagram of an example of a display service device according to an embodiment of the present invention;
Fig. 5 shows a schematic block diagram of an example of a terminal device according to an embodiment of the invention;
FIG. 6 shows a schematic diagram of a computing device according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
According to the embodiment of the invention, the unified interface specification is added, and the code logic related to the display service and the hardware is stripped. The display server only needs to call the unified interface to realize functions such as cache management, display control and the like, and the chip manufacturer or the operating system manufacturer only needs to realize the unified interface function, so that the maintenance and the new platform adaptation of the display server are simpler and more convenient.
The implementation scheme of the code logic related to the stripping display service and the hardware is as follows: first, it is clear that the functions of services and hardware dependencies include three parts: memory management (gbm module), rendering composition (gfx module), display control (kms module); secondly, the functions of the three modules are extracted and processed, and are packaged into a series of application programming interfaces (API interfaces) for realizing related functions, and the API interfaces provide function names/input parameters/output parameters; the code showing gbm/gfx/kms module functions used in the server code is all reconstructed by using the API of the extraction package; finally, the three-function concrete logic implementation is implemented inside the unified API.
Through the steps, the dependence of the display server on hardware can be isolated, and the display server only needs to call the packaged unified API interface to use gbm/gfx/kms module functions. Similarly, the chip manufacturer does not need to know how to call the unified API to realize the display service function, and only needs to realize the logic function required by the unified API of the corresponding three modules according to the chip capacity of the chip manufacturer.
An architecture of a display service according to an embodiment of the present invention is shown in fig. 2. In fig. 2, the three core functions (display control, buffer management, rendering composition) previously implemented directly in the display server are now implemented by the display server's own unified application programming interface (unified API). The unified API is presented in three libraries that provide multiple interfaces to respectively implement display control functions, cache management functions, and rendering composition functions. In the example shown in FIG. 2, the three libraries are named "display_device" (display_device), "display_graphics allocation" (display_ gralloc), and "display_graphics" (display_gfx), respectively. This naming is merely exemplary and other forms of naming are possible.
A set of interface specifications are defined for display control, cache management, rendering composition. Wherein, for display control, the following nine functions can be defined: INITDISPLAY/DEINITDISPLAY (display device initialization, release), getDisplayInfo/setDisplayInfo (acquire, set display device display control information), CREATELAYER/FREELAYER (create, release window layer), getLayerInfo/setLayerInfo (acquire, set window layer information), commit (submit display refresh request). For cache management, the following four functions may be defined: create/free (cache creation, release interface), mmap/unmap (cache map, unmap). For rendering composition, the following four functions may be defined: initGfx/deinitGfx (synthesis hardware initialization, release), blit (layer synthesis), fill (layer fill). Wherein the two functions are spaced apart by "/".
The interfaces listed above are examples only and other forms of interfaces may be employed. For example, for the display control module, in addition to the above 9 functions, the functions may be divided, combined, increased or decreased, for example, initialization and acquisition may be combined into one function, etc., depending on the hardware characteristics used.
Compared with the prior art that three functions are realized in the original code of the display server, according to the embodiment of the invention, the original functions are realized in the functions, and the display server can realize the corresponding functions by directly calling the function names. The function content can be realized in a self-defined way, and can also be written by GPU manufacturers when leaving factories.
The specific implementation process of the function can be designed according to the original function of the display server. Implementations of functions such as "display device initialization" may include: the open function is called to open the display controller (DM) device first, so as to obtain the device file name (fd), and various resources are obtained by calling getresource interfaces in libdrm library through fd, and then the obtained resources are assigned to a data structure such as display. This completes the initialization of the display device.
In addition to the three functions listed above, a new function library, such as a function library for realizing animation special effects, such as a function library for realizing window management, may be added to the unified API. Wherein window management refers to controlling the display behavior of windows, including window stretching, maximizing, minimizing, closing, and further including interactions between windows. The function library for realizing the animation special effects comprises interfaces for realizing the following functions: window switching effect, window shading effect, window opening and closing effect, window maximizing minimizing effect, window multi-task view effect
According to an embodiment of the present invention, there is provided a display service method, which is performed by a display server. Fig. 3 shows a schematic flow chart of an example of the display service method. As shown in fig. 3, the method includes: step 310, in response to the display instruction, invoking a function library of the display server to execute functions corresponding to the function libraries, where each function library in the function libraries provides a set of application programming interfaces and is used to implement a function related to display, and the function library includes: the function library is used for realizing display control, is used for realizing memory management and is used for realizing composite rendering. The display instructions may come from the user or from calls to other programs.
According to the embodiment of the invention, the realization of three functions of display control, cache management and composite rendering in the original display server is changed into that all the unified interfaces are called for reconstruction, and the unified interfaces, namely a whole set of packaged interface specifications, are used for the display server, and the corresponding functions can be used only by calling the interfaces. The actual functional logic is implemented within the unified interface function.
For example, in the conventional technology, the display server includes 10000 lines of codes, wherein 3000 lines are used for implementing a display control function, 3000 lines are used for implementing a buffer management function, and 3000 lines are used for implementing a rendering composition function. In the process of platform adaptation, if problems are found, searching and debugging work is needed in 10000 lines of codes. According to the technical scheme of the embodiment of the invention, the code of the display server does not need to be modified, in addition, thousands of lines of codes of dozens of application programming interfaces called by the display server do not need to be changed all the time, and a specific problem only needs to be changed, for example, a 'display_device', so that a chip manufacturer can adapt the display_device to a libdrm library according to the chip platform of the chip manufacturer.
Wherein, the function library for realizing the display control comprises interfaces for realizing the following functions: initializing display equipment, releasing the initialization, acquiring display control information of the display equipment, setting the display control information of the display equipment, creating a window layer, releasing the window layer, acquiring window layer information, setting the window layer information, and submitting a display refreshing request. The function library for realizing the memory management comprises interfaces for realizing the following functions: and (3) creating a cache, releasing an interface, mapping the cache, and canceling the mapping. The function library for implementing the composite rendering includes interfaces for implementing the following functions: and initializing synthesis hardware, releasing the initialization, synthesizing layers and filling the layers.
According to an embodiment of the present invention, there is provided a display service device located in a display server. Fig. 4 shows a schematic block diagram of an example of the display service device. As shown in fig. 4, the display service apparatus 400 includes a calling module 410 for calling, in response to a display instruction, a function library of the display server to execute functions corresponding to the function libraries, where each of the function libraries provides a set of application programming interfaces and is used to implement one function related to display, and the function library includes: the function library is used for realizing display control, is used for realizing memory management and is used for realizing composite rendering.
Wherein, the function library for realizing the display control comprises interfaces for realizing the following functions: initializing display equipment, releasing the initialization, acquiring display control information of the display equipment, setting the display control information of the display equipment, creating a window layer, releasing the window layer, acquiring window layer information, setting the window layer information, and submitting a display refreshing request. The function library for realizing the memory management comprises interfaces for realizing the following functions: and (3) creating a cache, releasing an interface, mapping the cache, and canceling the mapping. The function library for implementing the composite rendering includes interfaces for implementing the following functions: and initializing synthesis hardware, releasing the initialization, synthesizing layers and filling the layers.
According to an embodiment of the present invention, there is provided a terminal device. Fig. 5 shows a schematic block diagram of an example of the terminal device. As shown in fig. 5, the example terminal apparatus 500 includes: a display server 510 including function libraries to perform functions corresponding to the function libraries, each of the function libraries providing a set of application programming interfaces and for implementing one function related to a display, the function libraries comprising: the function library is used for realizing display control, is used for realizing memory management, and is used for realizing composite rendering; the processor 520 runs the display server to perform the display service method as described above.
Wherein the terminal device may be one of: computers, mobile phones, tablets, notebook computers.
According to an embodiment of the present invention, there is provided a computer-readable medium having stored thereon an operating system including a display server containing function libraries to perform functions corresponding to the function libraries, each of the function libraries providing a set of application programming interfaces and for implementing one function related to display, the function libraries including: the function library is used for realizing display control, is used for realizing memory management and is used for realizing composite rendering.
Regarding the display service apparatus and the terminal device, portions of the computer-readable medium not described in detail, reference may be made to the above detailed description regarding the display service method.
The method of the present invention may be performed in a computing device. The computing device may be any device having storage and computing capabilities, and may be implemented, for example, as a server, a workstation, or the like, or may be implemented as a personal configured computer such as a desktop computer, a notebook computer, or may be implemented as a terminal device such as a mobile phone, a tablet computer, an intelligent wearable device, or an internet of things device, but is not limited thereto.
FIG. 6 shows a schematic diagram of a computing device 600 according to one embodiment of the invention. It should be noted that the computing device 600 shown in fig. 6 is only an example, and in practice, the computing device used to implement the method of the present invention may be any type of device, and the hardware configuration of the computing device may be the same as the computing device shown in fig. 6 or may be different from the computing device shown in fig. 6. The hardware components of the computing device used in practice to implement the methods of the present invention may be added or subtracted from the hardware components of the computing device 600 shown in fig. 6. The invention does not limit the specific hardware configuration of the computing device.
As shown in fig. 6, the computing device 600 may include: processor 610, memory 620, input/output interface 630, communication interface 640, and bus 650. Wherein processor 610, memory 620, input/output interface 630, and communication interface 640 enable communication connections between each other within a computing device via bus 650.
The processor 610 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an Application SPECIFIC INTEGRATED Circuit (ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 620 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage, dynamic storage, etc. Memory 620 may store an operating system and other application programs, and when the technical solutions provided by the embodiments of the present specification are implemented in software or firmware, relevant program codes are stored in memory 620 and invoked for execution by processor 610.
The input/output interface 630 is used for connecting with an input/output module to realize information input and output. The input/output modules may be configured as components in a computing device (not shown) or may be external to the computing device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
The communication interface 640 is used to connect communication modules (not shown) to enable communication interactions of the present computing device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 650 includes a path to transfer information between various components of the computing device, such as processor 610, memory 620, input/output interface 630, and communication interface 640.
It should be noted that although the above-described computing device only shows processor 610, memory 620, input/output interface 630, communication interface 640, and bus 650, in particular implementations, the computing device may also include other components necessary to achieve proper functioning. Moreover, those skilled in the art will appreciate that the computing devices described above may include only the components necessary to implement the embodiments of the present description, and not all of the components shown in the figures.
Embodiments of the present invention also provide a non-transitory readable storage medium storing instructions for causing the computing device to perform a method according to embodiments of the present invention. The readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be any method or technology for information storage. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of readable storage media include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage, and the like.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with examples of the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It should be appreciated that the teachings of the present invention as described herein may be implemented in a variety of programming languages and that the foregoing descriptions of specific languages are provided for disclosure of preferred embodiments of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination may be employed to combine all features disclosed in this specification (including the accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, unless at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.
Claims (10)
1. A display service method performed by a display server, comprising:
In response to a display instruction, invoking a function library of the display server to execute functions corresponding to the function libraries, each of the function libraries providing a set of application programming interfaces and being for implementing a function related to a display, the function library comprising:
The function library is used for realizing display control, is used for realizing memory management and is used for realizing composite rendering.
2. The display service method of claim 1, wherein the function library for implementing display control includes an interface implementing the following functions: initializing display equipment, releasing the initialization, acquiring display control information of the display equipment, setting the display control information of the display equipment, creating a window layer, releasing the window layer, acquiring window layer information, setting the window layer information, and submitting a display refreshing request;
The function library for realizing the memory management comprises interfaces for realizing the following functions: the method comprises the steps of creating a cache, releasing an interface, mapping the cache, and canceling the mapping;
The function library for implementing the composite rendering includes interfaces for implementing the following functions: and initializing synthesis hardware, releasing the initialization, synthesizing layers and filling the layers.
3. The display service method of claim 1, the function library further comprising:
The function library is used for realizing window management and animation special effects.
4. A display service method according to claim 3, said function library for implementing window management comprising interfaces for implementing the following functions: window stretching, maximizing, minimizing, closing, interaction between windows, the function library for realizing animated special effects comprises interfaces for realizing the following functions: window switching effects, window shading effects, window opening and closing effects, window maximizing and minimizing effects, window multi-task visual effects.
5. A display service device, located in a display server, comprising:
A calling module, configured to respond to a display instruction, call a function library of a display server, so as to execute functions corresponding to the function libraries, where each function library in the function libraries provides a set of application programming interfaces, and is configured to implement a function related to display, and the function library includes:
The function library is used for realizing display control, is used for realizing memory management and is used for realizing composite rendering.
6. The display service device of claim 5, wherein the function library for implementing display control comprises interfaces implementing functions of: initializing display equipment, releasing the initialization, acquiring display control information of the display equipment, setting the display control information of the display equipment, creating a window layer, releasing the window layer, acquiring window layer information, setting the window layer information, and submitting a display refreshing request;
The function library for realizing the memory management comprises interfaces for realizing the following functions: the method comprises the steps of creating a cache, releasing an interface, mapping the cache, and canceling the mapping;
The function library for implementing the composite rendering includes interfaces for implementing the following functions: and initializing synthesis hardware, releasing the initialization, synthesizing layers and filling the layers.
7. A terminal device, comprising:
a display server, the display server comprising: a set of application programming interfaces, wherein each application programming interface is configured to implement a fixed function associated with a display, the set of application programming interfaces comprising: the system comprises an application programming interface for realizing composite rendering, an application programming interface for realizing memory management and an application programming interface for realizing display control;
A processor to run the display server to perform the display service method of any one of claims 1-4.
8. The terminal device of claim 7, wherein the terminal device is one of: computers, mobile phones, tablets, notebook computers.
9. A computer readable medium having an operating system stored thereon, the operating system comprising a display server, the display server comprising: a set of application programming interfaces, wherein each application programming interface is configured to implement a fixed function associated with a display, the set of application programming interfaces comprising: the system comprises an application programming interface for realizing composite rendering, an application programming interface for realizing memory management and an application programming interface for realizing display control.
10. A computer readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the display service method of any of claims 1-4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410361835.3A CN118193107A (en) | 2024-03-27 | 2024-03-27 | Display service method and device, terminal equipment and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410361835.3A CN118193107A (en) | 2024-03-27 | 2024-03-27 | Display service method and device, terminal equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118193107A true CN118193107A (en) | 2024-06-14 |
Family
ID=91413483
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410361835.3A Pending CN118193107A (en) | 2024-03-27 | 2024-03-27 | Display service method and device, terminal equipment and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118193107A (en) |
-
2024
- 2024-03-27 CN CN202410361835.3A patent/CN118193107A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11164280B2 (en) | Graphics layer processing in a multiple operating systems framework | |
| US10074206B1 (en) | Network-optimized graphics library for virtualized graphics processing | |
| US8675000B2 (en) | Command buffers for web-based graphics rendering | |
| CN108563517B (en) | Calling method and device of system interface | |
| US9830176B2 (en) | Methods, systems, and media for binary compatible graphics support in mobile operating systems | |
| US20190087212A1 (en) | Android simulator and method for implementing android simulator | |
| CN112579254B (en) | Simulation method and device of graphic processor, electronic equipment and storage medium | |
| EP4002121A1 (en) | Middleware interface and middleware interface generator | |
| JP2006190281A (en) | System and method for virtualizing graphic subsystem | |
| CN112199087B (en) | Configuration method, device and equipment of application development environment and storage medium | |
| JP5281660B2 (en) | Shader-based extension for declarative presentation framework | |
| CN114972607B (en) | Data transmission method, device and medium for accelerating image display | |
| CN117170883B (en) | Rendering and display methods, devices, equipment and storage media | |
| US9153193B2 (en) | Primitive rendering using a single primitive type | |
| CN108376066B (en) | Code processing device and code processing method | |
| CN109697102A (en) | A kind of method and device for realizing virtual machine desktop access | |
| US8203567B2 (en) | Graphics processing method and apparatus implementing window system | |
| CN114237826A (en) | High-speed rendering method and device for Android container | |
| CN118193107A (en) | Display service method and device, terminal equipment and computer readable storage medium | |
| CN116503529A (en) | Rendering, 3D picture control method, electronic device, and computer-readable storage medium | |
| CN116909756A (en) | Cross-cloud service methods, devices, electronic devices and storage media | |
| CN116954742A (en) | Video memory monitoring method and device | |
| CN112181504B (en) | Operating system calling method and device | |
| CN114924837A (en) | Data processing method, electronic device and readable storage medium | |
| TWI556167B (en) | System and method for multiple native software applications user interface composition |
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 |