Control background processing method and device, equipment, storage medium and chip

By obtaining the background information of the control elements and performing blur and color mixing processing, the problem of terminal performance reduction caused by excessive control background processing in the prior art is solved, and more efficient control background processing performance is achieved.

CN119902676APending Publication Date: 2025-04-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311407393.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In the prior art, too many control background processing times lead to reduced terminal performance, especially when multiple controls need to be processed in the same user interface.

Method used

By obtaining control element information, including the background area and color mixing mode of the target container where the control element is located, the control element is processed based on this information. The specific steps include blurring the background area of ​​the target container, mixing the color to the blurred background area based on the color mixing mode, and rendering the result to the user interface of the control element.

Benefits of technology

Reduce the number of background processing, improve the performance of control background processing, and solve the problem of terminal performance degradation caused by excessive processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902676A_ABST
    Figure CN119902676A_ABST
Patent Text Reader

Abstract

The invention relates to a control background processing method and device, equipment, a storage medium and a chip, and the method comprises the steps: obtaining control element information which comprises a background region of a target container where a to-be-processed control element is located and a color mixing mode adopted by the control element, the color mixing mode is used for indicating to carry out corresponding background color mixing processing on the control element; and performing background processing on the control element based on a background area of a target container where the control element is located and the color mixing mode adopted by the control element. Therefore, the problems of more processing times, reduced terminal performance and the like in the prior art can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to a control background processing method, device, equipment, storage medium and chip. Background Art

[0002] In order to achieve a better interface display effect, when the drop-down menus are displayed overlappingly, the background of the user interface needs to be processed, such as blurring, to avoid visual conflicts. At present, in the relevant technology, the overall background processing of the controls in the user interface can be performed, and specifically, the background area of ​​other layers under the current layer where the controls are located can be blurred. However, when there are a large number of controls that need background processing in the same user interface, the number of control background processing times will be large, thereby reducing terminal performance. Summary of the invention

[0003] In order to overcome the problems existing in the related technologies, the present disclosure provides a control background processing method, device, equipment, storage medium and chip to solve the technical problems existing in the above-mentioned related technologies such as a large number of processing times and reduced terminal performance.

[0004] According to a first aspect of an embodiment of the present disclosure, a control background processing method is provided, comprising:

[0005] Acquire control element information, where the control element information includes a background area of ​​a target container where the control element to be processed is located and a color mixing mode used by the control element, where the color mixing mode is used to indicate that corresponding background color mixing processing is performed on the control element;

[0006] Background processing is performed on the control element based on the background area of ​​the target container where the control element is located and the color blending mode adopted by the control element.

[0007] In some embodiments, performing background processing on the control element based on the background area of ​​the target container where the control element is located and the color blending mode adopted by the control element includes:

[0008] Performing blur processing on the background area of ​​the target container where the control element is located to obtain a corresponding blurred background area;

[0009] Performing color mixing on the blurred background area based on the color mixing mode adopted by the control element to obtain a corresponding color mixing background area;

[0010] Based on the control area occupied by the control element, the mixed color background area is rendered into the user interface where the control element is located.

[0011] In some embodiments, rendering the mixed color background area into the user interface where the control element is located based on the control area occupied by the control element includes:

[0012] Based on the control area occupied by the control element, cutting out a cutting canvas corresponding to the control area in the canvas corresponding to the target container;

[0013] The mixed color background area is drawn onto the clipping canvas to serve as the background area of ​​the control element in the user interface.

[0014] In some embodiments, the control element information includes a background area of ​​a target container where the control element is located, and obtaining the control element information includes:

[0015] A background area of ​​the target container is generated for the target container where the control element is located.

[0016] In some embodiments, the method further comprises:

[0017] Acquire a view group to be processed, where the view group is used to construct the control element or the user interface where the control element is located, and the level of the view group is less than or equal to a preset level;

[0018] The view group is set as the target container, and the controls in the view group that need background processing are set as the corresponding control elements.

[0019] In some embodiments, the method further comprises:

[0020] A binding relationship between the target container and the control element is established to determine the target container where the control element is located based on the binding relationship and the control element.

