Function switching method, electronic device, chip system and storage medium

By determining the collection of function conflicts in the mobile phone camera application, and turning off or lowering the status and function specifications of the conflict functions, the conflict problem during function switching of camera applications is solved, and the smooth progress of function switching and the normal operation of camera applications is achieved.

CN118450032BActive Publication Date: 2025-03-21HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311867929.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-03-21
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

When using camera applications, some functions of the camera application cannot be superimposed due to factors such as hardware capabilities, software algorithm capabilities, and power consumption limitations. There are conflicts between certain functions of the camera application, and it is impossible to switch camera functions in time.

Method used

Provides a function switching method that ensures that there is no conflict between the various functions in the camera application when switching to the target function by determining the conflict set, turning off or reducing the status and function specifications of the conflicting functions.

Benefits of technology

It realizes that when switching camera application functions, it successfully responds to switching commands, avoids functional conflicts and ensures the normal operation of camera applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118450032B_ABST
    Figure CN118450032B_ABST
Patent Text Reader

Abstract

The present application discloses a function switching method, an electronic device, a chip system and a storage medium, the method comprising: determining a first conflict set corresponding to a first function, the first function being a function to be run in a camera application, the first conflict set including functions that conflict with the first function and / or function specifications that conflict with the first function; determining a second function and / or a first function specification based on the first conflict set, the second function being a function that conflicts with the first function and is being run, the first function specification being a function specification that conflicts with the first function and is being used; turning off the state of the second function and / or reducing the first function specification to the second function specification, the second function specification not conflicting with the first function; and running the first function. The use of this method is conducive to successfully responding to a switching instruction for switching functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a function switching method, an electronic device, a chip system and a storage medium. Background Art

[0002] When using the camera app on a mobile phone, some functions of the camera app cannot be used in combination due to factors such as hardware capabilities, software algorithm capabilities, and power consumption limitations. Some functions of the camera app conflict with each other. For example, when the skin beautification function of the camera app is turned on, the night scene enhancement function of the camera app cannot be supported at the same time.

[0003] This conflict between the functions of the camera application will result in the inability to switch the camera function in time. For example, when the skin beautification function of the camera application is turned on, the phone cannot respond to the switch command to switch to the night scene enhancement function. Summary of the invention

[0004] The present application provides a function switching method, electronic device, chip system and storage medium, which are conducive to successfully responding to the switching instruction of the switching function.

[0005] In a first aspect, some embodiments of the present application provide a function switching method. The function switching method may include: determining a first conflict set corresponding to a first function, the first function being a function to be run in a camera application, the first conflict set including functions that conflict with the first function and / or function specifications that conflict with the first function; based on the first conflict set, determining a second function and / or a first function specification, the second function being a function that conflicts with the first function and is being run, the first function specification being a function specification that conflicts with the first function and is being used; turning off the state of the second function and / or reducing the first function specification to the second function specification, the second function specification not conflicting with the first function; and running the first function.

[0006] In the above manner, when switching to the first function, the function and / or function specification in the current camera application that conflicts with the first function is determined, the function that conflicts with the first function is turned off, and / or the function specification that conflicts with the first function is reduced to ensure a successful response to the switching instruction of the switching function.

[0007] In one possible implementation, after turning off the state of at least one second function and / or reducing the first function specification to the second function specification, before running the first function, specifically: determining a second conflict set corresponding to the second function specification, the second conflict set includes functions that conflict with the second function specification and / or function specifications that conflict with the second function specification; based on the second conflict set, determining a third function and / or a third function specification, the third function is a function that conflicts with the second function and is running, and the third function specification is a function specification that conflicts with the second function and is in use; turning off the state of the third function and / or reducing the third function specification to a fourth function specification, the fourth function specification does not conflict with the third function.

[0008] In the above manner, in order to successfully switch to the first function, after adjusting the function specifications in the camera application, new conflicts will be generated between the adjusted function specifications and other functions. In order to avoid the new conflict affecting the normal operation of the camera application, after determining that there is a new conflict, the conflicting function specifications are adjusted again. This ensures that after switching to the first function, there are no conflicts between the various functions running in the camera application.

[0009] In one possible implementation, after starting the camera application, the functions in the camera application are loaded based on a function configuration list, where the function configuration list includes the status and / or function specifications corresponding to each function when initializing the camera application; when loading the functions of the camera application, based on the function configuration list, disabled function specifications are determined, and the disabled function specifications conflict with any other loaded functions and / or function specifications; and the icons corresponding to the disabled function specifications are displayed in a disabled state.

[0010] In the above manner, the camera application is initialized through the configuration list, so that there is no conflict between the various functions in the camera application during initialization. And the visualization and the function running during initialization will have conflicting functional specifications, further avoiding the occurrence of conflicts.

[0011] In one possible implementation, when exiting the camera application, the function configuration list is updated, and the updated function configuration list includes the status and / or function specifications corresponding to each application function before exiting the camera, and there is no conflict between the status and / or function specifications corresponding to each application function included in the updated function configuration list.

[0012] In the above manner, when the camera application is used, there is no conflict between the various functions of the camera application. When exiting the camera application, the status and / or function specifications corresponding to the various functions of the current camera application are synchronized to the function configuration list. It is ensured that there is no conflict between the various functions of the camera application when the camera application is initialized after the camera application is started next time.

