Rounded display method and apparatus for display screen, and device, intelligent automobile cabin and vehicle
By obtaining the rounded user interface picture material and rendering it into the display window using the display algorithm of the open graphics library, combined with hardware layer allocation, the problem of low efficiency and high cost in the mechanical design of the automotive smart cockpit display is solved, and soft vision is achieved Effective and efficient production.
Patent Information
- Application Number
- PCT/CN2023/122445
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2023-09-28
- Publication Date
- 2024-09-26
AI Technical Summary
The mechanical design method of automotive smart cockpit displays is inefficient, has poor flexibility and is costly, resulting in poor user experience and low production efficiency.
By obtaining the rounded user interface picture material, using the user interface display algorithm of the open graphics library to render it into the display window, and allocating hardware layers through the display driver, the display can achieve rounded display, reducing costs and improving efficiency. improve production efficiency.
It achieves soft visual effects, reduces display usage costs, improves production efficiency, improves user experience, and adapts to the flexibility of user interface design changes.
Smart Images

Figure CN2023122445_26092024_PF_FP
Abstract
Description
Display screen rounded corner display method, device, equipment, automobile intelligent cockpit and vehicle
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 20, 2023, with application number 202310279771.8, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of vehicle technology, for example, to methods, devices, equipment for displaying rounded corners on a display screen, an intelligent car cockpit, and a vehicle. Background Art
[0003] With the rapid development of my country's automobile industry and the improvement of people's living standards, the number of cars owned by households has increased rapidly, and cars have gradually become one of the indispensable means of transportation in people's lives.
[0004] When designing the mold for smart cockpit displays, they are typically square. This visual area is aesthetically pleasing and results in a poor user experience. To improve the user experience, the square display can be replaced with a rounded-corner display later in the design process. However, this is costly. Alternatively, mechanical design methods can be used to achieve rounded corners in the later stages of display development. However, this method is inefficient, inflexible, and expensive.
[0005] Summary of the Invention
[0006] The present application provides a method, device, equipment, intelligent cockpit and vehicle for displaying rounded corners on a display screen, which solves the problems of low efficiency, poor flexibility and high cost of mechanical design methods in related technologies.
[0007] According to one aspect of the present application, a method for displaying rounded corners on a display screen is provided, comprising:
[0008] Obtaining a user interface image material, wherein the user interface image material is a rounded-corner shape;
[0009] The user interface display algorithm based on the open graphics library renders the user interface image material into the display window;
[0010] The display window is allocated with a hardware layer through a display driver so that the user interface image material is displayed on a display screen.
[0011] According to another aspect of the present application, a rounded corner display device for a display screen is provided, comprising:
[0012] An acquisition module is configured to acquire a user interface image material, wherein the user interface image material is a rounded-corner shape;
[0013] A rendering module, configured to render the user interface image material into a display window using a user interface display algorithm based on an open graphics library;
[0014] The display module is configured to perform hardware layer allocation on the display window through a display driver, so that the user interface image material is displayed on the display screen.
[0015] According to another aspect of the present application, an electronic device is provided, the electronic device including: at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for displaying rounded corners on a display screen described in any embodiment of the present application.
[0018] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for displaying rounded corners of a display screen described in any embodiment of the present application when executed.
[0019] According to another aspect of the present application, a smart car cockpit is provided, which includes the electronic device as described in the embodiments of the present application.
[0020] According to another aspect of the present application, a vehicle is provided, wherein the vehicle is provided with the automobile intelligent cockpit as described in the embodiment of the present application.
[0021] The technical solution of the embodiment of the present application obtains user interface picture material, which is rounded; a user interface display algorithm based on an open graphics library renders the user interface picture material into a display window; and a display driver allocates hardware layers to the display window so that the user interface picture material is displayed on the display screen. This solves the problems of low efficiency, poor flexibility and high cost of existing mechanical design methods, reduces the cost of using the display screen, improves production efficiency, and is conducive to the effect of promoting its use. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] FIG1 is a schematic diagram of a flow chart of a method for displaying rounded corners on a display screen provided in Example 1 of the present application;
[0023] FIG2 is a schematic diagram showing a comparison of display effects of a display screen provided in Example 1 of the present application;
[0024] FIG3 is a schematic diagram of a user interface image material provided in Example 1 of the present application;
[0025] FIG4 is a schematic diagram of a flow chart of a method for displaying rounded corners on a display screen provided in Example 2 of the present application;
[0026] FIG5 is a flowchart illustrating a display rendering implementation in a display screen rounded corner display method provided in the second embodiment of the present application;
[0027] FIG6 is a schematic diagram of a display window layout provided in Example 2 of the present application;
[0028] FIG7 is a flowchart illustrating a display rendering implementation in a display screen rounded corner display method provided by an embodiment of the present application;
[0029] FIG8 is a schematic structural diagram of a rounded corner display device for a display screen provided in Example 3 of the present application;
[0030] FIG9 is a schematic structural diagram of an electronic device using a method for displaying rounded corners on a display screen according to an embodiment of the present application;
[0031] FIG10 is a schematic structural diagram of an intelligent vehicle cockpit provided in Example 5 of the present application;
[0032] FIG11 is a schematic structural diagram of a vehicle provided in Example 6 of the present application. DETAILED DESCRIPTION
[0033] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0034] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] The modifications of "one" and "multiple" mentioned in this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0036] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0037] Example 1
[0038] Figure 1 is a flow chart of a method for displaying rounded corners on a display screen provided in Example 1 of the present application. The method can be applied to the case of displaying rounded corners on a display screen in a smart cockpit of a car. The method can be executed by a rounded corner display device of the display screen, wherein the device can be implemented by software and / or hardware and is generally integrated on an independent device. In this embodiment, the electronic device can be a control device for the smart cockpit of a car.
[0039] As shown in FIG1 , a method for displaying rounded corners on a display screen provided in the first embodiment of the present application includes the following steps:
[0040] S110: Acquire a user interface image material, where the user interface image material is in a rounded shape.
[0041] The user interface image material can be an image material with rounded corners provided by the user interface designer. For example, the user interface image material can be a boot animation material with rounded corners, or a background material with rounded corners that is adapted to the display specifications.
[0042] In this embodiment, there is no specific limitation on the method for obtaining the user interface image material. One feasible method is to select a user image material with rounded corners from a user interface (UI) material library. The UI material library may include materials with rounded corners provided by UI designers.
[0043] S120 : Rendering the user interface image material into a display window based on an open graphics library user interface display algorithm.
[0044] The display window may be a display window within a display screen on a smart cockpit of a car.
[0045] In this embodiment, a two-dimensional (2D) UI display algorithm based on OpenGL can be used to achieve rapid display of user interface image materials.
[0046] The user interface image material can be displayed and rendered into the display window through the OpenGL ES programming interface, the EGL programming interface, the Quick Unix system graphics framework QNX Screen programming interface, and the main loop function of the user interface display algorithm code. The specific process can be referred to in Example 2 and will not be described in detail here.
[0047] S130: Allocate a hardware layer to the display window through a display driver, so that the user interface image material is displayed on a display screen.
[0048] The display screen may be a display screen on a car's smart cockpit. The display screen may include an instrument display screen and a central control display screen, etc. The display screen is square or rectangular. There is no restriction on the specifications and type of the display screen.
[0049] In this embodiment, a hardware layer can be allocated through the display driver to achieve the binding of user interface image materials with the car's smart cockpit display screen, so that the user interface image materials do not depend on other display content on the display screen and will not interfere with other display content on the display screen.
[0050] When performing hardware layer allocation on the display window where the user interface image material is located, the hardware layer allocation strategy in the display driver may be used.
[0051] A method for displaying rounded corners on a display screen is provided in Example 1 of the present application. The method first obtains a user interface image material, which is rounded; then, based on a user interface display algorithm of an open graphics library, the user interface image material is rendered into a display window; and finally, a hardware layer is allocated to the display window through a display driver so that the user interface image material is displayed on the display screen. The above method realizes the rounded corner display of the display screen through software, which can produce a relatively soft visual effect. It does not require cutting the original shape and size of the display screen, is easy to implement, not only reduces the cost of using the display screen, but also improves production efficiency, and is also conducive to promotion and use.
[0052] Figure 2 is a schematic diagram comparing the display effects of the display screen provided in Example 1 of the present application. As shown in Figure 2, the left side of Figure 2 is the original display state of the display screen, which is a rectangular display; the right side of Figure 2 is the display state of the display screen after using the display screen rounded corner display method provided in Example 1 of the present application, which is a rounded corner display.
[0053] The middle area of the user interface picture material is completely transparent, the corners of the user interface picture material are rounded and the color of the corners is the same as the color of the edge of the display screen, and the resolution of the user interface picture material matches the actual resolution of the display screen.
[0054] User interface image materials must meet the following conditions:
[0055] 1. The middle area is fully transparent;
[0056] 2. The corners are rounded and the color is close to the edge of the display;
[0057] 3. The resolution matches the actual resolution of the display.
[0058] FIG3 is a schematic diagram of the user interface image material provided in the first embodiment of the present application. As shown in FIG3 , the four corners of the user interface image material are rounded.
[0059] Example 2
[0060] Figure 4 is a flow chart of a method for displaying rounded corners on a display screen, provided in Example 2 of this application. This Example 2 is described based on the above-mentioned example. In this example, an open graphics library-based user interface display algorithm is used to render the user interface image material into a display window. For details not yet fully detailed in this example, please refer to Example 1.
[0061] As shown in FIG4 , a method for displaying rounded corners on a display screen provided in the second embodiment of the present application includes the following steps:
[0062] S210: Acquire a user interface image material, where the user interface image material is in a rounded shape.
[0063] S220 : Rendering the user interface image material into a display window based on an open graphics library user interface display algorithm.
[0064] The user interface display algorithm based on the open graphics library renders the user interface image material into the display window, which may include the following steps:
[0065] S2201, initializing the open graphics library programming interface, the EGL programming interface and the display driver interface of the graphics processing system;
[0066] The programming interface for initializing the open graphics library is the OpenGL ES programming interface; the intermediate interface layer between the OpenGL ES rendering interface and the local window system is the EGL programming interface; and the display driver interface of the graphics processing system is the QNX Screen programming interface.
[0067] S2202: After entering the main loop function of the user interface display algorithm code, determine whether display rendering is enabled;
[0068] S2203: If yes, display and render the user interface image material based on the open graphics library programming interface and the EGL programming interface;
[0069] S2204, determining whether the last display rendering state was on;
[0070] S2205: If not, open the display window, and present the rendered user interface image material in the display window through the display driver interface of the graphics processing system.
[0071] Displaying and rendering the user interface image material into the display window also includes: if it is determined that display rendering is not turned on, determining whether the last display rendering status was turned on; if not, delaying the preset time and entering the code main loop function again; if so, clearing the content in the display window, closing the display window, and re-entering the code main loop function.
[0072] FIG5 is a flowchart of display rendering implementation in a display screen rounded corner display method provided in the second embodiment of the present application. As shown in FIG5 , display rendering includes the following steps:
[0073] Step 1: Determine whether the initialization is successful.
[0074] Judging whether the initialization is successful is to determine whether the program programming interface of the open graphics library, the EGL program programming interface and the display driver interface of the graphics processing system are initialized successfully.
[0075] If the initialization is successful, proceed to step 2; if the initialization fails, end the process.
[0076] Step 2: Enter the main code loop function
[0077] Entering the main code loop function means entering the main code loop function of the user interface display algorithm.
[0078] Step 3: Determine whether display rendering is enabled.
[0079] If display rendering is enabled, proceed to step 4.1; if display rendering is not enabled, proceed to step 4.2.
[0080] Step 4.1: Display content rendering.
[0081] Display content rendering is to display and render the user interface image material.
[0082] Step 4.2: Determine whether the last display rendering status was on.
[0083] If the rendering status was not displayed last time, the process returns to step 2 after a delay of 100 milliseconds to continue execution; if the rendering status was displayed last time, the process proceeds to step 5.
[0084] Step 5. Clear the display window contents.
[0085] Clearing the display window content means clearing the user interface image material in the display window.
[0086] Perform step 6 after performing step 4.1.
[0087] Step 6: Determine whether the last display rendering status was on.
[0088] If the rendering status was displayed as on last time, then return to step 2; if the rendering status was displayed as not on last time, then execute step 7.
[0089] Step 7: Open the display window and display the content on the screen.
[0090] Presenting the display content on the display screen can be understood as presenting the user interface image material in the display window.
[0091] S230: Perform hardware layer allocation on the display window according to the hardware layer allocation strategy in the display driver, so that the user interface image material is displayed on the display screen.
[0092] Hardware layer assignment strategies include:
[0093] If there is only one software display window in the same hardware layer of different hardware layers, the hardware layer where the user interface picture material display window is located is set to the top layer and supports transparent display;
[0094] If there are multiple software display windows in the same hardware layer in different hardware layers, and the multiple software display windows have different transparency requirements, the user interface picture material display window shall be independently set in a hardware layer, and the hardware layer where the user interface picture material display window is located shall be set at the top layer and support transparent display.
[0095] Exemplarily, as shown in FIG6 , FIG6 is a schematic diagram of the display window layout provided in Example 2 of the present application. On the instrument display screen, the instrument software window and the rounded corner display software window 1 are set in the hardware layer one, wherein the rounded corner display software window 1 supports transparent display, and the hardware layer one is the top hardware layer in the instrument display screen; the navigation software window is set on the hardware layer two. On the central control display screen, the rounded corner display software window 2 is independently set in the hardware layer three, wherein the rounded corner display software window 2 supports transparent display, and the hardware layer 3 is the top hardware layer in the central control screen; the hardware layer four is provided with the Around View Monitor (AVM) & Automatic Parking Assist (APA) software window and the touch software window, wherein the AVM & APA software windows have different requirements for transparency; the hardware layer five is provided with the Android software window, and the hardware layer five is at the bottom layer.
[0096] A method for displaying rounded corners on a display screen is provided in Example 2 of the present application. This method describes the process of rendering the user interface image material into a display window using an open graphics library-based user interface display algorithm, and the process of allocating hardware layers to the display window via a display driver. This method is highly flexible and can efficiently adapt to changing user interface design requirements. It is also highly efficient and can quickly meet project delivery requirements. It is also low-cost and can improve product competitiveness. Furthermore, this method can iterate desired display styles at any time through accompanying software upgrades.
[0097] The specific process of displaying and rendering the user interface picture material may include: calling the program programming interface of the open graphics library, parsing the user interface picture material through the vertex shader, rasterizer and fragment shader to obtain the vertex coordinate data and pixel color data of the user interface picture material; calling the EGL program programming interface, writing the vertex coordinate data and the pixel color data into the rendering buffer for caching.
[0098] Figure 7 is a flow chart of display rendering implementation in a display screen rounded corner display method provided by an embodiment of the present application. As shown in Figure 7, the process includes: drawing the vertex coordinate information and pixel color and other information of the image material parsed by the vertex shader and the fragment shader by calling the interface of the open graphics library OpenGL ES, and writing the final display content data into the rendering buffer created by EGL to store the display content, and finally calling the display driver screen API interface of the QNX system to finally present the display content on the display screen.
[0099] Example 3
[0100] Figure 8 is a structural schematic diagram of a rounded corner display device for a display screen provided in Example 3 of the present application. The device can be used for rounded corner display on a display screen in a car's smart cockpit. The device can be implemented by software and / or hardware and is generally integrated into an electronic device, which can be a control device for the car's smart cockpit.
[0101] As shown in FIG8 , the apparatus includes: an acquisition module 110 , a rendering module 120 and a display module 130 .
[0102] The acquisition module 110 is configured to acquire user interface picture material, which is a rounded-corner shape; the rendering module 120 is configured to render the user interface picture material into a display window using a user interface display algorithm based on an open graphics library; the display module 130 is configured to allocate hardware layers to the display window through a display driver so that the user interface picture material is displayed on the display screen.
[0103] In this embodiment, the device first obtains the user interface picture material through the acquisition module 110, and the user interface picture material is rounded; then the user interface picture material is rendered into the display window through the rendering module 120 based on the user interface display algorithm of the open graphics library; finally, the display module 130 allocates the hardware layer to the display window through the display driver, so that the user interface picture material is displayed on the display screen.
[0104] This embodiment provides a rounded corner display device for a display screen, which can produce a relatively soft visual effect. It does not require cutting the original shape and size of the display screen and is easy to implement. It not only reduces the cost of using the display screen, but also improves production efficiency and is conducive to promotion and use.
[0105] The middle area of the user interface picture material is completely transparent, the corners of the user interface picture material are rounded and the color of the corners is the same as the color of the edge of the display screen, and the resolution of the user interface picture material matches the actual resolution of the display screen.
[0106] The rendering module 120 is configured to: initialize the programming interface of the open graphics library, the EGL programming interface and the display driver interface of the graphics processing system; after entering the main loop function of the code of the user interface display algorithm, determine whether the display rendering is turned on; if so, display the user interface picture material based on the programming interface of the open graphics library and the EGL programming interface; determine whether the last display rendering status was turned on; if not, open the display window, and present the rendered user interface picture material in the display window through the display driver interface of the graphics processing system.
[0107] Based on the above embodiment, the rendering module 120 is further configured to: if it is determined that display rendering is not turned on, determine whether the last display rendering status was turned on; if not, enter the code main loop function again after a preset time delay; if so, clear the content in the display window, close the display window, and re-enter the code main loop function.
[0108] The display module 130 is configured to allocate hardware layers to the display window according to a hardware layer allocation strategy in a display driver.
[0109] Based on the above technical solution, the hardware layer allocation strategy includes:
[0110] If there is only one software display window in the same hardware layer of different hardware layers, the hardware layer where the user interface picture material display window is located is set to the top layer and supports transparent display;
[0111] If there are multiple software display windows in the same hardware layer in different hardware layers, and the multiple software display windows have different transparency requirements, the user interface picture material display window shall be independently set in a hardware layer, and the hardware layer where the user interface picture material display window is located shall be set at the top layer and support transparent display.
[0112] The rounded corner display device of the above-mentioned display screen can execute the rounded corner display method of the display screen provided in any embodiment of the present application, and has the functional modules and effects corresponding to the execution method.
[0113] Example 4
[0114] FIG9 shows a schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application. The electronic device is intended to represent a control device for a smart car cockpit. The components shown herein, their connections and relationships, and their functions are provided for illustrative purposes only and are not intended to limit the implementation of the present application as described and / or claimed herein.
[0115] As shown in FIG9 , the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 and a random access memory (RAM) 13, that is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the ROM 12 or the computer program loaded from the storage unit 18 into the RAM 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0116] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0117] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the method for displaying rounded corners on a display screen.
[0118] In some embodiments, the method for displaying rounded corners on a display screen may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps in the method for displaying rounded corners on a display screen described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for displaying rounded corners on a display screen by any other appropriate means (e.g., by means of firmware).
[0119] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), system on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0121] In the context of the present application, computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage medium can include but is not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, RAM, ROM, erasable programmable read-only memory (EPROM) or flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device or any suitable combination of the foregoing.
[0122] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0123] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0124] A computing system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, establishing a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This is a host product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and virtual private server (VPS) services.
[0125] Example 5
[0126] Figure 10 is a structural schematic diagram of an automobile intelligent cockpit provided in Example 5 of the present application. As shown in Figure 10, the automobile intelligent cockpit includes the electronic equipment provided in Example 4 of the present application. The automobile intelligent cockpit can execute the rounded corner display method of the display screen provided in any embodiment of the present application, and has the functional modules and effects corresponding to the execution method.
[0127] Example 6
[0128] Figure 11 is a structural schematic diagram of a vehicle provided in Example 6 of the present application. As shown in Figure 11, the vehicle is equipped with the automobile intelligent cockpit provided in Example 5 of the present application. The vehicle can execute the rounded corner display method of the display screen provided in any embodiment of the present application, and has the functional modules and effects corresponding to the execution method.
[0129] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of this application can be achieved. This is not limited herein.
Claims
1. A method for displaying rounded corners on a display screen, comprising: Obtaining a user interface image material, wherein the user interface image material is a rounded-corner shape; The user interface display algorithm based on the open graphics library renders the user interface image material into the display window; The display window is assigned a hardware layer through a display driver so that the user interface image material is displayed on the display screen.
2. The method according to claim 1, wherein: The middle area of the user interface picture material is completely transparent, the corners of the user interface picture material are rounded and the color of the corners is the same as the color of the edge of the display screen, and the resolution of the user interface picture material matches the actual resolution of the display screen.
3. The method according to claim 1 or 2, wherein: The user interface display algorithm based on the open graphics library renders the user interface image material into the display window, including: Initialize the open graphics library programming interface, EGL programming interface and the display driver interface of the graphics processing system; After entering the main loop function of the user interface display algorithm code, determine whether display rendering is turned on; If so, display and render the user interface image material based on the program programming interface of the open graphics library and the EGL program programming interface; Determine whether the last display rendering status was on; If not, then a display window is opened, and the rendered user interface image material is presented in the display window through the display driver interface of the graphics processing system.
4. The method according to claim 3, further comprising: If it is determined that display rendering is not turned on, then determine whether the last display rendering state was turned on; If not, the code main loop function will be entered again after a preset delay; If so, clear the content in the display window, close the display window, and re-enter the main loop function of the code.
5. The method according to claim 1 or 2, wherein: Allocating a hardware layer to the display window through a display driver includes: The hardware layer is allocated to the display window according to the hardware layer allocation strategy in the display driver.
6. The method according to claim 5, wherein: The hardware layer allocation strategy includes: If there is only one software display window in the same hardware layer of different hardware layers, The hardware layer where the user interface picture material display window is located is set to the top layer and supports transparent display; If there are multiple software display windows in the same hardware layer in different hardware layers, and the multiple software display windows have different transparency requirements, the user interface picture material display window shall be independently set in a hardware layer, and the hardware layer where the user interface picture material display window is located shall be set at the top layer and support transparent display.
7. A rounded corner display device for a display screen, comprising: An acquisition module, configured to acquire a user interface picture material, wherein the user interface picture material is a rounded-corner shape; A rendering module, configured to render the user interface image material into a display window using a user interface display algorithm based on an open graphics library; The display module is configured to allocate hardware layers to the display window through a display driver so that the user interface image material is displayed on the display screen.
8. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for displaying rounded corners of a display screen according to any one of claims 1 to 6.
9. A computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a processor to implement the method for displaying rounded corners of a display screen according to any one of claims 1 to 6 when executed.
10. An automobile intelligent cockpit, comprising the electronic device as claimed in claim 8.
11. A vehicle provided with the intelligent automobile cockpit as claimed in claim 10.
Citation Information
Patent Citations
Display screen fillet display method, device and equipment, automobile intelligent cabin and vehicle
CN116400917A
Image rendering method and apparatus, and intelligent wearable device
CN108648249A
Method and device for processing layers
CN113412470A
Color film substrate, display screen and terminal
CN115236892A
Scaling and feature retention in graphical elements defined based on functions
US20180300852A1
