CN117290046A - Wallpaper rendering method, electronic device and storage medium - Google Patents

Wallpaper rendering method, electronic device and storage medium Download PDF

Info

Publication number
CN117290046A
CN117290046A CN202311309794.5A CN202311309794A CN117290046A CN 117290046 A CN117290046 A CN 117290046A CN 202311309794 A CN202311309794 A CN 202311309794A CN 117290046 A CN117290046 A CN 117290046A
Authority
CN
China
Prior art keywords
wallpaper
canvas
rendering
target
engine
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
Application number
CN202311309794.5A
Other languages
Chinese (zh)
Inventor
徐恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN202311309794.5A priority Critical patent/CN117290046A/en
Publication of CN117290046A publication Critical patent/CN117290046A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a wallpaper rendering method, electronic equipment and a storage medium. The method comprises the following steps: a wallpaper customization service in an electronic device may control a wallpaper rendering engine to create an initial canvas after creating the wallpaper rendering engine. An illusion engine may be started in the electronic device. The illusion engine obtains a target canvas after rendering the preset wallpaper to the initial canvas. The electronic device may obtain a current application currently open. The electronic device can obtain an application control for the current application. The electronic device composites the application control onto the target canvas. The electronic device displays the target interface in the target interface. According to the method, the continuity and fluency of wallpaper playing are improved, and the display effect of one mirror of wallpaper in the application program switching process is achieved.

Description