[0013] In a possible implementation, after running the first function, the method further includes: updating the display interface of the camera application, the updated display interface highlighting the icon corresponding to the first function, and displaying the icons corresponding to the second function and / or the first function specification as disabled.

[0014] In the above manner, the icons of the first function and the second function and / or the first function specification in the camera application are visualized, the currently used function is highlighted, and the function and / or function specification that conflicts with the currently used function is displayed as disabled, so as to better avoid new conflicts.

[0015] In a possible implementation, the updated display interface also includes prompt information, where the prompt information is used to prompt that the first function and the second function and / or the first function specification cannot be used at the same time.

[0016] By means of the above method, the user is prompted with conflicting functions and / or functional specifications, so that new conflicts can be better avoided.

[0017] In a possible implementation, the function corresponding to the first functional specification includes multiple functional specifications, and the second functional specification is a functional specification that does not conflict with the first function and has the highest specification among the multiple functional specifications included in the function corresponding to the first functional specification.

[0018] In a second aspect, the present application provides an electronic device, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the function switching method in any possible implementation of the first aspect.

[0019] In a third aspect, the present application provides a function switching device, which may be an electronic device, or a device in an electronic device, or a device that can be used in combination with an electronic device; wherein the function switching device may also be a chip system, and the function switching device may execute the method executed by the electronic device in the first aspect. The function of the function switching device may be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more units corresponding to the above functions. The unit may be software and / or hardware. The operations and beneficial effects performed by the function switching device may refer to the methods and beneficial effects described in the first aspect above, and the repetitive parts will not be repeated.

[0020] In a fourth aspect, the present application provides a chip comprising a processor and an interface, wherein the processor and the interface are coupled; the interface is used to receive or output signals, and the processor is used to execute code instructions to execute the function switching method in any possible implementation of the first aspect above.

[0021] In a fifth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the function switching method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0023] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0024] Figure 3 A flowchart of a function switching method provided in an embodiment of the present application;

[0025] Figure 4 A schematic diagram of the software structure of another electronic device provided in an embodiment of the present application;

[0026] Figure 5 A flowchart of another function switching method provided in an embodiment of the present application;

[0027] Fig. 6A A schematic diagram of a camera application interface for a method for switching functions provided in an embodiment of the present application;

[0028] Figure 6B A schematic diagram of a camera application interface for another method of switching functions provided in an embodiment of the present application;

[0029] Figure 6C A schematic diagram of a camera application interface for another method of switching functions provided in an embodiment of the present application;

[0030] Figure 7 A flowchart of another function switching method provided in an embodiment of the present application;

[0031] Figure 8 is a structural schematic diagram of a function switching device provided in an embodiment of the present application;

[0032] Fig. 9 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0034] It should be understood that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0035] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0036] The hardware structure of the electronic device 100 is introduced below. Figure 1 , Figure 1 It is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application.

[0037] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0038] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0039] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0040] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0041] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved. The processor 110 calls the instructions or data stored in the memory, so that the electronic device 100 executes the function switching method executed by the electronic device in the following method embodiment.

[0042] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0043] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.

[0044] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. In some other embodiments, the power management module 141 can also be set in the processor 110.

[0045] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0046] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0047] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0048] The modulation and demodulation processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor.

[0049] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), BLE broadcasting, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0050] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0051] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0052] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. The display screen 194 may be an outward folding screen, that is, a display screen that is folded outward.

[0053] The electronic device 100 can implement a function switching function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor. The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture static images or videos. The camera 193 may include a front camera and a rear camera, the front camera is located in the display area of ​​the screen, and the rear camera is located in the back area of ​​the screen. The digital signal processor is used to process digital signals, and in addition to processing digital image signals, it can also process other digital signals. The video codec is used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs.

[0054] NPU is a neural-network (NN) computing processor. It can quickly process input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn.

[0055] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement a data storage function.

[0056] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function), etc. The data storage area may store data (such as audio data) created during the use of the electronic device 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as a flash memory device, etc.

[0057] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0058] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0059] Speaker 170A, also known as "speaker", is used to convert audio electrical signals into sound signals. Receiver 170B, also known as "earpiece", is used to convert audio electrical signals into sound signals. Microphone 170C, also known as "microphone" and "microphone", is used to convert sound signals into electrical signals. Headphone interface 170D is used to connect wired headphones. Pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals. In some embodiments, pressure sensor 180A can be set on display screen 194. Gyroscope sensor 180B can be used to determine the motion posture of electronic device 100. Air pressure sensor 180C is used to measure air pressure. Magnetic sensor 180D includes Hall sensor. Acceleration sensor 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). Distance sensor 180F is used to measure distance. Proximity light sensor 180G can include, for example, light emitting diode (LED) and light detector. Ambient light sensor 180L is used to sense ambient light brightness. Fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The bone conduction sensor 180M can obtain vibration signals. The buttons 190 include a power button, a volume button, etc. The motor 191 can generate vibration prompts. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.

[0060] In addition, an operating system is running on the above components. For example, operating systems such as iOS and Android. The operating system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100. It should be noted that although the embodiment of the present application is described by taking the Android system as an example, its basic principles are also applicable to electronic devices of other operating systems.

