Display switching control method and system, electronic device and storage medium

By using a dual-frame buffer architecture and the system bootloader's boot process, dual buffers and service processes are created at the kernel and user levels, solving the problems of wasted resources for high-definition images and interruptions during resolution switching, thus achieving real-time changes in display resolution and resource savings.

CN114511683BActive Publication Date: 2025-12-19BEIJING BOE OPTOELECTRONCIS TECH CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011164385.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-27
Publication Date
2025-12-19
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

Existing technologies result in significant waste of high-definition image resources during display, and require process restarts to switch resolutions, leading to display interruptions and preventing real-time switching.

Method used

It adopts a dual-frame buffer architecture, creating and initializing two buffers at the kernel level, establishing corresponding service processes at the user level, and implementing image rendering and display switching through switching instructions. The system bootloader creates dual buffers at boot time and switches the display when the application is triggered.

Benefits of technology

It enables real-time switching of display resolution, reduces resource waste, ensures smooth screen display, and switches resolutions without interrupting the display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114511683B_ABST
    Figure CN114511683B_ABST
Patent Text Reader

Abstract

The application discloses a display switching control method and system, an electronic device and a storage medium. The display switching control method comprises the following steps: establishing a first cache and a second cache in a kernel layer and initializing the first cache; establishing a first service process and a second service process in a user layer, controlling the first service process to render a first image according to display parameters of the first cache and transmit the first image to a display screen through the first cache for display; and initializing the second cache according to a switching instruction, controlling the second service process to render a second image according to display parameters of the control instruction and transmit the second image to the display screen through the second cache to make the display screen switch to display the second image. Meanwhile, two frame caches are created in the kernel layer, and service processes corresponding to the two frame caches are established in the user layer. When the second service process is started, the system performs double-thread operation, so that the first image and the second image can be seamlessly switched.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of display control, and more particularly, to a display switching control method and system, an electronic device, and a storage medium. BACKGROUND

[0002] In the prior art, electronic products have increasingly high display clarity, and a series of high-definition displays such as 4k and 8k have emerged in succession. In particular, high-definition pictures can provide a good experience in virtual reality technology (VR), but not all pictures need to be displayed at such a high level of clarity. Some pictures, such as static scene pictures, do not need to be supported by a high resolution. Therefore, displaying all pictures at the highest standard will result in resource and power consumption waste. SUMMARY

[0003] The present application provides a display switching control method and system, an electronic device, and a storage medium.

[0004] The display switching control method provided by the present application includes: establishing a first cache and a second cache in a kernel layer and initializing the first cache; establishing a first service process and a second service process in a user layer, controlling the first service process to render a first image according to display parameters of the first cache and transmit the first image to a display screen for display through the first cache; and initializing the second cache according to a switching instruction, controlling the second service process to render a second image according to display parameters of the control instruction and transmit the second image to the display screen through the second cache to make the display screen switch to display the second image.

[0005] In some embodiments, the establishing a first service process and a second service process in a user layer, controlling the first service process to render a first image according to display parameters of the first cache and transmit the first image to a display screen for display through the first cache includes: starting a process management center; controlling the process management center to create the first service process and the second service process; and controlling the process management center to create a broadcast communication interface process to obtain the display parameters.

[0006] In some embodiments, the establishing a first service process and a second service process in a user layer, controlling the first service process to render a first image according to display parameters of the first cache and transmit the first image to a display screen for display through the first cache includes: controlling the first service process to start a surfaceflinger process, an OpenGL process, and a rendering service process in sequence; and rendering the first image according to display parameters of the surfaceflinger process, the OpenGL process, the rendering service process, and the first cache.

[0007] In some embodiments, the display switching control method comprises: determining a trigger event according to application requirements, the trigger event comprising attribute values and display parameters, the attribute values of the trigger event corresponding to an activated service item; and generating the switching instruction according to the trigger event.