[0021] According to a second aspect of an embodiment of the present disclosure, a control background processing device is provided, including:

[0022] an acquisition module, configured to acquire control element information, the control element information including a background area of ​​a target container where the control element is located and a color mixing mode adopted by the control element, the color mixing mode being used to indicate that corresponding background color mixing processing is performed on the control element;

[0023] The processing module is configured to perform background processing on the control element based on the background area of ​​the target container where the control element is located and the color mixing mode adopted by the control element.

[0024] For the contents not introduced or described in the embodiments of the present disclosure, please refer to the relevant introduction in the aforementioned method embodiments, and the embodiments of the present disclosure are not limited thereto.

[0025] According to a third aspect of an embodiment of the present disclosure, a terminal device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the executable instructions to implement the steps of the above-mentioned control background processing method.

[0026] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the control background processing method provided in the first aspect of the present disclosure are implemented.

[0027] According to a fifth aspect of an embodiment of the present disclosure, a chip is provided, comprising: a processor and an interface; the processor is used to read instructions to execute the steps of the above-mentioned control background processing method.

[0028] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the terminal device obtains control element information, the control element information includes the background area of ​​the target container where the control element to be processed is located and the color mixing mode adopted by the control element, and the color mixing mode is used to indicate the corresponding background color mixing processing of the control element; the control element is subjected to background processing based on the background area of ​​the target container where the control element is located and the color mixing mode adopted by the control element. It can be seen that the terminal device can perform background processing based on the background area of ​​the target container where at least one control element to be processed is located and the color mixing mode adopted by the control element. In particular, for multiple control elements belonging to the same target container or multiple control elements using the same color mixing mode, only one background processing is required. Compared with the above-mentioned related technologies, the number of background processing can be greatly reduced, thereby improving the performance of control background processing. It also solves the technical problems of a large number of processing times and reduced terminal performance in the above-mentioned related technologies.

[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0031] Figure 1 The figure is a flowchart of a control background processing method according to an exemplary embodiment.

[0032] Figure 2 It is a schematic diagram of a user interface according to an exemplary embodiment.

[0033] Figure 3 is a schematic diagram of a target container according to an exemplary embodiment.

[0034] Figure 4 The figure is a schematic diagram showing a blurred background area according to an exemplary embodiment.

[0035] FIG. 5( a ) and FIG. 5( b ) are schematic diagrams showing two mixed-color background areas according to an exemplary embodiment.

[0036] Figure 6 The figure is a schematic diagram showing a mixed color background area rendering according to an exemplary embodiment.

[0037] Figure 7 It is a structural diagram of a control background processing device according to an exemplary embodiment.

[0038] Figure 8 The diagram is a schematic structural diagram of a terminal device according to an exemplary embodiment.

[0039] Fig. 9 The figure is a schematic diagram showing the structure of a chip according to an exemplary embodiment. DETAILED DESCRIPTION

[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0041] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0042] In the related art, if background processing (such as background blur processing, etc.) is performed for multiple controls in the same process, it will result in a large number of processing times and low performance. In particular, when the number of controls reaches more than 15, the processing performance is even lower. In order to solve the above problems, the present disclosure provides a control background processing method, device, equipment, storage medium and chip. Please refer to Figure 1 FIG. 1 is a flow chart of a control background processing method according to an exemplary embodiment. Figure 1 The method shown can be applied to a terminal device, and the method may include the following implementation steps:

[0043] S101. Acquire control element information, where the control element information includes a background area of ​​a target container where a control element to be processed is located and a color mixing mode used by the control element, where the color mixing mode is used to indicate corresponding background color mixing processing to be performed on the control element.

[0044] The above-mentioned control elements of the present disclosure may refer to one or more control elements in the target container that are waiting for background processing. The present disclosure does not limit the number of the above-mentioned control elements, which can be determined according to actual conditions and does not constitute a limitation. The above-mentioned control element information may include, but is not limited to, for example, the background area of ​​the target container where the above-mentioned control element is located, the color mixing mode adopted by the above-mentioned control element, or other custom information. The above-mentioned color mixing mode can be used to indicate that the background area corresponding to the above-mentioned control element is subjected to corresponding color mixing processing. The color mixing mode can be pre-configured by the terminal device or the R&D personnel, and it may include, but is not limited to, for example, a color mode mixed with at least one color (such as red, green, blue and yellow, etc.).

