Camera application startup method, readable storage medium and electronic device

By performing device power-on and current information configuration in parallel during the startup process of the camera application, the problem of long start-up time of the camera application is solved, and faster startup speed and higher user satisfaction are achieved.

CN116680001BActive Publication Date: 2024-12-10HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211642033.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-20
Publication Date
2024-12-10
Estimated Expiration
2042-12-20

AI Technical Summary

Technical Problem

The startup process of existing camera applications takes a long time, especially the time gap between the device power-on and current information configuration processes, resulting in poor user experience.

Method used

The device power-up process is performed in parallel by loading the module in the camera application opening process, and the real mode initialization configuration is performed during the stream information configuration process, reducing time gaps and improving startup efficiency.

Benefits of technology

The startup time of the camera application is shortened, and users can use the correct mode camera application faster, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116680001B_ABST
    Figure CN116680001B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of image or video capture devices, and discloses a method for starting a camera application, a readable storage medium, and an electronic device. The method includes: obtaining a start-up request for a camera application; executing an opening process of the camera application, executing a first process during the opening process of the camera application, and the first process includes a device power-on process; executing a configuration process of the stream information of the camera application, and executing a second process during the configuration process of the stream information of the camera application; and controlling the display screen of the electronic device to display a first frame of the image according to the configured parameters, and the configured parameters include the parameters configured in the first process and the parameters configured in the second process. In this way, part of the time used in the original startup process is saved, and after the startup process of the camera application is completed, the user can directly use the camera application in the correct mode, thereby improving the user's satisfaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image or video capturing devices, and in particular to a method for starting a camera application, a readable storage medium, and an electronic device. Background Art

[0002] The process of starting the camera application on an electronic device refers to the process from when the user clicks the camera application icon on the display screen of the electronic device to when the first frame of the image is displayed on the display screen. The process of starting the camera application mainly includes the process of opening the camera application (open) and the process of configuring the stream information (configureStreams). Among them, the process of opening the camera application is mainly used to initialize the camera application, and the process of configuring the stream information is mainly used to configure the stream information. The process of configuring the stream information includes the process of powering on the device, the process of initializing the configuration, and the process of configuring the mode.

[0003] Currently, the process of opening the camera application takes about 100ms, and the process of configuring the stream information takes about 400ms. The process of starting the camera application takes a long time. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a method for starting a camera application, a readable storage medium, and an electronic device. By advancing the device power-on process to the camera application opening process and executing it in parallel with other tasks in the opening process, the initialization configuration 1 corresponding to the photo mode or the initialization configuration 2 corresponding to the video recording mode is executed during the configuration of the stream information, thereby saving part of the time in the original startup process; and since the initialization configuration process corresponding to the user's real mode in the above method is completed during the configuration of the stream information, after the camera application startup process is completed, the user can directly use the camera application in the correct mode, thereby improving the user's satisfaction.

[0005] In a first aspect, an embodiment of the present application provides a method for starting a camera application, which is applied to an electronic device, and the method includes: obtaining a startup request for the camera application; executing an opening process of the camera application, executing a first process during the opening process of the camera application, and the first process includes a device power-on process; executing a configuration process of the stream information of the camera application, and executing a second process during the configuration process of the stream information of the camera application; according to the configured parameters, controlling the display screen of the electronic device to display a first frame of the picture, and the configured parameters include parameters configured in the first process and parameters configured in the second process.

[0006] It can be understood that by implementing the first process in the process of opening the camera application and implementing the second process in the process of configuring the stream information of the camera application, the configuration parameters required for the display screen to display the first frame of the picture can be configured.

[0007] In some implementations, the first process includes a device power-on process, and the mode information corresponding to the mode obtained in the configuration process of the stream information is a photo mode. The second process includes an initialization configuration process corresponding to the photo mode and a mode configuration process corresponding to the photo mode. The mode information obtained in the configuration process of the stream information is a video recording mode. The second process includes an initialization configuration process corresponding to the video recording mode and a mode configuration process corresponding to the video recording mode.

[0008] It can be understood that by moving the device power-on process forward to the process of opening the camera application, the time of the original device power-on process can be saved.

[0009] In some implementations, the initialization configuration process corresponding to the photographing mode or the initialization configuration process corresponding to the video recording mode is executed at the start time of the configuration process of the stream information.

[0010] It can be understood that there is a certain time gap between the preset start time of the original flow information configuration process and the preset start time of the original device power-on process. Therefore, the initialization configuration process corresponding to the real mode is performed in advance to the start time of the flow information configuration process. This can save the gap time between the start time of the original flow information configuration process and the start time of the original device power-on process.

[0011] In a possible implementation of the first aspect above, the first process includes a device power-on process and an initialization configuration process corresponding to a photographing mode, and the mode information obtained in the configuration process of the stream information is the photographing mode, and the second process includes a mode configuration process corresponding to the photographing mode.

[0012] It can be understood that since the mode information obtained is the photo mode, the device power-on process and the initialization configuration process corresponding to the photo mode are executed in advance during the opening process of the camera application, and the mode configuration process corresponding to the photo mode is set to be executed during the configuration of the stream information. When the actual mode is the photo mode, the time used for the device power-on process and the initialization configuration process corresponding to the photo mode can be saved, and after the startup process of the camera application is completed, the user can directly use the normal functions of the photo mode of the camera application, thereby improving the user's satisfaction.

[0013] In a possible implementation of the first aspect above, the first process includes a device power-on process and an initialization configuration process corresponding to a photographing mode, and the mode information obtained in the configuration process of the stream information is a recording mode, and the second process includes an initialization configuration process corresponding to the recording mode and a mode configuration process corresponding to the recording mode.