[0008] In some embodiments, initializing the second buffer according to the switching instruction and controlling the second service process to render a second image according to display parameters of the second buffer and transmit the second image to the display screen through the second buffer to switch the display screen to display the second image comprises: transferring rendering work of a back buffer in the first buffer to a back buffer in the second buffer for rendering according to the switching instruction; and switching a frame buffer address to the second buffer and sending the image rendered by the back buffer in the second buffer to a front buffer in the second buffer.

[0009] In some embodiments, initializing the second buffer according to the switching instruction and controlling the second service process to render a second image according to display parameters of the second buffer and transmit the second image to the display screen through the second buffer to switch the display screen to display the second image comprises: reinitializing the display screen according to the switching instruction; and transmitting the second image in the front buffer of the second buffer to the display screen for display.

[0010] In some embodiments, the display switching control method comprises: controlling the display screen to display the first image according to a first clock unit signal; and switching the first clock unit signal to a second clock unit signal according to the switching instruction to control the display screen to display the second image according to the second clock unit signal.

[0011] The display switching control system provided by the embodiments of the present application comprises an initialization module, a first control module and a second control module, the initialization module is configured to establish a first buffer and a second buffer at a kernel layer and initialize the first buffer; the first control module is configured to establish a first service process and a second service process at a user layer, control the first service process to render a first image according to display parameters of the first buffer and transmit the first image to a display screen through the first buffer for display; and the second control module is configured to initialize the second buffer according to a switching instruction, control the second service process to render a second image according to display parameters of the switching instruction and transmit the second image to the display screen through the second buffer to switch the display screen to display the second image.

[0012] The electronic device provided by the embodiments of the present application comprises a processor, a memory and a computer program stored on the memory, the computer program is executed by the processor to implement the display switching control method of any one of the above embodiments.

[0013] The display switching control method of the embodiment of the present application, the display switching control system, the electronic device and the storage medium, by modifying the boot process of the system boot program, when starting, the system boot program will be guided, and two frame buffers are created in the kernel layer, and the first cache is initialized as the main frame buffer, and then the service process corresponding to the two frame buffers is established in the user layer, wherein the first service process starts with the system, the second service process starts when the application triggers the change to generate the switching instruction, initializes the second cache and renders the second image, and after the second image is rendered, the display screen is controlled to switch to display the second image.

[0014] The display switching control method, the display switching control system, the electronic device and the storage medium of the embodiment of the present application, by modifying the boot process of the system boot program, when starting, the system boot program will be guided, and two frame buffers are created in the kernel layer, and the first cache is initialized as the main frame buffer, and then the service process corresponding to the two frame buffers is established in the user layer, wherein the first service process starts with the system, the second service process starts when the application triggers the change to generate the switching instruction, initializes the second cache and renders the second image, and after the second image is rendered, the display screen is controlled to switch to display the second image.

[0015] Additional aspects and advantages of the embodiments of the present application will be in part apparent and in part pointed out hereinafter in the description of the embodiments of the present application. BRIEF DESCRIPTION OF DRAWINGS

[0016] The above and / or additional aspects and advantages of the present application will become apparent and be readily appreciated from the description of the embodiments, taken in conjunction with the following drawings in which:

[0017] Figure 1 is a flowchart of the display switching control method of the embodiment of the present application.

[0018] Figure 2 is a module diagram of the display switching system of the embodiment of the present application.

[0019] Figure 3 is a normal display flowchart of the embodiment of the present application.

[0020] Figure 4 is a display switching flowchart of the embodiment of the present application.

[0021] Figure 5 is another flowchart of the display switching control method of the embodiment of the present application.

[0022] Figure 6 is still another flowchart of the display switching control method of the embodiment of the present application.

[0023] Figure 7 is still another flowchart of the display switching control method of the embodiment of the present application.

[0024] Figure 8 is still another flowchart of the display switching control method of the embodiment of the present application.

[0025] Figure 9 is another flowchart of a display switching control method according to an embodiment of the present application.

[0026] Figure 10 is another flowchart of a display switching control method according to an embodiment of the present application.