[0045] In some optional embodiments, the present disclosure may first obtain a view group (ViewGroup) that needs background processing, which may also be referred to as a view group to be processed; the view group may be used to construct the above-mentioned control element or to construct the user interface where the above-mentioned control element is located, wherein the level of the above-mentioned view group may be lower, for example, the level of the view group may be less than or equal to the preset level, etc. In actual applications, the above-mentioned view group may include one or more controls (also referred to as elements) in the user interface that can be processed in the same process or container. For example, see Figure 2 FIG. 1 is a schematic diagram of a user interface according to an exemplary embodiment. Figure 2 In the user interface shown, its layout may include two view groups, view group 1 and view group 2 as shown in the figure. Each view group may include at least one control, for example, view group 1 may include a search or notification bar, and view group 2 may include application icons of various applications.

[0046] Furthermore, the present disclosure can set the above-mentioned view group as a container (also known as a container mode), for example, it can be specifically set as the above-mentioned target container; and the control (View) in the above-mentioned view group that requires background processing can be set as the corresponding control element (also known as the control element mode). Specifically, for example, the present disclosure can call the newly added container setting (such as View.setMiBackgroundBlurMode) method to set the above-mentioned view group to the corresponding container or container mode backgroundMode; the element setting (such as View.setMiViewBlurMode) method can be called to set the control in the above-mentioned view group that requires background processing to the corresponding control element or control element mode viewMode, etc. For the controls in the above-mentioned view group that do not require background processing, no setting processing can be performed, that is, the controls in the above-mentioned view group that do not require background processing are not set, etc. In other words, the present disclosure can select a view group with a level less than or equal to the preset level as the above-mentioned target container; and treat the controls in the view group that require background processing as the above-mentioned control elements to be processed, etc. For example, please refer to Figure 3 FIG. 1 is a schematic diagram of a target container according to an exemplary embodiment. Figure 3 The target container shown may include four control elements that require background processing, namely control element A, control element B, control element C, and control element D shown in the figure.

[0047] In some other optional embodiments, in the rendering preparation stage, for example, in the prepareTree stage of the rendering engine hwui, the present disclosure can establish a binding relationship between the above-mentioned target container and the above-mentioned control element, which can also be called a mapping relationship. It is convenient to find the above-mentioned target container or the above-mentioned control element based on the above-mentioned binding relationship. In practical applications, the above-mentioned target container can be responsible for creating the corresponding blurred background area, and each control element in the target container can use the blurred background area corresponding to the container, etc. The introduction of the above-mentioned blurred background area can be described in detail below in this disclosure, and will not be repeated here.

[0048] The present disclosure does not limit the specific implementation of the above step S101. For example, when the above control element information includes the color mixing mode adopted by the control element, the present disclosure can count the color mixing mode adopted by each control element in the target container, etc. For example, taking 50 control elements in the target container as an example, 20 of the 50 control elements adopt the same color mixing mode 1, and the remaining 30 control elements adopt the same color mixing mode 2, etc. Correspondingly, the present disclosure can count that the above 20 control elements adopt the color mixing mode 1, and the above 30 control elements adopt the color mixing mode 2, etc.

[0049] When the above-mentioned control element information includes the background area of ​​the target container where the control element is located, during the rendering process, specifically during the rendering engine hwui drawing the corresponding control element, when drawing to the above-mentioned target container where the above-mentioned control element is located, a corresponding background area (also referred to as a background screenshot) can be generated for the target container. Among them, the present disclosure does not limit the generation implementation method of the above-mentioned background area. For example, in one implementation, the present disclosure can obtain the background image corresponding to the user interface, and then determine the background area that needs background processing from the above-mentioned background image based on the above-mentioned target container (specifically, the position of each control element), thereby obtaining the background area of ​​the above-mentioned target container. For example, in another implementation, when drawing the above-mentioned target container or its corresponding user interface, the present disclosure can first create a container surface SkSurface, and then obtain the canvas SkCanvas corresponding to the SkSurface; finally, the canvas SkCanvas can be screenshotted, specifically, for example, calling a canvas screenshot function (such as SkSurface::makeImageSnapshot) to screenshot the content of the above-mentioned SkCanvas, etc., thereby obtaining the background area of ​​the above-mentioned target container.