Wallpaper rendering method, electronic device and storage medium
Technical Field
The present disclosure relates to communication technologies, and in particular, to a wallpaper rendering method, an electronic device, and a storage medium.
Background
With the development of technology, users have increasingly demanded electronic devices. For example, a user may wish to set custom wallpaper on a desktop of an electronic device and a target interface of an application. When the wallpaper is dynamic wallpaper, a user may request for the playing continuity of the dynamic wallpaper in the switching process of the two application programs.
In the prior art, separate wallpaper modules are typically provided for different applications. The wallpaper module of each application program can set the wallpaper of the application program as the custom wallpaper after the application program is started. Therefore, when two applications are switched, the electronic device needs to correspondingly switch the wallpaper module.
However, the switching of the wallpaper module may cause a pause in the playing of the dynamic wallpaper, thereby causing a problem that the wallpaper cannot guarantee the smoothness of the playing in the switching process of the application program.
Disclosure of Invention
The application provides a wallpaper rendering method, electronic equipment and a storage medium, which are used for solving the problem that wallpaper cannot guarantee playing fluency in the switching process of application programs.
In a first aspect, the present application provides a wallpaper rendering method, including:
an initial canvas is created by a wallpaper rendering engine.
And rendering the preset wallpaper to the initial canvas through the illusion engine to obtain the target canvas.
And acquiring an application control of the current application program, and synthesizing the application control onto a target canvas to obtain a target interface.
And displaying the target interface.
Optionally, rendering the preset wallpaper to the initial canvas through the illusion engine to obtain a target canvas, which specifically comprises:
the initial canvas is transformed through the local window.
And rendering the preset wallpaper on the converted initial canvas by using the illusion engine to obtain a target canvas.
Optionally, acquiring an application control of the current application program specifically includes:
and determining the current application program displayed by the target interface.
And communicating with the current application program through the aid1 interface, and acquiring an application control of the current application program.
Optionally, displaying the target interface specifically includes:
the target canvas is written into the frame buffer so that the target canvas is displayed on the target interface through the frame buffer.
Optionally, rendering the preset wallpaper to the initial canvas through the illusion engine, and before obtaining the target canvas, the method comprises the following steps:
and acquiring preset wallpaper, wherein the preset wallpaper is static wallpaper or dynamic wallpaper.
Optionally, the method further comprises:
when the preset wallpaper is dynamic wallpaper, the illusion engine sequentially renders frame pictures of the dynamic wallpaper to the initial canvas at a preset frame rate.
Optionally, before creating the initial canvas by the wallpaper rendering engine, the method further comprises:
and responding to the starting instruction, and starting the wallpaper customizing service.
A wallpaper rendering engine is created and started in a wallpaper customization service.
In a second aspect, the present application provides a wallpaper rendering device, comprising:
and the rendering module is used for creating an initial canvas through the wallpaper rendering engine. And rendering the preset wallpaper to the initial canvas through the illusion engine to obtain the target canvas. And acquiring an application control of the current application program, and synthesizing the application control onto a target canvas to obtain a target interface.
And the display module is used for displaying the target interface.
Optionally, the rendering module is specifically configured to:
the initial canvas is transformed through the local window.
And rendering the preset wallpaper on the converted initial canvas by using the illusion engine to obtain a target canvas.
Optionally, the rendering module is specifically configured to:
and determining the current application program displayed by the target interface.
And communicating with the current application program through the aid1 interface, and acquiring an application control of the current application program.
Optionally, the display module is specifically configured to:
the target canvas is written into the frame buffer so that the target canvas is displayed on the target interface through the frame buffer.
Optionally, the rendering module is further configured to:
and acquiring preset wallpaper, wherein the preset wallpaper is static wallpaper or dynamic wallpaper.
Optionally, the rendering module is further configured to:
when the preset wallpaper is dynamic wallpaper, the illusion engine sequentially renders frame pictures of the dynamic wallpaper to the initial canvas at a preset frame rate.
Optionally, the rendering module is further configured to:
and responding to the starting instruction, and starting the wallpaper customizing service.
A wallpaper rendering engine is created and started in a wallpaper customization service.
In a third aspect, the present application provides an electronic device, including: a processor, and a memory communicatively coupled to the processor; the memory stores a computer program; the processor executes the computer program stored by the memory to implement the method as in the first aspect and any possible designs of the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium having stored therein a computer program for implementing a method as in the first aspect and any of the possible designs of the first aspect when executed by a processor.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect and any of the possible designs of the first aspect.
According to the wallpaper rendering method, the electronic device and the storage medium, after the wallpaper rendering engine is built, the wallpaper rendering engine is controlled to build an initial canvas; starting an illusion engine, and rendering the preset wallpaper to an initial canvas to obtain a target canvas; acquiring a current application program which is currently started; acquiring an application control of the current application program; synthesizing the application control onto a target canvas; the means for displaying the target interface in the target interface achieves the effect of improving the continuity and fluency of wallpaper playing and the effect of displaying the wallpaper in one mirror to one bottom in the switching process of application programs.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a wallpaper customizing service according to an embodiment of the present application;
FIG. 2 is a flowchart of a wallpaper rendering method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a wallpaper rendering process according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an application switching according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a wallpaper rendering device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
With the development of technology, users have increasingly demanded electronic devices. For example, when the electronic device is a mobile terminal, the user may wish to set custom wallpaper on the desktop of the mobile terminal and on the target interface of the application. When the wallpaper is a dynamic wallpaper, a user may request for the playback continuity of the dynamic wallpaper. Since in a mobile terminal, a user typically enters a target interface, such as an application, from a desktop. Therefore, in the mobile terminal, the user is more required that the playing of the dynamic wallpaper is not interrupted during the opening process of the application program. For another example, when the electronic device is a car machine, in the development and production practice of the intelligent cabin, 3D wallpaper such as a 3D car model or an avatar can be integrated on the car machine. The 3D wallpaper is essentially a dynamic wallpaper. Since applications are not typically provided in the vehicle. The user can view buttons of a plurality of preset functional modules on the interface of the vehicle. The user can click on the button corresponding to the function module to enter the target interface of each function module. Therefore, in the use of the vehicle machine, the user generally requires that the original interaction performance of the vehicle machine is kept smooth in the switching process of the plurality of functional modules, and the 3D wallpaper realizes the display of the flow. Specifically, the requirement of the user on the playing continuity of the dynamic wallpaper can be expressed as that the playing of the dynamic wallpaper achieves the shooting effect as if one mirror in the movie is at the bottom in the switching process of the application program or the switching process of the functional module.
In the prior art, a separate wallpaper module is typically provided for each application for different applications in an electronic device. The wallpaper module of each application program can set the wallpaper of the application program as the custom wallpaper after the application program is started. The functional modules in the vehicle are equivalent to application programs in the electronic equipment. That is, in the vehicle, each functional module (application program) typically integrates a 3D resource. The 3D resource is the wallpaper module. The vehicle-mounted function module can display the 3D wallpaper after the function module is started through the 3D resource. In practical use, each wallpaper module needs to start a fantasy Engine (un real Engine), and the starting of each fantasy Engine needs to consume an equal amount of system performance resources. Moreover, the display of the wallpaper corresponding to each application program or each functional module is actually realized through the activity component of the Android. When two application programs are switched or two functional modules are switched, the switching of activity is actually performed. This means that the disappearance of one activity is displayed with another activity. Such a handover itself may have a stall point, which may cause a non-fluent handover procedure.
In order to solve the above technical problems, the wallpaper rendering method provided in the embodiments of the present application provides a method for separating codes on an android side and a 3D wallpaper side. That is, the present application enables the development of the wallpaper customized service through the development of code compilation separation and code runtime separation (process separation). The service range for realizing the wallpaper customization service comprises continuous playing of 3D wallpaper in the running process of all application programs (functional modules) capable of realizing 3D wallpaper playing in the vehicle. The service range for realizing the wallpaper customization service can also comprise continuity and stability of wallpaper display in the processes of opening, closing and switching of each application program provided with wallpaper in the electronic equipment. Specifically, the wallpaper customization service is realized by combining the wallpaper service WallParseService and the illusion engine in the Android open source code item (Android Open Source Project, AOSP). The application concentrates the use scenes of the wallpaper, and isolates the wallpaper from the application program in a way of rendering the wallpaper in the canvas of the wallpaper service. In addition, the system performance consumption is effectively saved by sharing one illusion engine instance for all application programs. The special canvas (surface) provided by the WallpaperService has the characteristic of being dynamically adjusted by the system according to the use of the wallpaper by the application module. When a plurality of application programs using the wallpaper customizing service are mutually switched, the surface does not have a switching process of display and hiding, and only the wallpaper customizing service operates the wallpaper to display through the illusion engine. Therefore, the wallpaper customization service in the application achieves the effect of displaying one wallpaper in one mirror to one bottom in the application program switching process.
In the following, an exemplary application scenario of the embodiments of the present application is described.
Fig. 1 shows a schematic diagram of a wallpaper customizing service according to an embodiment of the present application. As shown in fig. 1, wallpaper customization service (Intermediary Wallpaper Service) may be used as a default wallpaper service for a system in response to wallpaper usage and switching operations in an electronic device. The wallpaper customization service may act as a service carrier for a wallpaper rendering engine (Intermediary Engine). The wallpaper customization service may also open an external interface. The pair of external interfaces may be invoked by an application (application) for implementing wallpaper. Wherein, the application program is arranged at the application layer. The application program realizes connection with the wallpaper customizing service through the aid1 interface. Wherein different applications can implement connection with the wallpaper customization service through different aid1 interfaces. The wallpaper custom suit and the wallpaper rendering engine included therein may be disposed in an application framework layer (framework layer). Wherein the wallpaper customization service may enable creation and control of the wallpaper rendering engine. Alternatively, the wallpaper customizing service of the present application may be applied to a vehicle machine. Alternatively, the application of the wallpaper customization service may be extended to all in-vehicle entertainment information systems (Infotainment Head Unit, IHU). Alternatively, the application of the wallpaper customization service may also be extended to all electronic devices.
In the present application, the wallpaper rendering method of the following embodiment is executed with the electronic device as an execution body. In particular, the execution body may be a hardware device of the electronic apparatus, or a software application implementing the embodiments described below in the electronic apparatus, or a computer-readable storage medium on which the software application implementing the embodiments described below is installed, or code of the software application implementing the embodiments described below.
The technical scheme of the present application is described in detail below with specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 2 shows a flowchart of a wallpaper rendering method according to an embodiment of the present application. On the basis of the embodiment shown in fig. 1, as shown in fig. 2, with the electronic device as an execution body, the method of the embodiment operates in the wallpaper customization service, and may include the following steps:
s101, creating an initial canvas through a wallpaper rendering engine.
In this embodiment, the wallpaper customization service in the electronic device may control the wallpaper rendering engine to create the initial canvas after creating the wallpaper rendering engine. The initial canvas may be a special canvas (surface). The initial canvas will be the unified drawing area of the wallpaper for the application. Wallpaper for each wallpaper setting application will effect drawing of wallpaper on the initial canvas. And, each wallpaper setting application program will be implemented by the wallpaper rendering engine for the operation of the wallpaper.
In one example, the wallpaper customization service may be a power-on initiation item of an electronic device. After the electronic device is started, the electronic device can start the wallpaper customizing service in response to the starting instruction. When the wallpaper customization service is started, the wallpaper customization service may create and start a wallpaper rendering engine.
S102, rendering the preset wallpaper to an initial canvas through the illusion engine to obtain a target canvas.
In this embodiment, a fantasy engine may be started in the electronic device. The specific wallpaper rendering operation will be implemented by the illusion engine. That is, the wallpaper rendering engine provides a drawing area for the illusion engine. The drawing area is the initial canvas. The illusion engine obtains a target canvas after rendering the preset wallpaper to the initial canvas. Alternatively, the preset wallpaper may be a static wallpaper or a dynamic wallpaper. Optionally, when the preset wallpaper is a static wallpaper, the target canvas is a canvas filled with the static wallpaper. Optionally, when the preset wallpaper is a dynamic wallpaper, the preset wallpaper is actually a plurality of pictures continuously played according to a preset frame rate. Thus, the process of the illusion engine rendering the preset wallpaper to the initial canvas may be understood as the illusion engine sequentially rendering the pictures of each frame of the dynamic wallpaper to the initial canvas according to the preset frame rate. That is, at one moment, the target canvas is a canvas populated with a frame of pictures of the dynamic wallpaper. Alternatively, the dynamic wallpaper may be a 3D wallpaper. Optionally, the preset frame rate is 30 frames per second or 60 frames per second. Optionally, the preset frame rate may be set according to a playing requirement of the dynamic wallpaper.
In one example, the specific steps of the illusion engine rendering wallpaper may include:
step 1, a server acquires an initial canvas through a local window (native window) and converts the initial canvas into a canvas which can be operated by an illusion engine.
And step 2, rendering preset wallpaper on the converted initial canvas by the illusion engine to obtain a target canvas. Optionally, when the preset wallpaper is a dynamic wallpaper, the illusion engine renders a frame of picture on the dynamic wallpaper onto the initial canvas.
In one example, the electronic device can obtain the preset wallpaper before the illusion engine renders the preset wallpaper to the initial canvas. Alternatively, the preset wallpaper may be a wallpaper set by a technician. Optionally, the preset wallpaper may also be one wallpaper selected by the user from a plurality of wallpapers provided by the technician. Optionally, the preset wallpaper may also be a wallpaper uploaded by the user.
S103, acquiring an application control of the current application program, and synthesizing the application control onto a target canvas to obtain a target interface.
In this embodiment, the electronic device may acquire the currently opened current application. The electronic device can obtain an application control for the current application. The electronic device can compose the application control onto the target canvas through a Surfacefliger. Alternatively, the application control may include buttons, icons, text content, picture content, etc. on the current application program other than the background.
In one example, the specific steps of the electronic device to obtain the application control of the current application program may include:
and step 1, the electronic equipment determines the current application program displayed on the target interface. For example, in the process of switching from application1 to application2, the current application is application1 before switching, and the current application is application2 after switching. For another example, in the process of starting the application program 3 from the desktop, before the switching, the current application program is the desktop, and after the switching, the current application program is the application program 3. Optionally, when the electronic device includes a plurality of open applications, the current application is located in the application at the uppermost layer, or the current application is the application displayed on the target interface, or the current application is the application with the largest proportion on the real interface.
And 2, after determining the current application program, the electronic equipment can determine the corresponding aid1 interface according to the current application program. The electronic device may communicate with the current application through the aid1 interface to obtain an application control for the current application.
S104, displaying a target interface.
In this embodiment, the target canvas combined with the application control is the application program for completing wallpaper replacement. Therefore, the electronic device needs to display the target interface in the target interface.
In one example, the electronic device can write the target canvas to a frame buffer (FrameBuffer). The electronic device may display the target interface through the frame buffer.
According to the wallpaper rendering method, after the wallpaper rendering engine is created, the wallpaper customization service in the electronic device can control the wallpaper rendering engine to create the initial canvas. An illusion engine may be started in the electronic device. The illusion engine obtains a target canvas after rendering the preset wallpaper to the initial canvas. The electronic device may obtain a current application currently open. The electronic device can obtain an application control for the current application. The electronic device composites the application control onto the target canvas. The electronic device displays the target interface in the target interface. In the application, the wallpaper customization service rendering is used, so that the continuity and fluency of wallpaper playing are improved, and the display effect of one mirror of wallpaper in the application program switching process is achieved.
On the basis of the above embodiment, a schematic diagram of a wallpaper rendering process is shown in fig. 3. Wherein the electronic device may create a wallpaper rendering engine in the wallpaper customization service. The electronic device may create a special canvas (surface) in the wallpaper rendering engine. The canvas is a unified drawing area that is wallpaper for an application. Wherein any wallpaper-using application produces results for the wallpaper operation that are completed by the wallpaper rendering engine (Intermediary Engine). Specifically, the drawing operation of the wallpaper rendering Engine (Intermediary Engine) is completed by a phantom Engine (un real Engine). The use of the illusion engine can further improve the drawing effect of the 3D wallpaper. Briefly, the wallpaper rendering Engine (Intermediary Engine) provides drawing areas for a illusion Engine (un real Engine). There is no impact on the development flow of the Unreal 3D itself.
On the basis of the above embodiment, a schematic diagram of application switching is shown in fig. 4. In the electronic device, a wallpaper customization service (Intermediary Wallpaper Service) replaces a wallpaper service (WallpaperService) provided in an application framework layer (framework layer). The original wallpaper service realizes the setting of wallpaper in an application program through an engine (engine). And the new wallpaper customization service creates a canvas through the wallpaper rendering engine (Intermediary Engine). The illusion engine can draw the pattern of the preset wallpaper onto the canvas through the local window. Wherein, in application1 (application 1) and application2 (application 2) switching process, the canvas implements its display of wallpaper in the electronic device. In the switching process of the application program 1 and the application program 2, the electronic equipment realizes the display of the wallpaper through the same canvas, so that the switching of the canvas in the switching process of the application program is avoided, and the continuity of dynamic wallpaper playing is ensured. The wallpaper customization service may enable communication with applications through an open aid1 interface.
Fig. 5 shows a schematic structural diagram of a wallpaper rendering device according to an embodiment of the present application, and as shown in fig. 5, the wallpaper rendering device 10 according to the present embodiment is configured to implement operations corresponding to an electronic device in any of the above method embodiments, where the wallpaper rendering device 10 according to the present embodiment includes:
a rendering module 11 for creating an initial canvas by means of a wallpaper rendering engine. And rendering the preset wallpaper to the initial canvas through the illusion engine to obtain the target canvas. And acquiring an application control of the current application program, and synthesizing the application control onto a target canvas to obtain a target interface.
A display module 12 for displaying the target interface.
Optionally, the rendering module 11 is specifically configured to:
the initial canvas is transformed through the local window.
And rendering the preset wallpaper on the converted initial canvas by using the illusion engine to obtain a target canvas.
Optionally, the rendering module 11 is specifically configured to:
and determining the current application program displayed by the target interface.
And communicating with the current application program through the aid1 interface, and acquiring an application control of the current application program.
Optionally, the display module 12 is specifically configured to:
the target canvas is written into the frame buffer so that the target canvas is displayed on the target interface through the frame buffer.
Optionally, the rendering module 11 is further configured to:
and acquiring preset wallpaper, wherein the preset wallpaper is static wallpaper or dynamic wallpaper.
Optionally, the rendering module 11 is further configured to:
when the preset wallpaper is dynamic wallpaper, the illusion engine sequentially renders frame pictures of the dynamic wallpaper to the initial canvas at a preset frame rate.
Optionally, the rendering module 11 is further configured to:
and responding to the starting instruction, and starting the wallpaper customizing service.
A wallpaper rendering engine is created and started in a wallpaper customization service.
The wallpaper rendering device 10 provided in the embodiment of the present application may execute the above-mentioned method embodiment, and the specific implementation principle and technical effects of the method embodiment may be referred to the above-mentioned method embodiment, which is not described herein again.
Fig. 6 shows a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device 20, configured to implement operations corresponding to the electronic device in any of the above method embodiments, the electronic device 20 of this embodiment may include: a memory 21, and a processor 22.
A memory 21 for storing a computer program. The Memory 21 may include a high-speed random access Memory (Random Access Memory, RAM), and may further include a Non-Volatile Memory (NVM), such as at least one magnetic disk Memory, and may also be a U-disk, a removable hard disk, a read-only Memory, a magnetic disk, or an optical disk.
A processor 22 for executing a computer program stored in the memory to implement the wallpaper rendering method in the above embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above. The processor 22 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
Alternatively, the memory 21 may be separate or integrated with the processor 22.
When memory 21 is a separate device from processor 22, electronic device 20 may also include bus 23. The bus 23 is used to connect the memory 21 and the processor 22. The bus 23 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The electronic device provided in this embodiment may be used to execute the wallpaper rendering method, and its implementation manner and technical effects are similar, and this embodiment will not be repeated here.
The present application also provides a computer-readable storage medium having a computer program stored therein, which when executed by a processor is adapted to carry out the methods provided by the various embodiments described above.
The computer readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a computer-readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the computer-readable storage medium. In the alternative, the computer-readable storage medium may be integral to the processor. The processor and the computer readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC). In addition, the ASIC may reside in a user device. The processor and the computer-readable storage medium may also reside as discrete components in a communication device.
In particular, the computer readable storage medium may be implemented by any type or combination of volatile or non-volatile Memory devices, such as Static Random-Access Memory (SRAM), electrically erasable programmable Read-Only Memory (EEPROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The present application also provides a computer program product comprising a computer program stored in a computer readable storage medium. The computer program may be read from a computer-readable storage medium by at least one processor of the apparatus, and executed by the at least one processor, causes the apparatus to implement the methods provided by the various embodiments described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
Wherein the individual modules may be physically separated, e.g. mounted in different locations of one device, or mounted on different devices, or distributed over a plurality of network elements, or distributed over a plurality of processors. The modules may also be integrated together, e.g. mounted in the same device, or integrated in a set of codes. The modules may exist in hardware, or may also exist in software, or may also be implemented in software plus hardware. The purpose of the embodiment scheme can be achieved by selecting part or all of the modules according to actual needs.
When the individual modules are implemented as software functional modules, the integrated modules may be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to perform some steps of the methods of the various embodiments of the present application.
It should be understood that, although the steps in the flowcharts in the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A wallpaper rendering method, characterized by being applied to a wallpaper customization service, the method comprising:
creating an initial canvas by a wallpaper rendering engine;
rendering the preset wallpaper to the initial canvas through the illusion engine to obtain a target canvas;
acquiring an application control of a current application program, and synthesizing the application control onto the target canvas to obtain a target interface;
and displaying the target interface.
2. The method according to claim 1, wherein the rendering the preset wallpaper to the initial canvas by the illusion engine to obtain the target canvas comprises:
converting the initial canvas through a local window;
and rendering the preset wallpaper on the converted initial canvas by using the illusion engine to obtain a target canvas.
3. The method according to claim 1, wherein the obtaining the application control of the current application program specifically comprises:
determining a current application program displayed on a target interface;
and communicating with the current application program through an aid1 interface, and acquiring an application control of the current application program.
4. The method according to claim 1, wherein said displaying said target interface, in particular comprises:
and writing the target canvas into a frame buffer area so that the target canvas is displayed on a target interface through the frame buffer area.
5. The method of any of claims 1-4, wherein the rendering, by the illusion engine, of the preset wallpaper to the initial canvas to obtain the target canvas is preceded by the method comprising:
and acquiring preset wallpaper, wherein the preset wallpaper is static wallpaper or dynamic wallpaper.
6. The method according to claim 5, further comprising:
when the preset wallpaper is dynamic wallpaper, the illusion engine sequentially renders frame pictures of the dynamic wallpaper to the initial canvas at a preset frame rate.
7. The method of claim 6, wherein the preset frame rate is 30 frames per second or 60 frames per second.
8. The method of any of claims 1-4, wherein prior to the creating the initial canvas by the wallpaper rendering engine, the method further comprises:
responding to a starting instruction, and starting wallpaper customizing service;
and creating and starting a wallpaper rendering engine in the wallpaper customization service.
9. An electronic device, the electronic device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores a computer program; the processor executes the computer program stored in the memory to implement the method of any one of claims 1-8.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program for implementing the method according to any of claims 1-8 when being executed by a processor.
CN202311309794.5A 2023-10-10 2023-10-10 Wallpaper rendering method, electronic device and storage medium Pending CN117290046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311309794.5A CN117290046A (en) 2023-10-10 2023-10-10 Wallpaper rendering method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311309794.5A CN117290046A (en) 2023-10-10 2023-10-10 Wallpaper rendering method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117290046A true CN117290046A (en) 2023-12-26

Family

ID=89253290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311309794.5A Pending CN117290046A (en) 2023-10-10 2023-10-10 Wallpaper rendering method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117290046A (en)

Similar Documents

Publication Publication Date Title
CN108762937B (en) Configuration information sending method, configuration information obtaining method, configuration information sending device, configuration information obtaining device and terminal
CN106375696B (en) A kind of film recording method and device
CN110908625A (en) Multi-screen display method, device, equipment, system, cabin and storage medium
KR101279680B1 (en) Motion desktop
US20080288763A1 (en) Method For Controlling the Operation of a Display Screen In A Computing Device
CN110874217A (en) Interface display method and device for fast application and storage medium
CN112749022B (en) Camera resource access method, operating system, terminal and virtual camera
CN111625214A (en) Audio control method, device, equipment and storage medium
CN110865863B (en) Interface display method and device for fast application and storage medium
US20230229375A1 (en) Electronic Device, Inter-Device Screen Coordination Method, and Medium
CN116546228B (en) Plug flow method, device, equipment and storage medium for virtual scene
CN117290046A (en) Wallpaper rendering method, electronic device and storage medium
CN109091866B (en) Display control method and device, computer readable medium and electronic equipment
CN111736942A (en) Multi-application scene display method and device in VR system and VR equipment
CN111309421A (en) Interface resource loading method and device, terminal and storage medium
CN111785229B (en) Display method, device and system
CN114222185B (en) Video playing method, terminal equipment and storage medium
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN113467876A (en) Page component generation method and device
CN114579222A (en) Screen control method, automobile data recorder and storage medium
CN114615546B (en) Video playing method and device, electronic equipment and storage medium
CN111803939B (en) Image rendering method and device and electronic equipment
CN117372594A (en) Display method, electronic device and storage medium
CN118182083A (en) Control method and device of fragrance system, vehicle-mounted terminal and storage medium
CN116382463A (en) Virtual object interaction system

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