[0061] Figure 2It is a software structure block diagram of the electronic device 100 of the embodiment of the present application. The software structure adopts a layered architecture, which divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In the embodiment of the present application, the operating system (taking the Android system, the Android system running on the AP as an example) can be divided into three layers, from top to bottom, namely, the application layer (application, APP), the application framework layer (framework, FWK) and the hardware abstraction layer (hardware abstraction layer, HAL).

[0062] The application layer may include a series of application packages. Figure 2 As shown, the application package may include applications such as a camera. In the embodiment of the present application, the camera refers to a camera application. The camera application may include a camera interface module, a function module, a rendering module, a conflict management module, an interaction module, and a persistence module. In addition to the above modules, the camera application may also include other modules, which are not limited in the present application.

[0063] The camera interface module is a module in the camera application, which is used to manage and control the camera application and provide an interface for the camera application.

[0064] A function module is a module in the camera application that provides the on / off status of each function in the camera application, a function specification set, and defines conflicts with other functions and / or function specifications. For example, functions can be skin beautification, filters, and night scene enhancement.

[0065] The rendering module is a module in the camera application, which is responsible for rendering each function and / or function specification control according to the output result of the conflict management module, and finally presenting it to the user interface.

[0066] The conflict management module is a module in the camera application, which is used to handle conflicts between various functions and / or functional specifications in the camera application. The conflict management module collects conflict sets corresponding to various functions from the functional modules. After the conflict sets are collected, conflicts are recursively merged according to sufficient relationships until all conflicts are merged.

[0067] The interaction module is a module in the camera application that is responsible for responding to user operations and performing different actions according to the state of the control. For example, when a user clicks the button corresponding to the skin beautification function, the interaction module responds to the click operation and performs different actions according to the state of the button corresponding to the skin beautification function.

[0068] The persistence module is a module in the camera application, which is used to store persistent data corresponding to each function and / or function specification of the camera application. The persistent data is used to indicate the status corresponding to each function and / or function specification when the camera application is initialized.

[0069] The application framework layer provides application developers with an application programming interface (API) framework and various services and management tools for accessing core functions, including interface management, data access, application layer messaging, application package management, phone management, location management, etc. The application framework layer includes some predefined functions. Figure 2 As shown, the application framework layer may include a camera service (CameraService), etc. The CameraService is responsible for scheduling the startup process of the camera application, creating and managing processes, creating and managing windows, etc.

[0070] The hardware abstraction layer is an interface layer between the operating system kernel and the hardware circuit. Its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform and can provide a virtual hardware platform for the operating system. Figure 2 As shown in the figure, the hardware abstraction layer may include a camera device interface (CameraDevice), a camera device session interface (CameraDeviceSession), a camera service (CameraProvider), etc. Among them, CameraDevice is an abstract representation of a single camera connected to the device, which can support fine-grained control and post-processing of captured images at high frame rates; CameraDeviceSession is used to create a camera device session, store the properties and configuration information required for the camera device session, etc.; CameraProvider is used to enumerate a single device and manage its status, and can turn on and off physical camera devices (such as the rear camera).

[0071] Based on the above software structure, the present application embodiment provides a flowchart of a function switching method based on a software structure. Figure 3 As shown, the camera mode switching method includes the following steps 301 to 320. Among them:

[0072] 301. The function module reads the status and / or function specifications corresponding to each function in the persistence module.

[0073] The state corresponding to the function can be on or off, and the persistence module includes a mapping relationship between each function and the initialization state corresponding to the function. For example: skin beautification—on, filter—off, night scene enhancement—off. Skin beautification is a function in the camera application, and on is the state corresponding to the skin beautification function.

[0074] Similarly, if a function corresponds to at least two function specifications, the persistence module also includes the function specifications corresponding to each function. For example, resolution—1080P resolution, this resolution is a function in the camera application, and 1080p is the default function specification corresponding to the resolution function after the camera is turned on.

[0075] 302. The function module determines a conflict set according to states and / or function specifications corresponding to each function.

[0076] Wherein, one function corresponds to one conflict set, and the conflict set includes functions that conflict with the function and / or function specifications that conflict with the function. In the function module, a mapping relationship between each function and the conflict set corresponding to each function, and / or a mapping relationship between each function specification and the conflict set corresponding to each function specification is pre-stored.

[0077] Exemplarily, the functional module pre-stores: skin beautification—{night scene enhancement, 4K resolution}, filter—{night scene enhancement, 4K resolution}, night scene enhancement—{skin beautification, filter, 4K resolution}, 4K resolution—{skin beautification, filter, night scene enhancement}. Among them, skin beautification is a function in the camera application, {night scene enhancement, 4K resolution} is the conflict set corresponding to skin beautification, and any function and / or function specification in the conflict set conflicts with skin beautification (night scene enhancement conflicts with skin beautification, and the same is true for 4K resolution). 4K resolution is a function specification in the camera application, and this function specification is the function specification of resolution. {skin beautification, filter, night scene enhancement} is the conflict set corresponding to 4K resolution, and any function in the conflict set conflicts with 4K resolution.

[0078] 303. The functional module sends the conflict set to the conflict handling module.