[0027] Figure 11 is a schematic diagram of a module of an electronic device according to an embodiment of the present application.

[0028] Main element symbol explanation:

[0029] Display switching control system 10, initialization module 11, first control module 12, second control module 13, trigger module 14, clock control module 15, electronic device 20, processor 22, memory 24, computer program 242. DETAILED DESCRIPTION

[0030] Embodiments of the present application are described in detail below with reference to the accompanying drawings. Examples of the embodiments are shown in the drawings, in which the same or similar reference numerals are used throughout to designate the same or similar elements or elements having the same or similar functions. The embodiments described below by reference to the drawings are examples only, and are used to explain the present application, and are not to be understood as limiting the present application.

[0031] In a display control scheme based on an Android system, a single frame buffer architecture is usually adopted. After the system is started, a frame buffer is created as a virtual display card at the kernel layer, which is used to provide a window for user layer drawing; after the frame buffer is created, the system starts a user layer process, a thread is arranged by an init process, surfaceflinger and OpenGL are started in sequence to obtain the parameters of the canvas size from the frame buffer and draw on the canvas to realize image rendering, and then the rendered image is transmitted to the display screen through the frame buffer for display. However, such a scheme needs to restart the process, reconfigure the frame buffer and the display screen when the display resolution needs to be switched, which results in that the display system has no display picture for a period of time and cannot realize real-time transformation of the resolution.

[0032] The display switching control method provided by the embodiments of the present application is used for display resolution switching control, realizes real-time transformation of the display resolution by means of double frame buffers, so that the display screen can keep smooth display during display resolution switching, and thus the appropriate resolution can be selected for display according to the picture display requirement, high-definition display is performed when high definition is required, and low-definition display is performed when low definition is required, which can save resources while ensuring normal picture display.

[0033] The display switching control method of the embodiments of the present application can be applied to the display switching control system 10 of the embodiments of the present application, that is, the display switching control system 10 of the embodiments of the present application can adopt the display switching control method of the embodiments of the present application to realize real-time transformation of display resolution.

[0034] In some embodiments, the display switching control method comprises:

[0035] Step S1, establishing a first cache and a second cache in a kernel layer and initializing the first cache;

[0036] Step S3, establishing a first service process and a second service process in a user layer, controlling the first service process to render the first image according to the display parameters of the first cache and transmit the first image to a display screen through the first cache for display; and

[0037] Step S5, initializing the second cache according to the switching instruction, controlling the second service process to render the second image according to the display parameters of the control instruction and transmit the second image to the display screen through the second cache to make the display screen switch to display the second image.

[0038] Correspondingly, the display switching control system 10 comprises an initialization module 11, a first control module 12 and a second control module 13, step S1 can be implemented by the initialization module 11, step S3 can be implemented by the first control module 12, and step S5 can be implemented by the second control module 13. That is, the initialization module 11 can be used to establish a first cache and a second cache in a kernel layer and initialize the first cache. The first control module 12 can be used to establish a first service process and a second service process in a user layer, control the first service process to render the first image according to the display parameters of the first cache and transmit the first image to a display screen through the first cache for display. The second control module 13 is used to initialize the second cache according to the switching instruction, control the second service process to render the second image according to the display parameters of the control instruction and transmit the second image to the display screen through the second cache to make the display screen switch to display the second image.

[0039] In the display switching control method and the display switching control system 10 of the embodiments of the present application, by modifying the booting process of a system bootloader, the system bootloader is booted when starting up, two frame buffers (i.e. the first cache and the second cache) are created in the kernel layer at the same time, the first cache is initialized as a main frame buffer, and then service processes corresponding to the two frame buffers are established in the user layer, wherein the first service process is started with the system, the second service process is started when a switching instruction is triggered by an application to change, the second cache is initialized and the second image is rendered, and after the second image is rendered, the display screen is controlled to switch to display the second image.

[0040] It should be noted that after the first cache and the second cache are established, two kernel addresses are respectively assigned to the two frame buffers, for example, the address of the first cache can be 0x00001e, and the address of the second cache can be 0x00001f.