[0050] S102: Perform background processing on the control element based on the background area of ​​the target container where the control element is located and the color blending mode adopted by the control element.

[0051] The present disclosure does not limit the specific implementation of the above background processing. For example, during the implementation process, the present disclosure may first perform blur processing on the background area of ​​the target container where the above control element is located to obtain the corresponding blurred background area (snap_blur). For example, see Figure 4 FIG. 1 is a schematic diagram showing a blurred background area according to an exemplary embodiment. Figure 4 The area shown may be a blurred background area corresponding to the target container after blurring.

[0052] Next, the present disclosure may perform color mixing on the blurred background area based on the color mixing mode adopted by the control element. Specifically, for example, the color mixing indicated by the color mixing mode may be performed on the blurred background area, thereby obtaining the color mixing background area corresponding to the target container. For example, please refer to FIG. 5(a) and FIG. 5(b), which are schematic diagrams of two possible color mixing background areas according to an exemplary embodiment. Referring to the example that the color mixing mode includes color mixing mode 1 and color mixing mode 2, the present disclosure may perform the color mixing indicated by the color mixing mode 1 and the color mixing mode 2 on the blurred background area, thereby obtaining the color mixing background area (snap_blur_1) shown in FIG. 5(a) and the color mixing background area (snap_blur_2) shown in FIG. 5(b), etc.

[0053] Furthermore, the present disclosure can render the above-mentioned mixed color background area into the user interface where the above-mentioned control element is located based on the control area occupied by the above-mentioned control element. In the specific rendering process, when drawing the above-mentioned control element in the target container, the present disclosure can cut out the clipping canvas corresponding to the above-mentioned control area in the canvas SkCanvas corresponding to the target container based on the control area occupied by the above-mentioned control element. Specifically, the present disclosure can call clipping functions such as SkCanvas::clipPath or clipRRect to cut out the clipping canvas of the size of the control area occupied by the above-mentioned control element in the canvas. Then find the above-mentioned mixed color background area from the target container corresponding to the above-mentioned control element, and finally draw the mixed color background area into the above-mentioned clipping canvas SkCanvas. Specifically, the present disclosure can call an image drawing function (such as SkCanvas::drawImageRect) to draw the above-mentioned mixed color background area into the clipping canvas, that is, draw the mixed color background area of ​​the size of the control area occupied by the above-mentioned control area into SkCanvas, so as to serve as the background area displayed by the above-mentioned control element in the user interface, etc. For example, please refer to Figure 6 FIG. 1 is a schematic diagram showing a mixed color background area rendering according to an exemplary embodiment. Figure 6 In the example shown, control elements A and C use the same mixed color background area 1, and control elements B and D use the same mixed color background area 2. The present disclosure can draw the mixed color background area 1 onto a canvas of the size of the control area occupied by each of the control elements A and C, and draw the mixed color background area 2 onto a canvas of the size of the control area occupied by each of the control elements B and D.

[0054] By implementing the embodiments of the present disclosure, the present disclosure can provide background processing for at least one control element to be processed through a fuzzy processing operation and at least one color mixing processing operation during the rendering process through a container and a control element mode, that is, provide a background area after fuzzy processing and color mixing processing, thereby reducing the number of fuzzy times and color mixing times in the background processing as much as possible, thereby facilitating the improvement of the performance of the control background processing. Specifically, the terminal device obtains the control element information, the control element information includes the background area of ​​the target container where the control element to be processed is located and the color mixing mode adopted by the control element, the color mixing mode is used to indicate the corresponding background color mixing processing of the control element; the control element is background processed based on the background area of ​​the target container where the control element is located and the color mixing mode adopted by the control element. It can be seen that the terminal device can perform background processing based on the background area of ​​the target container where at least one control element to be processed is located and the color mixing mode adopted by the control element. In particular, for multiple control elements belonging to the same target container or multiple control elements using the same color mixing mode, only one background processing is required, which can greatly reduce the number of background processing times compared to the above-mentioned related technologies, thereby improving the performance of the control background processing. This also solves the technical problems existing in the above-mentioned related technologies such as a large number of processing times and reduced terminal performance.