[0014] It can be understood that since the mode information obtained is the video recording mode, the device power-on process and the initialization configuration process corresponding to the photo mode are executed in advance during the opening process of the camera application, and the initialization configuration process corresponding to the video recording mode and the mode configuration process corresponding to the video recording mode are set to be executed during the configuration of the stream information. When the actual mode is the video recording mode, the time of the device power-on process can be saved, and after the startup process of the camera application is completed, the user can directly use the normal functions of the video recording mode of the camera application, thereby improving the user's satisfaction.

[0015] In a possible implementation of the first aspect above, the first process includes a device power-on process and an initialization configuration process corresponding to a photo mode, and the mode information obtained in the configuration process of the stream information is a video recording mode. The second process includes an abridged version of the initialization configuration process corresponding to the video recording mode and a mode configuration process corresponding to the video recording mode. The abridged version of the initialization configuration process includes a common configuration process of the camera device and a configuration process of the Binning output mode of the video recording mode.

[0016] It can be understood that since the mode information obtained is the photo mode, the device power-on process and the initialization configuration process corresponding to the photo mode are executed in advance during the opening process of the camera application, and the abridged version of the initialization configuration process corresponding to the video recording mode and the mode configuration process corresponding to the video recording mode are set to be executed during the configuration process of the stream information of the camera application. This can save the time of the device power-on process and a part of the initialization configuration time corresponding to the video recording mode. After the startup process of the camera application is completed, the user can directly use the normal functions of the video recording mode of the camera application, thereby improving the user's satisfaction.

[0017] In a possible implementation of the first aspect, the initialization configuration process corresponding to the recording mode is executed at the start time of the configuration process of the stream information.

[0018] It can be understood that if the user's actual mode is the video recording mode, the device power-on process and the initialization configuration process corresponding to the photo mode will be executed in advance during the opening process of the camera application, and the initialization configuration corresponding to the video recording mode will be executed in advance at the starting time of the stream information configuration process. This can save the time for powering on the device, as well as the time for the gap between the starting time of the original stream information configuration process and the starting time of the original device power-on process. After the startup process of the camera application is completed, the user can directly use the normal functions of the video recording mode of the camera application, thereby improving the user's satisfaction.

[0019] In a possible implementation of the first aspect above, the initialization configuration process corresponding to the photographing mode includes a common configuration process of the camera device and a configuration process for seamless switching of the photographing mode.

[0020] In a possible implementation of the first aspect above, the initialization configuration process corresponding to the video recording mode includes a common configuration process of the camera device and a configuration process for seamless switching of the video recording mode.

[0021] In a second aspect, an embodiment of the present application provides a readable storage medium, which includes instructions. When the instructions are executed by an electronic device, the electronic device implements any one of the methods provided by the above-mentioned first aspect and various possible implementations of the first aspect.

[0022] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory storing instructions; and at least one processor for executing instructions to enable the electronic device to implement any one of the methods provided by the above-mentioned first aspect and various possible implementations of the first aspect.

[0023] In a fourth aspect, an embodiment of the present application provides a computer program product, which, when running on an electronic device, enables the electronic device to implement any one of the methods provided by the first aspect and various possible implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1a According to some embodiments of the present application, a schematic diagram of a usage scenario of a camera application is shown;

[0026] Figure 1b According to some embodiments of the present application, a schematic diagram of a camera application opening process and a stream information configuration process of a camera application is shown;

[0027] Figure 2 According to some embodiments of the present application, a schematic diagram of the hardware structure of an electronic device is shown;

[0028] Figure 3 According to some embodiments of the present application, a schematic diagram of a software structure of an electronic device is shown;

[0029] Figure 4 According to some embodiments of the present application, a schematic diagram of a camera application startup process is shown;

[0030] Figure 5According to some embodiments of the present application, a schematic diagram of another camera application opening process and stream information configuration process is shown;

[0031] Figure 6 According to some embodiments of the present application, a schematic diagram of another camera application opening process and stream information configuration process is shown;

[0032] Figure 7 According to some embodiments of the present application, a schematic diagram of another camera application opening process and stream information configuration process is shown;

[0033] Figure 8 According to some embodiments of the present application, a schematic diagram of a camera application opening process and a stream information configuration process of another camera application is shown. DETAILED DESCRIPTION

[0034] Various aspects of the illustrative embodiments will be described below using terms commonly employed by those skilled in the art.

[0035] It can be understood that the illustrative embodiments of the present application include but are not limited to a method for starting a camera application, a readable storage medium, and an electronic device.

[0036] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.

[0037] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0038] For ease of understanding, some terms used in the article are explained below.

[0039] (1) Android application package (APK): It is an application package file format used by the Android operating system to distribute and install mobile applications and middleware. In order for an Android application code to run on an Android device, it must first be compiled and then packaged into a file that can be recognized by the Android operating system before it can be run. The file format that can be recognized and run by the Android operating system is "APK". An APK file contains compiled code files, file resources, native resource files, certificates and manifest files.

[0040] Figure 1a Schematic diagram of camera application usage scenario is shown. Figure 1a As shown, taking the electronic device as a mobile phone 100 as an example, when the camera application needs to be used, the user can click the camera application icon 100b on the touch screen 100a of the mobile phone 100. The process from the user clicking the camera application icon 100b to the first frame image of the camera application being displayed on the touch screen 100a is called the camera startup process, which mainly includes the camera application opening process and the stream information configuration process.