[0041] Further, when the second service process is started, the system performs double-threaded operation, at this time, the process of initializing the second cache and rendering the second image can be performed in the background, and after the second image is rendered, the display screen configuration is triggered to change to output the second image, so that the first image and the second image can be seamlessly switched. For example, the resolutions of the first image and the second image are different, and the application can trigger a resolution switching instruction, so as to switch the first image displayed on the display screen to the second image to realize real-time transformation of the resolution.

[0042] In some embodiments, step S3 comprises:

[0043] Step S31, starting the process management center; and

[0044] Step S32, controlling the process management center to create a first service process and a second service process; and

[0045] Step S33, controlling the process management center to create a broadcast communication interface process to obtain display parameters.

[0046] Specifically, steps S31, S32 and S33 can be implemented by the first control module 12, that is, the first control module 12 can be used to start the process management center; and to control the process management center to create a first service process and a second service process, and to make the to-be-triggered process run in the background; and to control the process management center to create a broadcast communication interface process to obtain display parameters.

[0047] For the Android system, most of the processes are created by the process management center (Zygote) except for the system boot process, the init process, etc. The process management center is started and the first service process and the second service process are created, wherein the first service process is a normally started service process, and the first service process can be started with the system to realize rendering of the first image together with the first cache; the second service process is a to-be-triggered service process, and the second service process can be started when the application triggers a switching control instruction generated by a corresponding event to realize rendering of the second image together with the second cache.

[0048] In step S33, the communication interface process created is a Socket broadcast communication interface process, which can be used to monitor and report data changes in the interface in real time. After the first service process is started, the display parameters matched by the first cache can be read through the socket broadcast communication interface process.

[0049] In some embodiments, step S3 comprises:

[0050] Step S34, controlling the first service process to start the surfaceflinger process, the OpenGL process and the rendering service process in sequence; and

[0051] Step S35, rendering the first image according to the display parameters of the surfaceflinger process, the OpenGL process, the rendering service process and the first buffer.

[0052] Specifically, step S34 and step S35 can be implemented by the first control module 12, that is, the first control module 12 can be used to control the first service process to start the surfaceflinger process, the OpenGL process and the rendering service process in sequence, and to render the first image according to the display parameters of the first buffer through the surfaceflinger process, the OpenGL process and the rendering service process.

[0053] In this way, the first image can be displayed through the surfaceflinger process to create a texture, through the OpenGL process to loop draw the first image on the surface object, and through the rendering service process to render into the first buffer, so as to realize the display of the first image through the display screen. Specifically, the surfaceflinger process and the OpenGL process are equivalent to the painter and the brush, the canvas of the display system rendering image, and the display parameters can be read from the first display frame in the kernel layer by the Socket broadcast communication interface process to specify the size of the canvas.

[0054] In some embodiments, the display switching control method comprises:

[0055] Step S41, determining a trigger event according to application requirements; and

[0056] Step S42, generating a switching instruction according to the trigger event.

[0057] The trigger event comprises attribute values and display parameters, and the attribute values of the trigger event correspond to the starting service item.

[0058] Specifically, the display switching control system 10 comprises a trigger module 14, and step S41 and step S42 can be implemented by the trigger module 14. That is, the trigger module 14 can be used to determine a trigger event according to application requirements, and to generate a switching instruction according to the trigger event.

[0059] It can be understood that when the user layer application needs to switch resolution, different display parameters can be selected according to the target resolution to be switched to, so that multiple trigger events can be set. For the user layer, different trigger events are configured as different attribute values, which correspond to different service start items. For the kernel layer, different trigger events can correspond to different display parameters. When the user layer confirms the trigger event, the user layer and the kernel layer of the whole system will simultaneously perform trigger event matching and initialization parameters, and generate corresponding switching instructions.

[0060] In some embodiments, step S5 comprises:

[0061] Step S51, according to the switching instruction, the rendering work of the back buffer in the first cache is transferred to the back buffer in the second cache for rendering; and