[0079] The function module sends the conflict set corresponding to each function and each function specification to the conflict processing module. The conflict set can be found in the description of step 302 above, and will not be described in detail in this application.

[0080] In a possible embodiment, the function module may be a conflict set corresponding to the functions and function specifications sent one by one. For example, the conflict set corresponding to skin beautification is sent first, then the conflict set corresponding to the filter is sent, and so on. Alternatively, the function module may be a conflict set corresponding to all functions and function specifications sent at one time. For example, the conflict sets corresponding to skin beautification, filters, etc. are all sent to the conflict handling module together.

[0081] 304. The conflict handling module collects and saves the entire conflict set.

[0082] The full conflict set refers to the conflict set corresponding to all functions and function specifications in the camera application. Since the function modules may send the conflict sets corresponding to the functions and function specifications one by one, the conflict handling module will wait until all the conflict sets corresponding to the functions and function specifications are collected.

[0083] 305. The conflict handling module recursively performs multiple rounds of conflict handling until all conflicts are resolved and a stable state is reached.

[0084] When there is no conflict between various functions enabled by the camera application and the function specifications, it is considered that the camera application reaches a stable state.

[0085] 306. The conflict handling module sends a new value to the functional module.

[0086] The new value is a new functional specification generated during the conflict handling process. For example, when the conflict handling is performed for the first time, the functional specification of the resolution is adjusted from 4K resolution to 1080P resolution, and the new value is 1080P resolution. In addition, the new value can also be other parameters corresponding to the function, such as refresh rate, etc., which is not limited by this application.

[0087] 307. The functional module determines a new conflict.

[0088] The new conflict refers to whether there is still a conflict between the generated new function specification and the currently enabled function and function specification.

[0089] 308. The function module sends a new conflict to the conflict handling module.

[0090] When initializing, there is usually no conflict between the corresponding functions and function specifications. Therefore, no new conflicts will be generated in the process of step 305 to step 308, and only one conflict handling is required to obtain the conflict result. The conflict result is used to render the interface when initializing the camera application. In other words, when the camera application is initialized, the purpose of running steps 305 to step 308 is not to resolve conflicts, but to obtain conflict results for interface rendering.

[0091] For a detailed introduction of steps 305 to 308, please refer to the description of steps 315 to 318 below, which will not be elaborated in this application.

[0092] 309. The conflict handling module notifies the rendering module of the conflict handling result, triggering interface rendering.

[0093] The conflict handling result includes functions and / or function specifications that conflict with enabled functions and / or function specifications, and all controls are rendered.

[0094] 310. The rendering module renders the full functional interface according to the conflict resolution result.

[0095] Among them, the controls corresponding to the functions and / or functional specifications that conflict with the enabled functions and / or functional specifications in the conflict handling result are rendered as disabled or closed.

[0096] Among them, the above steps 301 to 310 are the initialization process when the camera application is turned on. For example, when the user clicks the icon of the camera application to open the camera application, the initialization process is performed. Alternatively, the user performs the initialization process when switching the shooting mode, for example, when the user switches from the rear camera to the front camera for shooting, the initialization process is performed. It can also be the initialization process performed when other switching modes are switched, and this application does not limit this.

[0097] 311. The interaction module receives an operation instruction or an external event.

[0098] The operation instruction is an operation instruction issued by the user. For example, when the camera application turns on the skin beautification function, the user clicks the control corresponding to the night scene enhancement function, hoping that the camera application switches from the skin beautification function to the night scene enhancement function. At this time, the interactive module receives the operation instruction. In addition to the user's click operation, it can also be a user's sliding operation, or a long press operation, etc. This application does not limit the specific operation form.

[0099] The external event may be an external event sent when the electronic device detects a change in the environment and automatically adjusts the function. For example, when the light sensor of the electronic device detects that the environment in which the electronic device is located is a dim environment, an external event is sent to turn on the night scene enhancement function. Or when the camera of the electronic device captures a face, an external event is sent to turn on the skin beautification function.

[0100] 312. The interactive module sends operation instructions or external events to the functional module.

[0101] The operation instruction or external event includes a function to be enabled and / or a function specification to be adjusted, etc. The operation instruction or external event is used to instruct the camera application to switch functions.

[0102] 313. The function module generates a new conflict set according to the response result.

[0103] The response result is that the operation instruction or external event includes the desired function to be enabled and / or the adjusted functional specifications. The new conflict set is the conflict set corresponding to the desired function to be enabled and / or the functional specifications included in the operation instruction or external event. The method for determining the conflict set can be referred to the description in the above step 302, and this application will not be repeated here.

[0104] 314. The functional module sends the conflict set to the conflict handling module.

[0105] This step can be referred to the description in the above step 303, and this application will not elaborate on it here.

[0106] 315. The conflict handling module recursively performs multiple rounds of conflict handling until all conflicts are resolved and a stable state is reached.

[0107] The conflict handling module handles one conflict at a time, and when handling a conflict, the conflict handling ends until there is no conflict between the functions and function specifications enabled in the camera application. For details, please refer to the description in the above step 305, which will not be repeated in this application.

[0108] 316. The conflict handling module sends a new value to the functional module.

[0109] This step can be referred to the description in the above step 306, and this application will not elaborate on it here.