[0041] like Figure 1b As shown, in the original state, the opening process of the camera application takes about 100ms, and the camera application is initialized during the opening process of the camera application; during the configuration process of the stream information, the process in the hardware abstraction layer will be called to operate the camera device, such as the camera head, and the configuration process of the stream information may include device power-on, initialization configuration 1 or initialization configuration 2, and mode configuration, etc. Among them, the initialization configuration 1 process is a common configuration process of the camera device, and a configuration process for seamless switching with the photo mode. The initialization configuration 2 process is a common configuration process of the camera device, and a configuration process for seamless switching with the video mode. The common configuration process of the camera device includes the configuration of the data transmission protocol, internal timing and interrupt frequency, etc. The mode configuration process is a customized configuration according to the mode of the camera device, including the output size, color, data transmission rate, etc. corresponding to the photo mode or the video mode. In some scenarios, the configuration process of the stream information takes about 400ms, wherein the device power-on process takes about 20ms, the initialization configuration process takes about 70ms, and the mode configuration process takes about 50ms.

[0042] In order to optimize the startup process of the camera application, that is, to shorten the time taken to start the camera application, the optimization scheme for the startup process of the camera application of some electronic devices can be as follows: Figure 1bAs shown. For some camera devices, such as cameras, there are different initialization configuration processes corresponding to different modes. The existing optimization scheme for the startup process of camera applications usually defaults the startup mode of the camera application to the photo mode, and advances the device power-on instruction and the initialization configuration 1 instruction corresponding to the photo mode to the opening process of the camera application. That is, in the existing optimization state, during the opening process of the camera application, for example, in the above-mentioned 100ms, the device power-on and initialization configuration 1 are executed in parallel with the initialization of the camera application, and do not need to be executed during the configuration process of the stream information.

[0043] As shown in Table 1, corresponding to the original state of the camera application, in the existing optimization scheme for the startup process of the camera application, if the user actually selects the photo mode, the startup process of the camera application can shorten the time of the device power-on process and the time of the initialization configuration 1 process originally required, for example, the sum of 20ms and 70ms is 90ms.

[0044] However, in some cases, if the user actually selects the video recording mode, since the initialization configuration 1 corresponding to the photo mode is executed during the opening process of the camera application, and the initialization configuration 2 corresponding to the video recording mode is not executed, after the startup process of the camera application is completed, the camera's video recording mode seamless switching function cannot be used normally, which may cause the preview to flash back, freeze, etc.

[0045] Table 1:

[0046]

[0047] It can be understood that the time taken to open the camera application, the time taken to configure the stream information, the time taken to power on the device, the time taken to initialize the configuration process, and the time taken to configure the mode may vary accordingly depending on the specific electronic device, the specific camera application, and the specific scenario. The time taken in the embodiments of the present application is only an example. In the present application, there is no specific limitation on the time taken for each process of the camera application.

[0048] It can be understood that the mode of the camera application may include but is not limited to a photo mode and a video recording mode. The mode of the camera application in the embodiment of the present application is only an example. In the present application, no specific limitation is made to the specific mode of the camera application.

[0049] In view of this, the present application proposes a method for starting a camera application. An advance loading module can be set in the hardware abstraction layer of the electronic device. The advance loading module generates and issues a first advance configuration instruction. The first advance configuration instruction is used to advance the device power-on process to the opening process of the camera application and execute it in parallel with other tasks in the opening process, so that the device power-on process that should have been executed in the configuration process of the stream information of the camera application is advanced to the opening process of the camera application. Compared with the time taken for the original camera application startup process, the device power-on time can be saved.

[0050] Furthermore, the pre-loading module generates and issues a second pre-configuration instruction according to the user's real mode information obtained by the camera application during the configuration process of the stream information, and the second pre-configuration instruction is used to execute the process of initialization configuration 1 corresponding to the photographing mode or initialization configuration 2 corresponding to the video recording mode at the start time of the stream information configuration process. Since there is a certain time gap between the preset start time of the original stream information configuration process and the preset start time of the original device power-on process during the startup process of the original camera application, this method saves the gap time between the start time of the original stream information configuration process and the start time of the original device power-on process compared to the time taken for the startup process of the original camera application.

[0051] At the same time, since the initialization configuration process corresponding to the user's real mode in the above method is completed during the configuration process of the stream information, after the startup process of the camera application is completed, the user can directly use the camera application in the correct mode, thereby improving the user's satisfaction.

[0052] In addition, the present application also proposes several other methods for starting the camera application. By generating and issuing advance configuration instructions for other contents through the advance loading module, and generating and issuing other configuration instructions for other contents through the device control module, different performance benefits can also be obtained, and after the camera application startup process is completed, the user can directly use the camera application in the correct mode.

[0053] The method for starting the camera application provided in the embodiment of the present application will be introduced in detail below in combination with a specific technical solution.

[0054] It can be understood that the technical solutions provided by the various embodiments disclosed in this application are applicable to various electronic devices and are not limited to the mobile phone 100. For example, the electronic device may include but is not limited to user equipment (UE), terminal, etc. For example, the electronic device may be a mobile phone (including a folding screen mobile phone and a straight-plate mobile phone), a tablet computer, a desktop computer, a handheld computer, a notebook computer (laptop), an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant), a tablet computer (portable android device, PAD), a personal digital assistant (personal digital assistant, PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a smart home, etc. The AR glasses can be charged by a mobile terminal such as a wireless terminal in a home, a fixed terminal, a power bank, or other electronic device. The form of the electronic device is not specifically limited in the embodiments of the present application.

[0055] Before introducing in detail a camera activation method according to an embodiment of the present application, a hardware structure diagram of the mobile phone 100 is introduced by taking the electronic device as an example.

[0056] like Figure 2As shown, the mobile phone 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.

[0057] 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 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.

[0058] The controller may be the nerve center and command center of the mobile phone 100. The controller generates an operation control signal according to the instruction operation code and the timing signal, and completes the control of fetching and executing instructions.

[0059] 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 aforementioned memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system. In some embodiments, the processor 110 may call and execute the execution instructions of the method for starting the camera application provided in each embodiment of the present application stored in the memory to implement the method for starting the camera application provided in the embodiment of the present application.

[0060] 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.

[0061] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the mobile phone 100.

[0062] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0063] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls through a Bluetooth headset. Both the aforementioned I2S interface and the aforementioned PCM interface can be used for audio communication.