[0055] Based on the above examples, see Figure 7 FIG. 1 is a schematic diagram showing a structure of a control background processing device according to an exemplary embodiment. Figure 7 The device shown can be applied to a terminal device, and the device may include an acquisition module 701 and a processing module 702. Among them:

[0056] The acquisition module 701 is configured to acquire control element information, wherein the control element information includes a background area of ​​a target container where the control element is located and a color mixing mode used by the control element, wherein the color mixing mode is used to indicate that a corresponding background color mixing process is performed on the control element;

[0057] The processing module 702 is configured to perform background processing on the control element based on the background area of ​​the target container where the control element is located and the color blending mode used by the control element.

[0058] In some embodiments, the processing module 702 is configured to:

[0059] Performing blur processing on the background area of ​​the target container where the control element is located to obtain a corresponding blurred background area;

[0060] Performing color mixing on the blurred background area based on the color mixing mode adopted by the control element to obtain a corresponding color mixing background area;

[0061] Based on the control area occupied by the control element, the mixed color background area is rendered into the user interface where the control element is located.

[0062] In some embodiments, the processing module 702 is configured to:

[0063] Based on the control area occupied by the control element, cutting out a cutting canvas corresponding to the control area in the canvas corresponding to the target container;

[0064] The mixed color background area is drawn onto the clipping canvas to serve as the background area of ​​the control element in the user interface.

[0065] In some embodiments, the control element information includes a background area of ​​a target container where the control element is located, and the acquisition module 701 is configured to: generate the background area of ​​the target container for the target container where the control element is located.

[0066] In some embodiments, the acquisition module 701 is further configured to acquire a view group to be processed, the view group being used to construct the control element or to construct a user interface where the control element is located, and the level of the view group being less than or equal to a preset level;

[0067] The processing module 702 is further configured to set the view group as the target container, and set the controls in the view group that require background processing as the corresponding control elements.

[0068] In some embodiments, the processing module 702 is further configured to establish a binding relationship between the target container and the control element, so as to determine the target container where the control element is located based on the binding relationship and the control element.

[0069] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0070] By implementing the embodiments of the present disclosure, the above-mentioned device can obtain control element information, and the control element information includes the background area of ​​the target container where the control element to be processed is located and the color mixing mode adopted by the control element, and the color mixing mode is used to indicate the corresponding background color mixing processing of the control element; the control element is subjected to background processing based on the background area of ​​the target container where the control element is located and the color mixing mode adopted by the control element. It can be seen that the terminal device can perform background processing based on the background area of ​​the target container where at least one control element to be processed is located and the color mixing mode adopted by the control element. In particular, for multiple control elements belonging to the same target container or multiple control elements using the same color mixing mode, only one background processing is involved. Compared with the above-mentioned related technologies, the number of background processing can be greatly reduced, thereby improving the performance of control background processing. It also solves the technical problems existing in the above-mentioned related technologies such as a large number of processing times and reduced terminal performance.

[0071] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the control background processing method provided by the present disclosure.

[0072] Figure 8 800 is a schematic diagram of a terminal device according to an exemplary embodiment. For example, the terminal device 800 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or other terminal devices.

[0073] Reference Figure 8 The terminal device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .

[0074] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned control background processing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0075] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0076] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0077] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the terminal device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0078] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0079] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0080] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0081] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0082] In an exemplary embodiment, the device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned control background processing method.

[0083] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to complete the above-mentioned upper control background processing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0084] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned control background processing method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, such as the integrated circuit or chip including a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned control background processing method is implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned control background processing method.