[0110] 317. The functional module identifies a new conflict.

[0111] This step can be referred to the description in the above step 307, and this application will not elaborate on it here.

[0112] 318. The function module sends a new conflict to the conflict handling module.

[0113] This step can be referred to the description in the above step 308, and this application will not elaborate on it here.

[0114] 319. The conflict handling module notifies the rendering module of the conflict handling result and triggers interface rendering.

[0115] This step can be referred to the description in the above step 309, and this application will not elaborate on it here.

[0116] 320. The rendering module renders the control of the changed function and / or functional specification according to the conflict handling result.

[0117] The state of the control corresponding to the closed function and / or function specification is rendered as a disabled state or a closed state.

[0118] In a possible embodiment, Figure 4 As shown, the above-mentioned conflict management module may specifically include the following four sub-modules: a data sub-module, a collection sub-module, a processing sub-module and a control sub-module.

[0119] This data submodule is used to load the persistent values ​​corresponding to each function during initialization, or to store the persistent values ​​changed by each function when the camera application is closed.

[0120] The collecting submodule is used for receiving conflict sets corresponding to various functions and / or functional specifications sent by the functional module.

[0121] The processing submodule is used to recursively perform multiple rounds of conflict processing based on the conflict sets corresponding to each function and / or function specification.

[0122] The control submodule is used to notify the rendering module to render the interface according to the conflict handling result.

[0123] Based on the above, another function switching method provided by the embodiment of the present application is further described in detail below. Figure 5 As shown, the function switching method includes steps 501 to 504. Figure 5 The method execution subject shown can be the electronic device mentioned above. Or, Figure 5 The method execution entity shown may be a chip in an electronic device, which is not limited in the embodiments of the present application. Figure 5 The following is an example of an electronic device being used as the execution subject of the method.

[0124] 501. The electronic device determines a first conflict set corresponding to a first function, where the first function is a function to be executed in a camera application, and the first conflict set includes functions that conflict with the first function and / or function specifications that conflict with the first function.

[0125] The first function is the function to be switched, that is, the first function is currently in the off state in the camera application. After a user operation or after the electronic device detects an external event, the electronic device wants to adjust the first function of the camera application from the off state to the on state, triggering the electronic device to determine the first conflict set corresponding to the first function.

[0126] In a possible embodiment, the electronic device pre-stores a mapping relationship between each function and function specification and a conflict set corresponding to each function and function specification, and the electronic device determines the first conflict set corresponding to the first function, specifically: the electronic device determines the first conflict set corresponding to the first function based on the first function and the mapping relationship between each pre-stored function and function specification and a conflict set corresponding to each function and function specification.

[0127] 502. The electronic device determines a second function and / or a first function specification based on the first conflict set, where the second function is a function that conflicts with the first function and is currently running, and the first function specification is a function specification that conflicts with the first function and is currently being used.

[0128] The second function and / or the first function specification exists in the first conflict set.

[0129] In a possible embodiment, the electronic device determines the second function and / or the first function specification based on the first conflict set, specifically: the electronic device determines the second function and / or the first function specification based on the first conflict set and the third conflict set, wherein the third conflict set is a conflict set corresponding to the second function and / or the first function specification, the third conflict set includes the first function, and the third conflict set includes the second function and / or the first function specification.

[0130] Optionally, the electronic device queries the operating status and / or functional specifications of the functions included in the first conflict set; based on the operating status and / or functional specifications of the functions in the first conflict set and the first conflict set, determines the second function and / or first functional specifications, the operating status of the second function is on, and the functional specification of the function corresponding to the first functional specification is the first functional specification.

[0131] Exemplarily, the first function is skin beautification, and the first conflict set includes the following two functions and function specifications {filter, night scene enhancement, 4K resolution}. The electronic device queries whether the current camera application has turned on the filter, whether the night scene enhancement is turned on, and whether the resolution is 4K resolution. If the current camera application has turned on the filter, the second function is the filter; if the current camera application has turned on the night scene enhancement, the second function is the night scene enhancement; if the current camera application has a 4K resolution, the first function specification is 4K resolution.

[0132] In a possible embodiment, the function corresponding to the first functional specification includes multiple functional specifications, and the second functional specification is a functional specification that does not conflict with the first function and has the highest specification among the multiple functional specifications included in the function corresponding to the first functional specification.

[0133] That is, when the first functional specification is lowered, the functional specification with the highest specification is selected as the second functional specification from among the plurality of functional specifications included in the function corresponding to the first specification.

[0134] Exemplarily, the function corresponding to the first functional specification is resolution, and the functional specifications of the resolution include: 4K resolution, 1080P resolution and 720P resolution. The first functional specification is 4K resolution. When the first functional specification is reduced, it is preferentially reduced to 1080P resolution, and the 1080P resolution does not conflict with the first function. Or the function corresponding to the first functional specification is frame rate, and the functional specifications of the frame rate include: 30FPS frame rate, 24FPS frame rate, etc.

[0135] 503. The electronic device turns off the second function and / or reduces the first function specification to the second function specification, and the second function specification does not conflict with the first function.

[0136] Among them, the second functional specification is smaller than the first functional specification. For example, the function corresponding to the first functional specification is resolution, the first functional specification is 4K resolution, and the second functional specification is 1080P resolution.