[0062] Step S52, switching the frame buffer address to the second cache and sending the image rendered by the back buffer in the second cache to the front buffer of the second cache.

[0063] Specifically, step S51 and step S52 can be implemented by the second control module 13. That is, the second control module 13 can be used to transfer the rendering work of the back buffer in the first cache to the back buffer in the second cache for rendering according to the switching instruction, and to switch the main frame buffer address to the second cache and send the image rendered by the back buffer in the second cache to the front buffer of the second cache.

[0064] In step S51, the second control module 13 can start the second service process that has been created and make the second service process run in the background. After the second service process is started, a surfaceflinger process will be newly created, and then the surfaceflinger process will start a new OpenGL. At the same time, the socket broadcast communication interface process reads the display parameters matched by the trigger event and completes the initialization configuration of the canvas size of the OpenGL process. In addition, the socket broadcast communication interface process can pass the trigger event to the kernel layer, and the kernel layer performs trigger event matching to assign the parameters in the trigger event to the frame buffer driver. The frame buffer driver will initialize and configure the second cache to configure a new parameter size window.

[0065] After the bottom layer and the user layer are initialized, the vsync signal is reported, and the system will transfer the rendering work of the back buffer of the first cache to the back buffer of the first cache for rendering.

[0066] In step S52, after the post-buffer rendering of the second buffer is completed, the kernel layer switches the address of the main frame buffer to the address of the second buffer, and sends the rendered second image to the front buffer of the second buffer, and reports a vsync signal to the underlying layer to control the underlying layer to display the second image.

[0067] In some embodiments, step S5 comprises:

[0068] In step S53, the display screen is reinitialized according to the switching instruction; and

[0069] In step S54, the second image in the front buffer of the second buffer is transmitted to the display screen for display.

[0070] Specifically, step S53 and step S54 can be implemented by the second control module 13. That is, the second control module 13 can be configured to reinitialize the display screen according to the switching instruction, and transmit the second image in the front buffer of the second buffer to the display screen for display.

[0071] It should be noted that the display screen in the embodiments of the present application can be a display screen that supports non-black screen initialization operation when powered. In this way, after the underlying layer receives the vsync signal, the previously matched trigger event is triggered and the display screen is reinitialized, and then the second image in the front buffer of the second buffer is sent to the display screen for display.

[0072] In some embodiments, the display switching control method comprises:

[0073] In step S30, the display screen displays the first image according to a first clock unit signal; and

[0074] In step S50, the first clock unit signal is switched to a second clock unit signal according to a switching instruction to control the display screen to display the second image according to the second clock unit signal.

[0075] Specifically, the display switching control system 10 comprises a clock control module 15, and step S30 and step S50 can be implemented by the clock control module 15. That is, the clock control module 15 can be configured to control the display screen to display the first image according to the first clock unit signal, and switch the first clock unit signal to the second clock unit signal according to the switching instruction to control the display screen to display the second image according to the second clock unit signal.

[0076] When the underlying layer switches the resolution, the support of the clock unit is also needed. In the embodiments of the present application, a clock unit is added through the configuration of double clock units. The clock unit is started when display switching control is needed, and is paused when display switching control is not needed.

[0077] The above description shows the implementation of switching from the first cache to the second cache. When the switching needs to be performed again, the present application can also switch from the second cache to the first cache. It can be understood that the switching from the second cache to the first cache can be similar to the switching from the first cache to the second cache, which is not described in detail here.

[0078] Referring to the drawings, the embodiment of the present application provides an electronic device 20 including a processor 22, a memory 24 and a computer program 242 stored in the memory 24, the computer program 242 being executed by the processor 22 to implement the display switching control method of any of the above-mentioned embodiments.

[0079] In one example, the computer program 242 is executed by the processor 22 to implement the following steps:

[0080] Step S1, establishing the first cache and the second cache at the kernel layer and initializing the first cache;