[0064] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0065] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the mobile phone 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the mobile phone 100, such as for displaying the first frame image after the startup process of the camera application provided in this embodiment.

[0066] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0067] The USB interface 130 is an interface that complies with USB standard specifications, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.

[0068] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may also adopt different interface connection methods in the above embodiments, or a combination of various interface connection methods.

[0069] The charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also supply power to the mobile phone 100 through the power management module 141 .

[0070] 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 display screen 194, the camera 193, and the wireless communication module 160.

[0071] The wireless communication function of the mobile phone 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.

[0072] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 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.

[0073] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 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.

[0074] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent 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 low-frequency baseband signal obtained by the IOU to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in one device with the mobile communication module 150 or other functional modules.

[0075] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the mobile phone 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 performs filtering, 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.

[0076] In some embodiments, the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The aforementioned wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The aforementioned GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0077] The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor.

[0078] The GPU is a microprocessor for image processing, connected to 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, which execute program instructions to generate or change display information.

[0079] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0080] The mobile phone 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0081] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens, and the light signal is converted into an electrical signal. The camera photosensitive element transmits the aforementioned electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0082] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments of the present application, the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0083] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the mobile phone 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0084] Video codecs are used to compress or decompress digital videos. Mobile phone 100 may support one or more video codecs. Thus, mobile phone 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0085] 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 mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0086] The internal memory 121 can be used to store computer executable program codes, and the aforementioned executable program codes include instructions. 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 an application corresponding to the function related to the initialization configuration method provided in this embodiment), etc. The data storage area may store data created during the use of the mobile phone 100 (such as the encoding of the input text), 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 at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications of the mobile phone 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor 110.

[0087] The mobile phone 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 earphone interface 170D, and the application processor.

[0088] The audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals.

[0089] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The mobile phone 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0090] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the mobile phone 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the ear.

[0091] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the patient can speak by putting his mouth close to the microphone 170C to input the sound signal into the microphone 170C. The mobile phone 100 can be provided with at least one microphone 170C. In other embodiments, the mobile phone 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the mobile phone 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0092] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0093] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The mobile phone 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the mobile phone 100 detects the aforementioned touch operation intensity based on the pressure sensor 180A. The mobile phone 100 can also calculate the touch position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.

[0094] The gyro sensor 180B can be used to determine the motion posture of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for shooting anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0095] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the mobile phone 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0096] The magnetic sensor 180D includes a Hall sensor. The mobile phone 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the mobile phone 100 is a flip phone, the mobile phone 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.

[0097] The acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 100 in all directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the mobile phone 100 and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0098] The distance sensor 180F is used to measure the distance. The mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile phone 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0099] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The mobile phone 100 emits infrared light outward through the light emitting diode. The mobile phone 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 can determine that there is no object near the mobile phone 100. The mobile phone 100 can use the proximity light sensor 180G to detect that the patient holds the mobile phone 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in the leather case mode and the pocket mode to automatically unlock and lock the screen.

[0100] The ambient light sensor 180L is used to sense the brightness of the ambient light. The mobile phone 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.

[0101] The fingerprint sensor 180H is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc. For example, a fingerprint sensor can be configured on the front of the mobile phone 100 (below the display screen 194), or a fingerprint sensor can be configured on the back of the mobile phone 100 (below the rear camera). In addition, the fingerprint recognition function can also be realized by configuring a fingerprint sensor in the touch screen, that is, the fingerprint sensor can be integrated with the touch screen to realize the fingerprint recognition function of the mobile phone 100.

[0102] The temperature sensor 180J is used to detect temperature. In some embodiments, the mobile phone 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.

[0103] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the mobile phone 100, which is different from the position of the display screen 194.

[0104] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of a human body's vocal part. The bone conduction sensor 180M can also contact a human body's pulse to receive a blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M can also be disposed in an earphone to form a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of a vocal part obtained by the aforementioned bone conduction sensor 180M to realize a voice function.

[0105] The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The mobile phone 100 can receive key input and generate key signal input related to the user settings and function control of the mobile phone 100.

[0106] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0107] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0108] The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the mobile phone 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The mobile phone 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the aforementioned multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The mobile phone 100 interacts with the network through the SIM card to realize functions such as calls and data communications. In some embodiments, the mobile phone 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.

[0109] although Figure 2 Not shown, the mobile phone 100 may also include a Bluetooth device, a positioning device, a flashlight, a micro-projection device, a near field communication (NFC) device, etc., which are not described in detail here.

[0110] It is understood that the structure of the mobile phone 100 shown in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or split 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.

[0111] Next, we will take mobile phone 100 as an example and combine Figure 3 and Figure 4 The software system architecture of the electronic device and the workflow of the camera application startup process are explained.

[0112] The software system of the electronic device 100 may 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 exemplify the software system of the electronic device 100.

[0113] Figure 3 1 is a block diagram of a software system of an electronic device 100 provided in an embodiment of the present application. Figure 3 The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided from top to bottom into an application layer 01, an application framework layer 02, a hardware abstraction layer 03, and a kernel layer 04.

[0114] The application layer 01 may include a series of application packages. Figure 3 As shown, the application package may include but is not limited to camera, Bluetooth, gallery, call, map, navigation, etc. Among them, the default mode of the camera is the photo mode, which is used to call the camera to shoot and record.

[0115] The application framework layer 02 provides an application programming interface (API) and a programming framework for the applications of the application layer 01. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer 02 may include but is not limited to a content provider, a view system, a window manager, a resource manager, a state manager, and a camera service.