[0085] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned widget background processing method when executed by the programmable device.

[0086] See also Fig. 9 FIG. 1 is a schematic diagram showing the structure of a chip according to an exemplary embodiment. Fig. 9 The chip 900 shown includes a processor 901 and an interface 902. Optionally, it may also include a memory 903. The number of the processor 901 may be one or more, and the number of the interface 902 may be more than one.

[0087] In one embodiment, for a case where a chip is used to implement the method embodiment of the present disclosure:

[0088] The interface 902 is used to receive or output signals;

[0089] The processor 901 is used to execute part or all of the content in the control background processing method embodiment.

[0090] Understandably, the processor in the embodiment of the present disclosure may be an integrated circuit chip having signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0091] It is understandable that the memory in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0092] By implementing the disclosed embodiment, by obtaining control element information, the control element information includes the background area of ​​the target container where the control element to be processed is located and the color mixing mode adopted by the control element, and the color mixing mode is used to indicate the corresponding background color mixing processing for the control element; the control element is subjected to background processing based on the background area of ​​the target container where the control element is located and the color mixing mode adopted by the control element. It can be seen that the terminal device can perform background processing based on the background area of ​​the target container where at least one control element to be processed is located and the color mixing mode adopted by the control element. In particular, for multiple control elements belonging to the same target container or multiple control elements using the same color mixing mode, only one background processing is involved. Compared with the above-mentioned related technologies, the number of background processing can be greatly reduced, thereby improving the performance of control background processing. It also solves the technical problems existing in the above-mentioned related technologies such as a large number of processing times and reduced terminal performance.

[0093] It should be noted here that the description of the above storage medium, device and chip embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.

[0094] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0095] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A control background processing method, characterized in that: include: Acquire control element information, where the control element information includes a background area of ​​a target container where the control element to be processed is located and a color mixing mode used by the control element, where the color mixing mode is used to indicate that corresponding background color mixing processing is performed on the control element; Background processing is performed on the control element based on the background area of ​​the target container where the control element is located and the color blending mode adopted by the control element.

2. The method according to claim 1, characterized in that The performing background processing on the control element based on the background area of ​​the target container where the control element is located and the color mixing mode adopted by the control element includes: Performing blur processing on the background area of ​​the target container where the control element is located to obtain a corresponding blurred background area; Performing color mixing on the blurred background area based on the color mixing mode adopted by the control element to obtain a corresponding color mixing background area; Based on the control area occupied by the control element, the mixed color background area is rendered into the user interface where the control element is located.

3. The method according to claim 2, characterized in that The rendering of the mixed color background area into the user interface where the control element is located based on the control area occupied by the control element comprises: Based on the control area occupied by the control element, cutting out a cutting canvas corresponding to the control area in the canvas corresponding to the target container; The mixed color background area is drawn onto the clipping canvas to serve as the background area of ​​the control element in the user interface.

4. The method according to claim 1, characterized in that: The control element information includes the background area of ​​the target container where the control element is located, and obtaining the control element information includes: A background area of ​​the target container is generated for the target container where the control element is located.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Acquire a view group to be processed, where the view group is used to construct the control element or the user interface where the control element is located, and the level of the view group is less than or equal to a preset level; The view group is set as the target container, and the controls in the view group that need background processing are set as the corresponding control elements.

6. The method according to claim 5, characterized in that The method further comprises: A binding relationship between the target container and the control element is established to determine the target container where the control element is located based on the binding relationship and the control element.

7. A control background processing device, characterized in that: include: an acquisition module, configured to acquire control element information, the control element information including a background area of ​​a target container where the control element is located and a color mixing mode adopted by the control element, the color mixing mode being used to indicate that corresponding background color mixing processing is performed on the control element; The processing module is configured to perform background processing on the control element based on the background area of ​​the target container where the control element is located and the color mixing mode adopted by the control element.

8. A terminal device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the executable instructions to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A chip, characterized in that: The method comprises a processor and an interface; the processor is used to read instructions to execute the method according to any one of claims 1 to 6.