[0081] Step S3, establishing the first service process and the second service process at the user layer, controlling the first service process to render the first image according to the display parameters of the first cache and transmit the first image to the display screen through the first cache for display; and

[0082] Step S5, initializing the second cache according to the switching instruction, controlling the second service process to render the second image according to the display parameters of the control instruction and transmit the second image to the display screen through the second cache to make the display screen switch to display the second image.

[0083] The electronic device 20 of the embodiment of the present application executes the computer program 242 by the processor 22, modifies the boot process of the system boot program, and boots through the system boot program at the start of the machine. At the same time, two frame buffers are created at the kernel layer, and the first cache is initialized as the main frame buffer. Then, the service processes corresponding to the two frame buffers are established at the user layer. The first service process is started with the system, and the second service process is started when the switching instruction is triggered by the application. The second cache is initialized and the second image is rendered. After the rendering of the second image is completed, the display screen is controlled to switch to display the second image.

[0084] Specifically, one or more processors 22 can be coupled to the memory 24 through a bus, and the memory 24 stores the computer program 242. The computer program 242 is run by the processor 22 to execute the display switching control method of the embodiment of the present application, and the real-time transformation of the display resolution can be realized. The electronic device 20 can be connected to the display screen through the input / output interface to display the corresponding image.

[0085] The embodiment of the present application provides a readable storage medium storing a computer program, the computer program being executed by one or more processors to implement the display switching control method of any of the above-mentioned embodiments.

[0086] In the description of the specification, reference to terms such as "one embodiment", "some embodiments", or "one example" and the like, means that a particular feature, structure, material, or characteristic being referred to is included in at least one embodiment or example of the application, it is not necessarily referred to all embodiments or examples. Furthermore, the described particular features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0087] Any processes or methods described in the flow charts or otherwise described herein can be understood as representing code modules, segments, or portions of code which include one or more executable instructions for implementing specific logic functions (or steps) of the application, and alternate implementations are possible. In this description and in the claims, a "code module", as used, refers to any type of computer instruction or statement that can be used to control the behavior of a computer. The specifications and drawings are to be regarded in nature as being only illustrative, and not restrictive.

[0088] The logic and / or steps represented in the flow charts and / or otherwise described herein, for example, can be embodied in computer executable code that can be translated to interpretation by a processor-based system such as a computer, a processor, or other machine. Upon such translation, the logic and / or steps represented in the flow charts and / or otherwise described herein can be considered a special purpose control apparatus for operating on or causing a machine to operate. As such, the flow charts and / or descriptions herein can be viewed as simply a summarized representation of logical steps implemented in the code, and the scope of the application should not be limited to precisely such representations. The scope of the application encompasses any computer readable medium having code embodied therein for performing any of the described logic functions.

[0089] It should be understood that parts of the present application can be realized in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be realized as software or firmware stored in a memory and executed by a suitable instruction execution system. As such, if realized in hardware, and in another embodiment, any one or a combination of the following technologies known in the art can be used: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), and the like.

[0090] Those skilled in the art can understand that all or part of the steps carried out by the above-mentioned embodiment methods can be completed by programs instructing relevant hardware, and the programs can be stored in a computer readable storage medium, and when the programs are executed, one or a combination of the steps of the method embodiments is included.

[0091] In addition, each functional unit in each embodiment of the present application can be integrated in one processing module, or each unit can be physically present separately, or two or more units can be integrated in one module. The above-mentioned integrated module can be realized in the form of hardware or in the form of a software functional module. The integrated module, if realized in the form of a software functional module and sold or used as an independent product, can also be stored in a computer readable storage medium. The above-mentioned storage medium can be a read-only memory, a magnetic disk or an optical disk, etc.

[0092] Although the embodiments of the present application have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and cannot be understood as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above-mentioned embodiments within the scope of the present application.

Claims