[0116] Content providers are used to store and share data between different applications and make these data accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0117] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0118] The window manager is used to manage all window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0119] The resource manager provides various non-code resources for applications, such as localized strings, icons, images, layout files, color files, video files, and so on.

[0120] The state manager is used to manage the display state, touch state, etc. of the display screen 194. For example, the state manager can set the state of the display screen to a light state or an off state. The state manager can also enable or disable the touch function of the display screen.

[0121] The camera service can be started during the power-on phase of an electronic device and can be used to transmit and save camera-related information.

[0122] The hardware abstraction layer 03 (HAL) is an encapsulation of the driver in the kernel layer 04, which can provide an interface to the upper layer and shield the implementation details of the underlying hardware. The hardware abstraction layer 03 may include but is not limited to the camera core software framework (camxhal3), the pre-loaded module (CSLDeviceProxy), the device control module (SensorNode), the control device (camxcslhw) and the image processing module (IFE Node).

[0123] Among them, the advance loading module can be used to generate and issue advance loading instructions, such as instructions that need to be executed in advance such as device power-on and initialization configuration. The device control module can be used to generate and issue instructions for configuring other data in addition to the data configured in the advance loading module. The control device is used to interact with the kernel layer 04 after receiving instructions from the advance loading module and the device control module.

[0124] The kernel layer 04 is a layer between hardware and software. The kernel layer may include but is not limited to display driver, camera driver, audio driver, sensor driver, kernel module, etc. Among them, the camera driver is used to drive the camera hardware through the I2C interface, so that the camera is started, so that the electronic device can collect images through the camera.

[0125] The following will combine Figures 4 to 8 , the method for starting the camera application provided in the embodiment of the present application is introduced in detail, and the following embodiments can be implemented on the mobile phone 100 having the above-mentioned hardware structure / software structure. Specific embodiment one:

[0127] Figure 4 A schematic diagram of the workflow of a camera application startup process of an electronic device including the above hardware and software structures is shown.

[0128] After the user clicks the camera application icon on the display screen of the electronic device, Figure 4 As shown, the workflow of the camera application startup process may include the following steps:

[0129] S410: The camera application sends a start request to the camera service.

[0130] After the user turns on the electronic device, such as the mobile phone 100, and clicks the icon of the camera application, the electronic device can obtain the user's request to start the camera application. In some possible implementations, after the user clicks the camera application, the rear camera preview mode is entered by default, and the initial mode of the camera application is the photo mode by default.

[0131] S420, the camera service sends a camera application startup request to the camera core software framework.

[0132] After the camera service is started, the camera service will notify the hardware abstraction layer 03 to start the camera process. The camera application startup process includes the camera application opening process and the stream information configuration process.

[0133] S430, the camera core software framework notifies the advance loading module to send the first and second advance configuration instructions.

[0134] S440, the advance loading module generates and issues a first advance configuration instruction.

[0135] After the advance loading module generates the first advance configuration instruction, it sends it to the control device.

[0136] It can be understood that the first advance configuration instruction may be an instruction that needs to be executed in advance.

[0137] It can be understood that the first advance configuration instruction can be set to start execution at any time during the opening process of the camera application and / or the configuration process of the stream information. In the embodiment of the present application, there is no specific restriction on the execution time of the first advance configuration instruction.

[0138] It can be understood that the opening process of the camera application is mainly used to initialize the camera application. In a possible implementation, the first advance configuration instruction may include an instruction to power on the device in advance and execute it during the opening process of the camera application.

[0139] S450: The control device sends a first advance configuration instruction to the camera driver.

[0140] It can be understood that after receiving the first advance configuration instruction, the control device converts all instructions into ioctl commands and then sends them to the camera driver of the kernel layer 04.

[0141] S460: The camera driver updates the camera sensor according to the first pre-configuration instruction.

[0142] It can be understood that the camera driver can update the configuration parameters in the received ioctl command corresponding to the first advance configuration instruction to the register of the camera sensor in the hardware layer through the I2C interface.

[0143] S470, the advance loading module generates and issues a second advance configuration instruction.

[0144] Similarly, it can be understood that the second advance configuration instruction may be an instruction that needs to be executed in advance.

[0145] It can be understood that the second advance configuration instruction can also be set to start execution at any time during the opening process of the camera application and / or the configuration process of the stream information. In the embodiment of the present application, there is no specific restriction on the execution time of the second advance configuration instruction.

[0146] In a possible implementation, the second advance configuration instruction may include an instruction to advance the initialization configuration corresponding to the real mode to the start time of the configuration process of the stream information. It can be understood that since the camera application can obtain the user's real mode information, such as the photo mode or the video mode, at the start time of the configuration process of the stream information, the initialization configuration is advanced to the start time of the configuration process of the stream information, and the initialization configuration can be performed according to the obtained real mode, so that after the startup process of the camera application is completed, the functions of the camera application can be used normally, such as the seamless switching function of the photo mode or the seamless switching function of the video mode.

[0147] It can be understood that the configuration process of the stream information is mainly used to configure the stream information of the camera device. The configuration instructions of the stream information include the mode information of the camera application selected by the user, for example, it may include the photo mode of the camera application selected by the user, and it may also include the video recording mode of the camera application selected by the user. In the embodiment of the present application, there is no specific restriction on the type of mode information included in the configuration process of the stream information.

[0148] It can be understood that the existing stream information configuration process includes a device power-on process, an initialization configuration process, and a mode configuration process, and there is a certain time gap between the start time of the device power-on process and the start time of the stream information configuration process. In a possible implementation, the difference between the two is about 40ms. Therefore, the initialization configuration is advanced to the start time of the stream information configuration process, and the startup process of the camera application can save the time gap between the start time of the original stream information configuration process and the start time of the original device power-on process.