[0137] In a possible embodiment, after the electronic device turns off the second function and / or reduces the first function specification to the second function specification, the second function specification conflicts with other running functions and / or function specifications and / or a third function specification (third function), so after the electronic device turns off at least one second function and / or reduces the first function specification to the second function specification, before running the first function, it also includes: the electronic device determines a second conflict set corresponding to the second function specification, the second conflict set includes functions that conflict with the second function specification and / or function specifications that conflict with the second function specification; the electronic device determines the third function and / or the third function specification based on the second conflict set, the third function is a function that conflicts with the second function and is running, and the third function specification is a function specification that conflicts with the second function and is in use; the electronic device turns off the third function and / or reduces the third function specification to a fourth function specification, and the fourth function specification does not conflict with the third function.

[0138] Among them, the second function is turned off, so after the second function is adjusted, there is no conflict with other functions and / or function specifications running in the camera application. However, the adjustment of the second function specification may generate new conflicts. Therefore, in this embodiment, it is only necessary to determine the second conflict set corresponding to the second function specification, and the third function and / or third function specification that conflicts with the second function specification.

[0139] Exemplarily, the first function is skin beautification, and the first conflict set corresponding to the first function is: {filter, night scene enhancement, 4K resolution}, the first function specification is 4K resolution, and the first function specification is reduced from 4K resolution to 1080P resolution. The second conflict set corresponding to the 1080P resolution is determined to be: {filter, high pixel, super macro}. The high pixel function in the second conflict set is turned on, and based on the second conflict set, the third function is determined to be the high pixel function. Since there is a conflict between the 1080P resolution and the high pixel function, the high pixel function is turned off.

[0140] 504. The electronic device runs a first function.

[0141] After the first function is run, the state of the first function is turned on.

[0142] In a possible embodiment, after the electronic device runs the first function, it also includes: the electronic device updates the display interface of the camera application, the updated display interface highlights the icon corresponding to the first function, and displays the icon corresponding to the second function and / or the first function specification as disabled.

[0143] Among them, the icon corresponding to the first function is the control corresponding to the first function, and the control can specifically be: a button, a text box, etc. This application does not limit the specific form of the icon.

[0144] Optionally, the electronic device updates the display interface of the camera application, and the updated display interface highlights the icon corresponding to the first function, and displays the icons corresponding to the second function and / or the first function specification in a normal state. Fig. 6A As shown in the figure, the camera application originally turned on the night scene enhancement function. After the user selected the filter function, the filter function and the night scene enhancement function conflict and cannot be used at the same time. Therefore, after switching to the filter function, the icon corresponding to the filter function is highlighted, the night scene enhancement function is turned off, and the icon corresponding to the night scene enhancement function is in a normal state.

[0145] Optionally, the electronic device updates the display interface of the camera application, and the updated display interface highlights the icon corresponding to the first function, and updates the icon corresponding to the first function specification to the icon corresponding to the second function specification. Figure 6B As shown, after the first function (filter) is turned on, the icon 601 (24 FPS frame rate) corresponding to the first function specification is updated to the icon 602 (30 FPS frame rate) corresponding to the second function specification. Among them, the filter function does not support the 24 FPS frame rate.

[0146] In a possible embodiment, the updated display interface further includes prompt information, where the prompt information is used to prompt that the first function and the second function and / or the first function specification cannot be used at the same time.

[0147] For example, Figure 6C As shown, when the user turns on the skin beautification function, the functional specification of the resolution function is automatically reduced from 4K resolution to 1080P resolution, and a prompt message 603 is displayed after the reduction. The prompt message 603 is used to prompt that skin beautification and 4K resolution cannot be used at the same time.

[0148] In the above manner, when switching to the first function, the function and / or function specification in the current camera application that conflicts with the first function is determined, the function that conflicts with the first function is turned off, and / or the function specification that conflicts with the first function is reduced to ensure a successful response to the switching instruction of the switching function.

[0149] Above Figure 5 The illustrated embodiment describes how to respond to the operation of switching functions. However, when starting the camera, some default functions and / or function specifications need to be started. That is, the initialization of the camera application. In one possible implementation, after starting the camera application, the functions in the camera application are loaded based on the function configuration list, and the function configuration list includes the states and / or function specifications corresponding to each function when the camera application is initialized; when loading the functions of the camera application, based on the function configuration list, the disabled function specifications are determined, and the disabled function specifications conflict with any other functions and / or function specifications loaded; and the icons corresponding to the disabled function specifications are displayed as disabled.

[0150] Among them, the data stored in the function configuration list is the persistent value of each function and / or function specification of the camera application. The persistent value is used to indicate the status and / or function specification corresponding to each function when the camera application is turned on and initialized each time. Any function and / or function specification in the camera application corresponds to two values, one is the persistent value and the other is the memory value. The persistent value is introduced above, and the memory value is the value corresponding to the real-time status of each function when the camera application is running. For example, the persistent value of skin beautification is Y (the skin beautification function is turned on every time the camera application is turned on). After the camera automatically turns off the skin beautification function, the memory value of skin beautification is N (the current status of the skin beautification function is off). However, the next time the camera is turned on, the persistent value of skin beautification will not change.