1. A display switching control method based on an Android system, characterized by, The display switching control method comprises: establishing a first cache and a second cache in a kernel layer and initializing the first cache; establishing a first service process and a second service process in a user layer, controlling the first service process to render a first image according to display parameters of the first cache and transmit the first image to a display screen through the first cache for display; and initializing the second cache according to a switching instruction, controlling the second service process to render a second image according to display parameters of the second cache and transmit the second image to the display screen through the second cache to switch the display screen to display the second image; determining a trigger event according to application requirements, the trigger event comprising attribute values and display parameters, the attribute values of the trigger event corresponding to a starting service item; and generating the switching instruction according to the trigger event; initializing the second cache according to the switching instruction, controlling the second service process to render the second image according to display parameters of the second cache and transmit the second image to the display screen through the second cache to switch the display screen to display the second image, comprising: transferring rendering work of a rear cache in the first cache to a rear cache in the second cache for rendering according to the switching instruction; and switching a frame cache address to the second cache and sending the image rendered by the rear cache in the second cache to a front cache in the second cache. The establishing a first service process and a second service process in a user layer, controlling the first service process to render a first image according to display parameters of the first cache and transmit the first image to a display screen through the first cache for display, comprises:

2. The display switching control method according to claim 1, characterized by, starting a process management center; controlling the process management center to create the first service process and the second service process; and controlling the process management center to create a broadcast communication interface process to obtain the display parameters. The establishing a first service process and a second service process in a user layer, controlling the first service process to render a first image according to display parameters of the first cache and transmit the first image to a display screen through the first cache for display, comprises:

3. The display switching control method according to claim 2, characterized by, controlling the first service process to start a surfaceflinger process, an OpenGL process and a rendering service process in sequence; and rendering the first image according to display parameters of the surfaceflinger process, the OpenGL process, the rendering service process and the first cache. The initializing the second cache according to the switching instruction, controlling the second service process to render a second image according to display parameters of the second cache and transmit the second image to the display screen through the second cache to switch the display screen to display the second image, comprises:

4. The display switching control method according to claim 1, characterized by, reinitializing the display screen according to the switching instruction; and transmitting the second image in the front cache in the second cache to the display screen for display. The display switching control method comprises:

5. The display switching control method according to claim 1, characterized by, controlling the display screen to display the first image according to a first clock unit signal; and switching the first clock unit signal to a second clock unit signal according to the switching instruction to control the display screen to display the second image according to the second clock unit signal. The display switching control method comprises:

6. A display switching control system characterized by comprising: ​ An initialization module is configured to establish a first cache and a second cache at a kernel layer and initialize the first cache; A first control module is configured to establish a first service process and a second service process at a user layer, control the first service process to render a first image according to display parameters of the first cache and transmit the first image to a display screen through the first cache for display; and A second control module is configured to initialize the second cache according to a switching instruction, control the second service process to render a second image according to display parameters of the control instruction and transmit the second image to the display screen through the second cache to switch the display screen to display the second image. According to application requirements, a trigger event is determined, the trigger event includes attribute values and display parameters, and the attribute values of the trigger event correspond to a starting service item; and The switching instruction is generated according to the trigger event; According to the switching instruction, the second cache is initialized, the second service process is controlled to render a second image according to display parameters of the second cache and transmit the second image to the display screen through the second cache to switch the display screen to display the second image, which includes: According to the switching instruction, rendering work of a rear buffer in the first cache is transferred to a rear buffer in the second cache for rendering; and A frame buffer address is switched to the second cache, and an image rendered by the rear buffer in the second cache is sent to a front buffer of the second cache.

7. An electronic device, comprising: A computer program is stored in the memory and executed by the processor to implement the display switching control method of any one of claims 1-5.

8. A storage medium, characterized by The storage medium stores a computer program, and the computer program is executed by one or more processors to implement the display switching control method of any one of claims 1-5.

Citation Information

Patent Citations

  • Methods and system for managing computational resources of a coprocessor in a computing system

    CN101685391A

  • Implementation method of mixed interface based on Qt under embedded-type Linux platform

    CN104951260A

  • Video processing method and device, electronic equipment and computer readable medium

    CN109379625A

  • Projection display apparatus and display method

    US20190297309A1