[0149] S480: The control device sends a second advance configuration instruction to the camera driver.

[0150] It can be understood that after receiving the second advance configuration instruction, the control device converts all instructions into ioctl commands and then sends them to the camera driver of the kernel layer 04.

[0151] S490: The camera driver updates the camera sensor according to the second pre-configuration instruction.

[0152] It can be understood that the camera driver can update the configuration parameters in the received ioctl command corresponding to the second advance configuration instruction to the register of the camera sensor in the hardware layer through the I2C interface.

[0153] S500: The camera core software framework notifies the device control module to send other configuration instructions.

[0154] In a possible implementation, the remaining configuration instructions may include instructions for executing mode configuration during the configuration process of the stream information. For example, the mode configuration instructions may include mode configuration instructions for a photographing mode or mode configuration instructions for a recording mode.

[0155] It is understandable that the camera application may also have other modes, and corresponding mode configurations of other modes. In the embodiments of the present application, the modes of the camera application and the corresponding mode configurations are not specifically limited.

[0156] S510, the device control module generates and issues the remaining configuration instructions.

[0157] The device control module will generate other configuration instructions including the mode configuration instruction and send them to the control device. In a possible implementation, the other configuration instructions may include instructions for executing the mode configuration during the configuration process of the flow information.

[0158] S520: The control device sends the remaining configuration instructions of the camera application to the camera driver.

[0159] It can be understood that after receiving the advance configuration instruction and the remaining configuration instructions, the control device converts all instructions into ioctl commands and then sends them to the camera driver of the kernel layer 04.

[0160] S530: The camera driver updates the camera sensor according to other configuration instructions.

[0161] It can be understood that the camera driver can update the configuration parameters in the received ioctl command corresponding to the remaining configuration instructions to the registers of the camera sensor in the hardware layer through the I2C interface.

[0162] S540: The camera sensor generates frames according to the obtained configuration parameters, and transmits raw data of the generated frame images to the camera driver.

[0163] The camera sensor can generate frames according to the modes corresponding to all the received configuration parameters, and transmit the raw data of the framed images to the camera driver through the MIPI interface.

[0164] S550: The camera driver transmits the original data of the frame image to the image processing module.

[0165] It can be understood that the chip platform can select IFE Node to perform image processing based on the original data of the outgoing frame image.

[0166] S560: The image processing module performs image processing according to the original data of the outgoing frame image, and transmits the obtained frame data to the camera service.

[0167] It can be understood that the image processing module can send the frame data of the frame-out image to the camera service through the interface of the hardware abstraction layer 03.

[0168] S570: The camera service transmits the frame data of the outgoing frame image to the camera application.

[0169] After the camera application receives the frame data transmitted by the camera service, it sends the frame data to the display screen 194 for display, and the first frame image will be displayed on the display screen 194 of the mobile phone 100.

[0170] Table 2 shows the performance gain obtained according to the above-mentioned camera application startup method.

[0171] Table 2:

[0172]

[0173] like Figure 5 As shown in Table 2, assuming that the device power-on process takes 20 ms, and the gap between the start time of the original flow information configuration process and the start time of the original device power-on process is 40 ms, then the performance benefit of the above solution corresponding to the user selecting the photo mode or the user selecting the video mode can reach 60 ms.

[0174] It can be understood that the time taken to open the camera application, the time taken to configure the stream information, the time taken to power on the device, the time taken to initialize the configuration process, the time taken to configure the mode, and the gap between the start time of the original stream information configuration process and the start time of the original device power-on process may vary accordingly depending on the specific electronic device, the specific camera application, and the specific scenario. The time taken in the embodiments of the present application is only an example. In the present application, the time taken and the start time of each process of the camera application are not specifically limited.

[0175] In the working method for starting the above-mentioned camera application, the first and second advance configuration instructions are generated and issued by the advance loading module, so that the device power-on instruction that should be executed in the configuration process of the stream information of the camera application is executed in advance in the opening process of the camera application. Compared with the time taken for the original camera application startup process, the device power-on time can be saved; and the initialization configuration process can be started at the starting moment of the stream information configuration process, saving the gap time between the starting moment of the original stream information configuration process and the starting moment of the original device power-on process.

[0176] At the same time, since the second advance configuration instruction corresponds to the real mode information selected by the user, the initialization configuration process corresponding to the real mode can be completed during the configuration process of the stream information. Therefore, after the startup process of the camera application is completed, the user can directly use all the functions of the camera application, thereby improving the user's satisfaction. Specific embodiment 2:

[0178] In a possible implementation, it is also possible to Figure 4 In step S440 shown, the first advance configuration instruction is set as an instruction for executing device power-on and initialization configuration 1 in advance during the opening process of the camera application.

[0179] Similarly, it can be understood that the first advance configuration instruction can be set to start execution at any time during the opening process of the camera application. In the embodiment of the present application, there is no specific restriction on the execution time of the first advance configuration instruction.

[0180] Furthermore, if during the configuration process of the stream information, the actual mode of the user obtained by the camera application is the photo mode, steps S470, S480 and S490 are deleted, and the remaining configuration instructions in step S510 can be mode configuration instructions corresponding to the photo mode, and are sent to the control device.

[0181] If, during the configuration of the stream information, the camera application obtains the user's real mode as the video recording mode, then Figure 4 In step S470 shown, the second advance configuration instruction is set to execute the initialization configuration 2 during the configuration process of the stream information. In step S510, the remaining configuration instructions are set to instructions to execute the mode configuration corresponding to the recording mode during the configuration process of the stream information, and they are sent to the control device.

[0182] Table 3 shows the performance gain obtained according to the above-mentioned camera application startup method.

[0183] Table 3:

[0184]