[0151] In one possible embodiment, when running a camera application, the user's operation may change the persistent value of the function and / or function specification, but the state and / or function specification corresponding to the function changed by the electronic device to resolve the conflict will not change the persistent value of the function and / or function specification.

[0152] For example, the persistence value of the skin beautification function is N, and the persistence value of the night scene enhancement function is Y. After the camera is turned on, the skin beautification function is turned off and the night scene enhancement function is turned on. When the user turns on the skin beautification function, the memory value of the skin beautification function changes from N to Y, and the persistence value of the skin beautification function also changes from N to Y. Since the skin beautification function conflicts with the night scene enhancement function, the electronic device changes the memory value of the night scene enhancement function from Y to N to resolve the conflict, but the persistence value of the night scene enhancement function remains Y.

[0153] After the persistence value of the skin beautification function is changed, since the persistence values ​​of the two conflicting functions (skin beautification and night scene enhancement) are both Y, there will be a conflict in the initialization phase when the camera application is opened next time. Since the electronic device cannot determine which function to turn off during the initialization phase, it will cause the camera application to crash. To avoid this problem, in a possible embodiment, the electronic device updates the function configuration list when exiting the camera application. The updated function configuration list includes the status and / or function specifications corresponding to each application function before exiting the camera, and there is no conflict between the status and / or function specifications corresponding to each application function included in the updated function configuration list.

[0154] That is, when exiting the camera application, ensure that the status and / or function specifications corresponding to each function in the current camera application are the same as the function configuration list.

[0155] For example, the persistence value of the skin beautification function is N, and the persistence value of the night scene enhancement function is Y. After the camera is turned on, the skin beautification function is turned off and the night scene enhancement function is turned on. When the user turns on the skin beautification function, the memory value of the skin beautification function changes from N to Y, and the persistence value of the skin beautification function also changes from N to Y. Since the skin beautification function conflicts with the night scene enhancement function, the electronic device changes the memory value of the night scene enhancement function from Y to N to resolve the conflict. At this time, the persistence value of the night scene enhancement function is still Y. When exiting the camera application, the function configuration list is updated, and the persistence value corresponding to the updated skin beautification function is Y, and the persistence value corresponding to the updated night scene enhancement function is N.

[0156] In a possible embodiment, Figure 7 As shown, before the camera application is initialized (the initialization process can be found in the above Figure 3 The application will not elaborate on this):

[0157] 701. The interaction module receives a mode switching instruction / a camera exit instruction.

[0158] The mode switching instruction includes: an instruction to switch the camera application from a photo mode to a video mode, or an instruction to switch the camera application from a rear-facing photo mode to a front-facing photo mode, wherein the rear-facing photo mode is for the rear camera to capture a picture, and the front-facing photo mode is for the front camera to capture a picture. It should be noted that the mode switching instruction also includes instructions for switching other modes, which are not limited in this application.

[0159] 702. The interaction module sends a pre-processing instruction to the conflict handling module.

[0160] The pre-processing instruction is used to notify the conflict processing module to determine the status and / or functional specifications of each function in the camera application after completing the conflict processing.

[0161] 703. The conflict handling module sends the persistence value to the persistence module.

[0162] The persistence value is a full persistence value, that is, the persistence value and function specifications corresponding to each function in the camera application.

[0163] 704. The persistence module updates the persistence value.

[0164] The persistence module updates the stored persistence value so that the updated persistence value is the same as the persistence value sent by the conflict handling module.

[0165] See also Figure 8 , Figure 8 A schematic diagram of the structure of a function switching device 800 provided in an embodiment of the present application. Figure 8 The function switching device shown may be an electronic device, or a device in an electronic device, or a device that can be used in conjunction with an electronic device. Figure 8 The function switching device shown may include a processing unit 801 and a control unit 802. Among them:

[0166] A processing unit 801 is configured to determine a first conflict set corresponding to a first function, where the first function is a function to be executed in a camera application, and the first conflict set includes functions that conflict with the first function and / or function specifications that conflict with the first function;

[0167] The processing unit 801 is further configured to determine, based on the first conflict set, a second function and / or a first function specification, wherein the second function is a function that conflicts with the first function and is being run, and the first function specification is a function specification that conflicts with the first function and is being used;

[0168] A control unit 802, configured to turn off the state of the second function and / or reduce the first function specification to the second function specification, where the second function specification does not conflict with the first function;

[0169] The control unit 802 is further configured to execute the first function.

[0170] In a possible implementation, the processing unit 801 is further configured to determine a second conflict set corresponding to the second functional specification, where the second conflict set includes functions that conflict with the second functional specification and / or functional specifications that conflict with the second functional specification;

[0171] The processing unit 801 is further configured to determine a third function and / or a third function specification based on the second conflict set, wherein the third function is a function that conflicts with the second function and is being run, and the third function specification is a function specification that conflicts with the second function and is being used;

[0172] The control unit 802 is further used to turn off the state of the third function and / or reduce the specification of the third function to a fourth function specification, and the fourth function specification does not conflict with the third function.

[0173] In a possible implementation, the control unit 802 is further configured to load functions in the camera application based on a function configuration list after starting the camera application, where the function configuration list includes states and / or function specifications corresponding to each function when initializing the camera application;

[0174] The processing unit 801 is further configured to determine, when loading functions of the camera application, based on the function configuration list, a disabled function specification, the disabled function specification being in conflict with any other functions and / or function specifications loaded;

[0175] The control unit 802 is further configured to display the icon corresponding to the disabled function specification as a disabled state.

[0176] In one possible implementation, the control unit 802 is also used to update the function configuration list when exiting the camera application, and the updated function configuration list includes the status and / or function specifications corresponding to each application function before exiting the camera, and there is no conflict between the status and / or function specifications corresponding to each application function included in the updated function configuration list.

[0177] In a possible implementation, the control unit 802 is further used to update the display interface of the camera application, and the updated display interface highlights the icon corresponding to the first function, and displays the icon corresponding to the second function and / or the first function specification as disabled.

[0178] In a possible implementation, the updated display interface also includes prompt information, where the prompt information is used to prompt that the first function and the second function and / or the first function specification cannot be used at the same time.

[0179] In a possible implementation, the function corresponding to the first functional specification includes multiple functional specifications, and the second functional specification is a functional specification that does not conflict with the first function and has the highest specification among the multiple functional specifications included in the function corresponding to the first functional specification.

[0180] For the case where the function switching device can be a chip or a chip system, see Fig. 9 Schematic diagram of the chip structure shown. 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 multiple.

[0181] For the case where the chip is used to implement the electronic device in the embodiment of the present application:

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

[0183] The processor 901 is used to execute data processing operations of the electronic device.

[0184] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

[0185] It is understandable that some optional features in the embodiments of the present application may be implemented independently in certain scenarios without relying on other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects. They may also be combined with other features according to needs in certain scenarios. Accordingly, the function switching device provided in the embodiments of the present application may also realize these features or functions accordingly, which will not be elaborated here.

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

[0187] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can 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 can 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 (DDR SDRAM), 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.

[0188] The present application also provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed on an electronic device, the functions of any of the above method embodiments are implemented.

[0189] The present application also provides a computer program product. When the computer program product is executed on a computer, the computer can implement the functions of any of the above method embodiments.

[0190] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0191] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A function switching method, characterized in that: The method comprises: Determine a first conflict set corresponding to a first function, where the first function is a function to be executed in a camera application, and the first conflict set includes functions that conflict with the first function and / or function specifications that conflict with the first function; Determine a second function and / or a first function specification based on the first conflict set, wherein the second function is a function that conflicts with the first function and is being run, and the first function specification is a function specification that conflicts with the first function and is being used; Turning off the state of the second function and / or reducing the specification of the first function to a second function specification, where the second function specification does not conflict with the first function; Determine a second conflict set corresponding to the second functional specification, where the second conflict set includes functions that conflict with the second functional specification and / or functional specifications that conflict with the second functional specification; Determine a third function and / or a third function specification based on the second conflict set, wherein the third function is a function that conflicts with the second function specification and is being run, and the third function specification is a function specification that conflicts with the second function specification and is being used; Turning off the state of the third function and / or reducing the third function specification to a fourth function specification, where the fourth function specification does not conflict with the second function specification; Running the first function; The second function and the third function are functions in the camera application, and the first function specification, the second function specification, the third function specification and the fourth function specification are function specifications in the camera application.

2. The method according to claim 1, characterized in that The method further comprises: After starting the camera application, loading the functions in the camera application based on a function configuration list, wherein the function configuration list includes states and / or function specifications corresponding to each function when initializing the camera application; When loading functions of the camera application, determining, based on the function configuration list, a disabled function specification, the disabled function specification conflicts with any other functions and / or function specifications loaded; The icon corresponding to the disabled function specification is displayed in a disabled state.

3. The method according to claim 2, characterized in that The method further comprises: When exiting the camera application, the function configuration list is updated, and the updated function configuration list includes the status and / or function specifications corresponding to each application function before exiting the camera, and there is no conflict between the status and / or function specifications corresponding to each application function included in the updated function configuration list.

4. The method according to any one of claims 1 to 3, characterized in that: After executing the first function, the method further includes: The display interface of the camera application is updated, wherein the updated display interface highlights the icon corresponding to the first function and displays the icon corresponding to the second function and / or the first function specification as disabled.

5. The method according to claim 4, characterized in that The updated display interface also includes prompt information, where the prompt information is used to prompt that the first function and the second function and / or the first function specification cannot be used at the same time.

6. The method according to claim 5, characterized in that The function corresponding to the first functional specification includes multiple functional specifications, and the second functional specification is a functional specification that does not conflict with the first function and has the highest specification among the multiple functional specifications included in the function corresponding to the first functional specification.

7. An electronic device, comprising one or more memories and one or more processors, characterized in that: The memory is used to store a computer program; the processor is used to call the computer program so that the electronic device executes the method according to any one of claims 1 to 6.

8. A chip system, applied to electronic equipment, characterized in that: The chip system includes at least one processor and an interface, wherein the interface is used to receive instructions and transmit them to the at least one processor; the at least one processor executes the instructions so that the electronic device executes the method as described in any one of claims 1-6.

9. A computer storage medium, characterized in that include: Computer instructions; when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for detecting control conflict, electronic equipment and storage medium

    CN110597075A