[0185] like Figure 6 As shown in Table 3, assuming that the device power-on process takes 20ms and the initialization configuration 1 or initialization configuration 2 process takes 70ms, the performance gain of the above scheme corresponding to the user selecting the photo mode can reach 90ms, and the performance gain corresponding to the user selecting the video mode can reach 20ms.

[0186] Similarly, it can be understood that the time taken to open the camera application, the time taken to configure the stream information, the time taken to power on the device, the time taken to initialize the configuration, the time taken to configure the mode, etc. may vary accordingly depending on the specific electronic device, the specific camera application, and the specific scenario. The time taken in the embodiments of the present application is only an example. In the present application, there is no specific limitation on the time taken and the starting time of each process of the camera application.

[0187] In the working method for starting the above-mentioned camera application, the first advance configuration instruction is generated and issued by the advance loading module, so that the device power-on instruction and the initialization configuration 1 instruction that should be executed in the configuration process of the stream information of the camera application are executed in advance in the opening process of the camera application, and if the user's real mode is the photo mode, the device control module generates and issues the remaining configuration instructions including the mode configuration corresponding to the photo mode, which can save the time for powering on the device and the time for initialization configuration 1, and after the startup process of the camera application is completed, the normal function of the camera application can be used, and if the user's real mode is the video recording mode, the device control module generates and issues the remaining configuration instructions including the initialization configuration 2 and the mode configuration instructions corresponding to the video recording mode, which can save the time for mode configuration. Specific embodiment three:

[0189] In a possible implementation, it is also possible to Figure 4 In step S440 shown, the first advance configuration instruction is set to include an instruction to execute device power-on and initialization configuration 1 in advance during the opening process of the camera application.

[0190] As described above, the first advance configuration instruction can be set to start execution at any time during the opening process of the machine application. In the embodiment of the present application, there is no specific restriction on the execution time of the first advance configuration instruction.

[0191] Furthermore, if during the configuration process of the stream information, the actual mode of the user obtained by the camera application is the photo mode, steps S470, S480 and S490 are deleted, and in step S510, the remaining configuration instructions are set to execute the mode configuration instructions corresponding to the photo mode during the configuration process of the stream information, and send them to the control device.

[0192] If, during the configuration of the stream information, the camera application obtains the user's real mode as the video recording mode, then Figure 4 In step S470 shown, the second advance configuration instruction is set to execute the abridged version initialization configuration 2 during the configuration process of the flow information. In step S510, the remaining configuration instructions are set to execute the mode configuration during the configuration process of the flow information and sent to the control device.

[0193] It can be understood that the initialization configuration 1 process includes the common configuration process of the camera device and the configuration process of seamless switching with the photographing mode, wherein the configuration process of seamless switching with the photographing mode includes the configuration process of the IDCG output mode of the photographing mode, the configuration process of the Remosaic output mode of the photographing mode, and the configuration process of the Binning output mode of the photographing mode. The initialization configuration 2 process includes the common configuration process of the camera device and the configuration process of seamless switching with the video recording mode, wherein the configuration process of seamless switching with the video recording mode includes the configuration process of the IDCG output mode of the video recording mode, the configuration process of the Remosaic output mode of the video recording mode, and the configuration process of the Binning output mode of the video recording mode. Since when the startup process of the camera application is completed, the first frame of image displayed on the display screen 194 of the electronic device only needs the configuration of the Binning output mode, therefore, the abridged version of the initialization configuration 2 instruction can be set as the common configuration of the camera device and the configuration instruction of the Binning output mode of the video recording mode, and the configuration of the IDCG output mode of the video recording mode and the configuration of the Remosaic output mode of the video recording mode are placed after the startup process of the camera application is completed.

[0194] Table 4 shows the performance gain obtained according to the above-mentioned camera application startup method.

[0195] Table 4:

[0196]

[0197] like Figure 7 As shown in Table 4, assuming that the device power-on process takes 20ms, the initialization configuration 1 or initialization configuration 2 process takes 70ms, and the configuration process of the IDCG output mode of the video mode and the configuration process of the Remosaic output mode of the video mode take 20ms, then the performance benefit of the above scheme corresponding to the user selecting the photo mode can reach 90ms, and the performance benefit corresponding to the user selecting the video mode can reach 40ms.

[0198] Similarly, it can be understood that the time taken to open the camera application, the time taken to configure the stream information, the time taken to power on the device, the time taken to initialize the configuration process, the time taken to configure the mode, and the time taken to configure the Binning output mode of the recording mode, etc. may vary accordingly depending on the specific electronic device, the specific camera application, and the specific scenario. The time taken in the embodiments of the present application is only an example. In the present application, the time taken for each process of the camera application is not specifically limited.

[0199] In the working method for starting the above-mentioned camera application, the first advance configuration instruction is generated and issued by the advance loading module, so that the device power-on instruction and the initialization configuration 1 instruction that should be executed in the configuration process of the stream information of the camera application are executed in advance in the opening process of the camera application, and if the user's real mode is the photo mode, the device control module generates and issues the remaining configuration instructions that will be executed in the configuration process of the stream information corresponding to the mode configuration of the photo mode, which can save the time for powering on the device and the time for initialization configuration 1. If the user's real mode is the video recording mode, the advance loading module generates and issues the second advance configuration instruction that will be executed in the configuration process of the stream information with the abridged version of the initialization configuration 2, and the device control module generates and issues the remaining configuration instructions that will be executed in the configuration process of the stream information with the mode configuration corresponding to the photo mode, corresponding to the user selecting the photo mode, which can save the time for powering on the device and part of the time for initialization configuration 2.

[0200] At the same time, since the initialization configuration process corresponding to the real mode can be completed during the configuration process of the stream information, after the startup process of the camera application is completed, the user can directly use all functions of the camera application, thereby improving the user's satisfaction. Specific embodiment four:

[0202] In a possible implementation, it is also possible to Figure 4 In step S440 shown, the first advance configuration instruction is set to include an instruction to execute device power-on and initialization configuration 1 in advance during the opening process of the camera application.

[0203] As described above, the first advance configuration instruction can be set to start execution at any time during the opening process of the machine application. In the embodiment of the present application, there is no specific restriction on the execution time of the first advance configuration instruction.

[0204] Furthermore, if during the configuration process of the stream information, the actual mode of the user obtained by the camera application is the photo mode, steps S470, S480 and S490 are deleted, and in step S510, the remaining configuration instructions are set to execute the mode configuration instructions corresponding to the photo mode during the configuration process of the stream information, and send them to the control device.

[0205] If, during the configuration of the stream information, the camera application obtains the user's real mode as the video recording mode, then Figure 4 In the step S470 shown, the second advance configuration instruction is set to stop the configuration process of initialization 1, and to advance the execution of initialization configuration 2 to the starting time of the configuration process of the stream information. In step S510, the remaining configuration instructions are set to execute the mode configuration corresponding to the recording mode during the configuration process of the stream information, and send it to the control device.

[0206] Similarly, it can be understood that the camera application may also have other modes, and corresponding initialization configurations and mode configurations of other modes. In the embodiments of the present application, the modes of the camera application and the corresponding initialization configurations and mode configurations are not specifically limited.

[0207] Table 5 shows the performance gain obtained according to the above-mentioned camera application startup method.

[0208] Table 5:

[0209]

[0210]

[0211] like Figure 8 As shown in Table 5, assuming that the device power-on process takes 20 ms, the initialization configuration 1 or initialization configuration 2 process takes 70 ms, and the gap between the start time of the original stream information configuration process and the start time of the original device power-on process is 40 ms, then the performance benefit of the above scheme corresponding to the user selecting the photo mode can reach 90 ms, and the performance benefit corresponding to the user selecting the video recording mode can reach 60 ms.

[0212] Similarly, it can be understood that the time taken to open the camera application, the time taken to configure the stream information, the time taken to power on the device, the time taken to initialize the configuration process, the time taken to configure the mode, and the gap between the start time of the original stream information configuration process and the start time of the original device power-on process, etc. may vary accordingly depending on the specific electronic device, the specific camera application, and the specific scenario. The time taken in the embodiments of the present application is only an example. In the present application, the time taken and the start time of each process of the camera application are not specifically limited.

[0213] In the working method for starting the above-mentioned camera application, the first advance configuration instruction is generated and issued by the advance loading module, so that the device power-on instruction and the initialization configuration 1 instruction that should be executed in the configuration process of the stream information of the camera application are executed in advance in the opening process of the camera application, and if the user's real mode is the photo mode, the device control module generates and issues the remaining configuration instructions for executing the mode configuration corresponding to the photo mode in the configuration process of the stream information, which can save the time for powering on the device and the time for initialization configuration 1. If the user's real mode is the video recording mode, the advance loading module generates and issues the second advance configuration instruction including stopping the configuration process of initialization 1 and advancing the execution of initialization configuration 2 to the starting time of the configuration process of the stream information, and the device control module generates and issues the remaining configuration instructions for executing the mode configuration corresponding to the video recording mode in the configuration process of the stream information, corresponding to the user selecting the video recording mode, which can save the time for powering on the device and the time for the gap between the starting time of the original stream information configuration process and the starting time of the original device power-on process.

[0214] At the same time, since the initialization configuration process corresponding to the real mode can be completed during the configuration process of the stream information, after the startup process of the camera application is completed, the user can directly use all functions of the camera application, thereby improving the user's satisfaction.

[0215] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0216] It will be apparent to those skilled in the art that some of the specific details presented above regarding the electronic device 100 may not be necessary for practicing a specific described embodiment or its equivalent. Similarly, other electronic devices 100 may include a greater number of subsystems, modules, components, etc. Where appropriate, some submodules may be implemented as software or hardware. Therefore, it should be understood that the above description is not intended to be exhaustive or to limit the present disclosure to the precise form described herein. On the contrary, it will be apparent to those of ordinary skill in the art that, based on the above teachings, many modifications and variations are possible.

[0217] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0218] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0219] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0220] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0221] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0222] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0223] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0224] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.

Claims

1. A method for starting a camera application, applied to an electronic device, It is characterized in that include: Get the camera application launch request; Executing a process of opening the camera application, and executing a first process during the process of opening the camera application, wherein the first process includes a device power-on process and an initialization configuration process corresponding to a photographing mode; Execute a configuration process of the stream information of the camera application, and execute a second process during the configuration process of the stream information of the camera application; Controlling the display screen of the electronic device to display a first frame of the picture according to the configured parameters, wherein the configured parameters include the parameters configured in the first process and the parameters configured in the second process; The mode information obtained during the configuration process of the stream information corresponds to the recording mode. The second process includes an abridged version of the initialization configuration process corresponding to the recording mode and a mode configuration process corresponding to the recording mode. The abridged version of the initialization configuration process includes a common configuration process of the camera device and a configuration process of the Binning output mode of the recording mode.

2. The method according to claim 1, It is characterized in that The initialization configuration process corresponding to the photographing mode includes a common configuration process of the camera device and a configuration process for seamless switching of the photographing mode.

3. A readable storage medium, It is characterized in that The readable storage medium includes instructions, and when the instructions are executed by an electronic device, the electronic device implements the method according to any one of claims 1 to 2.

4. An electronic device, It is characterized in that include: A memory, wherein instructions are stored in the memory; At least one processor is used to execute the instructions to enable the electronic device to implement the method according to any one of claims 1 to 2.